/* ══════════════════════════════════════════════
   SLADP — home.css  (homepage only)
   Header/footer CSS lives in sladp.css
══════════════════════════════════════════════ */

/* ── Bootstrap overrides ── */
.al-card__img img,
.al-cta__bg img,
.al-cta__right img { height: 100% !important; }

/* ── CTA shared button (used in CTA section) ── */
.al-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all .22s;
  border: 2px solid transparent;
}
.al-btn--gold,
.al-btn--primary {
  background: #2E7D32;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(46,125,50,.4);
}
.al-btn--gold:hover,
.al-btn--primary:hover {
  background: #1B5E20;
  transform: translateY(-2px);
  color: #fff !important;
}
.al-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.38);
}
.al-btn--ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff !important;
}
.al-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.al-btn__play {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.al-btn__play svg { width: 10px; height: 10px; margin-left: 2px; }

/* ══════════════════════════════════════════════
   HERO — Reference design exact match
══════════════════════════════════════════════ */
.ag-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(6,21,15,.88) 0%, rgba(6,21,15,.55) 38%, rgba(6,21,15,.12) 72%),
    linear-gradient(180deg, rgba(6,21,15,.05) 0%, rgba(6,21,15,.30) 55%, rgba(3,17,12,.97) 100%),
    url('../images/hero_section.png') center center / cover no-repeat;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

/* Badge pill */
.ag-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  color: #d6e9c5;
  padding: 10px 17px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 26px;
}

/* ── Hero copy transitions in sync with the image slider ── */
/* Fade-OUT: all three together, soft and quick */
.ag-hero-left .ag-badge-pill,
.ag-hero-left .ag-hero-h1,
.ag-hero-left .ag-hero-lead {
  transition: opacity .3s ease, transform .3s ease;
}
.ag-hero-left.is-slide-changing .ag-badge-pill,
.ag-hero-left.is-slide-changing .ag-hero-h1,
.ag-hero-left.is-slide-changing .ag-hero-lead {
  opacity: 0;
  transform: translateY(-10px);
}

/* Fade-IN: staggered slide-up, one after another (badge → title → lead) */
@keyframes agCopyIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ag-hero-left.is-slide-in .ag-badge-pill,
.ag-hero-left.is-slide-in .ag-hero-h1,
.ag-hero-left.is-slide-in .ag-hero-lead {
  animation: agCopyIn .6s cubic-bezier(.22,.61,.36,1) both;
}
.ag-hero-left.is-slide-in .ag-badge-pill { animation-delay: 0s; }
.ag-hero-left.is-slide-in .ag-hero-h1   { animation-delay: .12s; }
.ag-hero-left.is-slide-in .ag-hero-lead { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ag-hero-left .ag-badge-pill,
  .ag-hero-left .ag-hero-h1,
  .ag-hero-left .ag-hero-lead { transition: none; animation: none; }
  .ag-hero-left.is-slide-changing .ag-badge-pill,
  .ag-hero-left.is-slide-changing .ag-hero-h1,
  .ag-hero-left.is-slide-changing .ag-hero-lead { opacity: 1; transform: none; }
}

/* H1 */
.ag-hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 5.6vw, 94px);
  line-height: 1.07;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 26px;
  max-width: 960px;
}

.ag-green-text { color: #6fb22f; font-style: normal; }

/* Lead */
.ag-hero-lead {
  max-width: 720px;
  color: #e8eee8 !important;
  font-size: 17.5px;
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 500;
}

/* CTA row */
.ag-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 50;
}

/* Lime button */
.ag-btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 14px;
  background: #b7e83d;
  color: #12210e !important;
  text-decoration: none;
  transition: all .22s;
  font-family: 'Inter', sans-serif;
}
.ag-btn-lime:hover {
  background: #c9f050;
  box-shadow: 0 8px 28px rgba(183,232,61,.45);
  transform: translateY(-2px);
  color: #12210e !important;
}
.ag-btn-lime b {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(18,33,14,.4);
  font-style: normal;
}

/* Ghost button */
.ag-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all .22s;
  font-family: 'Inter', sans-serif;
}
.ag-btn-ghost:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  color: #ffffff !important;
}
.ag-btn-ghost b {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,.45);
  font-style: normal;
}

/* Hero content row */
.ag-hero-content {
  position: relative;
  z-index: 5;
  padding-top: 55px;
  padding-bottom: 150px;
}

/* Left column */
.ag-hero-left {
  padding-right: 20px;
}

/* Visual column */
.ag-hero-visual-col { position: relative; }

.ag-hero-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.ag-img-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Circular clip — image + arcs live inside; overflow:hidden keeps the arcs
   visible ONLY over the image (badges sit outside this, so they're not clipped) */
.ag-img-clip {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 50%;
  overflow: hidden;
  transform: translateX(-150px);
  box-shadow: 0 35px 100px rgba(0,0,0,.45);
  /* clip-path applies from the very first paint and is honoured on composited
     layers — kills the ~1s square flash on load that border-radius/overflow miss */
  -webkit-clip-path: ellipse(50% 50% at 50% 50%);
          clip-path: ellipse(50% 50% at 50% 50%);
}

/* Hero image slider — same circle clip, fade between slides */
.ag-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  /* Mask reliably clips composited layers (border-radius/overflow get dropped
     on the image's own layer during the opacity fade → square corners). The
     mask stays on this non-animating container, so the ellipse always holds. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 99.5%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 99.5%, transparent 100%);
}
.ag-hero-slider .ag-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  /* round each image too — stops square corners flashing during the fade,
     because the transition promotes the image to its own compositor layer
     where the parent's rounded clip isn't applied */
  border-radius: 50%;
}
.ag-hero-slider .ag-hero-img.is-active {
  opacity: 1;
}

/* Slider dots — bottom-centre inside the circle */
.ag-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(6,18,11,.35);
  backdrop-filter: blur(6px);
}
.ag-hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .25s ease;
}
.ag-hero-dot:hover { background: rgba(255,255,255,.8); }
.ag-hero-dot.is-active {
  background: #b7e83d;
  width: 26px;
  border-radius: 6px;
}

/* Hero image — fills the circular clip (fallback if used outside slider) */
.ag-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  display: block;
}

/* Gradient overlay — fills the clip */
.ag-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.05) 0%, transparent 50%, rgba(6,18,11,.45) 100%);
  pointer-events: none;
}

/* ── Two arcs in the hero's dark-green colour, wrapping the panel onto the image ── */
/* Container only — no visible ring of its own */
.ag-circle-rings {
  position: absolute;
  right: -295px;            /* center sits on the right edge → only LEFT semicircle visible */
  top: 50%;
  transform: translateY(-50%);
  width: 590px;
  height: 590px;
  z-index: 3;
  pointer-events: none;
}
/* Arc 1 — fades out as it travels left onto the image */
.ag-circle-rings::before {
  content: "";
  position: absolute;
  width: 630px;
  height: 350px;
  left: 80px;
  top: 114px;
  border-radius: 50%;
  border: 25px solid rgba(9,28,19,.92);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
/* Arc 2 — a little ahead, also fades onto the image */
.ag-circle-rings::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 392px;
  left: 15px;
  top: 74px;
  border-radius: 50%;
  border: 25px solid rgba(9,28,19,.78);
  -webkit-mask-image: linear-gradient(to left, #000 48%, transparent 100%);
  mask-image: linear-gradient(to left, #000 48%, transparent 100%);
}
.ag-circle-rings::before,
.ag-circle-rings::after { z-index: 3; }

/* ── Feature panel — HALF-CIRCLE (D-shape): flat right, curved left edge over image ── */
.ag-feat-list {
  position: absolute;
  right: -34px;             /* flat right edge sits at the column edge */
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 320px;
  background: linear-gradient(135deg, rgba(8,20,12,.58) 0%, rgba(8,20,12,.84) 60%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* border: 1px solid rgba(248,197,45,.22); */
  border-radius: 50% 20px 20px 50% / 50% 20px 20px 50%;  /* left curve = half of its own height */
  padding: 18px 30px 18px 64px;          /* extra left padding clears the curve */
  box-shadow: 0 18px 46px rgba(0,0,0,.42);
}

/* Each row inside the panel — divider between, no own card bg */
.ag-feat-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.ag-feat-item:last-child { border-bottom: none; }

.ag-feat-icon {
  width: 48px; height: 48px;
  border: 2px solid #f8c52d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 auto;
  color: #f8c52d;
}

.ag-feat-item strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff !important;
  line-height: 1.2;
  font-weight: 700;
}

.ag-feat-item small {
  display: block;
  font-size: 12px;
  color: #c8d4c4;
  font-weight: 600;
  margin-top: 2px;
}

.ag-feat-item--gold { border-color: rgba(248,197,45,.22); }
.ag-feat-strong--gold { color: #ffffff !important; }
.ag-feat-icon--gold { border-color: #f8c52d; color: #f8c52d; }

/* ── Service panel — now OUTSIDE the hero so it isn't clipped by the hero's
   overflow:hidden. Sits in a cream wrapper and is pulled up to straddle the
   hero bottom edge (top half over the hero, bottom half on the cream). ── */
.ag-srv-wrap {
  display: flow-root;            /* contains the panel's negative margin */
  background: var(--al-bg);      /* cream — panel's lower half sits on this */
  position: relative;
  z-index: 30;
  padding-bottom: 30px;          /* uniform gap below the panel */
}
/* Diagonal dark-green wedge that continues the hero's bottom edge as a slant
   (taller on the left) instead of a plain straight line. Sits behind the panel. */
.ag-srv-wrap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 150px;
  background: #06150f;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 32%, 0 100%);
          clip-path: polygon(0 0, 100% 0, 100% 32%, 0 100%);
  z-index: 1;
  pointer-events: none;
}
.ag-srv-panel {
  position: relative;
  z-index: 30;
  max-width: 1180px;
  margin: -90px auto 0;
  background: #ffffff;
  color: #111;
  border-radius: 36px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

/* Keep side gutters when the viewport is narrower than the panel,
   so the card never touches the screen edges (matches the wide design) */
@media (max-width: 1239px) {
  .ag-srv-wrap { padding-left: 24px; padding-right: 24px; }
}

.ag-srv-box {
  text-align: center;
  padding: 22px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-top: 3px solid var(--_srv, #236b31);
  transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.ag-srv-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,.18);
}
.ag-srv-box--green      { --_srv: var(--al-green, #2E7D32); }
.ag-srv-box--teal       { --_srv: var(--al-teal, #0F8B8D); }
.ag-srv-box--ocean      { --_srv: var(--al-ocean, #1F6FA8); }
.ag-srv-box--gold       { --_srv: var(--al-gold-dark, #C9A227); }
.ag-srv-box--green-dark { --_srv: var(--al-green-dark, #1B5E20); }
.ag-srv-box--teal-dark  { --_srv: var(--al-teal-dark, #0F5B52); }

.ag-srv-icon-wrap {
  width: 62px; height: 62px;
  margin: 0 auto 15px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--_srv, #236b31) 12%, #fff);
  display: grid;
  place-items: center;
  color: var(--_srv, #236b31);
  font-size: 28px;
  transition: background .28s ease, color .28s ease, transform .28s ease;
}
.ag-srv-box:hover .ag-srv-icon-wrap {
  background: var(--_srv, #236b31);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.ag-srv-box h5 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111 !important;
}

.ag-srv-box p {
  color: #4d4d4d;
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .ag-hero { min-height: auto; }
  .ag-hero-content { padding-top: 35px; padding-bottom: 70px; }
  .ag-hero-left { padding-right: 0; margin-bottom: 32px; }

  .ag-hero-visual { margin-top: 24px; min-height: auto; }
  .ag-img-wrap { flex-direction: column; }
  /* Keep a clean CIRCLE on mobile (square box so the ellipse stays round) */
  .ag-img-clip {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    transform: none;
    -webkit-clip-path: ellipse(50% 50% at 50% 50%);
            clip-path: ellipse(50% 50% at 50% 50%);
  }
  .ag-hero-img { height: 100%; }

  .ag-feat-list { position: relative; right: auto; top: auto; transform: none; width: 100%; margin-top: 18px; border-radius: 22px; padding: 8px 18px; }
  .ag-feat-item { margin-bottom: 10px; }
  .ag-circle-rings { display: none; }

  .ag-srv-panel { grid-template-columns: repeat(2, 1fr); margin-top: 32px; border-radius: 24px; gap: 12px; }
}

/* ── Tablet / laptop (992–1366px): same 2-column design, just smaller
   text and a smaller circle so they don't overlap ── */
@media (min-width: 992px) and (max-width: 1366px) {
  :is(body.page-home, .page-home) .ag-hero-h1 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); }
  .ag-hero-h1 { font-size: clamp(34px, 4.2vw, 56px); }
  .ag-hero-lead { font-size: 15.5px; }

  /* Smaller circle, shifted a little right so it clears the text */
  .ag-img-clip { height: 480px; transform: translateX(-60px); }
  .ag-feat-list { width: 275px; padding: 14px 24px 14px 52px; }
  .ag-feat-icon { width: 42px; height: 42px; font-size: 18px; }
  /* Scale the decorative arcs to match the smaller circle. */
  .ag-circle-rings { display: block; width: 480px; height: 480px; right: -240px; }
  .ag-circle-rings::before {
    width: 512px;
    height: 285px;
    left: 65px;
    top: 93px;
    border-width: 20px;
  }
  .ag-circle-rings::after {
    width: 569px;
    height: 319px;
    left: 12px;
    top: 60px;
    border-width: 20px;
  }
}

@media (max-width: 576px) {
  :is(body.page-home, .page-home) .ag-hero-h1 { font-size: 2.15rem; }
  .ag-hero-h1 { font-size: 38px; }
  .ag-img-clip { max-width: 320px; height: auto; }
  .ag-srv-panel { grid-template-columns: 1fr; border-radius: 20px; padding: 20px 16px; }
  .ag-srv-box { border-right: none !important; }
  .ag-srv-box:last-child { border-bottom: none; }
}

/* ══════════════════════════════════════════════
   IMPLEMENTED-BY / PARTNERS LINE (after hero)
══════════════════════════════════════════════ */
.ag-trust {
  background: var(--al-bg);
  padding: 30px 0;
}
.ag-trust__inner {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  gap: 0 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(139,195,74,.18), transparent 30%),
    radial-gradient(circle at 88% 120%, rgba(255,193,7,.14), transparent 34%),
    linear-gradient(135deg, #0d2a1a 0%, #06150f 58%, #092015 100%);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  padding: 20px 56px;
  box-shadow: 0 18px 46px -30px rgba(0,0,0,.75);
  position: relative;
  overflow: hidden;
}
.ag-trust__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-100%);
  animation: agTrustShine 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes agTrustShine {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.ag-trust__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f4d36f;
  background: rgba(255,193,7,.12);
  border: 1px solid rgba(255,193,7,.28);
  padding: 8px 16px;
  border-radius: 30px;
  position: relative;
  z-index: 1;
}
.ag-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.ag-trust__ico {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,193,7,.25);
  color: #f4d36f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.ag-trust__ico svg { width: 17px; height: 17px; }
.ag-trust__txt {
  font-size: .9rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
}
.ag-trust__txt em {
  font-style: normal;
  font-weight: 600;
  color: rgba(255,255,255,.58);
}
.ag-trust__sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.22), transparent);
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  .ag-trust__inner { flex-wrap: wrap; gap: 14px 20px; padding: 20px 26px; }
}
@media (max-width: 768px) {
  .ag-trust__inner { flex-direction: column; gap: 14px; padding: 22px 24px; }
  .ag-trust__sep { display: none; }
  .ag-trust__txt { white-space: normal; }
}

/* ══════════════════════════════════════════════
   STATS BAND (2nd section) — dark-green band, gold icon left + text right
══════════════════════════════════════════════ */
.ag-stats-section {
  background: var(--al-bg);
  padding: 30px 0;
}
.ag-stats-head {
  text-align: center;
  margin: 0 auto 14px;
}
.ag-stats-head__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--al-green);
  background: var(--al-green-pale);
  border: 1px solid rgba(46,125,50,.18);
}
.ag-stats {
  background:
    radial-gradient(circle at 85% 10%, rgba(151,209,44,.12), transparent 40%),
    linear-gradient(135deg, #0b2117 0%, #06150f 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 34px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.5);
}
.ag-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 26px;
  border-right: 1px solid rgba(255,255,255,.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.ag-stats.is-visible .ag-stat { opacity: 1; transform: none; }
.ag-stats.is-visible .ag-stat:nth-child(1) { transition-delay: .05s; }
.ag-stats.is-visible .ag-stat:nth-child(2) { transition-delay: .18s; }
.ag-stats.is-visible .ag-stat:nth-child(3) { transition-delay: .31s; }
.ag-stats.is-visible .ag-stat:nth-child(4) { transition-delay: .44s; }
.ag-stats.is-visible .ag-stat__icon {
  animation: agStatPop .5s ease both;
}
.ag-stats.is-visible .ag-stat:nth-child(2) .ag-stat__icon { animation-delay: .18s; }
.ag-stats.is-visible .ag-stat:nth-child(3) .ag-stat__icon { animation-delay: .31s; }
.ag-stats.is-visible .ag-stat:nth-child(4) .ag-stat__icon { animation-delay: .44s; }
@keyframes agStatPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-stat { opacity: 1; transform: none; transition: none; }
  .ag-stats.is-visible .ag-stat__icon { animation: none; }
}
.ag-stat:last-child { border-right: none; }
.ag-stat__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,193,7,.1);
  border: 1px solid rgba(255,193,7,.3);
  color: var(--al-gold);
}
.ag-stat__icon svg { width: 26px; height: 26px; }
.ag-stat__text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
}
.ag-stat__text span {
  display: block;
  margin-top: 3px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.62);
}

@media (max-width: 767px) {
  .ag-stats { grid-template-columns: repeat(2, 1fr); gap: 6px 0; }
  .ag-stat:nth-child(2) { border-right: none; }
  .ag-stat:nth-child(1), .ag-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 22px; }
  .ag-stat:nth-child(3), .ag-stat:nth-child(4) { padding-top: 22px; }
}
@media (max-width: 420px) {
  .ag-stat { padding: 6px 14px; }
}

/* ══════════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════════ */
.al-stats { background: var(--al-green); padding: 0; }
.al-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.al-stat {
  padding: 38px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.al-stat:last-child { border-right: none; }
.al-stat__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.al-stat__icon svg { width: 26px; height: 26px; color: var(--al-gold); }
.al-stat strong {
  display: block;
  font-family: var(--al-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--al-white);
  line-height: 1;
  margin-bottom: 8px;
}
.al-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
}

@media(max-width:768px) {
  .al-stats__grid { grid-template-columns: repeat(2,1fr); }
  .al-stat { border-bottom: 1px solid rgba(255,255,255,.1); }
  .al-stat:nth-child(even) { border-right: none; }
  .al-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ══════════════════════════════════════════════
   WHAT WE DO
══════════════════════════════════════════════ */
.al-whatwedo { background: var(--al-bg); padding: 30px 0; }
.al-whatwedo__sub{
  margin: 10px auto 0;
  max-width: 820px;
  color: var(--al-slate);
  font-size: .96rem;
  line-height: 1.8;
  text-align: center;
}
.al-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.al-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--al-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--al-green-mid);
  margin-bottom: 14px;
}
.al-eyebrow svg { width: 14px; height: 14px; }
.al-section-head h2 {
  font-family: var(--al-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--al-ink);
  line-height: 1.2;
  margin: 0;
}
.al-h2-accent { color: var(--al-green); }
.al-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.al-card {
  position: relative;
  background: var(--al-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(27,77,46,.07);
  border: 1px solid var(--al-border);
  transition: transform .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
}
.al-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(27,77,46,.14); }
.al-card__img {
  height: 200px;
  overflow: hidden;
}
.al-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}
.al-card:hover .al-card__img img { transform: scale(1.06); }
.al-card__badge {
  position: absolute;
  top: 178px; left: 20px;     /* image is 200px tall → badge straddles its bottom edge */
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 3;
}
.al-card__badge svg { width: 22px; height: 22px; color: var(--al-white); }
.al-card__badge--1 { background: var(--al-green); }
.al-card__badge--2 { background: var(--al-green-mid); }
.al-card__badge--3 { background: var(--al-gold); }
.al-card__badge--4 { background: var(--al-green-light); }
.al-card__body {
  padding: 32px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.al-card__body h3 {
  font-family: var(--al-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--al-ink);
  margin: 0 0 10px;
}
.al-card__body p {
  font-size: .86rem;
  color: var(--al-slate);
  line-height: 1.68;
  margin: 0 0 18px;
  flex: 1;
}
.al-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--al-green-mid);
  text-decoration: none;
  margin-top: auto;
  transition: gap .18s, color .18s;
}
.al-card__link svg { width: 14px; height: 14px; }
.al-card:hover .al-card__link { gap: 10px; color: var(--al-green); }

@media(max-width:1024px) { .al-cards { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px)  { .al-cards { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────
   Core Interventions — classy, no images
───────────────────────────────────────────────────────── */
.al-ci-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}
.al-ci-card{
  background: #fff;
  border: 1px solid var(--al-border);
  border-top: 4px solid var(--_ci, var(--al-green));
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 10px 28px -24px rgba(15,42,27,.18);
  transition: box-shadow .3s ease, transform .3s ease;
  position: relative;
  outline: none;
}
.al-ci-card--green{ --_ci: var(--al-green); }
.al-ci-card--gold{ --_ci: var(--al-gold-dark, var(--al-gold)); }
.al-ci-card--teal{ --_ci: #1a7a6e; }
.al-ci-card::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  background: radial-gradient(600px 220px at 20% 0%, rgba(183,232,61,.25) 0%, transparent 55%),
              radial-gradient(560px 220px at 95% 20%, rgba(248,197,45,.22) 0%, transparent 55%);
  pointer-events:none;
}
.al-ci-card:hover,
.al-ci-card:focus-within{
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -28px rgba(15,42,27,.35);
}
.al-ci-meta{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--_ci, var(--al-green));
  position: relative;
  z-index: 1;
}
.al-ci-chevron{
  width: 15px; height: 15px;
  transition: transform .3s ease;
}
.al-ci-card:hover .al-ci-chevron,
.al-ci-card:focus-within .al-ci-chevron{
  transform: rotate(180deg);
}
.al-ci-num{
  position: absolute;
  top: -6px; right: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 4.6rem;
  font-weight: 800;
  color: var(--_ci, var(--al-green));
  opacity: .1;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.al-ci-top{
  display:flex;
  align-items:center;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.al-ci-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--_ci, var(--al-green-dark));
  background: color-mix(in srgb, var(--_ci, var(--al-green)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--_ci, var(--al-green)) 30%, transparent);
}
.al-ci-ico{
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: var(--_ci, var(--al-green));
  color: #fff;
  box-shadow: 0 14px 28px -18px rgba(0,0,0,.35);
}
.al-ci-ico svg{ width: 22px; height: 22px; }
.al-ci-card h3{
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--al-ink);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.al-ci-list{
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
}
.al-ci-card:hover .al-ci-list,
.al-ci-card:focus-within .al-ci-list{
  max-height: 500px;
  overflow-y: auto;
  opacity: 1;
  margin-top: 14px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--_ci, var(--al-green)) 65%, #fff) rgba(15, 139, 141, .08);
}
.al-ci-card:hover .al-ci-list::-webkit-scrollbar,
.al-ci-card:focus-within .al-ci-list::-webkit-scrollbar{
  width: 6px;
}
.al-ci-card:hover .al-ci-list::-webkit-scrollbar-track,
.al-ci-card:focus-within .al-ci-list::-webkit-scrollbar-track{
  background: rgba(15, 139, 141, .07);
  border-radius: 999px;
}
.al-ci-card:hover .al-ci-list::-webkit-scrollbar-thumb,
.al-ci-card:focus-within .al-ci-list::-webkit-scrollbar-thumb{
  background: color-mix(in srgb, var(--_ci, var(--al-green)) 72%, #fff);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
}
.al-ci-card:hover .al-ci-list::-webkit-scrollbar-thumb:hover,
.al-ci-card:focus-within .al-ci-list::-webkit-scrollbar-thumb:hover{
  background: var(--_ci, var(--al-green));
}
.al-ci-list li{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: .9rem;
  line-height: 1.6;
  color: #4a4d49;
  border-bottom: 1px solid rgba(15,42,27,.06);
}
.al-ci-list li:last-child{ border-bottom: none; }
.al-ci-list li svg{
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: .2em;
  color: var(--_ci, var(--al-green));
}

@media(max-width:1024px){
  .al-ci-grid{ grid-template-columns: 1fr; gap: 14px; }
  .al-ci-card{ padding: 22px 20px 18px; }
  .al-ci-num{ font-size: 3.6rem; }
}

/* ─────────────────────────────────────────────────────────
   Key Targets — stat highlight strip
───────────────────────────────────────────────────────── */
.al-kt{
  margin-top: 34px;
  background: linear-gradient(150deg, var(--al-green-dark) 0%, #0a2014 100%);
  border-radius: 22px;
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
}
.al-kt::before{
  content:'';
  position:absolute; right:-60px; top:-60px;
  width:220px; height:220px; border-radius:50%;
  background: radial-gradient(circle, rgba(141,195,74,.22), transparent 70%);
}
.al-kt__head{ text-align:center; margin-bottom: 22px; position:relative; z-index:1; }
.al-kt__label{
  display:inline-flex; align-items:center;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #cfe8b6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 18px; border-radius: 30px;
}
.al-kt__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative; z-index: 1;
}
.al-kt-card{ text-align: center; padding: 0 8px; }
.al-kt-card__num{
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--al-green-light);
  line-height: 1;
}
.al-kt-card__num span{ font-size: .55em; font-weight: 700; margin-left: 2px; }
.al-kt-card h4{
  font-family: var(--al-sans);
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: #fff; margin: 10px 0 8px;
}
.al-kt-card p{
  font-size: .82rem; line-height: 1.6;
  color: rgba(255,255,255,.68);
  margin: 0;
}
@media(max-width:1024px){
  .al-kt__grid{ grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
}
@media(max-width:580px){
  .al-kt__grid{ grid-template-columns: 1fr; }
  .al-kt{ padding: 26px 22px; }
}

/* ══════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════ */
.al-cta {
  position: relative;
  overflow: hidden;
  background: var(--al-green-dark);
}
.al-cta__bg { position: absolute; inset: 0; overflow: hidden; }
.al-cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .18;
  filter: saturate(.5);
}
.al-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(20,45,22,.97) 0%, rgba(27,77,46,.88) 55%, rgba(27,77,46,.60) 100%);
}
.al-cta__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 0;
}
.al-cta__leaf { margin-bottom: 16px; }
.al-cta__leaf svg { width: 52px; height: 52px; }
.al-cta__left h2 {
  font-family: var(--al-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: var(--al-white);
  line-height: 1.18;
  margin: 0 0 16px;
}
.al-cta__left h2 em { font-style: italic; color: #8DC63F; }
.al-cta__left p {
  font-size: .95rem;
  color: rgba(255,255,255,.72);
  line-height: 1.72;
  max-width: 460px;
  margin: 0 0 28px;
}
.al-cta__right { position: relative; align-self: flex-end; }
.al-cta__right img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 16px 16px 0 0;
  display: block;
  filter: brightness(.85);
}
.al-trust-strip {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
}
.al-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 140px;
}
.al-trust-item svg { width: 28px; height: 28px; color: var(--al-gold); flex-shrink: 0; }
.al-trust-item strong {
  display: block;
  font-family: var(--al-sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--al-white);
}
.al-trust-item span { font-size: .72rem; color: rgba(255,255,255,.55); }

@media(max-width:768px) {
  .al-cta__layout { grid-template-columns: 1fr; }
  .al-cta__right { display: none; }
  .al-trust-strip { gap: 18px; }
  .al-trust-item { flex: 1 0 40%; }
}

/* ══════════════════════════════════════════════
   INFRASTRUCTURE & SERVICES (4th section)
══════════════════════════════════════════════ */
.ag-infra {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  background: var(--al-bg);
}
.ag-infra__decor {
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 36px solid rgba(46,125,50,.06);
  pointer-events: none;
}
.ag-infra__inner { position: relative; z-index: 1; }

.ag-infra__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.ag-infra__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--al-green);
  background: var(--al-green-pale);
  border: 1px solid rgba(46,125,50,.18);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.ag-infra__eyebrow svg { width: 15px; height: 15px; }
.ag-infra__head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--al-ink);
  line-height: 1.18;
  margin: 0 0 16px;
}
.ag-infra__accent { color: var(--al-green); }
.ag-infra__head p {
  color: var(--al-slate);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0;
}

.ag-infra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ag-infra-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--al-border);
  border-radius: 20px;
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ag-infra-card--green      { --_infra: var(--al-green, #2E7D32); }
.ag-infra-card--teal       { --_infra: var(--al-teal, #0F8B8D); }
.ag-infra-card--ocean      { --_infra: var(--al-ocean, #1F6FA8); }
.ag-infra-card--gold       { --_infra: var(--al-gold-dark, #C9A227); }
.ag-infra-card--green-dark { --_infra: var(--al-green-dark, #1B5E20); }
.ag-infra-card--teal-dark  { --_infra: var(--al-teal-dark, #0F5B52); }
/* accent bar that grows in on hover */
.ag-infra-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--_infra, var(--al-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.ag-infra-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px -22px rgba(27,77,46,.32);
  border-color: transparent;
}
.ag-infra-card:hover::before { transform: scaleX(1); }

.ag-infra-card__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--_infra, #0F8B8D);
  background: color-mix(in srgb, var(--_infra, #0F8B8D) 12%, #fff);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.ag-infra-card__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}
.ag-infra-card:hover .ag-infra-card__icon {
  background: var(--_infra, #0F8B8D);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.ag-infra-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--al-ink);
  margin: 0 0 10px;
}
.ag-infra-card p {
  color: var(--al-slate);
  font-size: .92rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 991px) {
  .ag-infra { padding: 72px 0; }
  .ag-infra__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 575px) {
  .ag-infra__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   LEADERSHIP
══════════════════════════════════════════════ */
.ag-leadership {
  background: #fff;
  padding: 72px 0 64px;
  border-top: 1px solid var(--al-border);
}
.ag-leadership__sub {
  margin: 14px 0 0;
  color: var(--al-slate);
  font-size: .95rem;
  line-height: 1.65;
}
.ag-lead__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ag-lead__layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ag-lead__featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ag-lead__team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(15,139,141,.12);
}
.ag-lead-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--al-border);
  border-top: 3px solid var(--_lead, var(--al-green));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(27,77,46,.06);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}
.ag-lead-card--green { --_lead: var(--al-green); }
.ag-lead-card--teal  { --_lead: var(--al-teal, var(--al-green-mid)); }
.ag-lead-card--ocean { --_lead: var(--al-ocean, var(--al-green-dark)); }
.ag-lead-card--gold  { --_lead: var(--al-gold-dark); }
.ag-lead-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 46px -22px rgba(27,77,46,.28);
}
.ag-lead-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--al-green-pale);
}
.ag-lead-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
}
.ag-lead-card:hover .ag-lead-card__photo img {
  transform: scale(1.07);
}
.ag-lead-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(6,15,10,.88) 92%);
  pointer-events: none;
}
.ag-lead-card__photo h3 {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  font-family: var(--al-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.ag-lead-card__body {
  padding: 16px 18px 20px;
}
.ag-lead-card__role {
  display: inline-flex;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--_lead, var(--al-green));
  background: color-mix(in srgb, var(--_lead, var(--al-green)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--_lead, var(--al-green)) 28%, transparent);
  padding: 5px 11px;
  border-radius: 20px;
  margin: 0 0 12px;
  line-height: 1.4;
}
.ag-lead-card__body p:last-child {
  margin: 0;
  font-size: .84rem;
  color: var(--al-slate);
  line-height: 1.6;
}
.ag-lead-card__summary {
  margin: 0;
  font-size: .84rem;
  color: var(--al-slate);
  line-height: 1.6;
}

/* Featured — Minister & Secretary */
.ag-lead-card--featured {
  border-top-width: 4px;
  border-radius: 22px;
  box-shadow: 0 8px 32px -12px rgba(15,91,82,.18);
}
.ag-lead-card--featured .ag-lead-card__photo {
  aspect-ratio: 4 / 5;
  min-height: 340px;
}
.ag-lead-card--featured .ag-lead-card__photo h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  left: 20px;
  right: 20px;
  bottom: 18px;
}
.ag-lead-card--featured .ag-lead-card__body {
  padding: 20px 22px 24px;
}
.ag-lead-card--featured .ag-lead-card__role {
  font-size: .72rem;
  padding: 6px 12px;
}
.ag-lead-card--featured .ag-lead-card__summary {
  font-size: .92rem;
  line-height: 1.65;
}
.ag-lead-card--featured:hover {
  transform: translateY(-9px);
  box-shadow: 0 28px 56px -20px rgba(15,91,82,.28);
}

/* Team — PCU & PIU (compact, secondary) */
.ag-lead-card--team {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: stretch;
  border-top-width: 2px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15,91,82,.06);
  background: rgba(255,255,255,.88);
}
.ag-lead-card--team:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -16px rgba(15,91,82,.16);
}
.ag-lead-card--team .ag-lead-card__photo {
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  aspect-ratio: auto;
  height: 100%;
  min-height: 100%;
  padding: 8px 6px;
  background: var(--al-green-pale);
  overflow: hidden;
}
.ag-lead-card--team .ag-lead-card__photo img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}
.ag-lead-card--team:hover .ag-lead-card__photo img {
  transform: none;
}
.ag-lead-card--team .ag-lead-card__overlay {
  display: none;
}
.ag-lead-card--team .ag-lead-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ag-lead-card--team .ag-lead-card__name {
  font-family: var(--al-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--al-ink);
  margin: 0 0 8px;
  line-height: 1.25;
}
.ag-lead-card--team .ag-lead-card__role {
  font-size: .62rem;
  padding: 4px 9px;
  margin-bottom: 8px;
}
.ag-lead-card--team .ag-lead-card__summary {
  font-size: .8rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ag-lead-card--team .ag-lead-card__more {
  margin-top: 10px;
  font-size: .74rem;
}
.ag-lead-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--_lead, var(--al-green-dark));
  transition: gap .2s ease;
}
.ag-lead-card:hover .ag-lead-card__more {
  gap: 9px;
}

/* ══════════════════════════════════════════════
   GRIEVANCE REDRESSAL
══════════════════════════════════════════════ */
.ag-grm {
  background: linear-gradient(135deg, var(--al-green-dark) 0%, #0f2a1b 100%);
  padding: 56px 0;
}
.ag-grm__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ag-grm__content {
  flex: 1;
  min-width: 260px;
  max-width: 640px;
}
.ag-grm__content .al-eyebrow {
  color: #a7d06b;
  margin-bottom: 12px;
}
.ag-grm__content h2 {
  font-family: var(--al-serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.ag-grm__content h2 .al-h2-accent { color: #a7d06b; }
.ag-grm__content p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  line-height: 1.7;
}
.ag-grm__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: .88rem;
  font-weight: 700;
  color: var(--al-green-dark);
  background: #b7e83d;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.ag-grm__btn:hover {
  background: #c9f050;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  color: var(--al-green-dark);
}

@media (max-width: 680px) {
  .ag-grm__inner { flex-direction: column; align-items: flex-start; }
  .ag-grm__btn { width: 100%; justify-content: center; }
}

@media (max-width: 1100px) {
  .ag-lead__grid { grid-template-columns: repeat(2, 1fr); }
  .ag-lead-card--featured .ag-lead-card__photo { min-height: 300px; }
}
@media (max-width: 767px) {
  .ag-leadership { padding: 52px 0 48px; }
  .ag-lead__featured,
  .ag-lead__team,
  .ag-lead__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .ag-lead-card--featured .ag-lead-card__photo {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
  }
  .ag-lead-card--featured .ag-lead-card__photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }
  .ag-lead-card--team {
    grid-template-columns: minmax(118px, 36%) 1fr;
    align-items: stretch;
  }
  .ag-lead-card--team .ag-lead-card__photo {
    aspect-ratio: auto;
    min-width: 0;
    padding: 10px 8px;
  }
  .ag-lead-card--team .ag-lead-card__photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .ag-lead-card--team .ag-lead-card__body {
    min-width: 0;
    background: #fff;
  }
}

/* ══════════════════════════════════════════════
   GET IN TOUCH CTA (5th section)
══════════════════════════════════════════════ */
.ag-cta {
  background: var(--al-bg);
  padding: 12px 0 84px;
}
.ag-cta__card {
  position: relative;
  border-radius: 8px;
  padding: 40px 48px;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  align-items: center;
  box-shadow: 0 24px 52px -34px rgba(11,33,23,.65);
}
.ag-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 8px;
  overflow: hidden;
}
.ag-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ag-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6,21,15,.96) 0%, rgba(6,21,15,.82) 28%, rgba(6,21,15,.22) 66%, rgba(6,21,15,.08) 100%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
}

/* Painterly white brush-stroke frame (SVG overlay, see blade) */
.ag-cta__brush {
  position: absolute;
  inset: -3px;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transform: scale(1.01);
}

.ag-cta__content { position: relative; z-index: 1; max-width: 420px; }

.ag-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 12px;
}
.ag-cta__title em {
  font-style: italic;
  color: #a7d06b;
}
.ag-cta__text {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  line-height: 1.65;
  margin: 0 0 20px;
}

.ag-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ag-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 40px;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.ag-cta__btn svg { width: 16px; height: 16px; }
.ag-cta__btn--primary {
  background: #b7e83d;
  color: #12210e;
  box-shadow: 0 10px 30px rgba(183,232,61,.4);
}
.ag-cta__btn--primary:hover {
  background: #c9f050;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(183,232,61,.55);
  color: #12210e;
}

@media (max-width: 768px) {
  .ag-cta { padding: 12px 0 64px; }
  .ag-cta__card { padding: 34px 26px; min-height: 210px; }
}
@media (max-width: 480px) {
  .ag-cta__actions { flex-direction: column; align-items: stretch; }
  .ag-cta__btn { justify-content: center; }
}

/* ══════════════════════════════════════════════
   HOME THEME — Teal + Green (LIVAQUA mockup)
   Scoped to :is(body.page-home, .page-home) only
══════════════════════════════════════════════ */
:is(body.page-home, .page-home) {
  --al-green:       #2E7D32;   /* Livestock */
  --al-green-dark:  #1B5E20;   /* Deep Green */
  --al-green-mid:   #2E7D32;
  --al-green-light: #0F8B8D;
  --al-green-pale:  #EAF8F3;   /* Light Mint */
  --al-teal:        #0F8B8D;   /* Teal */
  --al-teal-dark:   #0F5B52;
  --al-teal-deep:   #0D4A44;
  --al-ocean:       #1F6FA8;   /* Ocean Blue */
  --al-ocean-dark:  #185A8A;
  --al-mint:        #EAF8F3;   /* Light Mint */
  --al-sky:         #EEF8FD;   /* Sky Tint */
  --al-primary:     #2E7D32;
  --al-dark:        #0F5B52;
  --al-gold:        #D4A84B;
  --al-gold-dark:   #C9A227;
  --al-bg:          #FBFCF8;   /* Cream */
  --al-ink:         #14342E;
  --al-slate:       #566B66;
  --al-border:      #DCEDE7;
  background: var(--al-bg);
}

/* ─── Header — premium tinted glass (mint/sky) ─── */
:is(body.page-home, .page-home) .al-header {
  background: linear-gradient(
    90deg,
    rgba(237,251,247,.95),
    rgba(248,255,253,.95),
    rgba(234,248,255,.95)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15,139,141,.10);
  box-shadow: 0 4px 24px rgba(15,91,82,.06);
}
:is(body.page-home, .page-home) .al-brand__text strong { color: var(--al-ink); }
:is(body.page-home, .page-home) .al-brand__text span { color: #6b807a; }
:is(body.page-home, .page-home) .al-nav a { color: #3c4f4a; }
:is(body.page-home, .page-home) .al-nav a:hover {
  color: var(--al-teal);
  background: rgba(15,139,141,.08);
}
:is(body.page-home, .page-home) .al-nav__active {
  color: var(--al-teal) !important;
  font-weight: 700 !important;
}
:is(body.page-home, .page-home) .al-nav__active::after { background: var(--al-teal); }
:is(body.page-home, .page-home) .al-nav__cta {
  background: linear-gradient(135deg, var(--al-teal), var(--al-ocean)) !important;
  border: 1px solid rgba(15,139,141,.22);
  box-shadow: none !important;
}
:is(body.page-home, .page-home) .al-nav__cta:hover {
  background: linear-gradient(135deg, var(--al-teal-dark), var(--al-ocean-dark)) !important;
  box-shadow: none !important;
}
:is(body.page-home, .page-home) .al-nav__cta--active {
  background: linear-gradient(135deg, var(--al-teal-dark), var(--al-ocean-dark)) !important;
}
:is(body.page-home, .page-home) .al-burger span { background: var(--al-ink); }
:is(body.page-home, .page-home) .al-nav a:focus-visible,
:is(body.page-home, .page-home) .al-burger:focus-visible { outline-color: var(--al-teal); }
@media (max-width: 900px) {
  :is(body.page-home, .page-home) .al-nav {
    background: #f4fbf8;
    border-bottom: 2px solid var(--al-teal);
    box-shadow: 0 12px 32px rgba(15,91,82,.12);
  }
  :is(body.page-home, .page-home) .al-nav a { color: #3c4f4a; }
}

/* ─── Footer — uses footer.png via al-theme.css ─── */
:is(body.page-home, .page-home) .al-footer {
  margin-top: 0;
}

/* ─── HERO — hero_section.png background ─── */
:is(body.page-home, .page-home) .ag-hero {
  background-color: #eefaf8;
  background-image: url('../images/hero_section.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  color: var(--al-ink);
}
:is(body.page-home, .page-home) .ag-hero::before {
  display: none;
}
/* Right-top decorative rings — hidden (stray arc on page) */
:is(body.page-home, .page-home) .ag-hero::after {
  display: none;
}
/* Soft glow behind hero image */
:is(body.page-home, .page-home) .ag-hero-visual::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,139,141,.16) 0%, rgba(31,111,168,.07) 48%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}
:is(body.page-home, .page-home) .ag-img-clip {
  position: relative;
  z-index: 1;
  box-shadow: 0 28px 72px rgba(15,91,82,.20);
}
:is(body.page-home, .page-home) .ag-hero-content { position: relative; z-index: 2; }

/* Dark text on the light hero */
:is(body.page-home, .page-home) .ag-hero-left {
  text-align: left;
  padding-left: 0;
}
:is(body.page-home, .page-home) .ag-badge-pill {
  margin-left: 0;
}
:is(body.page-home, .page-home) .ag-hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #14342E !important;
  font-size: clamp(2.35rem, 4.2vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: left;
  margin-left: 0;
  padding-left: 0;
}
:is(body.page-home, .page-home) .ag-hero-h1__line {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
}
:is(body.page-home, .page-home) .ag-hero-h1 .ag-hero-word {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inline;
}
:is(body.page-home, .page-home) .ag-hero-h1 .ag-hero-word--livestock { color: #1B5E20; }
:is(body.page-home, .page-home) .ag-hero-h1 .ag-hero-word--aqua { color: #1F6FA8; }
:is(body.page-home, .page-home) .ag-hero-lead {
  text-align: justify;
  margin-left: 0;
  padding-left: 0;
}
:is(body.page-home, .page-home) .ag-hero-actions {
  justify-content: flex-start;
  margin-left: 0;
}
:is(body.page-home, .page-home) .ag-hero-left .ag-badge-pill,
:is(body.page-home, .page-home) .ag-hero-left .ag-hero-h1,
:is(body.page-home, .page-home) .ag-hero-left .ag-hero-lead,
:is(body.page-home, .page-home) .ag-hero-left .ag-hero-actions {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}
:is(body.page-home, .page-home) .ag-green-text { color: var(--al-teal); }
:is(body.page-home, .page-home) .ag-hero-lead { color: #4a5c57 !important; }
:is(body.page-home, .page-home) .ag-badge-pill {
  color: var(--al-teal-dark);
  background: rgba(15,139,141,.10);
  border: 1px solid rgba(15,139,141,.22);
}
:is(body.page-home, .page-home) .ag-btn-lime {
  background: linear-gradient(135deg, var(--al-teal), var(--al-ocean));
  color: #fff !important;
  border: 1px solid rgba(15,139,141,.22);
  box-shadow: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
:is(body.page-home, .page-home) .ag-btn-lime:hover {
  background: linear-gradient(135deg, var(--al-teal-dark), var(--al-ocean-dark));
  color: #fff !important;
  box-shadow: none;
  transform: translateY(-1px);
}
:is(body.page-home, .page-home) .ag-btn-lime b {
  border-color: rgba(255,255,255,.5);
  transition: transform .25s ease;
}
:is(body.page-home, .page-home) .ag-btn-lime:hover b { transform: translateX(4px); }
:is(body.page-home, .page-home) .ag-btn-ghost {
  color: var(--al-teal-dark) !important;
  border: 1px solid rgba(15,139,141,.3);
  background: rgba(255,255,255,.55);
  box-shadow: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
:is(body.page-home, .page-home) .ag-btn-ghost:hover {
  background: rgba(15,139,141,.08);
  color: var(--al-teal-dark) !important;
  transform: translateY(-1px);
}
:is(body.page-home, .page-home) .ag-btn-ghost b { transition: transform .25s ease; }
:is(body.page-home, .page-home) .ag-btn-ghost:hover b { transform: translateX(3px); }

/* Hero image circle keeps its rings but in teal tone */
:is(body.page-home, .page-home) .ag-circle-rings::before { border-color: rgba(15,91,82,.85); }
:is(body.page-home, .page-home) .ag-circle-rings::after  { border-color: rgba(15,91,82,.62); }
:is(body.page-home, .page-home) .ag-feat-list {
  background: linear-gradient(135deg, rgba(15,91,82,.62) 0%, rgba(13,74,68,.88) 60%);
}
:is(body.page-home, .page-home) .ag-img-overlay {
  background: linear-gradient(90deg, rgba(0,0,0,.04) 0%, transparent 50%, rgba(15,91,82,.4) 100%);
}
:is(body.page-home, .page-home) .ag-feat-icon {
  border-color: rgba(255,255,255,.4);
  color: #eafff8;
}
:is(body.page-home, .page-home) .ag-feat-icon--gold {
  border-color: var(--al-gold);
  color: var(--al-gold);
}
:is(body.page-home, .page-home) .ag-hero-dot.is-active {
  background: var(--al-teal);
  width: 26px;
  border-radius: 6px;
}

/* Service panel wedge + icons */
:is(body.page-home, .page-home) .ag-srv-wrap::before { background: var(--al-teal-deep); }
:is(body.page-home, .page-home) .ag-srv-panel {
  box-shadow: 0 24px 60px rgba(15,91,82,.16);
  border: 1px solid rgba(15,139,141,.1);
}

/* Trust bar — light aqua full-width band */
:is(body.page-home, .page-home) .ag-trust__inner {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(15,139,141,.10) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgba(31,111,168,.12) 0%, transparent 46%),
    linear-gradient(90deg, #EAF8F3 0%, #EEFAF8 50%, #E7F6FD 100%);
  border-top: 1px solid rgba(15,139,141,.14);
  border-bottom: 1px solid rgba(15,139,141,.14);
  box-shadow: none;
}
:is(body.page-home, .page-home) .ag-trust__label {
  color: var(--al-teal-dark);
  background: rgba(255,255,255,.55);
  border-color: rgba(15,139,141,.22);
}
:is(body.page-home, .page-home) .ag-trust__ico {
  background: rgba(255,255,255,.50);
  border-color: rgba(15,139,141,.22);
  color: var(--al-teal-dark);
  box-shadow: none;
}
:is(body.page-home, .page-home) .ag-trust__txt { color: var(--al-ink); }
:is(body.page-home, .page-home) .ag-trust__txt em { color: #4d635c; }
:is(body.page-home, .page-home) .ag-trust__sep {
  background: linear-gradient(to bottom, transparent, rgba(15,139,141,.22), transparent);
}

/* Key Targets — light cards (mockup style) */
:is(body.page-home, .page-home) .ag-stats-section { padding: 20px 0; }
:is(body.page-home, .page-home) .ag-stats-head__label {
  color: var(--al-teal);
  background: var(--al-mint);
  border-color: rgba(15,139,141,.2);
}
:is(body.page-home, .page-home) .ag-stats {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 18px;
}
:is(body.page-home, .page-home) .ag-stat {
  background: #fff;
  border: 1px solid rgba(15,139,141,.12);
  border-radius: 18px;
  border-right: none;
  padding: 22px 20px;
  box-shadow: 0 12px 32px -16px rgba(15,91,82,.18);
}
:is(body.page-home, .page-home) .ag-stat__icon {
  width: 62px;
  height: 62px;
  background: var(--al-mint);
  border-color: rgba(15,139,141,.35);
  color: var(--al-teal);
}
:is(body.page-home, .page-home) .ag-stat__icon svg {
  width: 36px;
  height: 36px;
}
:is(body.page-home, .page-home) .ag-stat:nth-child(1) .ag-stat__icon { color: var(--al-green); border-color: rgba(46,125,50,.35); }
:is(body.page-home, .page-home) .ag-stat:nth-child(2) .ag-stat__icon { color: var(--al-teal); }
:is(body.page-home, .page-home) .ag-stat:nth-child(3) .ag-stat__icon { color: var(--al-green-dark); border-color: rgba(27,94,32,.3); }
:is(body.page-home, .page-home) .ag-stat:nth-child(4) .ag-stat__icon { color: var(--al-ocean); border-color: rgba(31,111,168,.35); }
:is(body.page-home, .page-home) .ag-stat__text strong {
  color: var(--al-teal-dark);
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 800;
}
:is(body.page-home, .page-home) .ag-stat__text span { color: var(--al-slate); }

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-stat:nth-child(1),
  :is(body.page-home, .page-home) .ag-stat:nth-child(2) {
    border-bottom: 1px solid rgba(15,139,141,.12);
    padding-bottom: 22px;
  }
}

/* Section eyebrows & headings */
:is(body.page-home, .page-home) .al-eyebrow {
  color: var(--al-teal);
  background: var(--al-mint);
  border-color: rgba(15,139,141,.18);
}
:is(body.page-home, .page-home) .al-h2-accent,
:is(body.page-home, .page-home) .ag-infra__accent { color: var(--al-teal); }
:is(body.page-home, .page-home) .ag-infra__eyebrow {
  color: var(--al-teal);
  background: var(--al-mint);
  border-color: rgba(15,139,141,.18);
}
:is(body.page-home, .page-home) .ag-infra__decor { display: none; }
:is(body.page-home, .page-home) .ag-infra-card:hover {
  box-shadow: 0 26px 56px -22px rgba(15,91,82,.26);
}
:is(body.page-home, .page-home) .ag-infra-card__icon svg {
  width: 26px;
  height: 26px;
}

/* Core intervention cards — green(livestock) / teal / ocean */
:is(body.page-home, .page-home) .al-ci-card--green { --_ci: var(--al-green); }
:is(body.page-home, .page-home) .al-ci-card--gold  { --_ci: var(--al-teal); }
:is(body.page-home, .page-home) .al-ci-card--teal  { --_ci: var(--al-ocean); }
:is(body.page-home, .page-home) .al-ci-card {
  border-top: 1px solid rgba(15,139,141,.12);
  border-left: 4px solid var(--_ci, var(--al-teal));
}
:is(body.page-home, .page-home) .al-ci-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}
:is(body.page-home, .page-home) .al-ci-ico svg {
  width: 26px;
  height: 26px;
}
:is(body.page-home, .page-home) .al-ci-card:hover {
  box-shadow: 0 28px 60px -26px rgba(15,91,82,.22);
}

/* Leadership — premium card polish */
:is(body.page-home, .page-home) .ag-lead-card {
  box-shadow: 0 4px 18px rgba(15,91,82,.08);
  transition: transform .32s ease, box-shadow .32s ease;
}
:is(body.page-home, .page-home) .ag-lead-card--featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px -18px rgba(15,91,82,.24);
}
:is(body.page-home, .page-home) .ag-lead-card--team:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -16px rgba(15,91,82,.16);
}
:is(body.page-home, .page-home) .ag-lead-card__photo {
  background: var(--al-mint);
}
:is(body.page-home, .page-home) .ag-lead-card__photo img {
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
:is(body.page-home, .page-home) .ag-lead-card:hover .ag-lead-card__photo img {
  transform: scale(1.06);
}
:is(body.page-home, .page-home) .ag-lead-card--featured .ag-lead-card__photo h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
}
:is(body.page-home, .page-home) .ag-lead-card__role {
  font-size: .68rem;
  letter-spacing: .06em;
}

/* Grievance — cream canvas, colored card (matches Implemented-By mint) */
:is(body.page-home, .page-home) .ag-grm {
  background: var(--al-bg);
  border-top: none;
  border-bottom: none;
}
:is(body.page-home, .page-home) .ag-grm__inner {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(15,139,141,.10) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgba(31,111,168,.12) 0%, transparent 46%),
    linear-gradient(90deg, #EAF8F3 0%, #EEFAF8 50%, #E7F6FD 100%);
  border: 1px solid rgba(15,139,141,.14);
}
:is(body.page-home, .page-home) .ag-grm__content .al-eyebrow {
  color: var(--al-teal-dark);
  background: rgba(255,255,255,.42);
  border-color: rgba(15,139,141,.22);
}
:is(body.page-home, .page-home) .ag-grm__content h2 { color: var(--al-ink); }
:is(body.page-home, .page-home) .ag-grm__content h2 .al-h2-accent { color: var(--al-teal); }
:is(body.page-home, .page-home) .ag-grm__content p { color: #3d524c; }
:is(body.page-home, .page-home) .ag-grm__btn {
  background: linear-gradient(135deg, var(--al-teal), var(--al-ocean));
  color: #fff;
  border: 1px solid rgba(15,139,141,.22);
  box-shadow: none;
  transition: background .25s ease, transform .25s ease;
}
:is(body.page-home, .page-home) .ag-grm__btn:hover {
  background: linear-gradient(135deg, var(--al-teal-dark), var(--al-ocean-dark));
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

/* Shared buttons */
:is(body.page-home, .page-home) .al-btn--gold,
:is(body.page-home, .page-home) .al-btn--primary {
  background: linear-gradient(135deg, var(--al-teal), var(--al-ocean));
  border: 1px solid rgba(15,139,141,.22);
  box-shadow: none;
  transition: background .25s ease, transform .25s ease;
}
:is(body.page-home, .page-home) .al-btn--gold:hover,
:is(body.page-home, .page-home) .al-btn--primary:hover {
  background: linear-gradient(135deg, var(--al-teal-dark), var(--al-ocean-dark));
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   FULL PAGE — section rhythm + premium surfaces
══════════════════════════════════════════════ */

/* Service panel — unified cream canvas below hero */
:is(body.page-home, .page-home) .ag-srv-wrap {
  background: var(--al-bg);
  padding-bottom: 12px;
}
:is(body.page-home, .page-home) .ag-srv-wrap::before {
  background: linear-gradient(180deg, rgba(238,250,248,.0) 0%, var(--al-bg) 88%);
  clip-path: ellipse(90% 100% at 50% 0%);
  height: 110px;
  top: -1px;
}
:is(body.page-home, .page-home) .ag-srv-panel {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15,139,141,.12);
  box-shadow: 0 28px 64px -24px rgba(15,91,82,.18);
}
:is(body.page-home, .page-home) .ag-srv-box h5 { color: var(--al-ink) !important; }
:is(body.page-home, .page-home) .ag-srv-box p { color: var(--al-slate); }

/* Trust bar — full-width light aqua band */
:is(body.page-home, .page-home) .ag-trust {
  background: transparent;
  padding: 0;
}
:is(body.page-home, .page-home) .ag-trust__inner {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: 16px 40px;
  justify-content: space-evenly;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(15,139,141,.10) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgba(31,111,168,.12) 0%, transparent 46%),
    linear-gradient(90deg, #EAF8F3 0%, #EEFAF8 50%, #E7F6FD 100%);
  border-top: 1px solid rgba(15,139,141,.14);
  border-bottom: 1px solid rgba(15,139,141,.14);
  box-shadow: none;
}

/* Key Targets — unified cream canvas */
:is(body.page-home, .page-home) .ag-stats-section {
  padding: 20px 0;
  background: var(--al-bg);
}
:is(body.page-home, .page-home) .ag-stats-head {
  margin-bottom: 8px;
}

/* What We Do — unified cream canvas */
:is(body.page-home, .page-home) .al-whatwedo {
  padding: 16px 0 12px;
  background: var(--al-bg);
}
:is(body.page-home, .page-home) .al-section-head {
  margin-bottom: 10px;
}
:is(body.page-home, .page-home) .al-section-head h2 { color: var(--al-ink); }
:is(body.page-home, .page-home) .al-whatwedo__sub { color: var(--al-slate); }

/* Core intervention cards — mint/sky glow, premium white */
:is(body.page-home, .page-home) .al-ci-card {
  background: rgba(255,255,255,.94);
  border-color: rgba(15,139,141,.14);
  box-shadow: 0 14px 36px -22px rgba(15,91,82,.16);
}
:is(body.page-home, .page-home) .al-ci-card::before {
  background:
    radial-gradient(600px 220px at 18% 0%, rgba(189,235,220,.45) 0%, transparent 55%),
    radial-gradient(560px 220px at 95% 20%, rgba(217,244,255,.50) 0%, transparent 55%);
}
:is(body.page-home, .page-home) .al-ci-card:hover,
:is(body.page-home, .page-home) .al-ci-card:focus-within {
  box-shadow: 0 24px 54px -24px rgba(15,91,82,.24);
  border-color: rgba(15,139,141,.22);
}
:is(body.page-home, .page-home) .al-ci-grid {
  margin-top: 16px;
  gap: 18px;
}
:is(body.page-home, .page-home) .al-ci-list li {
  color: #4a5c57;
  border-bottom-color: rgba(15,139,141,.08);
}

/* Infrastructure — unified cream canvas */
:is(body.page-home, .page-home) .ag-infra {
  padding: 12px 0 8px;
  background: var(--al-bg);
}
:is(body.page-home, .page-home) .ag-infra__head {
  margin-bottom: 10px;
}
:is(body.page-home, .page-home) .ag-infra__eyebrow {
  margin-bottom: 8px;
}
:is(body.page-home, .page-home) .ag-infra__head h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
:is(body.page-home, .page-home) .ag-infra__grid {
  gap: 14px;
}
:is(body.page-home, .page-home) .ag-infra-card {
  padding: 18px 16px 16px;
}
:is(body.page-home, .page-home) .ag-infra-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 12px;
}
:is(body.page-home, .page-home) .ag-infra__head h2 { color: var(--al-ink); }
:is(body.page-home, .page-home) .ag-infra__head p { color: var(--al-slate); }
:is(body.page-home, .page-home) .ag-infra-card {
  background: rgba(255,255,255,.95);
  border-color: rgba(15,139,141,.12);
  box-shadow: 0 10px 30px -18px rgba(15,91,82,.14);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
:is(body.page-home, .page-home) .ag-infra-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15,139,141,.32);
  box-shadow: 0 24px 52px -20px rgba(15,91,82,.22);
}

/* Leadership — unified cream canvas */
:is(body.page-home, .page-home) .ag-leadership {
  padding: 8px 0 12px;
  background: var(--al-bg);
  border-top: none;
  border-bottom: none;
}
:is(body.page-home, .page-home) .ag-leadership .al-section-head {
  margin-bottom: 10px;
}
:is(body.page-home, .page-home) .ag-leadership .al-eyebrow {
  margin-bottom: 8px;
}
:is(body.page-home, .page-home) .ag-leadership .al-section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
:is(body.page-home, .page-home) .ag-lead__layout {
  gap: 22px;
}
:is(body.page-home, .page-home) .ag-lead__featured {
  gap: 20px;
}
:is(body.page-home, .page-home) .ag-lead__team {
  gap: 14px;
  padding-top: 14px;
  border-top-color: rgba(15,139,141,.14);
}
:is(body.page-home, .page-home) .ag-lead__grid {
  gap: 14px;
  margin-top: 0;
}
:is(body.page-home, .page-home) .ag-lead-card {
  background: #fff;
  border-color: rgba(15,139,141,.12);
}
:is(body.page-home, .page-home) .ag-lead-card--featured {
  box-shadow: 0 10px 36px -14px rgba(15,91,82,.2);
}
:is(body.page-home, .page-home) .ag-lead-card--featured .ag-lead-card__photo {
  aspect-ratio: 4 / 5;
  min-height: 320px;
  height: auto;
}
:is(body.page-home, .page-home) .ag-lead-card--featured .ag-lead-card__photo h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}
:is(body.page-home, .page-home) .ag-lead-card--featured .ag-lead-card__body {
  padding: 18px 20px 22px;
}
:is(body.page-home, .page-home) .ag-lead-card--team {
  background: rgba(255,255,255,.92);
  border-color: rgba(15,139,141,.1);
}

:is(body.page-home, .page-home) .ag-lead-card--team .ag-lead-card__photo {
  aspect-ratio: auto;
  background: rgba(247, 251, 249, .9);
}

:is(body.page-home, .page-home) .ag-lead-card--team .ag-lead-card__photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

:is(body.page-home, .page-home) .ag-lead-card--team:hover .ag-lead-card__photo img {
  transform: none;
}
:is(body.page-home, .page-home) .ag-lead-card__summary,
:is(body.page-home, .page-home) .ag-lead-card__body p:last-child { color: var(--al-slate); }
:is(body.page-home, .page-home) .ag-lead-card__body {
  padding: 12px 14px 16px;
}

/* Grievance — cream section, mint-gradient card */
:is(body.page-home, .page-home) .ag-grm {
  padding: 8px 16px 16px;
  position: relative;
  overflow: visible;
  background: var(--al-bg);
  border-top: none;
  border-bottom: none;
}
:is(body.page-home, .page-home) .ag-grm .al-container {
  max-width: 1180px;
  padding-left: 0;
  padding-right: 0;
}
:is(body.page-home, .page-home) .ag-grm::before { display: none; }
:is(body.page-home, .page-home) .ag-grm__inner {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(15,139,141,.10) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgba(31,111,168,.12) 0%, transparent 46%),
    linear-gradient(90deg, #EAF8F3 0%, #EEFAF8 50%, #E7F6FD 100%);
  border: 1px solid rgba(15,139,141,.14);
  border-radius: 20px;
  box-shadow: 0 12px 32px -22px rgba(15,91,82,.14);
}
:is(body.page-home, .page-home) .ag-grm__content {
  max-width: none;
  width: 100%;
}
:is(body.page-home, .page-home) .ag-grm__btn {
  align-self: center;
  margin-top: 4px;
}

:is(body.page-home, .page-home) .ag-grm__content h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
:is(body.page-home, .page-home) .ag-grm__content .al-eyebrow {
  margin-bottom: 8px;
}
:is(body.page-home, .page-home) .ag-grm__content p {
  margin-bottom: 0;
}

/* CTA banner — unified cream canvas */
:is(body.page-home, .page-home) .ag-cta-banner {
  padding: 16px 0 20px;
  background: var(--al-bg);
}
:is(body.page-home, .page-home) .ag-cta-banner__link {
  border-radius: 20px;
  box-shadow: 0 20px 50px -24px rgba(15,91,82,.2);
  border: 1px solid rgba(15,139,141,.10);
}
:is(body.page-home, .page-home) .ag-cta-banner__link:hover {
  box-shadow: 0 28px 60px -22px rgba(15,91,82,.28);
}

/* Tighter hero → first section gap */
:is(body.page-home, .page-home) .ag-hero-content {
  padding-bottom: 110px;
}
:is(body.page-home, .page-home) .ag-srv-panel {
  margin-top: -72px;
}

@media (max-width: 991px) {
  :is(body.page-home, .page-home) .ag-trust { padding: 0; }
  :is(body.page-home, .page-home) .ag-trust__inner {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 20px;
  }
  :is(body.page-home, .page-home) .ag-infra { padding: 12px 0 8px !important; }
  :is(body.page-home, .page-home) .ag-leadership { padding: 8px 0 12px !important; }
  :is(body.page-home, .page-home) .ag-grm { padding: 8px 16px 14px !important; }
  :is(body.page-home, .page-home) .ag-grm__inner { padding: 16px 18px; }
}
@media (max-width: 600px) {
  :is(body.page-home, .page-home) .al-whatwedo,
  :is(body.page-home, .page-home) .ag-infra,
  :is(body.page-home, .page-home) .ag-leadership { padding: 12px 0 !important; }
  :is(body.page-home, .page-home) .ag-stats-section { padding: 14px 0; }
  :is(body.page-home, .page-home) .ag-grm { padding: 10px 12px 14px !important; }
  :is(body.page-home, .page-home) .ag-grm__inner { padding: 16px 14px; }
  :is(body.page-home, .page-home) .ag-hero-content { padding-bottom: 80px; }
}

/* ══════════════════════════════════════════════
   CTA banner, scroll-reveal, hover polish (home)
══════════════════════════════════════════════ */
.ag-cta-banner {
  padding: 20px 0;
}
.ag-cta-banner__link {
  display: block;
  line-height: 0;
  overflow: hidden;
  transition: transform .25s ease;
}
.ag-cta-banner__link:hover {
  transform: translateY(-3px);
}
.ag-cta-banner__img {
  width: 100%;
  aspect-ratio: 9 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .ag-cta-banner { padding: 20px 0; }
  .ag-cta-banner__img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }
}

.ag-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.ag-reveal.is-in {
  opacity: 1;
  transform: none;
}

.ag-srv-box {
  transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s ease;
}
.ag-srv-box:hover {
  transform: translateY(-7px);
}
.ag-feat-item {
  transition: transform .3s ease, box-shadow .3s ease;
}
.ag-feat-item:hover {
  transform: translateY(-3px) scale(1.02);
}
.ag-trust__item {
  transition: transform .3s ease;
}
.ag-trust__item:hover {
  transform: translateY(-2px);
}

:is(body.page-home, .page-home) .ag-grm__content p {
  text-align: justify;
}

@media (prefers-reduced-motion: reduce) {
  .ag-reveal,
  .ag-cta-banner__link {
    transition: none !important;
  }
  .ag-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .ag-srv-box:hover,
  .ag-feat-item:hover,
  .ag-trust__item:hover {
    transform: none;
  }
}

/* ══════════════════════════════════════════════
   MOBILE HERO — compact editorial composition
══════════════════════════════════════════════ */
@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-hero {
    min-height: auto;
    overflow: hidden;
    background:
      radial-gradient(circle at 100% 8%, rgba(31,111,168,.14), transparent 30%),
      radial-gradient(circle at 0% 45%, rgba(15,139,141,.13), transparent 34%),
      linear-gradient(155deg, #f7fffc 0%, #edf9f5 56%, #e9f5fb 100%) !important;
  }

  :is(body.page-home, .page-home) .ag-hero::before,
  :is(body.page-home, .page-home) .ag-hero::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  :is(body.page-home, .page-home) .ag-hero::before {
    width: 190px;
    height: 190px;
    top: -105px;
    right: -82px;
    border: 24px solid rgba(15,139,141,.07);
  }
  :is(body.page-home, .page-home) .ag-hero::after {
    width: 130px;
    height: 130px;
    left: -82px;
    bottom: 72px;
    border: 18px solid rgba(31,111,168,.06);
  }

  :is(body.page-home, .page-home) .ag-hero .container-fluid {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }
  :is(body.page-home, .page-home) .ag-hero-content {
    padding-top: 30px;
    padding-bottom: 54px;
  }
  :is(body.page-home, .page-home) .ag-hero-left {
    margin-bottom: 0;
    padding: 0;
    text-align: center;
  }
  :is(body.page-home, .page-home) .ag-badge-pill {
    gap: 7px;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 8px 13px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255,255,255,.72);
    border-color: rgba(15,139,141,.2);
    box-shadow: 0 8px 24px -18px rgba(15,91,82,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  :is(body.page-home, .page-home) .ag-hero-h1 {
    align-items: center;
    max-width: 520px;
    margin: 0 auto 16px;
    font-size: clamp(2.05rem, 9.2vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    text-align: center;
  }
  :is(body.page-home, .page-home) .ag-hero-h1__line {
    text-align: center;
  }
  :is(body.page-home, .page-home) .ag-hero-lead {
    max-width: 520px;
    margin: 0 auto 22px;
    font-size: .92rem;
    line-height: 1.65;
    text-align: center;
  }
  :is(body.page-home, .page-home) .ag-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }
  :is(body.page-home, .page-home) .ag-hero-actions > a {
    min-width: 0;
    justify-content: space-between;
    padding: 11px 12px 11px 16px;
    font-size: .78rem;
    white-space: nowrap;
  }
  :is(body.page-home, .page-home) .ag-hero-actions > a b {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
  }

  :is(body.page-home, .page-home) .ag-hero-visual-col {
    padding: 0;
  }
  :is(body.page-home, .page-home) .ag-hero-visual {
    min-height: auto;
    margin-top: 28px;
  }
  :is(body.page-home, .page-home) .ag-hero-visual::before {
    left: 50%;
    width: 108%;
    height: 108%;
    background: radial-gradient(circle, rgba(15,139,141,.14), transparent 67%);
  }
  :is(body.page-home, .page-home) .ag-img-wrap {
    display: block;
  }
  :is(body.page-home, .page-home) .ag-img-clip {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 5 / 4;
    margin: 0 auto;
    border: 5px solid rgba(255,255,255,.88);
    border-radius: 26px;
    box-shadow:
      0 24px 60px -28px rgba(15,91,82,.52),
      0 8px 24px -16px rgba(31,111,168,.35);
    -webkit-clip-path: inset(0 round 26px);
            clip-path: inset(0 round 26px);
  }
  :is(body.page-home, .page-home) .ag-hero-slider {
    border-radius: 21px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  :is(body.page-home, .page-home) .ag-hero-slider .ag-hero-img {
    border-radius: 21px;
    object-position: center center;
  }
  :is(body.page-home, .page-home) .ag-img-overlay {
    border-radius: 21px;
    background:
      linear-gradient(180deg, transparent 48%, rgba(5,34,30,.64) 100%),
      linear-gradient(90deg, rgba(15,91,82,.08), transparent);
  }
  :is(body.page-home, .page-home) .ag-hero-dots {
    bottom: 48px;
    gap: 7px;
    padding: 6px 10px;
    background: rgba(5,34,30,.44);
  }
  :is(body.page-home, .page-home) .ag-hero-dot {
    width: 7px;
    height: 7px;
  }
  :is(body.page-home, .page-home) .ag-hero-dot.is-active {
    width: 20px;
    background: #fff;
  }

  :is(body.page-home, .page-home) .ag-feat-list {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 24px);
    max-width: 490px;
    margin: -34px auto 0;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13,74,68,.96), rgba(31,111,168,.94));
    box-shadow: 0 18px 38px -20px rgba(13,74,68,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  :is(body.page-home, .page-home) .ag-feat-item {
    min-width: 0;
    gap: 7px;
    margin: 0;
    padding: 6px 8px;
    border-right: 1px solid rgba(255,255,255,.15);
    border-bottom: 0;
  }
  :is(body.page-home, .page-home) .ag-feat-item:last-child {
    border-right: 0;
  }
  :is(body.page-home, .page-home) .ag-feat-icon {
    width: 30px;
    height: 30px;
    border-width: 1px;
  }
  :is(body.page-home, .page-home) .ag-feat-icon svg {
    width: 15px;
    height: 15px;
  }
  :is(body.page-home, .page-home) .ag-feat-item strong {
    overflow: hidden;
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :is(body.page-home, .page-home) .ag-feat-item small {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    font-size: .57rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  :is(body.page-home, .page-home) .ag-srv-wrap {
    padding: 0 12px 16px;
  }
  :is(body.page-home, .page-home) .ag-srv-wrap::before {
    display: none;
  }
  :is(body.page-home, .page-home) .ag-srv-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: -18px auto 0;
    padding: 28px 10px 10px;
    border-radius: 22px;
    box-shadow: 0 22px 54px -30px rgba(15,91,82,.38);
  }
  :is(body.page-home, .page-home) .ag-srv-box {
    min-width: 0;
    padding: 14px 10px;
    border-radius: 15px;
  }
  :is(body.page-home, .page-home) .ag-srv-icon-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 9px;
    border-radius: 13px;
    font-size: 20px;
  }
  :is(body.page-home, .page-home) .ag-srv-box h5 {
    margin-bottom: 5px;
    font-size: .83rem;
    line-height: 1.25;
  }
  :is(body.page-home, .page-home) .ag-srv-box p {
    display: -webkit-box;
    overflow: hidden;
    font-size: .69rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-hero-actions {
    grid-template-columns: 1fr;
  }
  :is(body.page-home, .page-home) .ag-hero-actions > a {
    justify-content: center;
  }
  :is(body.page-home, .page-home) .ag-feat-item {
    flex-direction: column;
    gap: 4px;
    padding-inline: 5px;
    text-align: center;
  }
  :is(body.page-home, .page-home) .ag-feat-item small {
    display: none;
  }
}

/* Trust line: normal desktop layout, continuous marquee on mobile */
.ag-trust__track,
.ag-trust__group {
  display: contents;
}
.ag-trust__group--clone {
  display: none;
}

@keyframes agTrustMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-trust {
    position: relative;
    overflow: hidden;
  }
  :is(body.page-home, .page-home) .ag-trust::before,
  :is(body.page-home, .page-home) .ag-trust::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: 26px;
    pointer-events: none;
  }
  :is(body.page-home, .page-home) .ag-trust::before {
    left: 0;
    background: linear-gradient(90deg, #eaf8f3, transparent);
  }
  :is(body.page-home, .page-home) .ag-trust::after {
    right: 0;
    background: linear-gradient(270deg, #e7f6fd, transparent);
  }
  :is(body.page-home, .page-home) .ag-trust__inner {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
  }
  :is(body.page-home, .page-home) .ag-trust__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: agTrustMarquee 22s linear infinite;
    will-change: transform;
  }
  :is(body.page-home, .page-home) .ag-trust__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 18px;
    padding: 14px 18px;
  }
  :is(body.page-home, .page-home) .ag-trust__group--clone {
    display: flex;
  }
  :is(body.page-home, .page-home) .ag-trust__label,
  :is(body.page-home, .page-home) .ag-trust__item {
    flex: 0 0 auto;
  }
  :is(body.page-home, .page-home) .ag-trust__sep {
    display: block;
    flex: 0 0 1px;
    height: 26px;
  }
  :is(body.page-home, .page-home) .ag-trust__txt {
    font-size: .78rem;
    white-space: nowrap;
  }
  :is(body.page-home, .page-home) .ag-trust__ico {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  :is(body.page-home, .page-home) .ag-trust__ico svg {
    width: 15px;
    height: 15px;
  }
  :is(body.page-home, .page-home) .ag-trust__track:hover {
    animation-play-state: paused;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  :is(body.page-home, .page-home) .ag-trust__inner {
    overflow-x: auto;
    scrollbar-width: none;
  }
  :is(body.page-home, .page-home) .ag-trust__inner::-webkit-scrollbar {
    display: none;
  }
  :is(body.page-home, .page-home) .ag-trust__track {
    animation: none;
  }
  :is(body.page-home, .page-home) .ag-trust__group--clone {
    display: none;
  }
}

/* Mobile infrastructure: full-size cards with a sticky scroll stack */
@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra {
    overflow: visible;
    padding: 24px 0 40px !important;
  }
  :is(body.page-home, .page-home) .ag-infra__inner {
    padding-inline: 16px;
  }
  :is(body.page-home, .page-home) .ag-infra__head {
    max-width: 500px;
    margin: 0 auto 26px;
  }
  :is(body.page-home, .page-home) .ag-infra__eyebrow {
    margin-bottom: 12px;
    padding: 7px 13px;
    font-size: .66rem;
  }
  :is(body.page-home, .page-home) .ag-infra__head h2 {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 7.4vw, 2.15rem);
    line-height: 1.12;
  }
  :is(body.page-home, .page-home) .ag-infra__head p {
    font-size: .84rem;
    line-height: 1.65;
  }
  :is(body.page-home, .page-home) .ag-infra__grid {
    display: block;
    max-width: 520px;
    margin: 0 auto;
    counter-reset: infra-card;
  }
  :is(body.page-home, .page-home) .ag-infra-card {
    --_stack-top: 78px;
    position: sticky;
    top: var(--_stack-top);
    display: flex;
    min-height: 232px;
    margin-bottom: 18px;
    padding: 28px 24px 25px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    counter-increment: infra-card;
    border: 1px solid color-mix(in srgb, var(--_infra) 22%, #fff);
    border-radius: 24px;
    background:
      radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--_infra) 17%, transparent) 0%, transparent 36%),
      linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--_infra) 6%, #fff) 100%);
    box-shadow:
      0 22px 48px -26px color-mix(in srgb, var(--_infra) 55%, transparent),
      0 8px 24px -20px rgba(15,52,46,.45);
    transform-origin: center bottom;
  }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(2) { --_stack-top: 86px; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(3) { --_stack-top: 94px; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(4) { --_stack-top: 102px; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(5) { --_stack-top: 110px; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(6) { --_stack-top: 118px; }
  :is(body.page-home, .page-home) .ag-infra-card:last-child {
    margin-bottom: 0;
  }
  :is(body.page-home, .page-home) .ag-infra-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    transform: none;
    background: linear-gradient(90deg, var(--_infra), color-mix(in srgb, var(--_infra) 45%, #fff));
  }
  :is(body.page-home, .page-home) .ag-infra-card::after {
    content: "0" counter(infra-card);
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 0;
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--_infra);
    opacity: .09;
    pointer-events: none;
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    margin-bottom: 23px;
    border: 1px solid color-mix(in srgb, var(--_infra) 22%, #fff);
    border-radius: 19px;
    background: color-mix(in srgb, var(--_infra) 11%, #fff);
    box-shadow: 0 14px 26px -19px var(--_infra);
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 1.7;
  }
  :is(body.page-home, .page-home) .ag-infra-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
    font-size: 1.18rem;
    line-height: 1.25;
    color: var(--al-ink);
  }
  :is(body.page-home, .page-home) .ag-infra-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: .84rem;
    line-height: 1.65;
    color: #536963;
  }

  /* Existing observer supplies is-in; these values make each arrival cinematic. */
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal {
    opacity: 0;
    transform: translateY(58px) scale(.96);
    transition:
      opacity .65s cubic-bezier(.22,.61,.36,1),
      transform .75s cubic-bezier(.22,.61,.36,1),
      box-shadow .3s ease;
  }
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-infra__inner {
    padding-inline: 12px;
  }
  :is(body.page-home, .page-home) .ag-infra-card {
    min-height: 218px;
    padding: 24px 20px 22px;
    border-radius: 21px;
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon {
    width: 55px;
    height: 55px;
    margin-bottom: 18px;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  :is(body.page-home, .page-home) .ag-infra-card {
    position: relative;
    top: auto;
  }
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal,
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Infrastructure media is used by the immersive mobile card treatment. */
.ag-infra-card__media {
  display: none;
}
.ag-infra-card__content {
  display: contents;
}

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra {
    padding-bottom: 54px !important;
  }
  :is(body.page-home, .page-home) .ag-infra__head {
    margin-bottom: 30px;
  }
  :is(body.page-home, .page-home) .ag-infra__grid {
    isolation: isolate;
  }
  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n) {
    --_stack-top: 72px;
    position: sticky;
    top: var(--_stack-top);
    z-index: 1;
    display: block;
    width: 100%;
    height: clamp(370px, 72svh, 560px);
    min-height: 0;
    margin-bottom: 22px;
    padding: 0;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.96);
    border-radius: 30px;
    background: #14342e;
    box-shadow:
      0 28px 60px -25px rgba(8,48,43,.62),
      0 10px 24px -16px rgba(8,48,43,.42);
    opacity: var(--stack-opacity, 1);
    filter: brightness(var(--stack-brightness, 1));
    transform: scale(var(--stack-scale, 1));
    transform-origin: center top;
    transition:
      opacity .18s linear,
      filter .18s linear,
      transform .18s linear,
      box-shadow .3s ease;
  }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(1) { z-index: 1; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(2) { z-index: 2; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(3) { z-index: 3; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(4) { z-index: 4; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(5) { z-index: 5; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(6) { z-index: 6; }
  :is(body.page-home, .page-home) .ag-infra-card:last-child {
    margin-bottom: 0;
  }
  :is(body.page-home, .page-home) .ag-infra-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    background:
      linear-gradient(180deg, rgba(5,24,20,.04) 20%, rgba(5,24,20,.28) 52%, rgba(5,24,20,.95) 100%),
      linear-gradient(90deg, rgba(5,24,20,.34), transparent 68%);
    transform: none;
    pointer-events: none;
  }
  :is(body.page-home, .page-home) .ag-infra-card::after {
    content: "0" counter(infra-card);
    top: 22px;
    right: 23px;
    z-index: 3;
    padding: 6px 11px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .12em;
    color: #fff;
    background: rgba(7,35,30,.24);
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  :is(body.page-home, .page-home) .ag-infra-card__media {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  :is(body.page-home, .page-home) .ag-infra-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.035);
    transition: transform 1.1s cubic-bezier(.22,.61,.36,1);
  }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(2) .ag-infra-card__media img,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(4) .ag-infra-card__media img {
    object-position: 62% center;
  }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(5) .ag-infra-card__media img {
    object-position: 44% center;
  }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(6) .ag-infra-card__media img {
    object-position: 70% center;
  }
  :is(body.page-home, .page-home) .ag-infra-card.is-in .ag-infra-card__media img {
    transform: scale(1);
  }
  :is(body.page-home, .page-home) .ag-infra-card__content {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    min-height: 48%;
    padding: 30px 24px 25px;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 0 17px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.16);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon svg {
    width: 24px;
    height: 24px;
  }
  :is(body.page-home, .page-home) .ag-infra-card h3 {
    margin: 0 0 9px;
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
  }
  :is(body.page-home, .page-home) .ag-infra-card p {
    max-width: 95%;
    font-size: .86rem;
    line-height: 1.58;
    color: rgba(255,255,255,.86);
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
  }

  /* Reveal remains separate from the scroll-stack variables. */
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal {
    opacity: 0;
    filter: brightness(1);
    transform: translateY(52px) scale(.96);
    transition:
      opacity .62s cubic-bezier(.22,.61,.36,1),
      transform .72s cubic-bezier(.22,.61,.36,1),
      filter .18s linear,
      box-shadow .3s ease;
  }
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in {
    opacity: var(--stack-opacity, 1);
    filter: brightness(var(--stack-brightness, 1));
    transform: scale(var(--stack-scale, 1));
  }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n) {
    height: clamp(350px, 70svh, 500px);
    border-width: 4px;
    border-radius: 26px;
  }
  :is(body.page-home, .page-home) .ag-infra-card__content {
    padding: 25px 20px 21px;
  }
  :is(body.page-home, .page-home) .ag-infra-card h3 {
    font-size: 1.45rem;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n) {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Final mobile infrastructure treatment: data-only, no card imagery. */
@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n) {
    border: 1px solid color-mix(in srgb, var(--_infra) 32%, #fff);
    background:
      radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--_infra) 20%, transparent) 0%, transparent 34%),
      radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--_infra) 11%, transparent) 0%, transparent 38%),
      linear-gradient(145deg, #ffffff 0%, color-mix(in srgb, var(--_infra) 7%, #fff) 100%);
    box-shadow:
      0 30px 65px -32px color-mix(in srgb, var(--_infra) 65%, transparent),
      0 12px 30px -22px rgba(8,48,43,.45);
  }
  :is(body.page-home, .page-home) .ag-infra-card::before {
    content: "";
    position: absolute;
    top: -92px;
    right: -88px;
    bottom: auto;
    left: auto;
    z-index: 0;
    width: 235px;
    height: 235px;
    border: 38px solid color-mix(in srgb, var(--_infra) 10%, transparent);
    border-radius: 50%;
    background: transparent;
    transform: none;
  }
  :is(body.page-home, .page-home) .ag-infra-card::after {
    top: 24px;
    right: 24px;
    z-index: 2;
    padding: 7px 12px;
    border-color: color-mix(in srgb, var(--_infra) 30%, transparent);
    color: var(--_infra);
    background: rgba(255,255,255,.58);
    box-shadow: 0 8px 22px -15px var(--_infra);
  }
  :is(body.page-home, .page-home) .ag-infra-card__content {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
    padding: 28px 25px 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    color: var(--al-ink);
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 62px;
    height: 62px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--_infra) 26%, #fff);
    border-radius: 20px;
    color: var(--_infra);
    background: rgba(255,255,255,.7);
    box-shadow: 0 16px 32px -22px var(--_infra);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon svg {
    width: 29px;
    height: 29px;
  }
  :is(body.page-home, .page-home) .ag-infra-card h3 {
    max-width: 92%;
    margin: 0 0 13px;
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--al-ink);
    text-shadow: none;
  }
  :is(body.page-home, .page-home) .ag-infra-card h3::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 15px;
    border-radius: 999px;
    background: var(--_infra);
  }
  :is(body.page-home, .page-home) .ag-infra-card p {
    max-width: 96%;
    margin: 0;
    font-size: .92rem;
    line-height: 1.68;
    color: #4f6660;
    text-shadow: none;
  }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-infra-card__content {
    padding: 23px 21px 25px;
  }
  :is(body.page-home, .page-home) .ag-infra-card__icon {
    top: 21px;
    left: 21px;
    width: 56px;
    height: 56px;
  }
}

/* True card deck: desktop remains a grid; mobile uses one sticky stage. */
.ag-infra__stage {
  display: contents;
}

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra__grid {
    position: relative;
    display: block;
    height: var(--infra-scroll-height);
    min-height: 72svh;
    overflow: visible;
  }
  :is(body.page-home, .page-home) .ag-infra__stage {
    display: block;
    position: sticky;
    top: 72px;
    width: 100%;
    height: min(72svh, 560px);
    perspective: 1100px;
    transform-style: preserve-3d;
  }
  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n),
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal,
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in {
    position: absolute;
    inset: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: var(--stack-opacity, 1);
    filter: brightness(var(--stack-brightness, 1));
    transform:
      translate3d(0, var(--stack-y, 0px), var(--stack-z, 0px))
      scale(var(--stack-scale, 1))
      rotate(var(--stack-rotate, 0deg));
    transform-origin: center top;
    transition: box-shadow .25s ease;
    will-change: transform, opacity, filter;
  }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(1) { z-index: 6; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(2) { z-index: 5; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(3) { z-index: 4; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(4) { z-index: 3; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(5) { z-index: 2; }
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(6) { z-index: 1; }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-infra__stage {
    top: 66px;
    height: min(70svh, 500px);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  :is(body.page-home, .page-home) .ag-infra__grid {
    height: auto;
  }
  :is(body.page-home, .page-home) .ag-infra__stage {
    display: grid;
    position: relative;
    top: auto;
    height: auto;
    gap: 16px;
  }
  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n),
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal,
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in {
    position: relative;
    inset: auto;
    height: 380px;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* Keep the animated card deck vertically centered in the mobile viewport. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  :is(body.page-home, .page-home) .ag-infra__stage {
    top: max(70px, 18svh);
    height: min(64svh, 520px);
  }
}

/* Mobile deck guidance and final interaction polish */
.ag-infra__hint {
  display: none;
}

@keyframes agInfraHintNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra__hint {
    position: absolute;
    right: 0;
    bottom: -55px;
    left: 0;
    z-index: 20;
    display: flex;
    min-height: 39px;
    padding: 7px 10px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(15,139,141,.14);
    border-radius: 14px;
    color: #526a64;
    background: rgba(255,255,255,.78);
    box-shadow: 0 12px 28px -22px rgba(15,91,82,.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  :is(body.page-home, .page-home) .ag-infra__hint-icon {
    display: flex;
    width: 18px;
    flex: 0 0 18px;
    flex-direction: column;
    align-items: center;
    color: var(--al-teal);
    font-size: 8px;
    line-height: 1;
    animation: agInfraHintNudge 1.7s ease-in-out infinite;
  }
  :is(body.page-home, .page-home) .ag-infra__hint-icon span {
    width: 1px;
    height: 8px;
    margin-block: 1px;
    background: currentColor;
    opacity: .55;
  }
  :is(body.page-home, .page-home) .ag-infra__hint-text {
    min-width: 0;
    flex: 1;
    font-size: .67rem;
    font-weight: 700;
    line-height: 1.25;
  }
  :is(body.page-home, .page-home) .ag-infra__counter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 3px;
    font-size: .62rem;
    font-weight: 700;
    color: #78908a;
  }
  :is(body.page-home, .page-home) .ag-infra__counter strong {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--al-teal-dark);
  }
  :is(body.page-home, .page-home) .ag-infra-card.is-stack-active {
    border-color: color-mix(in srgb, var(--_infra) 42%, #fff);
    box-shadow:
      0 34px 72px -34px color-mix(in srgb, var(--_infra) 72%, transparent),
      0 14px 34px -24px rgba(8,48,43,.5);
  }
}

@media (max-width: 360px) {
  :is(body.page-home, .page-home) .ag-infra__hint {
    gap: 6px;
    padding-inline: 8px;
  }
  :is(body.page-home, .page-home) .ag-infra__hint-text {
    font-size: .62rem;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  :is(body.page-home, .page-home) .ag-infra__hint {
    display: none;
  }
  :is(body.page-home, .page-home) .ag-infra__hint-icon {
    animation: none;
  }
}

/* Key targets: prevent narrow mobile cards from overflowing or clipping. */
@media (max-width: 575px) {
  :is(body.page-home, .page-home) .ag-stats-section .container {
    padding-right: 12px;
    padding-left: 12px;
  }
  :is(body.page-home, .page-home) .ag-stats-head {
    padding-inline: 8px;
  }
  :is(body.page-home, .page-home) .ag-stats-head__label {
    max-width: 100%;
    padding: 7px 12px;
    font-size: .65rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
  :is(body.page-home, .page-home) .ag-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  :is(body.page-home, .page-home) .ag-stat,
  :is(body.page-home, .page-home) .ag-stat:nth-child(n) {
    min-width: 0;
    min-height: 128px;
    padding: 14px 8px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid rgba(15,139,141,.12);
    border-radius: 16px;
  }
  :is(body.page-home, .page-home) .ag-stat__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
  }
  :is(body.page-home, .page-home) .ag-stat__icon svg {
    width: 25px;
    height: 25px;
  }
  :is(body.page-home, .page-home) .ag-stat__text {
    width: 100%;
    min-width: 0;
    text-align: center;
  }
  :is(body.page-home, .page-home) .ag-stat__text strong {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(1.28rem, 8vw, 1.7rem);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :is(body.page-home, .page-home) .ag-stat__text span {
    margin-top: 5px;
    overflow-wrap: anywhere;
    font-size: .65rem;
    line-height: 1.25;
  }
}

@media (max-width: 300px) {
  :is(body.page-home, .page-home) .ag-stats {
    grid-template-columns: 1fr;
  }
  :is(body.page-home, .page-home) .ag-stat,
  :is(body.page-home, .page-home) .ag-stat:nth-child(n) {
    min-height: 86px;
    padding: 12px 14px;
    flex-direction: row;
    justify-content: flex-start;
  }
  :is(body.page-home, .page-home) .ag-stat__text {
    text-align: left;
  }
}

/* Desktop grid vs mobile deck — show one layout per breakpoint */
@media (min-width: 768px) {
  :is(body.page-home, .page-home) .ag-infra__deck--mobile {
    display: none !important;
  }

  :is(body.page-home, .page-home) .ag-infra__grid--desktop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  :is(body.page-home, .page-home) .ag-infra__head {
    margin-bottom: 36px;
  }

  :is(body.page-home, .page-home) .ag-infra__grid--desktop .ag-infra-card {
    padding: 34px 28px 30px;
  }

  :is(body.page-home, .page-home) .ag-infra__grid--desktop .ag-infra-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
}

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra__grid--desktop {
    display: none !important;
  }
}

/* Infrastructure deck v3: static heading + tap/slide card switcher (no scroll overlap) */
.ag-infra__deck {
  display: block;
}
.ag-infra__rail,
.ag-infra__viewport {
  display: block;
}

@media (min-width: 768px) {
  :is(body.page-home, .page-home) .ag-infra__deck--mobile .ag-infra__rail {
    display: none;
  }
}

@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra {
    padding-bottom: 32px !important;
    overflow: visible;
  }

  :is(body.page-home, .page-home) .ag-infra__head {
    position: relative;
    top: auto;
    z-index: 2;
    margin: 0 auto 22px;
    padding: 0 0 4px;
    max-width: 520px;
    background: var(--al-bg);
    box-shadow: none;
  }

  :is(body.page-home, .page-home) .ag-infra__deck {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    max-width: 520px;
    margin: 0 auto;
  }

  :is(body.page-home, .page-home) .ag-infra__rail {
    position: relative;
    top: auto;
    z-index: 3;
    display: flex;
    min-height: min(58svh, 480px);
    padding: 10px 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: transparent;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-track {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    background: rgba(15, 139, 141, .16);
    transform: translateX(-50%);
    pointer-events: none;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-fill {
    display: block;
    width: 100%;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--al-teal), var(--al-teal-dark));
    transition: height .28s ease;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-step {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    padding: 2px 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(15, 139, 141, .28);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .95);
    transition:
      transform .24s ease,
      border-color .24s ease,
      background-color .24s ease;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-num {
    font-family: 'Inter', sans-serif;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    color: #8aa39d;
    transition: color .24s ease;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-step.is-active .ag-infra__rail-dot {
    border-color: var(--al-teal);
    background: var(--al-teal);
    box-shadow: 0 0 0 4px rgba(15, 139, 141, .14);
    transform: scale(1.18);
  }

  :is(body.page-home, .page-home) .ag-infra__rail-step.is-active .ag-infra__rail-num {
    color: var(--al-teal-dark);
  }

  :is(body.page-home, .page-home) .ag-infra__viewport {
    position: relative;
    min-width: 0;
    height: min(58svh, 480px);
    min-height: 360px;
    overflow: hidden;
  }

  :is(body.page-home, .page-home) .ag-infra__stage {
    position: relative !important;
    top: auto !important;
    display: block !important;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    perspective: none !important;
    transform-style: flat !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n),
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal,
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 1;
    transform: translateY(100%);
    filter: none !important;
    pointer-events: none;
    transition:
      transform .48s cubic-bezier(.22, .61, .36, 1),
      box-shadow .25s ease,
      border-color .25s ease;
    will-change: transform;
    z-index: 1;
  }

  :is(body.page-home, .page-home) .ag-infra-card.is-stack-next {
    transform: translateY(100%);
    z-index: 2;
  }

  :is(body.page-home, .page-home) .ag-infra-card.is-stack-prev {
    transform: translateY(-100%);
    z-index: 2;
  }

  :is(body.page-home, .page-home) .ag-infra-card.is-stack-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 3;
  }

  :is(body.page-home, .page-home) .ag-infra__hint {
    display: none !important;
  }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-infra__deck {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  :is(body.page-home, .page-home) .ag-infra__viewport {
    height: min(56svh, 440px);
    min-height: 330px;
  }
}

/* Infrastructure deck v4 (mobile): native horizontal swipe carousel.
   Vertical touch-capture (v3) fought with page scroll — a swipe that didn't
   land inside the card threshold skipped straight past the section. Horizontal
   scroll-snap lets the browser handle the gesture natively so vertical page
   scroll is never intercepted. */
@media (max-width: 767px) {
  :is(body.page-home, .page-home) .ag-infra-card::before {
    content: "" !important;
    position: absolute !important;
    inset: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 4px !important;
    border: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    background: linear-gradient(90deg, var(--_infra), color-mix(in srgb, var(--_infra) 45%, #fff)) !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card::after {
    content: none !important;
    display: none !important;
  }

  :is(body.page-home, .page-home) .ag-infra {
    padding: 28px 0 40px !important;
    overflow: visible !important;
  }

  :is(body.page-home, .page-home) .ag-infra__head {
    position: static !important;
    top: auto !important;
    margin: 0 0 20px !important;
    padding: 0 20px !important;
    max-width: 100% !important;
    background: none !important;
    box-shadow: none !important;
  }

  :is(body.page-home, .page-home) .ag-infra__deck {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  :is(body.page-home, .page-home) .ag-infra__rail {
    order: 2 !important;
    position: static !important;
    top: auto !important;
    min-height: 0 !important;
    height: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    gap: 8px !important;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-track {
    display: none !important;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-step {
    width: auto !important;
    flex-direction: row !important;
    padding: 6px 4px !important;
    gap: 0 !important;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-num {
    display: none !important;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    transition: width .25s ease, background-color .25s ease, border-color .25s ease !important;
  }

  :is(body.page-home, .page-home) .ag-infra__rail-step.is-active .ag-infra__rail-dot {
    width: 22px !important;
    transform: none !important;
    border-radius: 999px !important;
  }

  :is(body.page-home, .page-home) .ag-infra__viewport {
    order: 1 !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px !important;
    padding: 4px 20px 12px !important;
  }

  :is(body.page-home, .page-home) .ag-infra__viewport::-webkit-scrollbar {
    display: none;
  }

  :is(body.page-home, .page-home) .ag-infra__stage {
    position: static !important;
    top: auto !important;
    display: flex !important;
    width: max-content !important;
    height: auto !important;
    min-height: 0 !important;
    perspective: none !important;
    transform-style: flat !important;
    gap: 14px !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card,
  :is(body.page-home, .page-home) .ag-infra-card:nth-child(n),
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal,
  :is(body.page-home, .page-home) .ag-infra-card.ag-reveal.is-in,
  :is(body.page-home, .page-home) .ag-infra-card.is-stack-active,
  :is(body.page-home, .page-home) .ag-infra-card.is-stack-prev,
  :is(body.page-home, .page-home) .ag-infra-card.is-stack-next {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    flex: 0 0 auto !important;
    width: min(78vw, 300px) !important;
    height: auto !important;
    min-height: 270px !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    scroll-snap-align: start;
    z-index: auto !important;
    padding: 24px 20px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid rgba(15, 139, 141, .14) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 34px -22px rgba(15, 91, 82, .28) !important;
    transition: box-shadow .25s ease, border-color .25s ease !important;
    will-change: auto !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card__content {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card__icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 13px !important;
    margin-bottom: 16px !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
  }

  :is(body.page-home, .page-home) .ag-infra-card p {
    font-size: .88rem !important;
    line-height: 1.6 !important;
  }

  :is(body.page-home, .page-home) .ag-infra__hint {
    display: none !important;
  }
}

@media (max-width: 380px) {
  :is(body.page-home, .page-home) .ag-infra-card {
    width: 82vw !important;
  }
}
