/* =========================================================================
   <WhatWeDoPage /> — /services (What We Do)
   Six sections. Midnight Operator palette, tokens only.
   Layout inspired by the reference "What We Do" page, re-skinned to navy/lime.
   Blocks: wwd-hero · wwd-pillars · wwd-grid · wwd-card · wwd-prin · wwd-cap · wwd-cta
   ========================================================================= */

/* -------------------------------------------------------------------------
   §1 — Hero. Lime offset block on deep navy. Eyebrow · title · lede ·
   animated stat counters · dual CTA · microcopy.
   ------------------------------------------------------------------------- */
.wwd-hero {
  background: var(--color-primary);
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
}
.wwd-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.wwd-hero__block {
  position: relative;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 255, 255, 0.45), transparent 46%),
    var(--color-accent);
  color: var(--color-ink);
  border-radius: 22px;
  padding: clamp(34px, 4.6vw, 64px);
  max-width: 980px;
  /* Left-aligned to the container edge so the card lines up with the
     "The 4 Pillars of App Success" heading (and pillar grid) below. */
  margin-left: 0;
  margin-right: auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 40px 80px -40px rgba(232, 180, 0, 0.45),
    0 24px 60px -30px rgba(0, 0, 0, 0.55);
}
.wwd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.wwd-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}
.wwd-hero__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  text-wrap: balance;
}
.wwd-hero__lede {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

/* Animated proof — two big count-up figures split by a hairline rule. */
.wwd-hero__stats {
  display: flex;
  align-items: stretch;
  gap: clamp(22px, 3vw, 40px);
  margin: 0 0 34px;
  flex-wrap: wrap;
}
.wwd-hstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wwd-hstat + .wwd-hstat {
  padding-left: clamp(22px, 3vw, 40px);
  border-left: 1.5px solid rgba(10, 26, 63, 0.22);
}
.wwd-hstat__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
/* Reserve final widths so the count-up never reflows neighbours. */
.wwd-hstat--apps .wwd-hstat__num { min-width: 4.4ch; }
.wwd-hstat--rev  .wwd-hstat__num { min-width: 6.4ch; }
.wwd-hstat__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 26, 63, 0.66);
}

/* CTA pair — navy-on-lime, so buttons invert: navy fill + navy ghost. */
.wwd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
}
.wwd-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  /* Persistent elevation glow so the single primary action reads as primary:
     a deep navy drop + a faint lime halo that ties it to the accent system. */
  box-shadow:
    0 14px 30px -14px rgba(4, 13, 46, 0.55),
    0 0 0 4px rgba(232, 180, 0, 0.14);
  transition:
    transform 220ms var(--ease-out-soft),
    box-shadow 220ms var(--ease-out-soft),
    background 220ms var(--ease-out-soft),
    color 220ms var(--ease-out-soft),
    border-color 220ms var(--ease-out-soft);
}
.wwd-hero__cta .wwd-hero__cta-arrow {
  color: var(--color-accent);
  transition: transform 220ms var(--ease-out-soft);
}
.wwd-hero__cta:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px -12px rgba(4, 13, 46, 0.6),
    0 0 0 5px rgba(232, 180, 0, 0.22);
}
.wwd-hero__cta:hover .wwd-hero__cta-arrow { transform: translateX(4px); }
.wwd-hero__cta--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(10, 26, 63, 0.45);
  /* Secondary action: no elevation/halo so the primary CTA stays dominant. */
  box-shadow: none;
}
.wwd-hero__cta--ghost .wwd-hero__cta-arrow { color: var(--color-primary); }
.wwd-hero__cta--ghost:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 14px 30px -14px rgba(4, 13, 46, 0.5);
}
.wwd-hero__cta--ghost:hover .wwd-hero__cta-arrow { color: var(--color-accent); }
.wwd-hero__cta:focus-visible,
.wwd-hero__cta--ghost:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.wwd-hero__microcopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(10, 26, 63, 0.72);
}
.wwd-hero__microcopy svg { width: 15px; height: 15px; flex: none; }

/* -------------------------------------------------------------------------
   §1b — Trust / Awards band. Yellow accent band. Trust-signal pills + auto-scroll
   awards marquee. CSS-only marquee (markup is duplicated 2×). Navy-on-yellow
   inversion of the page's locked two-color palette.
   ------------------------------------------------------------------------- */
.wwd-trust {
  background: var(--color-primary);
  padding: clamp(40px, 5vw, 56px) 0 clamp(52px, 6vw, 76px);
  color: #fff;
  overflow: hidden; /* defense-in-depth: the marquee self-clips, but the track is
                       intentionally >2000px wide — never let it reach page scroll */
}
.wwd-trust__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.wwd-trust__signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}
.wwd-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  transition:
    border-color 240ms var(--ease-out-soft),
    background 240ms var(--ease-out-soft),
    transform 240ms var(--ease-out-soft);
}
.wwd-trust__item:hover {
  border-color: rgba(232, 180, 0, 0.55);
  background: rgba(232, 180, 0, 0.08);
  transform: translateY(-1px);
}
.wwd-trust__item svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--color-accent);
}

/* Awards card — smaller lime card echoing the hero block (.wwd-hero__block).
   Same radial-highlight + accent fill + layered shadow, scaled down. */
.wwd-awards-card {
  position: relative;
  /* Full-width banner: the card now fills the whole .wwd-trust__inner container
     (≈1136px) rather than the old 980px hero-block match, so the recognition
     bar reads as a confident, edge-to-edge strip with no dead space on the
     right. width:100% + align-self:stretch keep it filling its column. */
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  margin: clamp(30px, 4vw, 44px) 0 0;
  max-width: none;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255, 255, 255, 0.45), transparent 46%),
    var(--color-accent);
  border-radius: 20px;
  padding: clamp(14px, 1.6vw, 20px) 0 clamp(6px, 1vw, 12px);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 30px 64px -36px rgba(232, 180, 0, 0.4),
    0 18px 48px -28px rgba(0, 0, 0, 0.5);
}
/* Micro-eyebrow — gives the marquee meaning and balances it under the pills. */
.wwd-awards-card__eyebrow {
  margin: 0 0 clamp(6px, 1vw, 10px);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 26, 63, 0.55);
}

/* Awards marquee — seamless loop, pauses on hover, soft edge fades. */
.wwd-marquee {
  position: relative;
  padding-block: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.wwd-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: wwd-marquee-scroll 40s linear infinite;
}
.wwd-marquee:hover .wwd-marquee__track { animation-play-state: paused; }
@keyframes wwd-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Respect reduced-motion: stop the scroll and drop the edge fade so the first
   batch of awards is fully readable, statically centered. */
@media (prefers-reduced-motion: reduce) {
  .wwd-marquee__track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 32px) clamp(24px, 4vw, 48px);
  }
  .wwd-award { margin-right: 0; }
  /* Drop the duplicate (aria-hidden) batch so only the 6 real awards show. */
  .wwd-marquee__track .wwd-award[aria-hidden="true"] { display: none; }
  .wwd-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
}
.wwd-award {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-right: clamp(48px, 6vw, 76px);
}
.wwd-award__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(10, 26, 63, 0.16);
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 220ms var(--ease-out-soft), background 220ms var(--ease-out-soft);
}
.wwd-award__badge svg { width: 18px; height: 18px; }
/* track pauses on hover — lift the hovered medallion for a tactile beat */
.wwd-award:hover .wwd-award__badge {
  transform: scale(1.1);
  background: rgba(10, 26, 63, 0.24);
}
.wwd-award__text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(10, 26, 63, 0.74);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Scroll-reveal — generic staggered entrance for [data-reveal] inside a
   [data-reveal-group]. Uses `animation` (not transition) so it never clobbers
   each card's own hover transition. JS arms the group (.is-armed) + toggles
   .is-in per item; degrades to fully-visible with JS off or reduced motion.
   ------------------------------------------------------------------------- */
[data-reveal-group].is-armed [data-reveal] { opacity: 0; }
[data-reveal-group].is-armed [data-reveal].is-in {
  opacity: 1;
  animation: wwd-rise 620ms var(--ease-out-soft);
}
@keyframes wwd-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   §3 — Price-reveal chip. Reframes each card's metadata into a conversion
   hook: pricing is revealed free on the strategy call. A gold-outline pill
   with a tag glyph; it brightens + glows in sync with the card hover so the
   eye is pulled from the build straight toward booking the call.
   ------------------------------------------------------------------------- */
.wwd-card__cadence {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(232, 180, 0, 0.40);
  border-radius: 999px;
  background: rgba(232, 180, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 2px 10px -6px rgba(232, 180, 0, 0.30);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    color 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft);
}
.wwd-card__cadence svg { width: 13px; height: 13px; flex: none; }
/* Brighten + glow when the parent card is hovered — mirrors the homepage
   timeline-meta interaction so the chip feels alive and pulls the click. */
.wwd-card:hover .wwd-card__cadence {
  background: rgba(232, 180, 0, 0.16);
  border-color: rgba(232, 180, 0, 0.60);
  color: var(--color-accent-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 18px rgba(232, 180, 0, 0.22);
}

/* -------------------------------------------------------------------------
   §3 — The 4 Pillars of App Success. Deep-navy "process journey" band.
   Sits between the §2 services grid and §4 principles (all navy), so it
   earns its own identity: a gradient band, a stepper rail linking four gold
   medallions, oversized ghost numerals, and a soft conversion closer.
   ------------------------------------------------------------------------- */
.wwd-pillars {
  /* Vertical gradient (+ faint top gold wash) so this navy band separates
     cleanly from the flat-navy grid above and principles below. */
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(232, 180, 0, 0.06), transparent 60%),
    linear-gradient(180deg, var(--color-primary) 0%, #081634 100%);
  padding: clamp(72px, 8vw, 104px) 0 clamp(88px, 9vw, 116px);
  color: #fff;
}
.wwd-pillars__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.wwd-pillars__head {
  max-width: 720px;
  margin: 0 0 clamp(40px, 5vw, 60px);
}
.wwd-pillars__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
/* Leading dash — matches the §2 group-header eyebrow now sitting just above. */
.wwd-pillars__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.wwd-pillars__eyebrow-arrow {
  font-size: 14px;
  line-height: 1;
  transform: translateY(1px);
}
.wwd-pillars__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.wwd-pillars__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
/* The four pillars sit on a 4-col grid. A faint gold "stepper rail" runs
   behind the row, aligned to the medallion centres; the opaque cards mask it,
   so only short gold connectors show in the gaps — reading the four phases as
   one connected, end-to-end journey. */
.wwd-pillars__grid {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.wwd-pillars__grid::before {
  content: "";
  position: absolute;
  top: calc(clamp(28px, 2.6vw, 36px) + 29px); /* card top pad + half medallion */
  left: 11%;
  right: 11%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232, 180, 0, 0.42) 16%,
    rgba(232, 180, 0, 0.42) 84%,
    transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.wwd-pillar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 42%),
    #122348;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(28px, 2.6vw, 36px) clamp(24px, 2.4vw, 30px) clamp(26px, 2.4vw, 32px);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  transition:
    transform 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft),
    background 280ms var(--ease-out-soft);
}
/* Faint corner gold glow — mirrors the §2 add-on card glow for cohesion. */
.wwd-pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px 300px at 88% -10%, rgba(232, 180, 0, 0.10), transparent 64%);
  opacity: 0.55;
  transition: opacity 280ms var(--ease-out-soft);
  pointer-events: none;
}
/* Gold top-accent line — revealed on hover; persistent on the journey's start. */
.wwd-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out-soft);
  z-index: 2;
}
.wwd-pillar--start::before { transform: scaleX(1); }
.wwd-pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
    #16294F;
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.7);
}
.wwd-pillar:hover::before { transform: scaleX(1); }
.wwd-pillar:hover::after { opacity: 1; }

/* Oversized ghost numeral — a premium ordering motif, top-right of each card. */
.wwd-pillar__num {
  position: absolute;
  top: clamp(8px, 1.2vw, 14px);
  right: clamp(14px, 1.6vw, 22px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  transition: color 280ms var(--ease-out-soft);
}
.wwd-pillar:hover .wwd-pillar__num { color: rgba(232, 180, 0, 0.16); }

/* Gold medallion icon — gradient fill + ring, sits on the stepper rail. */
.wwd-pillar__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 0 22px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(232, 180, 0, 0.22), rgba(232, 180, 0, 0.08));
  border: 1px solid rgba(232, 180, 0, 0.30);
  color: var(--color-accent);
  transition:
    background 280ms var(--ease-out-soft),
    color 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    transform 280ms var(--ease-out-soft);
}
.wwd-pillar__icon svg { width: 26px; height: 26px; }
.wwd-pillar:hover .wwd-pillar__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  transform: scale(1.04);
}
/* Small gold step label — the in-flow ordinal (the big numeral is decorative). */
.wwd-pillar__step {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.wwd-pillar__title {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}
.wwd-pillar__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

/* Conversion closer — the in-house differentiator + a single soft gold CTA.
   Slim by design so it adds momentum without competing with the page's
   heavier CTA bands further down. */
.wwd-pillars__close {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(22px, 2.4vw, 28px) clamp(24px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-accent);
  background:
    radial-gradient(680px 220px at 0% 50%, rgba(232, 180, 0, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.wwd-pillars__close-text {
  margin: 0;
  max-width: 62ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}
.wwd-pillars__close-text strong { color: #fff; font-weight: 700; }
.wwd-pillars__close-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-primary, #0A1A3F);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: background 200ms var(--ease-out-soft), transform 200ms var(--ease-out-soft), box-shadow 200ms var(--ease-out-soft);
}
.wwd-pillars__close-link .arrow { transition: transform 220ms var(--ease-out-soft); }
.wwd-pillars__close-link:hover {
  background: var(--color-accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}
.wwd-pillars__close-link:hover .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   §3 — Services grid. Deep navy. Dark cards w/ image-slot header.
   ------------------------------------------------------------------------- */
.wwd-grid {
  background: var(--color-primary);
  padding: 100px 0;
  color: #fff;
}
.wwd-grid__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/* Two columns, side by side: Core (left, wider, the foundation) and Growth
   add-ons (right, narrower, the optional accelerators) split by a lime divider. */
.wwd-groups {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: stretch;
}
.wwd-group {
  display: flex;
  flex-direction: column;
}
/* Soft lime-gradient vertical divider between the two columns. */
.wwd-group--addon {
  padding-left: clamp(32px, 4vw, 60px);
  border-left: 1px solid transparent;
  border-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(232, 180, 0, 0.28) 22%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%) 1;
}

/* Each group's cards are a tidy vertical stack of compact horizontal cards. */
.wwd-grid__list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 20px);
}

/* Compact horizontal card: photo media left, text right. Widened so the
   imagery reads as a real visual, not a thumbnail hint. */
.wwd-grid__list .wwd-card { flex-direction: row; }
.wwd-grid__list .wwd-card__media {
  flex: 0 0 clamp(150px, 36%, 224px);
  width: auto;
  aspect-ratio: auto;
  align-self: stretch;
  /* Gold seam between photo and body — matches the rich gold frame. */
  border-right: 1px solid rgba(232, 180, 0, 0.22);
}
.wwd-grid__list .wwd-card__body { padding: clamp(20px, 1.8vw, 26px); }
/* Keep card heights uniform; the full copy lives on each service page. */
.wwd-grid__list .wwd-card__desc {
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Talk to us" link anchored to the bottom of the add-on column — balances the
   two columns' heights so the divider runs the full section. */
.wwd-group__cta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
  transition: color 220ms var(--ease-out-soft);
}
.wwd-group__cta:hover { color: rgba(255, 255, 255, 0.9); }
.wwd-group__cta-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-accent-hi);
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 240ms var(--ease-out-soft);
}
.wwd-group__cta:hover .wwd-group__cta-go { background-size: 100% 1.5px; }
.wwd-group__cta-go .arrow { transition: transform 220ms var(--ease-out-soft); }
.wwd-group__cta:hover .wwd-group__cta-go .arrow { transform: translateX(4px); }

/* Group headers — split the core offering from the optional growth add-on. */
.wwd-grouphead {
  max-width: 760px;
  margin: 0 0 clamp(32px, 4vw, 48px);
}
.wwd-grouphead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.wwd-grouphead__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.wwd-grouphead__count {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}
.wwd-grouphead__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.wwd-grouphead__lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
.wwd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #122348;
  border: 1px solid rgba(232, 180, 0, 0.22);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(232, 180, 0, 0.10),
    0 2px 4px rgba(0, 0, 0, 0.40),
    0 16px 36px -26px rgba(232, 180, 0, 0.35);
  transition:
    transform 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft),
    background 280ms var(--ease-out-soft);
}
/* Rich metallic-gold frame that follows the 16px radius (masked gradient ring,
   so the corners stay rounded — border-image would square them). */
.wwd-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(150deg,
    var(--color-accent-hi) 0%, var(--color-accent) 38%,
    #9A7600 76%, var(--color-accent-hi) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  opacity: 0.9;
  transition: opacity 280ms var(--ease-out-soft);
}
.wwd-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 0, 0.5);
  background: #16294F;
  box-shadow:
    0 0 0 1px rgba(232, 180, 0, 0.40),
    0 24px 48px -22px rgba(0, 0, 0, 0.70),
    0 18px 52px -20px rgba(232, 180, 0, 0.42);
}
.wwd-card:hover::after { opacity: 1; }

/* -------------------------------------------------------------------------
   Growth add-on cards — same card shell as the core three, but set apart with
   a lime-tinted border, a faint lime glow, and an "Add-on" tag so they read as
   optional extras rather than primary builds (contrast, not color alone).
   ------------------------------------------------------------------------- */
.wwd-card--addon {
  border-color: rgba(232, 180, 0, 0.40);
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(232, 180, 0, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.40),
    0 18px 40px -26px rgba(232, 180, 0, 0.45);
}
.wwd-card--addon::after { opacity: 1; }
.wwd-card--addon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(680px 360px at 88% 12%, rgba(232, 180, 0, 0.14), transparent 68%);
  pointer-events: none;
}
/* Keep the media + body above the glow layer. */
.wwd-card--addon > * { position: relative; z-index: 1; }
.wwd-card--addon:hover {
  border-color: rgba(232, 180, 0, 0.65);
  box-shadow:
    0 0 0 1px rgba(232, 180, 0, 0.45),
    0 24px 48px -22px rgba(0, 0, 0, 0.70),
    0 20px 56px -20px rgba(232, 180, 0, 0.5);
}

/* Image slot — gradient placeholder until a real <img> is dropped in. */
.wwd-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 85% 15%, rgba(232, 180, 0, 0.55), transparent 55%),
    linear-gradient(135deg, #0E2150 0%, #1B2A54 55%, #040D2E 100%);
  overflow: hidden;
}
.wwd-card__media::after {
  /* subtle grid texture so the placeholder reads as a media zone */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.6;
}
.wwd-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slow, calm zoom on card hover — perf-safe transform only. */
  transform: scale(1.01);
  transition: transform 700ms var(--ease-out-soft);
}
.wwd-card:hover .wwd-card__media img { transform: scale(1.07); }

/* Once a real photo is present, retire the placeholder grid texture and
   replace it with a navy duotone scrim. The scrim (a) unifies five distinct
   stock photos into one on-brand, deep-navy set, and (b) keeps the photos
   tied to the dark surface without muddying them. */
.wwd-card__media:has(img)::after {
  background-image:
    linear-gradient(180deg, rgba(10, 26, 63, 0) 38%, rgba(10, 26, 63, 0.55) 100%),
    linear-gradient(135deg, rgba(10, 26, 63, 0.34), rgba(4, 13, 46, 0.12));
  background-size: auto;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}
/* A whisper of gold catches the eye on hover — color cohesion with the brand. */
.wwd-card:hover .wwd-card__media:has(img)::after {
  background-image:
    linear-gradient(180deg, rgba(10, 26, 63, 0) 42%, rgba(10, 26, 63, 0.5) 100%),
    radial-gradient(120% 120% at 88% 8%, rgba(232, 180, 0, 0.16), transparent 58%);
  transition: background-image 280ms var(--ease-out-soft);
}

.wwd-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px;
}
.wwd-card__tag {
  align-self: flex-start;
  margin: 0 0 14px;
  background: linear-gradient(180deg, var(--color-accent-hi), var(--color-accent));
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px -4px rgba(232, 180, 0, 0.55);
}
.wwd-card__name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.wwd-card__desc {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
.wwd-card__link {
  position: relative;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent);
}
/* Growing gold underline on card hover — a clear "this is the click" cue that
   raises intent. scaleX (not width) keeps it off the layout-thrash path. */
.wwd-card__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out-soft);
}
.wwd-card:hover .wwd-card__link::after { transform: scaleX(1); }
.wwd-card__link .arrow { transition: transform 220ms var(--ease-out-soft); }
.wwd-card:hover .wwd-card__link .arrow { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   §4 — Service Delivery Principles. Deep navy. Intro + tile grid.
   ------------------------------------------------------------------------- */
.wwd-prin {
  background: var(--color-primary);
  padding: 120px 0;
  color: #fff;
}
.wwd-prin__inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
/* Ambient warmth — a faint lime glow that softly lights the grid from above. */
.wwd-prin__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(720px, 80%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(60% 60% at 50% 30%, rgba(232, 180, 0, 0.10), transparent 70%);
  pointer-events: none;
}
.wwd-prin__head {
  max-width: 640px;
  margin: 0 0 56px;
}
.wwd-prin__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.wwd-prin__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 22px;
  border-radius: 3px;
  background: var(--color-accent);
}
.wwd-prin__intro {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
/* Bento grid (6-col rhythm: 2 lead / 3 mid / lead + capstone) with a lime
   spotlight that tracks the cursor. JS feeds --spot-x/--spot-y + per-tile --mx/--my. */
.wwd-prin__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  counter-reset: prin;
  --spot-x: 50%;
  --spot-y: 0%;
}
/* Ambient halo that follows the pointer (shows softly between tiles).
   Vertical-only bleed (inset: -40px 0) — a horizontal bleed would push the
   grid past the viewport on narrow screens and cause page horizontal scroll. */
.wwd-prin__grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -40px 0;
  background: radial-gradient(380px circle at var(--spot-x) var(--spot-y),
    rgba(232, 180, 0, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 320ms var(--ease-out-soft);
  pointer-events: none;
}
.wwd-prin__grid.is-spot::before { opacity: 1; }

.wwd-prin-tile {
  position: relative;
  z-index: 1;
  grid-column: span 2;
  overflow: hidden;
  background: linear-gradient(160deg, #16294f 0%, #112146 60%, #0E1C40 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 360ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    opacity 560ms var(--ease-out-soft);
}
/* Bento spans: tiles 1, 2, 6 are lead tiles (capstone handled below). */
.wwd-prin-tile:nth-child(1),
.wwd-prin-tile:nth-child(2),
.wwd-prin-tile:nth-child(6) { grid-column: span 3; }

/* Keep icon, heading + body above the numeral watermark and spotlight wash. */
.wwd-prin-tile > * { position: relative; z-index: 2; }

/* Ghosted index numeral (01…07) via CSS counter — no markup needed. */
.wwd-prin-tile { counter-increment: prin; }
.wwd-prin-tile::before {
  content: counter(prin, decimal-leading-zero);
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 5vw, 82px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.05);
  transition: color 320ms var(--ease-out-soft);
  pointer-events: none;
}
.wwd-prin-tile:hover::before { color: rgba(232, 180, 0, 0.16); }
/* Per-tile spotlight wash — the tile lights up under the cursor. */
.wwd-prin-tile::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
    rgba(232, 180, 0, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out-soft);
  pointer-events: none;
}
.wwd-prin-tile:hover::after { opacity: 1; }

.wwd-prin-tile:hover {
  transform: translateY(-6px);
  transition-delay: 0ms;
  border-color: rgba(232, 180, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(232, 180, 0, 0.18),
    0 30px 60px -28px rgba(0, 0, 0, 0.8);
}

/* Scroll-reveal stagger — progressive enhancement: hidden only once JS opts in. */
.wwd-prin__grid.js-reveal .wwd-prin-tile { opacity: 0; transform: translateY(24px); }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile { opacity: 1; transform: none; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(1) { transition-delay: 0ms; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(2) { transition-delay: 70ms; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(3) { transition-delay: 140ms; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(4) { transition-delay: 210ms; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(5) { transition-delay: 280ms; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(6) { transition-delay: 350ms; }
.wwd-prin__grid.js-reveal.is-in .wwd-prin-tile:nth-child(7) { transition-delay: 420ms; }

/* Bespoke icon badge — lime line-glyph in a soft, glowing tile. */
.wwd-prin-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--color-accent);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(232, 180, 0, 0.18), transparent 70%),
    rgba(232, 180, 0, 0.08);
  border: 1px solid rgba(232, 180, 0, 0.25);
  box-shadow: 0 8px 22px -12px rgba(232, 180, 0, 0.35);
  transition:
    background 240ms var(--ease-out-soft),
    border-color 240ms var(--ease-out-soft),
    transform 240ms var(--ease-out-soft),
    box-shadow 240ms var(--ease-out-soft);
}
.wwd-prin-tile__icon svg {
  width: 24px;
  height: 24px;
}
.wwd-prin-tile:hover .wwd-prin-tile__icon {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(232, 180, 0, 0.30), transparent 70%),
    rgba(232, 180, 0, 0.14);
  border-color: rgba(232, 180, 0, 0.5);
  box-shadow: 0 12px 28px -12px rgba(232, 180, 0, 0.5);
  transform: translateY(-1px) scale(1.04);
}

.wwd-prin-tile__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #fff;
  text-wrap: balance;
}
/* Short lime rule that gives each heading a little rhythm and care. */
.wwd-prin-tile__heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 12px 0 14px;
  border-radius: 2px;
  background: rgba(232, 180, 0, 0.55);
  transition: width 240ms var(--ease-out-soft);
}
.wwd-prin-tile:hover .wwd-prin-tile__heading::after { width: 40px; }
.wwd-prin-tile__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

/* Featured capstone — wider tile (span 3), icon beside the text, lime accent edge. */
.wwd-prin-tile--featured {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(232, 180, 0, 0.07), transparent 55%),
    linear-gradient(160deg, #182c55 0%, #122448 60%, #0E1C40 100%);
  border-left: 2px solid rgba(232, 180, 0, 0.5);
}
/* Faint blueprint grid texture — same idiom as the service-card media slots. */
.wwd-prin-tile--featured .wwd-prin-tile__text::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(120% 120% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}
.wwd-prin-tile--featured .wwd-prin-tile__icon {
  flex: none;
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  border-radius: 16px;
}
.wwd-prin-tile--featured .wwd-prin-tile__icon svg { width: 30px; height: 30px; }
.wwd-prin-tile--featured .wwd-prin-tile__text {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 720px;
}
.wwd-prin-tile--featured .wwd-prin-tile__text > * { position: relative; z-index: 1; }
.wwd-prin-tile--featured .wwd-prin-tile__heading { font-size: 24px; }

/* -------------------------------------------------------------------------
   §5 — Capabilities & Expertise. Deep navy continuation. Heading + pill + copy.
   ------------------------------------------------------------------------- */
.wwd-cap {
  background: var(--color-band);
  background: var(--gold-band);
  padding: 0 0 120px;
  color: var(--color-primary);
}
.wwd-cap__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  border-top: 1px solid rgba(10, 26, 63, 0.15);
  padding-top: 80px;
}
.wwd-cap__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.wwd-cap__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-wrap: balance;
}
.wwd-cap__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 220ms var(--ease-out-soft), transform 220ms var(--ease-out-soft), box-shadow 220ms var(--ease-out-soft);
}
.wwd-cap__btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(10, 26, 63, 0.35);
}
.wwd-cap__btn .arrow { transition: transform 220ms var(--ease-out-soft); }
.wwd-cap__btn:hover .arrow { transform: translateX(4px); }
.wwd-cap__body {
  margin: 0;
  max-width: 56ch;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(10, 26, 63, 0.78);
  text-wrap: pretty;
}
.wwd-cap__body em {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 500;
}

/* Yellow-background variant: recolor shared geometry for this section only */
.wwd-cap .vh-geo__ring { border-color: rgba(10, 26, 63, 0.42); }
.wwd-cap .vh-geo--faq > :nth-child(2),
.wwd-cap .vh-geo--faq > :nth-child(3),
.wwd-cap .vh-geo--insight > :nth-child(1),
.wwd-cap .vh-geo--insight > :nth-child(2) {
  background: var(--color-primary);
}
.wwd-cap .vh-geo--insight > :nth-child(3) { /* triangle, was translucent white */
  background: rgba(10, 26, 63, 0.12);
}

/* -------------------------------------------------------------------------
   §7 — Testimonials. Deep navy. Two quote cards, 5-star, founder proof.
   Card shell mirrors .wwd-card for cohesion. (Placeholder quotes — swap.)
   ------------------------------------------------------------------------- */
.wwd-testi {
  background: var(--color-primary);
  padding: 0 0 clamp(84px, 10vw, 124px);
  color: #fff;
}
.wwd-testi__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 92px) var(--container-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.wwd-testi__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 clamp(36px, 5vw, 52px);
}
.wwd-testi__heading { max-width: 680px; }
/* Prev / next controls — desktop affordance; carousel also drags & swipes. */
.wwd-testi__nav {
  display: flex;
  gap: 10px;
  flex: none;
}
.wwd-testi__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition:
    background 200ms var(--ease-out-soft),
    border-color 200ms var(--ease-out-soft),
    color 200ms var(--ease-out-soft),
    opacity 200ms var(--ease-out-soft),
    transform 200ms var(--ease-out-soft);
}
.wwd-testi__arrow svg { width: 20px; height: 20px; }
.wwd-testi__arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}
.wwd-testi__arrow:active { transform: scale(0.94); }
.wwd-testi__arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.wwd-testi__arrow[disabled] {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}
.wwd-testi__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.wwd-testi__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.wwd-testi__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
/* Horizontal carousel — scroll-snaps, drag/swipe, fades at both edges. */
.wwd-testi__scroller {
  position: relative;
  margin: 0 calc(var(--container-pad) * -1);
}
/* Soft fades cue more cards off both edges; hidden once scrolled to an end. */
.wwd-testi__scroller::before,
.wwd-testi__scroller::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(28px, 6vw, 72px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms var(--ease-out-soft);
}
.wwd-testi__scroller::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-primary), transparent);
}
.wwd-testi__scroller::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-primary), transparent);
}
.wwd-testi__scroller[data-at-start="false"]::before { opacity: 1; }
.wwd-testi__scroller[data-at-end="false"]::after { opacity: 1; }
.wwd-testi__track {
  display: flex;
  gap: clamp(16px, 1.8vw, 22px);
  margin: 0;
  padding: 6px var(--container-pad) 10px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--container-pad);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.wwd-testi__track::-webkit-scrollbar { display: none; }
.wwd-testi__track:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 18px;
}
.wwd-testi__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.wwd-testi__track.is-dragging .wwd-quote { transform: none; }
.wwd-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(290px, 40vw, 440px);
  scroll-snap-align: start;
  background: linear-gradient(160deg, #122348 0%, #0d1d40 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 38px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition:
    transform 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft),
    background 280ms var(--ease-out-soft);
}
.wwd-quote:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 0, 0.45);
  background: linear-gradient(160deg, #16294f 0%, #0f2147 100%);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.75);
}
/* Gold top-accent hairline — quiet on rest, wakes on hover (opacity only,
   mirrors the homepage grid). Feature card defines its own brighter ::after. */
.wwd-quote::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-hi), var(--color-accent));
  opacity: 0;
  transition: opacity 280ms var(--ease-out-soft);
  pointer-events: none;
  z-index: 2;
}
.wwd-quote:hover::after { opacity: 1; }
/* Oversized ghost quotation mark — quiet editorial flourish. */
.wwd-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 110px;
  line-height: 1;
  color: rgba(232, 180, 0, 0.10);
  pointer-events: none;
}
.wwd-quote > * { position: relative; z-index: 1; }
.wwd-quote__stars {
  display: inline-flex;
  gap: 3px;
  margin: 0 0 18px;
  color: var(--color-accent);
}
.wwd-quote__stars svg { width: 17px; height: 17px; }
.wwd-quote__text {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: pretty;
}
/* Photo-free attribution — hairline divider + slim gold accent bar + verified
   check, matching the homepage testimonial signature line (home-testi.css). */
.wwd-quote__person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.wwd-quote__person::before {
  content: "";
  flex: none;
  width: 3px;
  align-self: stretch;
  min-height: 34px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-accent-hi), var(--color-accent));
  box-shadow: 0 2px 10px -3px rgba(232, 180, 0, 0.55);
}
.wwd-quote__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: #fff;
}
/* Verified-author cue — small gold check, decorative (label stays in text). */
.wwd-quote__verified {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--color-accent);
}
.wwd-quote__role {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

/* Featured lead card — opens the carousel on a stronger anchor (mirrors the
   homepage's strongest-card-first pattern). Gold-tinted frame + warm wash. */
.wwd-quote--feature {
  border-color: rgba(232, 180, 0, 0.34);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(232, 180, 0, 0.10), transparent 55%),
    linear-gradient(160deg, #15264E 0%, #0E1F44 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 180, 0, 0.06),
    0 18px 42px -28px rgba(232, 180, 0, 0.45);
}
.wwd-quote--feature::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-hi), var(--color-accent));
  opacity: 0.55;
  transition: opacity 280ms var(--ease-out-soft);
}
.wwd-quote--feature:hover::after { opacity: 1; }
.wwd-quote--feature .wwd-quote__text {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}
.wwd-quote--feature .wwd-quote__stars svg { width: 19px; height: 19px; }
.wwd-quote--feature .wwd-quote__person { border-top-color: rgba(232, 180, 0, 0.22); }

/* -------------------------------------------------------------------------
   §6 — Final CTA. Framed "last call" head + deep-navy banner + lime arrow.
   ------------------------------------------------------------------------- */
.wwd-cta {
  background: var(--color-primary);
  padding: clamp(80px, 9vw, 110px) 0 clamp(96px, 11vw, 132px);
}
.wwd-cta__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.wwd-cta__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}
.wwd-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.wwd-cta__eyebrow::before,
.wwd-cta__eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.7;
}
.wwd-cta__heading {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.wwd-cta__heading em {
  font-style: normal;
  color: var(--color-accent);
}
.wwd-cta__sub {
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
.wwd-cta__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #122348;
  border: 1px solid rgba(232, 180, 0, 0.20);
  border-radius: 18px;
  padding: clamp(40px, 5vw, 72px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.wwd-cta__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 380px at 12% 30%, rgba(232,180,0,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.wwd-cta__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
}
.wwd-cta__title em {
  font-style: italic;
  font-weight: 500;
}
.wwd-cta__arrow {
  position: relative;
  z-index: 1;
  flex: none;
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  display: grid;
  place-items: center;
  background: var(--color-accent);
  border-radius: 14px;
  color: var(--color-primary);
  transition: transform 240ms var(--ease-out-soft), background 240ms var(--ease-out-soft);
}
.wwd-cta__banner:hover .wwd-cta__arrow {
  background: var(--color-accent-dark);
  transform: translateX(6px);
}
.wwd-cta__arrow svg { width: 44%; height: 44%; }

/* -------------------------------------------------------------------------
   Focus states — visible lime ring for keyboard users on every interactive
   element in the navy sections (the global ring is footer-scoped). The 3px
   offset keeps the ring legible even on the lime capability button.
   ------------------------------------------------------------------------- */
.wwd-card:focus-visible,
.wwd-group__cta:focus-visible,
.wwd-cap__btn:focus-visible,
.wwd-cta__banner:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wwd-prin__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Collapse the bento spans onto a clean 2-col grid; capstone runs full width. */
  .wwd-prin-tile,
  .wwd-prin-tile:nth-child(1),
  .wwd-prin-tile:nth-child(2),
  .wwd-prin-tile:nth-child(6) { grid-column: span 1; }
  .wwd-prin-tile--featured { grid-column: 1 / -1; }
  .wwd-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Rail only reads as a journey across a single row — hide it once wrapped. */
  .wwd-pillars__grid::before { display: none; }
  /* Stack the two service groups; the vertical divider becomes a top divider. */
  .wwd-groups { grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); }
  .wwd-group--addon {
    padding-left: 0;
    padding-top: clamp(40px, 6vw, 64px);
    border-left: none;
    border-top: 1px solid transparent;
    border-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(232, 180, 0, 0.28) 22%,
      rgba(255, 255, 255, 0.08) 70%,
      transparent 100%) 1;
  }
}
@media (max-width: 860px) {
  .wwd-pillars { padding: 64px 0 80px; }
  .wwd-grid, .wwd-prin { padding: 80px 0; }
  .wwd-prin-tile--featured { flex-direction: column; align-items: flex-start; gap: 20px; }
  .wwd-prin-tile--featured .wwd-prin-tile__icon { margin-bottom: 0; }
}
@media (max-width: 560px) {
  /* Compact horizontal cards become media-on-top vertical cards. */
  .wwd-grid__list .wwd-card { flex-direction: column; }
  .wwd-grid__list .wwd-card__media {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Seam runs along the bottom now the photo sits on top. */
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 640px) {
  .wwd-hero { padding: 44px 0 28px; }
  .wwd-hero__inner, .wwd-trust__inner, .wwd-pillars__inner, .wwd-grid__inner,
  .wwd-prin__inner, .wwd-cap__inner, .wwd-testi__inner, .wwd-cta__inner { padding-left: 18px; padding-right: 18px; }
  /* Tighter block + viewport-scaled type so nothing clips on small phones. */
  .wwd-hero__block { padding: clamp(22px, 6vw, 64px); }
  .wwd-hero__title { font-size: clamp(27px, 7.6vw, 40px); overflow-wrap: break-word; }
  .wwd-hero__lede { font-size: clamp(19px, 5.4vw, 42px); }
  /* Stats keep a row but drop the rule when they wrap; CTAs go full-width. */
  .wwd-hero__stats { gap: 16px; }
  .wwd-hstat--apps .wwd-hstat__num,
  .wwd-hstat--rev .wwd-hstat__num { min-width: 0; }
  .wwd-hero__actions { gap: 12px; }
  .wwd-hero__cta, .wwd-hero__cta--ghost { flex: 1 1 auto; justify-content: center; }
  .wwd-testi__head { flex-direction: column; align-items: flex-start; }
  .wwd-quote { flex-basis: min(82vw, 360px); }
  .wwd-pillars__grid { grid-template-columns: 1fr; }
  .wwd-pillars__close { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wwd-prin { padding: 72px 0; }
  .wwd-prin__grid { grid-template-columns: 1fr; }
  .wwd-prin-tile,
  .wwd-prin-tile--featured { grid-column: 1 / -1; }
  .wwd-prin-tile { padding: 26px; }
  .wwd-prin-tile__icon { width: 44px; height: 44px; }
  .wwd-prin-tile--featured { padding: 28px 26px; }
  .wwd-cap { padding-bottom: 80px; }
  .wwd-cap__inner { padding-top: 56px; }
  .wwd-cta__banner { flex-direction: column; align-items: flex-start; }
  .wwd-card__body { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .wwd-card, .wwd-prin-tile, .wwd-prin-tile__icon, .wwd-prin-tile__heading::after,
  .wwd-cap__btn, .wwd-cta__arrow, .wwd-pillar,
  .wwd-pillar__icon, .wwd-pillar__num, .wwd-pillar::after,
  .wwd-pillars__close-link, .wwd-pillars__close-link .arrow,
  .wwd-card__link .arrow, .wwd-cap__btn .arrow, .wwd-card__media img,
  .wwd-card__cadence, .wwd-card__link::after,
  .wwd-hero__cta, .wwd-hero__cta--ghost, .wwd-hero__cta-arrow,
  .wwd-trust__item, .wwd-quote { transition: none; }
  .wwd-card:hover, .wwd-prin-tile:hover, .wwd-pillar:hover,
  .wwd-hero__cta:hover, .wwd-hero__cta--ghost:hover, .wwd-quote:hover { transform: none; }
  .wwd-card__media img,
  .wwd-card:hover .wwd-card__media img { transform: none; }
  .wwd-prin-tile:hover .wwd-prin-tile__icon,
  .wwd-pillar:hover .wwd-pillar__icon { transform: none; }
  .wwd-pillar::before { transition: none; }
  /* Spotlight + reveal off: tiles rest fully visible, no cursor tracking. */
  .wwd-prin__grid.js-reveal .wwd-prin-tile { opacity: 1; transform: none; }
  .wwd-prin__grid::before,
  .wwd-prin-tile::after { display: none; }
  /* Marquee static; generic reveal shows everything in place. */
  .wwd-marquee__track { animation: none; }
  [data-reveal-group].is-armed [data-reveal] { opacity: 1; animation: none; }
}

/* =========================================================================
   Geometry anchoring — same decorative system as the home page. The shape
   primitives + cluster positioning live in home-geo.css; these rules make the
   page sections positioned ancestors so the side clusters (z-index:-1) self-
   clip behind content, exactly as the home sections do (home-geo.css:173-181).
   ========================================================================= */
.wwd-hero,
.wwd-pillars,
.wwd-grid,
.wwd-prin,
.wwd-cap,
.wwd-testi,
.wwd-cta {
  position: relative;
  isolation: isolate;
}
/* Clip the bright hero + final-CTA clusters that overflow their own box. */
.wwd-hero,
.wwd-cta { overflow: hidden; }

/* =========================================================================
   INVERTED YELLOW — Final CTA. Flips the dark navy treatment to a LIME-YELLOW
   band with the palette inverted (was-navy bg → yellow, was-white text → navy,
   was-lime accents → navy), so it matches the homepage final CTA exactly
   (mirror of home.css "INVERTED YELLOW SECTIONS"). Driven by re-mapping the
   colour tokens scoped to .wwd-cta so existing rules cascade into the inverted
   scheme. The dark "Book a free consultation" card stays dark — its white text
   never lands on yellow. To revert, delete this block (and the matching
   .wwd-cta geo lines at the end of home-geo.css).
   ========================================================================= */
.wwd-cta {
  --color-primary: #E8B400;            /* section bg (var(--color-primary)) → yellow */
  --color-accent:  #0A1A3F;            /* eyebrow, hairlines, heading em → navy */
  --color-ink-soft: rgba(10, 26, 63, 0.82);
}
/* hardcoded #fff heading + white sub → navy (override base wwd.css:1381/1394) */
.wwd-cta__heading { color: #0A1A3F; }
.wwd-cta__sub { color: rgba(10, 26, 63, 0.82); }
/* Restore the dark card's inner tokens so it stays exactly as today: lime
   .vh-mark, lime arrow button, navy arrow glyph, lime focus ring. */
.wwd-cta__banner {
  --color-accent: #E8B400;             /* "free consultation" mark + arrow bg → lime again */
  --color-primary: #0A1A3F;            /* mark text + arrow glyph → navy again */
}

/* =========================================================================
   READABILITY — services-page body/smaller text, slightly larger + higher
   contrast (white 0.72 → ~0.85). Scoped to .wwd-* selectors only; no design
   tokens touched, so no other page is affected. Headings, layout, eyebrows,
   cadences, and the large hero lede are intentionally left as-is.
   Aligns with UI-UX-PRO-MAX guidance: base 16px body, 4.5:1 contrast.
   ========================================================================= */
.wwd-pillar__desc,
.wwd-prin-tile__body,
.wwd-card__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
}
.wwd-pillars__lede,
.wwd-grouphead__lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.92);
}
.wwd-prin__intro {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}
.wwd-group__cta {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}
