.hero-email[data-astro-cid-5avmojdu] {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  padding: 4px 6px;
  margin-top: 0;
  box-shadow: 0 1px 2px #0e10140a;
  max-width: 380px;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.hero-email[data-astro-cid-5avmojdu]:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px #0e10140f, 0 0 0 4px #2f6e4b14;
}

.hero-email-input[data-astro-cid-5avmojdu] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 14px;
}

.hero-email-input[data-astro-cid-5avmojdu]::placeholder {
  color: var(--ink-subtle);
}

.hero-email-btn[data-astro-cid-5avmojdu] {
  background-color: var(--btn-fill);
  color: var(--paper);
  border: none;
  border-radius: var(--pill);
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s var(--ease);
}

.hero-email-btn[data-astro-cid-5avmojdu]:hover {
  background: var(--btn-fill-hover);
}
/* Hudson landing page: shared styles. Owner: the orchestrator session (it took
   over from the Color session: palette, stages, chart and status colors);
   every section links it.
   Inline styles carry layout and token colors (literal hexes from the Converge
   tokens). This file carries what inline styles cannot: states, motion,
   responsive overrides, the dark verdant surface, the light stages and the
   shared color layer. Section-specific rules go in that section's own
   css/<section>.css, never here.

   COLOR MEANING (see the Color page on the canvas):
     green = growth, results and the brand accent (CTAs, links, positive)
     warm  = Hudson acting: things it has done or proposed (Applied, New,
             Autopilot, its chat). Never an in-progress state.
     done  = green. In progress = neutral zinc (see WORKING below).
     cool  = data and reporting (attribution, tracking, dashboards, sources)
     zinc  = everything else. Logo emerald / indigo / violet: Converge mark only.
   Text in a family color uses its -ink shade (all pass 4.5:1 on white and on
   that family's washes). Fills, bars, dots and washes use the lighter shades.
   Color is never the only signal: status chips always carry an icon + word. */

:root {
  /* The sync dropped the tokens the site defines here: src/styles/tokens.css is their source. */
  --surface-mist: var(--mist);
  --on-dark: var(--p-on-dark);
  --warm-1: var(--color-role-warm-1); --warm-2: var(--color-role-warm-2); --warm-deep: var(--color-role-warm-deep);
  --shadow-card: 0 1px 2px rgba(14,16,20,0.04), 0 12px 32px -20px rgba(14,16,20,0.18);
  --shadow-viz: 0 1px 2px rgba(14,16,20,0.04);
  --shadow-hero-shot: 0 30px 70px -36px rgba(14,16,20,0.35);
  --font: var(--font-ui);
  --ease-out: cubic-bezier(.2,.7,.2,1);

  /* Green: growth + brand. Text: --green-ink / --accent. */
  --green-ink: var(--accent-deep); --green: var(--accent); --green-2: #4a875a; --green-3: var(--p-on-dark);
  --green-soft: var(--accent-soft); --green-mist: var(--p-green-mist); --on-dark-green: var(--p-on-dark);
  /* Cool: data + reporting (runconverge.com role-cool, grad-cool + soft-blue ramp).
     Text: --cool-ink. -soft = chip / icon-tile fill; -mist / -wash = stage. */
  --cool-deep: #2b4a66; --cool-1: var(--color-role-cool-1); --cool-2: var(--color-role-cool-2); --cool-3: var(--color-role-cool-3);
  --cool-wash-strong: var(--grad-4); --cool-wash: var(--grad-3); --cool-soft: var(--mist); --cool-mist: var(--grad-2); --on-dark-cool: #a9c9dc;
  /* Warm: Hudson acting (runconverge.com role-warm, grad-warm). Text: --warm-ink.
     -soft = chip / icon-tile fill; -mist / -wash = stage. */
  --warm-darkest: #87381c; --warm-3: #f2c4a6;
  --warm-wash: #f7e6d9; --warm-mist: #fbf3ed; --on-dark-warm: #f2a882;
  /* Amber: waiting on you (pending approval, hold). Text: --amber-ink. */
  --amber: var(--color-role-warm-2);

  /* Status (chip text / chip fill / dot). Always paired with an icon + word.
     The verb decides the family:
       pos   green: Approved, Live, Scale, Up, Win
       agent warm:  Hudson has done / proposed: Applied, Launch, New, Autopilot
       info  cool:  Shift, Changed, Synced, Tracked, Report
       pend  amber: Needs your approval, Hold, Exception
       neutral zinc: Pause, Cut, Kept, Queued, No change
       neg   red:   a metric that got worse, failures. Use sparingly. */
  --pos-ink: var(--accent-deep);  --pos-bg: var(--accent-soft);  --pos-dot: var(--accent);
  --neg-dot: #dc2626;
  --pend-ink: var(--amber-ink); --pend-bg: var(--amber-soft); --pend-dot: var(--color-role-warm-2);
  --agent-ink: var(--warm-ink); --agent-bg: var(--warm-soft); --agent-dot: var(--color-role-warm-1);
  --info-ink: var(--cool-ink); --info-bg: var(--mist); --info-dot: var(--color-role-cool-1);
  --neutral-ink: var(--ink-soft); --neutral-bg: var(--paper-sunken); --neutral-dot: var(--ink-subtle);
  /* WORKING (approved 2026-11-17): in-progress is neutral, green means done,
     warm is only for what Hudson has done. An orange spinner reads as a
     warning and sits too close to amber "waiting on you".
       running spinner                         #2b2e36
       "is working" label next to Hudson        #5b6068
       pulse / typing dots, in-progress chip dot #8a8f98
       in-progress chip ("Drafting", "Building", "Analyzing", "Testing"):
         .hx-chip-working = zinc fill, #5b6068 text (4.5:1+), #8a8f98 dot */
  --work-spin: var(--ink-soft); --work-label: var(--ink-muted); --work-dot: var(--ink-subtle); --work-bg: var(--paper-sunken);
  /* Who is talking: Hudson = ink mark + warm-mist bubble; you = zinc bubble + zinc avatar. */
  --bubble-hudson: #fbf3ed; --bubble-you: var(--paper-sunken);

  /* Chart series, in this order. 1-2 for two-line charts; Hudson's own
     actions are marked in --series-3 (warm). */
  --series-1: var(--accent);  /* primary metric / with Hudson */
  --series-2: var(--color-role-cool-1);  /* comparison / baseline / a data source */
  --series-3: var(--color-role-warm-1);  /* Hudson actions, agent share */
  --series-4: var(--color-role-warm-2);  /* fourth category */
  --series-5: var(--ink-subtle);  /* other / benchmark */
  --chart-grid: rgba(14,16,20,0.06); --chart-axis: var(--ink-subtle); --chart-label: var(--ink-muted);
  /* Sequential ramps, light to dark */
  --ramp-green-1: var(--accent-soft); --ramp-green-2: #b9d3c1; --ramp-green-3: #8ab59a; --ramp-green-4: #4a875a; --ramp-green-5: var(--accent);
  --ramp-cool-1: var(--grad-3);  --ramp-cool-2: #c3d5e6;  --ramp-cool-3: #9dbcd3;  --ramp-cool-4: #6f9bba;  --ramp-cool-5: var(--cool-ink);
  --ramp-warm-1: #fbe3d3;  --ramp-warm-2: #f6c3a3;  --ramp-warm-3: #ee9a6e;  --ramp-warm-4: var(--color-role-warm-1);  --ramp-warm-5: var(--color-role-warm-deep);

  /* Shared layers */
  --hx-dark-bg:
    radial-gradient(72% 52% at 50% 82%, rgba(150,190,120,0.42) 0%, transparent 60%),
    radial-gradient(90% 70% at 50% -8%, rgba(225,236,205,0.20) 0%, transparent 55%),
    radial-gradient(120% 95% at 50% 122%, #1f3b2a 0%, transparent 60%),
    linear-gradient(180deg, #14281c 0%, #112218 48%, #0d1c14 100%);
  --hx-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

html { scroll-behavior: smooth; }
.hx-page, .hx-page * { box-sizing: border-box; }
.hx-page { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.hx-page h1, .hx-page h2, .hx-page h3, .hx-page h4, .hx-page p { margin: 0; }
.hx-num { font-variant-numeric: tabular-nums; }

/* Dark verdant surface: hero, final CTA band, dark product stages.
   Still the one dramatic surface; warm / cool enter it only as a glow. */
.hx-dark {
  background: var(--hx-dark-bg);
  color: #ffffff;
}

/* Light stages behind product windows on white sections.
   .hx-stage (green) = growth / results. -cool = data / reporting. -warm = Hudson acting. */
.hx-stage, .hx-stage-green {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(159,200,177,0.38) 0%, transparent 70%),
    linear-gradient(180deg, var(--p-green-mist) 0%, var(--p-green-soft) 100%);
}
.hx-stage-cool {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(124,176,196,0.30) 0%, transparent 70%),
    linear-gradient(180deg, var(--grad-2) 0%, var(--grad-3) 100%);
}
.hx-stage-warm {
  background:
    radial-gradient(60% 55% at 22% 100%, rgba(232,116,74,0.20) 0%, transparent 70%),
    radial-gradient(60% 55% at 82% 100%, rgba(212,164,92,0.22) 0%, transparent 70%),
    linear-gradient(180deg, #fbf3ed 0%, #f7e6d9 100%);
}

/* Painterly scenes (runconverge.com's dither "chapter" tiles). Strong color:
   at most one or two per page, behind a white product window, never behind
   body copy. Add the grain with .hx-grain. */
.hx-scene-warm {
  background:
    radial-gradient(ellipse 70% 60% at 22% 78%, var(--color-role-warm-1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 80%, var(--color-role-warm-2) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 20% 18%, #a89cc4 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 15%, #c89880 0%, transparent 55%),
    linear-gradient(160deg, #b3a4c8 0%, #d49870 55%, #b88858 100%);
}
.hx-scene-cool {
  background:
    radial-gradient(ellipse 90% 80% at 85% -5%, rgba(244,248,252,0.6) 0%, rgba(205,217,232,0.3) 30%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 40% 60%, #8aa2c0 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 105%, #3c5070 0%, transparent 62%),
    linear-gradient(175deg, #a8bcd6 0%, #7890b0 50%, #51647f 100%);
}
.hx-scene-verd {
  background:
    radial-gradient(ellipse 95% 95% at 100% -5%, rgba(238,242,226,0.65) 0%, rgba(200,218,170,0.32) 28%, rgba(140,165,110,0.1) 60%, transparent 90%),
    radial-gradient(ellipse 75% 45% at 45% 55%, var(--color-role-verdant-2) 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 100%, #3a4a26 0%, transparent 60%),
    linear-gradient(180deg, #7b9560 0%, #5a7038 45%, #3f4e26 85%, #2f3a1c 100%);
}
.hx-grain { position: relative; isolation: isolate; }
.hx-grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: var(--hx-noise); background-size: 180px 180px; mix-blend-mode: overlay; opacity: .55;
}

/* Glow: a soft bloom behind a product window, on .hx-dark or a stage.
   <div class="hx-glow hx-glow-warm"> <div class="hx-window">...</div> </div> */
.hx-glow { position: relative; isolation: isolate; --glow: rgba(184,216,152,0.42); }
.hx-glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: 94%; height: 124%; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow) 0%, transparent 72%);
  filter: blur(30px);
}
.hx-glow-green { --glow: rgba(184,216,152,0.42); }
.hx-glow-warm  { --glow: rgba(232,116,74,0.40); }
.hx-glow-cool  { --glow: rgba(124,176,196,0.40); }

/* Family scope: sets --fam-* so a section's own css can say var(--fam-ink) etc. */
.hx-fam-green { --fam-ink: var(--accent-deep); --fam-1: var(--accent); --fam-2: var(--p-on-dark); --fam-soft: var(--accent-soft); --fam-mist: var(--p-green-mist); --fam-on-dark: var(--p-on-dark); }
.hx-fam-cool  { --fam-ink: var(--cool-ink); --fam-1: var(--color-role-cool-1); --fam-2: var(--color-role-cool-2); --fam-soft: var(--mist); --fam-mist: var(--grad-2); --fam-on-dark: #a9c9dc; }
.hx-fam-warm  { --fam-ink: var(--warm-ink); --fam-1: var(--color-role-warm-1); --fam-2: var(--color-role-warm-2); --fam-soft: var(--warm-soft); --fam-mist: #fbf3ed; --fam-on-dark: #f2a882; }

/* Accent text: gradient clipped to the glyphs (a headline's operative phrase,
   32px and up). Stops are runconverge.com's grad-verdant / grad-cool /
   grad-warm, cut where they would drop under 4.5:1 on white. On .hx-dark use
   the flat on-dark colors instead (#9fc8b1 / #a9c9dc / #f2a882). */
.hx-hl-green, .hx-hl-cool, .hx-hl-warm {
  background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-hl-green { background-image: linear-gradient(90deg, #234f37 0%, var(--accent) 100%); }
.hx-hl-cool  { background-image: linear-gradient(90deg, #2b4a66 0%, var(--cool-ink) 100%); }
.hx-hl-warm  { background-image: linear-gradient(90deg, #87381c 0%, var(--warm-ink) 100%); }

/* Icon tile: soft family fill + family-ink glyph (Lucide, 1.75 stroke) */
.hx-icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; flex: none; }
.hx-icon-tile svg { width: 18px; height: 18px; }
.hx-icon-tile-green { background: var(--accent-soft); color: var(--accent-deep); }
.hx-icon-tile-cool  { background: var(--mist); color: var(--cool-ink); }
.hx-icon-tile-warm  { background: var(--warm-soft); color: var(--warm-ink); }

/* Status chip: icon + word, never color alone */
.hx-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px;
  border-radius: 9999px; font: 500 12px/1 var(--font); white-space: nowrap;
}
.hx-chip svg { width: 12px; height: 12px; flex: none; }
.hx-chip-pos   { background: var(--accent-soft); color: var(--accent-deep); }
.hx-chip-neg   { background: var(--neg-bg); color: var(--neg-ink); }
.hx-chip-pend  { background: var(--amber-soft); color: var(--amber-ink); }
.hx-chip-agent { background: var(--warm-soft); color: var(--warm-ink); }
.hx-chip-info  { background: var(--mist); color: var(--cool-ink); }
.hx-chip-neutral { background: var(--paper-sunken); color: var(--ink-soft); }
.hx-chip-working { background: var(--paper-sunken); color: var(--ink-muted); }
/* Status dot (pair with a label) */
.hx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hx-dot-pos { background: var(--accent); } .hx-dot-neg { background: #dc2626; } .hx-dot-pend { background: var(--color-role-warm-2); }
.hx-dot-agent { background: var(--color-role-warm-1); } .hx-dot-info { background: var(--color-role-cool-1); } .hx-dot-neutral { background: var(--ink-subtle); }
.hx-dot-working { background: var(--ink-subtle); }

/* Chat bubbles: who is talking */
.hx-bubble-hudson { background: #fbf3ed; color: var(--ink); }
.hx-bubble-you { background: var(--paper-sunken); color: var(--ink); }

/* Buttons (pill, 40px, flat fill; no gradients) */
.hx-btn, .hx-btn-ghost, .hx-btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: 9999px;
  font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hx-btn { background: var(--btn-fill); color: #ffffff !important; border: 1px solid var(--btn-fill); }
/* Hover is #3a8159 (white 4.7:1), one step darker than the site's #3c855d (4.46:1). */
.hx-btn:hover { background: var(--btn-fill-hover); border-color: var(--btn-fill-hover); }
.hx-btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid rgba(14,16,20,0.18); }
.hx-btn-ghost:hover { background: var(--paper-soft); border-color: rgba(14,16,20,0.28); }
.hx-btn-ghost-dark { background: rgba(255,255,255,0.04); color: #ffffff !important; border: 1px solid rgba(255,255,255,0.22); }
.hx-btn-ghost-dark:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.34); }
.hx-btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.hx-btn:focus-visible, .hx-btn-ghost:focus-visible, .hx-btn-ghost-dark:focus-visible { outline: 2px solid var(--p-on-dark); outline-offset: 2px; }

/* Links */
.hx-link { color: inherit !important; text-decoration: none; transition: color .15s ease; }
.hx-link:hover { color: var(--accent) !important; }
.hx-navlink { color: rgba(255,255,255,0.78) !important; text-decoration: none; transition: color .15s ease; }
.hx-navlink:hover { color: #ffffff !important; }

/* Product window (the card every product moment sits in) */
.hx-window { background: #ffffff; border: 1px solid rgba(14,16,20,0.08); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }

/* Motion */
@keyframes hx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes hx-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hx-rise { animation: hx-rise .7s var(--ease-out) both; }
.hx-fade { animation: hx-fade .9s ease both; }
.hx-pulse { animation: hx-pulse 1.6s ease-in-out infinite; }
.hx-caret { animation: hx-caret 1s steps(1) infinite; }
.hx-d1 { animation-delay: .08s; } .hx-d2 { animation-delay: .16s; } .hx-d3 { animation-delay: .24s; }
.hx-d4 { animation-delay: .32s; } .hx-d5 { animation-delay: .40s; } .hx-d6 { animation-delay: .48s; }
@supports (animation-timeline: view()) {
  .hx-reveal { animation: hx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-page *, .hx-page *::before, .hx-page *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive: the page gutter is 40px inline; these shrink it and hide chrome */
@media (max-width: 960px) { .hx-hide-md { display: none !important; } }
@media (max-width: 640px) {
  .hx-hide-sm { display: none !important; }
  .hx-container { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Phones: product stages bleed to the screen edges, so the white windows get
   more of the width. Stages sit in .hx-container's 20px gutter, so -20px
   reaches the edge exactly (no vw, so no scrollbar overshoot). Square corners
   at the edge; the windows inside keep their own radius and shadow. */
@media (max-width: 640px) {
  .hx-page .hx-stage, .hx-page .hx-stage-green, .hx-page .hx-stage-cool, .hx-page .hx-stage-warm,
  .hx-page .cap-stage, .hx-page .how-stage {
    margin-left: -20px !important; margin-right: -20px !important;
    border-radius: 0 !important;
    padding: 12px !important;
  }
}
/* Owner: Capabilities session. Shared by Capabilities.dc.html and its five tab components (Cap*.dc.html).
   Tab owners: put tab-only rules in your own css/cap-<tab>.css, not here. Prefix every class with .cap- */

/* Tabs: folder tabs on the stage's top edge (design: "Hudson capability tabs" canvas, 2026-11-24).
   The dither layers (.cap-bg) sit behind the tab row and the stage body alike, so the active tab is a window
   onto the same layer: it blends with every tab's colour and crossfades with it. The other tabs are labels on
   white cells; the white assumes the section sits on white, as on /hudson and the homepage. */
.cap-tabs { position: relative; z-index: 3; display: flex; align-items: stretch; height: 48px; }
.cap-tab-fill { flex: 1 1 0; min-width: 40px; background: #ffffff; }
/* Backgrounds swap at once: a fade would show the old tab's dither past its rounded corners for a moment */
.cap-tab {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 0 20px; border: 0; border-radius: 0; background: #ffffff; color: var(--ink-muted);
  font: 500 15px/1 var(--font-ui);
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s ease;
}
/* Hover: the label and icon darken, no box. Icons take the label's colour: black when active. */
.cap-tab:hover { color: var(--ink); }
.cap-tab.is-active { background: transparent; color: var(--ink); font-weight: 600; }
.cap-tab-ic { position: relative; z-index: 1; flex: none; color: inherit; }
.cap-tab-label { position: relative; z-index: 1; display: inline-grid; }
/* Reserve the bold width, so the row never shifts when a tab turns active */
.cap-tab-label::after { content: attr(data-label); font-weight: 600; height: 0; overflow: hidden; visibility: hidden; }
.cap-tab.has-sep::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: rgba(14,16,20,0.12); }
/* The active tab's rounded top corners: white quarter masks over the dither */
.cap-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--cap-fil); pointer-events: none;
  background:
    radial-gradient(circle at 100% 100%, transparent calc(var(--cap-fil) - .5px), #ffffff var(--cap-fil)) left top / var(--cap-fil) var(--cap-fil) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--cap-fil) - .5px), #ffffff var(--cap-fil)) right top / var(--cap-fil) var(--cap-fil) no-repeat;
}
/* The curves where the active tab opens into the stage: its neighbours round their inner bottom corner */
.cap-tab.is-before, .cap-tab-fill.is-before { border-bottom-right-radius: var(--cap-fil); }
.cap-tab.is-after, .cap-tab-fill.is-after { border-bottom-left-radius: var(--cap-fil); }
/* The stage's own top corners, just under the tab row */
.cap-tabs::before, .cap-tabs::after { content: ""; position: absolute; top: 100%; width: 24px; height: 24px; pointer-events: none; }
.cap-tabs::before { left: 0; background: radial-gradient(circle at 100% 100%, transparent 23.5px, #ffffff 24px); }
.cap-tabs::after { right: 0; background: radial-gradient(circle at 0 100%, transparent 23.5px, #ffffff 24px); }
/* Focus ring on an inner face, for the keyboard only (.cap-pointer: the last input in the row was a click or tap) */
.cap-tab-face { position: absolute; inset: 7px 4px; border-radius: 10px; pointer-events: none; }
.cap-tab:focus-visible { outline: none; }
.hx-container:not(.cap-pointer) .cap-tab:focus-visible .cap-tab-face { box-shadow: 0 0 0 2px var(--accent); }
/* Progress: a 2px line under the active label, flush on the stage's top edge, filling over the 13 s a tab plays
   (full once someone picks a tab) */
.cap-track { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; z-index: 1; overflow: hidden; border-radius: 2px 2px 0 0; pointer-events: none; }
.cap-fill { display: block; height: 100%; background: var(--accent); transition: width .15s linear; }
/* With no header (the homepage titles the section itself), the section sits 48px under that title block */
.hx-container.cap-noheader { padding-top: 48px !important; }

/* Hudson's step trace: waiting (grey circle), running (the same circle with a dark arc turning on it), done (green check).
   The running ring stays put and matches the waiting circle's size, so a step starts and runs without the icon moving.
   In-progress is always neutral: green is the only colour in the list, and it means done.
   Warm orange is kept for things Hudson has done in the windows (Applied by autopilot, New). */
.cap-step-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 0; border-radius: 9999px; transition: background-color .3s ease, color .3s ease; }
.cap-step-ic svg { display: none; }
.cap-step.is-wait .cap-ic-wait, .cap-step.is-run .cap-ic-run, .cap-step.is-done .cap-ic-done { display: block; }
.cap-step.is-wait .cap-step-ic { color: rgba(14,16,20,0.24); }
.cap-step.is-run .cap-step-ic { color: var(--work-spin, var(--ink-soft)); }
.cap-step.is-done .cap-step-ic { background: var(--accent-soft); color: var(--accent); }
.cap-step-txt { color: var(--ink-muted); transition: color .3s ease; }
.cap-step.is-run .cap-step-txt { color: var(--ink); font-weight: 500; }
.cap-step.is-done .cap-step-txt { color: var(--ink); }
.cap-ic-run { animation: cap-spin .9s linear infinite; }
.cap-ic-track { stroke: rgba(14,16,20,0.24); }
@keyframes cap-spin { to { transform: rotate(360deg); } }

/* Product-window rows reveal as Hudson works */
.cap-rv { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), background-color .4s ease; }
.cap-rv.is-out { opacity: 0; transform: translateY(8px); }
.cap-rv.is-in { opacity: 1; transform: none; }
.cap-rv.is-win { background-color: var(--accent-mist); }
.cap-stagger > .cap-rv:nth-child(2) { transition-delay: .07s; }
.cap-stagger > .cap-rv:nth-child(3) { transition-delay: .14s; }
.cap-stagger > .cap-rv:nth-child(4) { transition-delay: .21s; }
.cap-stagger > .cap-rv:nth-child(5) { transition-delay: .28s; }
.cap-stagger > .cap-rv:nth-child(6) { transition-delay: .35s; }
.cap-stagger > .cap-rv:nth-child(7) { transition-delay: .42s; }

/* The stage: the dither layers (.cap-bg) behind the tab row and the body. The body is a size container, so the
   tab panel can follow its width, and it frames the demo evenly: the same space under the tabs, at the sides and
   at the bottom (the demo is centred in the panel's min-height, so a shorter tab gets equal space above and below). */
.cap-stage { position: relative; isolation: isolate; --cap-fil: 14px; --cap-sx: clamp(16px, 2.5vw, 32px); }
.cap-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 24px; pointer-events: none; }
.cap-body { position: relative; z-index: 2; container-type: inline-size; padding: var(--cap-sx); }
.cap-panel { position: relative; z-index: 2; }

/* Stage dithers, one per tab (set D, B, G, C, F from the "Hudson capability dithers" canvas, 2026-11-24).
   The homepage hero's technique: painterly radial layers over a linear base, then the shared grain.
   The left column stays light, because "You", Replay and Hudson's avatar sit straight on the stage there;
   colour blooms at the right and bottom edges, behind the white product window.
   The new tab's layer fades in on top and the old one goes only after it, so a switch never shows the
   white page through two half-faded layers. */
.cap-dth {
  position: absolute; inset: 0; z-index: 0; isolation: isolate; border-radius: inherit; pointer-events: none;
  background-color: #ffffff; opacity: 0; transition: opacity .3s ease .8s;
}
.cap-dth.is-on { z-index: 1; opacity: 1; transition: opacity .8s cubic-bezier(.22,1,.36,1) 0s; }
.cap-dth::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: var(--hx-noise); background-size: var(--cap-grain-size, 180px) var(--cap-grain-size, 180px);
  mix-blend-mode: overlay; opacity: var(--cap-grain, .6);
}
/* Scale and cut: olive and gold, the hero's verdant spine on its pale wash */
.cap-dth-scale {
  --cap-grain: .75; --cap-grain-size: 260px;
  background-image:
    radial-gradient(ellipse 58% 76% at 104% 102%, rgba(110,140,74,0.85) 0%, transparent 66%),
    radial-gradient(ellipse 50% 52% at 64% 118%, rgba(212,164,92,0.58) 0%, transparent 66%),
    radial-gradient(ellipse 85% 85% at -2% -6%, rgba(238,242,226,0.9) 0%, rgba(238,242,226,0.4) 45%, transparent 80%),
    linear-gradient(165deg, #eef2e2 0%, var(--accent-soft) 50%, #c8daaa 100%);
}
/* Launch ads: green and warm sand */
.cap-dth-launch {
  --cap-grain: .6;
  background-image:
    radial-gradient(ellipse 60% 74% at 104% 104%, rgba(74,135,90,0.72) 0%, transparent 66%),
    radial-gradient(ellipse 50% 60% at 96% -8%, rgba(242,196,166,0.95) 0%, transparent 66%),
    radial-gradient(ellipse 52% 60% at -4% 106%, rgba(212,164,92,0.42) 0%, transparent 70%),
    linear-gradient(160deg, #f7e6d9 0%, var(--accent-soft) 46%, #b9d3c1 100%);
}
/* Restructure: green with the warm scene's lilac and blush (a muted lavender, not the logo violet) */
.cap-dth-restructure {
  --cap-grain: .55;
  background-image:
    radial-gradient(ellipse 58% 72% at 102% -4%, rgba(168,156,196,0.72) 0%, transparent 66%),
    radial-gradient(ellipse 64% 74% at 98% 106%, rgba(138,181,154,0.8) 0%, transparent 66%),
    radial-gradient(ellipse 58% 62% at -4% 104%, rgba(200,152,128,0.36) 0%, transparent 70%),
    linear-gradient(170deg, var(--paper-cool) 0%, var(--accent-mist) 50%, var(--accent-soft) 100%);
}
/* Creative learnings: green and cool slate */
.cap-dth-learn {
  --cap-grain: .6; --cap-grain-size: 220px;
  background-image:
    radial-gradient(ellipse 62% 74% at 104% -6%, rgba(111,155,186,0.78) 0%, transparent 66%),
    radial-gradient(ellipse 60% 70% at 100% 108%, rgba(157,188,211,0.8) 0%, transparent 66%),
    radial-gradient(ellipse 70% 92% at -4% 108%, rgba(138,181,154,0.8) 0%, transparent 70%),
    linear-gradient(175deg, var(--accent-soft) 0%, var(--grad-3) 50%, #c3d5e6 100%);
}
/* Targets and pacing: green and teal, a horizon along the bottom */
.cap-dth-pacing {
  --cap-grain: .6; --cap-grain-size: 220px;
  background-image:
    radial-gradient(ellipse 120% 60% at 60% 122%, rgba(90,138,166,0.72) 0%, transparent 66%),
    radial-gradient(ellipse 56% 66% at 104% 44%, rgba(124,176,196,0.72) 0%, transparent 70%),
    radial-gradient(ellipse 62% 82% at -4% 26%, rgba(138,181,154,0.66) 0%, transparent 70%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--mist) 50%, #c3d5e6 100%);
}

/* The panel is as tall as the tallest tab at the current width, plus a few px, so switching tabs never
   moves the page. Tabs get taller as the stage narrows (columns shrink, text wraps), so the floor follows
   the stage width. Each value names the tab that sets it: re-measure when a tab grows. */
.cap-panel { min-height: 600px; }
@container (min-width: 880px) { .cap-panel { min-height: 565px; } }  /* Scale and cut 559 */
@container (min-width: 890px) { .cap-panel { min-height: 550px; } }  /* Launch ads 544 */
@container (min-width: 945px) { .cap-panel { min-height: 530px; } }  /* Launch ads 524 */
/* Creative learnings, 492 to 514: its four stats wrap to two rows until the stage is about 1100px wide */
@container (min-width: 1030px) { .cap-panel { min-height: max(496px, calc(35.5cqw + 129px)); } }
@container (min-width: 1110px) { .cap-panel { min-height: 496px; } }  /* Restructure, Targets and pacing 490 */
/* Phones (one tab at a time, tapped): */
@media (max-width: 329px) { .cap-panel { min-height: 608px; } }  /* Scale and cut, Launch ads 604 */
@media (min-width: 370px) and (max-width: 439px) { .cap-panel { min-height: max(592px, calc(42vw + 418px)); } }  /* Scale and cut 588, Launch ads up to 593 */
@media (min-width: 480px) and (max-width: 559px) { .cap-panel { min-height: max(600px, calc(43vw + 397px)); } }  /* Launch ads 596 to 622 */
@media (min-width: 560px) and (max-width: 640px) { .cap-panel { min-height: max(600px, calc(38.5vw + 389px)); } }  /* Creative learnings 597 to 627 */

/* Responsive */
/* Below 1024px (tap to switch, no rotation) five full tabs don't fit the stage, so the row goes compact: every
   tab stays in view, the others show their icon and the active one its label too. Each label stays in its tab
   as the accessible name. */
@media (max-width: 1023px) {
  .cap-tabs { height: 44px; }
  .cap-tab-fill { min-width: 12px; }
  .cap-tab { gap: 6px; padding: 0 12px; font-size: 14px; }
  .cap-tab:not(.is-active) { width: 44px; padding: 0; }
  .cap-tab:not(.is-active) .cap-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .cap-tab.has-sep::before { height: 16px; margin-top: -8px; }
  .cap-tab-face { inset: 6px 3px; }
  .cap-track { left: 12px; right: 12px; }
}
@media (max-width: 640px) {
  /* Phones: the stage runs edge to edge with square corners (hudson.css). The tab row sits on its top edge, so
     the stage itself takes no padding and the body keeps the 12px frame. A very narrow phone scrolls the row. */
  .hx-page .cap-stage.cap-stage { padding: 0 !important; --cap-fil: 12px; --cap-sx: 12px; }
  .cap-bg { border-radius: 0; }
  .cap-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cap-tabs::-webkit-scrollbar { display: none; }
  .cap-tabs::before, .cap-tabs::after { display: none; }
  .hx-container.cap-noheader { padding-top: 40px !important; }
  /* Phones: Hudson's trace collapses to one line, the step it is on (or the last one done).
     It ticks through the steps as the tab plays. Browsers without :has() show the full list. */
  .cap-step.is-wait,
  .cap-step.is-done:has(+ .cap-step.is-done),
  .cap-step.is-done:has(+ .cap-step.is-run) { display: none !important; }
  .cap-hide-sm { display: none !important; }
}
@media (max-width: 359px) {
  .cap-tab.is-active .cap-tab-label { font-size: 13px; }
}

/* Plan rows: approve and reject */
.cap-mini, .cap-mini-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 9999px;
  font: 600 12.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cap-mini { background: var(--btn-fill); border: 1px solid var(--btn-fill); color: #ffffff; }
.cap-mini:hover { background: var(--btn-fill-hover); border-color: var(--btn-fill-hover); }
.cap-mini-ghost { background: transparent; border: 1px solid transparent; color: var(--ink-soft); }
.cap-mini-ghost:hover { background: var(--paper-cool); }
.cap-mini:focus-visible, .cap-mini-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Rationale disclosure */
.cap-why summary { list-style: none; }
.cap-why summary::-webkit-details-marker { display: none; }
.cap-why summary:hover { color: var(--ink); }
.cap-why-chev { transition: transform .2s ease; }
.cap-why[open] .cap-why-chev { transform: rotate(90deg); }
body{margin:0}
/* Scale and cut, phones (640 px and narrower). Desktop and tablets never see these rules:
   the phone-only pieces below are hidden above 640 px and every other rule sits in the media query. */
.cap-scale-res, .cap-scale-meta-sm, .cap-scale-sk-stat, .cap-scale-sk-why { display: none; }
@media (max-width: 640px) {
  /* One column of cards, evenly spaced: trigger, Hudson, plan */
  .cap-scale-cols { gap: 12px !important; }

  /* One Hudson card. The one-line trace and the projected spend share one grid cell,
     so the card is the same height from the first frame and the swap never moves the page. */
  .cap-scale-msg { display: none !important; }
  .cap-scale-body { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cap-scale-body > * { grid-area: 1 / 1; min-width: 0; }
  .cap-scale-trace { align-self: center; transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s; }
  /* Before Hudson starts, the first step waits in grey instead of leaving the card empty */
  .cap-scale-trace > .cap-step.is-wait:first-child { display: flex !important; }
  .cap-scale-trace.cap-scale-gone { opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .cap-scale-res { display: flex; flex-direction: column; gap: 2px; align-self: center; }
  .cap-scale-res.cap-rv.is-out { visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .cap-scale-res.cap-rv.is-in { visibility: visible; transition: opacity .45s ease .15s, transform .45s cubic-bezier(.2,.7,.2,1) .15s, visibility 0s linear .15s; }

  /* Plan rows: one structure for every row.
     Line 1: action chip left, status right. Line 2: thumbnail, then name and metric line. Line 3: Why, full width. */
  .cap-scale-row {
    display: grid !important; grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: minmax(40px, auto) auto; grid-template-areas: "act act stat" "img txt txt";
    gap: 10px 12px !important; align-items: center !important; padding: 14px 18px !important;
  }
  .cap-scale-row.cap-scale-why-row { grid-template-rows: minmax(40px, auto) auto auto; grid-template-areas: "act act stat" "img txt txt" "why why why"; }
  .cap-scale-hero { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
  .cap-scale-dc { display: contents !important; }
  .cap-scale-act { grid-area: act; margin: 0 !important; }
  .cap-scale-stat { grid-area: stat; justify-self: end; margin: 0 !important; }
  .cap-scale-img { grid-area: img; width: 40px !important; height: 50px !important; margin: 0 !important; }
  .cap-scale-txt { grid-area: txt; min-width: 0; text-wrap: pretty; }
  .cap-scale-name { font-size: 15px !important; line-height: 20px; }
  .cap-scale-meta-sm { display: block; }
  .cap-scale-why { grid-area: why; text-wrap: pretty; }
  .cap-scale-list { padding: 0 !important; }
  /* Approve and Reject: 40 px tap targets */
  .cap-scale-row .cap-mini, .cap-scale-row .cap-mini-ghost { height: 40px; padding: 0 14px; font-size: 13px; }

  /* Placeholder rows mirror the real rows, so the plan fills in where it already stands */
  .cap-scale-sk { padding-top: 0 !important; }
  .cap-scale-skx { display: none !important; }
  .cap-scale-sk .cap-scale-row + .cap-scale-row { border-top: 1px solid rgba(14,16,20,0.06); }
  .cap-scale-sk-stat { display: block; grid-area: stat; justify-self: end; width: 128px; height: 24px; border-radius: 9999px; background: #f4f5f8; }
  .cap-scale-sk-why { display: block; grid-area: why; height: 60px; border-radius: 10px; background: var(--paper-soft); }
}
.hudson-head[data-astro-cid-lcdefpme].bento-head {
  margin: 0 auto;
  text-align: center;
}

.hudson-head[data-astro-cid-lcdefpme].bento-head p[data-astro-cid-lcdefpme] {
  margin-left: auto;
  margin-right: auto;
}

.hudson-ctas[data-astro-cid-lcdefpme] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hudson-home[data-astro-cid-lcdefpme] > .container[data-astro-cid-lcdefpme] {
  padding-bottom: 0;
}

.hudson-embed[data-astro-cid-lcdefpme] {
  max-width: 1360px;
  margin: 0 auto;
  font-size: medium;
  line-height: normal;
}

.hudson-embed[data-astro-cid-lcdefpme] p {
  text-wrap: wrap;
}

.hudson-embed[data-astro-cid-lcdefpme] img {
  display: inline;
  max-width: none;
}

@media (width >= 761px) {
  .bento[data-astro-cid-lcdefpme].is-measurement .is-mcp[data-astro-cid-lcdefpme] {
    grid-column: 3;
    grid-row: 2;
  }

  .bento[data-astro-cid-lcdefpme].is-measurement .is-tof[data-astro-cid-lcdefpme].is-tof {
    grid-column: 1 / span 2;
    grid-row: 2;
  }
}

@media (width <= 1099px) {
  .bento[data-astro-cid-lcdefpme].is-measurement .is-tof[data-astro-cid-lcdefpme].is-tof {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

.mcp-ask[data-astro-cid-lcdefpme] {
  display: flex;
  align-items: flex-start;
}

.mcp-ask-window[data-astro-cid-lcdefpme] {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px #0e10140a;
}

.mcp-ask-head[data-astro-cid-lcdefpme] {
  display: grid;
  align-items: center;
  min-height: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.mcp-ask-client[data-astro-cid-lcdefpme] {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mcp-ask-client[data-astro-cid-lcdefpme] img[data-astro-cid-lcdefpme] {
  width: 14px;
  height: 14px;
}

.mcp-ask-body[data-astro-cid-lcdefpme] {
  display: grid;
}

.mcp-ask-scene[data-astro-cid-lcdefpme] {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mcp-ask-q[data-astro-cid-lcdefpme] {
  align-self: flex-end;
  max-width: 88%;
  margin: 0;
  padding: 7px 11px;
  border-radius: 12px 12px 4px;
  background: var(--paper-sunken);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.35;
}

.mcp-ask-rest[data-astro-cid-lcdefpme] {
  visibility: hidden;
}

.mcp-ask-a[data-astro-cid-lcdefpme] {
  display: grid;
  align-items: center;
  min-height: 18px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
}

.mcp-ask-dots[data-astro-cid-lcdefpme], .mcp-ask-text[data-astro-cid-lcdefpme] {
  grid-area: 1 / 1;
}

.mcp-ask-dots[data-astro-cid-lcdefpme] {
  display: inline-flex;
  gap: 3px;
}

.mcp-ask-dots[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme] {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-subtle);
}

.mcp-ask-card[data-astro-cid-lcdefpme] {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--paper-cool);
}

.mcp-ask-row[data-astro-cid-lcdefpme] {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.mcp-ask-row[data-astro-cid-lcdefpme] b[data-astro-cid-lcdefpme], .mcp-ask-kpi[data-astro-cid-lcdefpme] b[data-astro-cid-lcdefpme] {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mcp-ask-track[data-astro-cid-lcdefpme] {
  height: 6px;
  border-radius: var(--pill);
  background: var(--line);
}

.mcp-ask-track[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme] {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: 0;
}

.mcp-ask-card[data-astro-cid-lcdefpme].is-kpi {
  gap: 2px;
}

.mcp-ask-kpi-label[data-astro-cid-lcdefpme] {
  font-size: 11px;
  color: var(--ink-muted);
}

.mcp-ask-kpi[data-astro-cid-lcdefpme] {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.mcp-ask-kpi[data-astro-cid-lcdefpme] b[data-astro-cid-lcdefpme] {
  font-size: 22px;
  letter-spacing: -.01em;
}

.mcp-ask-kpi[data-astro-cid-lcdefpme] em[data-astro-cid-lcdefpme] {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.mcp-ask-client[data-astro-cid-lcdefpme], .mcp-ask-scene[data-astro-cid-lcdefpme] {
  transition: opacity .35s var(--ease);
}

.mcp-ask-client[data-astro-cid-lcdefpme]:not(.is-on), .mcp-ask-scene[data-astro-cid-lcdefpme]:not(.is-on) {
  opacity: 0;
}

.mcp-ask-q[data-astro-cid-lcdefpme], .mcp-ask-text[data-astro-cid-lcdefpme], .mcp-ask-card[data-astro-cid-lcdefpme] {
  transition: opacity .35s var(--ease),
            transform .35s var(--ease);
}

.mcp-ask-scene[data-astro-cid-lcdefpme]:not(.is-asked) .mcp-ask-q[data-astro-cid-lcdefpme] {
  opacity: 0;
  transform: translateY(6px);
}

.mcp-ask-scene[data-astro-cid-lcdefpme]:not(.is-answered) .mcp-ask-text[data-astro-cid-lcdefpme] {
  opacity: 0;
  transform: translateY(4px);
}

.mcp-ask-scene[data-astro-cid-lcdefpme]:not(.is-answered) .mcp-ask-card[data-astro-cid-lcdefpme] {
  opacity: 0;
  transform: translateY(6px);
}

.mcp-ask-track[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme] {
  transition: transform .7s var(--ease) .2s;
}

.mcp-ask-scene[data-astro-cid-lcdefpme]:not(.is-answered) .mcp-ask-track[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme] {
  transform: scaleX(0);
  transition: none;
}

.mcp-ask-dots[data-astro-cid-lcdefpme] {
  opacity: 0;
  transition: opacity .2s var(--ease);
}

.mcp-ask-scene[data-astro-cid-lcdefpme].is-thinking .mcp-ask-dots[data-astro-cid-lcdefpme] {
  opacity: 1;
}

.mcp-ask-scene[data-astro-cid-lcdefpme].is-thinking .mcp-ask-dots[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme] {
  animation: .9s ease-in-out infinite mcp-ask-blink;
}

.mcp-ask-scene[data-astro-cid-lcdefpme].is-thinking .mcp-ask-dots[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme]:nth-child(2) {
  animation-delay: .15s;
}

.mcp-ask-scene[data-astro-cid-lcdefpme].is-thinking .mcp-ask-dots[data-astro-cid-lcdefpme] i[data-astro-cid-lcdefpme]:nth-child(3) {
  animation-delay: .3s;
}

.mcp-ask-scene[data-astro-cid-lcdefpme].is-typing .mcp-ask-typed[data-astro-cid-lcdefpme]:after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin: 0 -2px 0 1px;
  vertical-align: -.2em;
  background: currentColor;
  animation: 1s step-end infinite mcp-ask-caret;
}

@keyframes mcp-ask-blink {
  0%, 100% {
    opacity: .35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes mcp-ask-caret {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcp-ask[data-astro-cid-lcdefpme] [data-astro-cid-lcdefpme], .mcp-ask[data-astro-cid-lcdefpme] [data-astro-cid-lcdefpme]:after {
    transition: none;
    animation: none;
  }
}
/* homepage section styles (global; loaded per-route) */

    /* This bespoke page doesn't link shell.css, so the prototype has NO global
       heading text-wrap:balance — only the hero h1 is balanced (hand-tuned). Our
       global.css balances all h1-h4, so reset section headings to wrap to match
       the prototype's line breaks. (is:global, only loads on this page.) */
    h2,
    h3,
    h4 {
        text-wrap: wrap;
    }

    /* ===== Warm-verdant accent treatment =====
     Adopted from /playground R4-C1 (chosen 2026-06-11). Replaces the flat
     forest --accent fill on highlight text + button CTAs with a dithered
     warm-verdant gradient.
       - Highlight text (hero accent, CTA-band accent, $3B+ stat, "source
         of truth" emphasis): gradient clipped to the glyphs + a 22s
         background-position drift so the dither breathes. No hover.
       - Button CTAs (.nav-cta / .hero-email-btn / .btn-primary): flat green
         with a subtle vertical sheen (lighter on top), NO dither. Two static
         states only — rest, and a slightly lighter hover. Top/bottom stops are
         @property colors so the hover interpolates smoothly. */
    @property --cta-top {
        syntax: "<color>";
        inherits: false;
        initial-value: #3a8159;
    }
    @property --cta-bot {
        syntax: "<color>";
        inherits: false;
        initial-value: #2c6645;
    }
    :root {
        /* Monotonic dark → light ramp, pure left-to-right. Moderate tonal range
       (centered on the accent) — a visible fade, but not near-black → pale. */
        --grad-verdant: linear-gradient(
            90deg,
            #234f37 0%,
            #2f6e4b 42%,
            #4a875a 76%,
            #6ba870 100%
        );
    }
    /* Section titles carry no gradient (2026-11-24): only the quote band's
     bold phrase keeps the verdant ramp. Exactly 100% so the full dark→light
     ramp maps across the phrase, identically on each line of a wrap. */
    .quote-center blockquote b {
        background-size: 100% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-image: var(--grad-verdant);
    }
    /* The $3B+ stat opts OUT of the verdant gradient — flat accent green
     instead, since the gradient clashed at large display sizes. */
    .proof-cell.head .stat-value {
        color: var(--accent);
    }
    /* Button CTAs — flat green with a subtle top-down sheen (lighter on top),
     no dither. The @property stops let :hover interpolate smoothly. */
    .hero-email-btn,
    .btn.btn-primary {
        background-color: var(--btn-fill);
        background-image: none;
        transition:
            background-color 0.25s var(--ease),
            transform 0.25s var(--ease);
    }
    .hero-email-btn:hover,
    .btn.btn-primary:hover {
        background-color: var(--btn-fill-hover);
    }

    /* ===== Hero stage — 3-step stepper + filmstrip carousel =====
     Driven by a SINGLE JS clock (see script at end of file): a step counter
     0->1->2 writes data-step on .hero-stage and .is-active on the centred
     scene every 4s. The gradient, the active chip, and the centred card all
     key off that one attribute, so they switch on the exact same tick and can
     never drift apart. Each card's micro-anim (sparklines draw, cursor clicks
     Approve all, checks resolve top-to-bottom) is a one-shot that replays
     whenever its scene becomes .is-active. Hover pauses the clock. */
    .hero-stage {
        position: relative;
        width: 100%;
        max-width: none; /* full container width, rail-to-rail */
        min-height: 560px;
        border-radius: 12px; /* rounded panel against the square rails — matches the proof grid below */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        z-index: 2;
        color: var(--ink);
        /* Opt the whole stage out of scroll anchoring. In the mobile accordion the
       inner content oscillates (~425<->675px) as scenes collapse/expand while
       the stage itself clips to a fixed height. With the default (auto) the
       browser can pick an anchor node inside that oscillating region and shift
       scrollY to "hold it steady" — so while you're scrolled PAST the hero the
       page gets tugged up/down each rotation even though the gradient never
       resizes. Suppressing anchoring for the subtree stops the tug. */
        overflow-anchor: none;
    }

    /* background gradient layers — opacity follows data-step */
    .sc-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        opacity: 0;
        transition: opacity 0.8s var(--ease);
    }
    .sc-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
        background-size: 180px 180px;
        mix-blend-mode: overlay;
        opacity: 0.85;
        pointer-events: none;
    }
    /* The three dither layers are the tokens.css hero scene gradients. */
    .sc-bg.is-verd {
        background: var(--scene-verd);
    }
    .sc-bg.is-warm {
        background: var(--scene-warm);
    }
    .sc-bg.is-blue {
        background: var(--scene-blue);
    }
    /* Hudson leads in green: verdant at step 0 (agentic media buying), then
     warm (analyze), then blue (track). */
    .hero-stage[data-step="0"] .sc-bg.is-verd,
    .hero-stage[data-step="1"] .sc-bg.is-warm,
    .hero-stage[data-step="2"] .sc-bg.is-blue {
        opacity: 1;
    }

    /* steps + stage above the gradient */
    .sc-steps {
        position: relative;
        z-index: 3;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 36px;
        padding: 36px 28px 0;
        flex-wrap: wrap;
    }
    .sc-stage {
        position: relative;
        z-index: 2;
        flex: 1;
        margin: 28px 0 40px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 13%,
            #000 87%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 13%,
            #000 87%,
            transparent 100%
        );
    }

    /* step tabs (option C treatment) — clickable text buttons: dim inactive,
     white active, with a sliding underline + a subtle arrow between each.
     Click jumps to that layer; absent interaction the JS clock carousels. */
    .sc-step {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 6px 2px 14px;
        font-size: 14px;
        font-weight: 600;
        background: none;
        border: 0;
        font-family: inherit;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    /* snappy base transition so hover feels responsive in/out */
    .sc-step .lbl {
        position: relative;
        z-index: 1;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.5);
        transition: color 0.2s var(--ease);
    }
    /* subtle hover brighten on inactive tabs */
    .sc-step:hover .lbl {
        color: rgba(255, 255, 255, 0.82);
    }
    .sc-step:focus {
        outline: none;
    }
    .sc-step:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.7);
        outline-offset: 3px;
        border-radius: 5px;
    }
    /* active tab → white, with the delayed transition so it doesn't resolve
     before the 0.8s background crossfade on auto-advance */
    .hero-stage[data-step="0"] .sc-step-1 .lbl,
    .hero-stage[data-step="1"] .sc-step-2 .lbl,
    .hero-stage[data-step="2"] .sc-step-3 .lbl {
        color: #fff;
        transition: color 0.6s var(--ease) 0.2s;
    }
    /* Round 6 (Jerome): inter-tab arrows removed. They implied a linear sequence
     between the three layers that doesn't hold for customers — the tabs now read
     as peers. (Reorder to lead with Agentic media buying is a separate, larger
     change to the data-step choreography below.) */
    /* underline is positioned (left/width) by the JS clock under the active tab */
    .sc-underline {
        position: absolute;
        bottom: 6px;
        left: 0;
        width: 0;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        pointer-events: none;
        opacity: 0;
        transition:
            left 0.55s var(--ease) 0.2s,
            width 0.55s var(--ease) 0.2s,
            opacity 0.35s var(--ease);
    }

    /* filmstrip: centred dominant card, neighbours peek + tuck under.
     Slot per (step, scene) — all driven by data-step, transitions handle the morph.
     Each peek is placed from the real panel widths, so the gap between the
     centre panel and either peek is the same --sc-gap whichever panel is
     centred: offset = half the scaled centre + gap + half the scaled peek.
     --sc-w1..3 default to the cards' widths and the hero clock overwrites
     them with the measured ones. */
    .hero-stage {
        --sc-w1: 560px;
        --sc-w2: 560px;
        --sc-w3: 400px;
        --sc-centre: 1.4;
        --sc-peek: 0.7;
        --sc-gap: 64px;
        --sc-off-l: calc(
            var(--sc-wc) * var(--sc-centre) / 2 + var(--sc-gap) + var(--sc-wl) *
                var(--sc-peek) / 2
        );
        --sc-off-r: calc(
            var(--sc-wc) * var(--sc-centre) / 2 + var(--sc-gap) + var(--sc-wr) *
                var(--sc-peek) / 2
        );
    }
    /* which panel is centre / left peek / right peek at each step */
    .hero-stage[data-step="0"] {
        --sc-wc: var(--sc-w1);
        --sc-wl: var(--sc-w3);
        --sc-wr: var(--sc-w2);
    }
    .hero-stage[data-step="1"] {
        --sc-wc: var(--sc-w2);
        --sc-wl: var(--sc-w1);
        --sc-wr: var(--sc-w3);
    }
    .hero-stage[data-step="2"] {
        --sc-wc: var(--sc-w3);
        --sc-wl: var(--sc-w2);
        --sc-wr: var(--sc-w1);
    }
    .sc-scene {
        position: absolute;
        top: 50%;
        left: 50%;
        width: fit-content;
        max-width: 74%;
        transform: translate(calc(-50% + 300px), -50%) scale(0.8);
        opacity: 0.35;
        z-index: 1;
        transition:
            transform 0.7s var(--ease),
            opacity 0.7s var(--ease);
        will-change: transform, opacity;
    }
    /* CENTRE */
    .hero-stage[data-step="0"] .scene-1,
    .hero-stage[data-step="1"] .scene-2,
    .hero-stage[data-step="2"] .scene-3 {
        transform: translate(-50%, -50%) scale(var(--sc-centre));
        opacity: 1;
        z-index: 3;
    }
    /* LEFT — pushed out + scaled down so the dominant centre card reads big;
     neighbours peek + fade at the edges. */
    .hero-stage[data-step="1"] .scene-1,
    .hero-stage[data-step="2"] .scene-2,
    .hero-stage[data-step="0"] .scene-3 {
        transform: translate(calc(-50% - var(--sc-off-l)), -50%)
            scale(var(--sc-peek));
        opacity: 0.35;
        z-index: 1;
    }
    /* RIGHT */
    .hero-stage[data-step="2"] .scene-1,
    .hero-stage[data-step="0"] .scene-2,
    .hero-stage[data-step="1"] .scene-3 {
        transform: translate(calc(-50% + var(--sc-off-r)), -50%)
            scale(var(--sc-peek));
        opacity: 0.35;
        z-index: 1;
    }
    /* The neighbour that swaps sides (the hero clock marks it .is-wrapping)
     would slide across both other panels: it hides for the first half of the
     move, while it crosses them, then fades back in at its new side. */
    .sc-scene.is-wrapping {
        animation: sc-wrap 0.7s linear;
    }
    @keyframes sc-wrap {
        0%,
        55% {
            opacity: 0;
        }
    }

    /* accordion bar header — desktop hides it; the mobile (<=820px) block turns
     each scene into a stacked accordion item with this as its tappable bar. */
    .sc-scene-head {
        display: none;
    }

    /* shared card chrome */
    .sc-card {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 18px 44px -18px rgba(14, 16, 20, 0.3);
    }
    .sc-num {
        font-variant-numeric: tabular-nums;
        font-weight: 500;
        color: var(--ink);
    }
    .sc-card .r {
        text-align: right;
    }
    .sc-brand {
        width: 18px;
        height: 18px;
        object-fit: contain;
        display: block;
        flex: 0 0 auto;
    }
    .sc-brand.is-round {
        border-radius: 4px;
    }

    /* card 1 — analyze table (sparklines draw L->R when active) */
    .sc-analyze {
        width: 560px;
        max-width: 100%;
    }
    .sc-thead,
    .sc-row {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr 1.25fr 0.7fr 0.7fr 0.75fr;
        column-gap: 14px;
        align-items: center;
        padding: 12px 20px;
    }
    .sc-thead {
        font-size: 10px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink-subtle);
        font-weight: 600;
        background: var(--paper-soft);
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
    }
    /* Stacked CPA header: "CPA" over a first-/last-touch qualifier so the two
     CPA columns are self-explanatory (Jerome R8). */
    .sc-th-2 {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
        line-height: 1.15;
    }
    .sc-th-2 em {
        font-style: normal;
        font-size: 8.5px;
        letter-spacing: 0.03em;
        opacity: 0.7;
        text-transform: none;
    }
    .sc-row {
        font-size: 13px;
        padding: 13px 20px;
    }
    .sc-row + .sc-row {
        border-top: 1px solid var(--line);
    }
    .sc-channel {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        font-weight: 600;
        color: var(--ink);
    }
    .sc-nv {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        justify-self: end;
    }
    .sc-nv .bar {
        width: 34px;
        height: 4px;
        border-radius: 999px;
        background: var(--paper-sunken);
        position: relative;
        overflow: hidden;
    }
    .sc-nv .bar i {
        position: absolute;
        inset: 0;
        right: auto;
        border-radius: inherit;
        display: block;
    }
    .sc-nv .bar i.hi {
        background: var(--accent);
    }
    .sc-nv .bar i.lo {
        background: var(--color-role-cool-1);
    }
    .sc-spark {
        position: relative;
        justify-self: end;
        display: inline-block;
        width: 56px;
        height: 20px;
    }
    .sc-spark svg {
        display: block;
        overflow: visible;
        width: 56px;
        height: 20px;
    }
    /* trend line + dot are drawn/resolved by default so a peeking card reads
     complete; they replay (line draws L->R, dot rides the curve ahead of it)
     only while .is-active. */
    .sc-spk-line {
        stroke-dasharray: 56;
        stroke-dashoffset: 0;
    }
    .sc-spk-dot {
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        offset-anchor: center;
        offset-distance: 100%;
        opacity: 1;
    }
    .sc-spk-dot.is-down {
        background: var(--color-role-warm-deep);
    }

    /* ===== Attribute & analyze — row cascade + trend draw on focus =====
     Headers stay put (never animated). The four rows drop in quickly when the
     card centres, THEN each trend line draws left-to-right with its dot leading.
     `backwards` fill holds every element in its from-state through its delay, so
     an inactive (peeking) card still shows the table fully populated + drawn.
     Rows are nth-child(2..5) of .sc-analyze (child 1 is the header). */
    .sc-scene.is-active .sc-row:nth-child(2) {
        animation: scRowIn 0.34s var(--ease) 0.1s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(3) {
        animation: scRowIn 0.34s var(--ease) 0.24s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(4) {
        animation: scRowIn 0.34s var(--ease) 0.38s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(5) {
        animation: scRowIn 0.34s var(--ease) 0.52s backwards;
    }
    @keyframes scRowIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* trends begin after the cascade (~1.0s in), staggered; the dot starts a hair
     before its line so it leads the drawing tip. */
    .sc-scene.is-active .sc-row:nth-child(2) .sc-spk-dot {
        animation: scDotRide 0.8s linear 1s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(3) .sc-spk-dot {
        animation: scDotRide 0.8s linear 1.12s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(4) .sc-spk-dot {
        animation: scDotRide 0.8s linear 1.24s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(5) .sc-spk-dot {
        animation: scDotRide 0.8s linear 1.36s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(2) .sc-spk-line {
        animation: scSpark 0.8s linear 1.06s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(3) .sc-spk-line {
        animation: scSpark 0.8s linear 1.18s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(4) .sc-spk-line {
        animation: scSpark 0.8s linear 1.3s backwards;
    }
    .sc-scene.is-active .sc-row:nth-child(5) .sc-spk-line {
        animation: scSpark 0.8s linear 1.42s backwards;
    }
    @keyframes scSpark {
        from {
            stroke-dashoffset: 56;
        }
        to {
            stroke-dashoffset: 0;
        }
    }
    @keyframes scDotRide {
        0% {
            offset-distance: 0%;
            opacity: 0;
        }
        14% {
            opacity: 1;
        }
        100% {
            offset-distance: 100%;
            opacity: 1;
        }
    }

    /* card 1 — agentic media buying: Hudson in a chat, in the style of the
     /hudson MCP band (2026-11-24, replaces the overnight-run card). A user
     asks Hudson to do what the growth meeting agreed; Hudson reads the
     meeting and answers, then the 5 actions it took land as cards: launched
     3 ads, scaled 2 winners (+20% ticks up), raised the target (2.2 to 2.4),
     shared the creative report, and a BFCM structure that waits for approval
     until Review is pressed. Beats (one-shot JS runner in the hero clock
     below, .at-N on .sc-amb): 1 the question types out, 2 Hudson reads,
     3 Hudson answers, 4 to 8 the cards, 9 the approval. Numbers tick via
     .amb-tk. Peeking scenes and reduced motion show the finished chat;
     re-entry snaps back via .no-anim. Phones: the cards become one row that
     slides to each new card. Like the first hero chat, it runs straight on the
     dither: the question and Hudson's reply (beside its mark) are solid white
     bubbles, like the white action cards. No glass on them (no backdrop-filter,
     translucent fill or hairline border): on the dither inside the scaled,
     masked stage those read as shaded bands along the bubbles' edges. Chip colours as
     /hudson: green done, blue info, amber needs approval. */
    .sc-amb {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 560px;
        max-width: 100%;
        color: var(--ink);
        font-size: 13px;
        line-height: 1.4;
        text-align: left;
    }
    .sc-amb p {
        margin: 0;
    }
    /* the question: a solid white bubble, right-aligned, typed out. Every letter
     is its own span from the first frame and typing only turns the untyped
     ones transparent, so the layout never changes while it types: the bubble
     fades in at its final size (never an empty stub) and each word sits on its
     final line. A growing string (typed + untyped rest spans) re-broke the
     lines under text-wrap: pretty: at 430px "growth" typed onto line 2, then
     jumped to line 1 with the last letter. No caret: on the dither a white
     one read as a white bar. */
    .sc-amb .amb-q {
        display: flex;
        justify-content: flex-end;
        min-height: 34px;
    }
    .sc-amb .amb-q p {
        max-width: 82%;
        padding: 8px 13px; /* the old 1px border's room, so the size holds */
        border-radius: 12px 4px 12px 12px;
        background: var(--paper);
        box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.3);
        color: var(--ink);
        opacity: 0;
        transition: opacity 0.2s var(--ease);
    }
    .sc-amb.at-1 .amb-q p {
        opacity: 1;
    }
    .sc-amb .amb-typed > .is-untyped {
        color: transparent;
    }
    /* Hudson: its mark beside a solid white bubble with typing dots, then the reply */
    .sc-amb .amb-h {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 34px;
        opacity: 0;
        transition: opacity 0.3s var(--ease);
    }
    .sc-amb.at-2 .amb-h {
        opacity: 1;
    }
    /* the generated host div becomes a flex box so it adds no line box; the
     white logo tile stands off the green dither on its own */
    .sc-amb .amb-av,
    .sc-amb .amb-av .dc-host {
        display: flex;
        flex: none;
    }
    .sc-amb .amb-h p {
        padding: 8px 13px; /* the old 1px border's room, so the size holds */
        border-radius: 4px 12px 12px 12px;
        background: var(--paper);
        box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.3);
    }
    .sc-amb .amb-h-said,
    .sc-amb.at-3 .amb-h-read {
        display: none;
    }
    .sc-amb.at-3 .amb-h-said {
        display: inline;
    }
    .sc-amb .amb-dots {
        display: inline-flex;
        gap: 3px;
        vertical-align: middle;
    }
    .sc-amb .amb-dots i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--ink-subtle);
        animation: amb-pulse 1s var(--ease) infinite;
    }
    .sc-amb .amb-dots i:nth-child(2) {
        animation-delay: 0.15s;
    }
    .sc-amb .amb-dots i:nth-child(3) {
        animation-delay: 0.3s;
    }
    @keyframes amb-pulse {
        0%,
        100% {
            opacity: 0.3;
        }
        50% {
            opacity: 1;
        }
    }
    /* the actions: three cards, then two wider ones. They play at half the
     original speed (2026-11-25: every card's rise, its own animation, the
     phone row's slide and the beat spacing from the reply on are doubled) */
    .sc-amb .amb-cards-vp {
        margin-top: 2px;
    }
    .sc-amb .amb-cards {
        position: relative;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        transition: transform 1s var(--ease);
    }
    /* each card is invisible until it lands, then rises in (as on /hudson) */
    .sc-amb .amb-card {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
        padding: 7px 10px 8px;
        border: 1px solid var(--line-strong);
        border-radius: 10px;
        background: var(--paper);
        box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transform: translateY(8px) scale(0.98);
        transition:
            opacity 0.7s var(--ease),
            transform 0.7s var(--ease);
    }
    .sc-amb .amb-card.c4,
    .sc-amb .amb-card.c5 {
        grid-column: span 3;
    }
    .sc-amb.at-4 .c1,
    .sc-amb.at-5 .c2,
    .sc-amb.at-6 .c3,
    .sc-amb.at-7 .c4,
    .sc-amb.at-8 .c5 {
        opacity: 1;
        transform: none;
    }
    .sc-amb .amb-card-h {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        min-height: 18px;
    }
    .sc-amb .amb-card-h > b {
        overflow: hidden;
        font-size: 12px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sc-amb .amb-chip {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        flex: none;
        padding: 2px 7px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
    }
    .sc-amb .amb-chip svg {
        width: 10px;
        height: 10px;
        flex: none;
    }
    .sc-amb .amb-chip.is-pos {
        background: var(--accent-soft);
        color: var(--accent-deep);
    }
    .sc-amb .amb-chip.is-info {
        background: var(--mist);
        color: var(--cool-ink);
    }
    .sc-amb .amb-chip.is-pend {
        background: var(--amber-soft);
        color: var(--amber-ink);
    }
    /* two states in one grid cell (chip, button): the second takes over at
     the approval */
    .sc-amb .amb-swap {
        display: grid;
        flex: none;
        align-items: center;
        justify-items: end;
    }
    .sc-amb .amb-swap > * {
        grid-area: 1 / 1;
        transition: opacity 0.6s var(--ease);
    }
    .sc-amb .amb-swap > :last-child {
        opacity: 0;
    }
    .sc-amb.at-9 .amb-swap > :first-child {
        opacity: 0;
        transition-delay: 0.7s;
    }
    .sc-amb.at-9 .amb-swap > :last-child {
        opacity: 1;
        transition-delay: 0.7s;
    }
    .sc-amb .amb-ads img,
    .sc-amb .amb-fan img {
        display: block;
        height: 44px;
        border-radius: 5px;
        object-fit: cover;
        outline: 1px solid rgba(14, 16, 20, 0.08);
        outline-offset: -1px;
    }
    /* launched: the three new ads pop in one after another */
    .sc-amb .amb-ads {
        display: flex;
        gap: 5px;
        height: 44px;
    }
    .sc-amb .amb-ads img {
        flex: 1;
        min-width: 0;
        opacity: 0;
        transform: scale(0.85);
        transition:
            opacity 0.6s var(--ease),
            transform 0.8s var(--ease);
    }
    .sc-amb .amb-ads img:nth-child(2) {
        transition-delay: 0.24s;
    }
    .sc-amb .amb-ads img:nth-child(3) {
        transition-delay: 0.48s;
    }
    .sc-amb.at-4 .amb-ads img {
        opacity: 1;
        transform: none;
    }
    /* scaled: the two winners fan out like cards in a hand, then the budget
     lift ticks up */
    .sc-amb .amb-scale {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 44px;
    }
    .sc-amb .amb-fan {
        position: relative;
        flex: none;
        width: 60px;
        height: 44px;
    }
    .sc-amb .amb-fan img {
        position: absolute;
        top: 0;
        left: 12px;
        width: 35px;
        box-shadow:
            0 0 0 1.5px var(--paper),
            0 3px 8px -3px rgba(14, 16, 20, 0.4);
        transition: transform 1s var(--ease) 0.3s;
    }
    .sc-amb.at-5 .amb-fan img:first-child {
        transform: translateX(-11px) rotate(-7deg);
    }
    .sc-amb.at-5 .amb-fan img:last-child {
        transform: translateX(12px) rotate(6deg);
    }
    .sc-amb .amb-up,
    .sc-amb .amb-goal {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .sc-amb .amb-up b,
    .sc-amb .amb-goal-n {
        display: inline-flex;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        font-variant-numeric: tabular-nums;
    }
    .sc-amb .amb-up b {
        color: var(--accent-deep);
    }
    .sc-amb .amb-up b svg {
        width: 15px;
        height: 15px;
        margin-right: 4px;
    }
    .sc-amb .amb-up > span,
    .sc-amb .amb-goal > span:last-child {
        overflow: hidden;
        color: var(--ink-muted);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* the target: the old value in grey, the new one ticks up */
    .sc-amb .amb-goal {
        justify-content: center;
        height: 44px;
    }
    .sc-amb .amb-goal-n {
        gap: 6px;
    }
    .sc-amb .amb-goal-n s {
        color: var(--ink-subtle);
        text-decoration: none;
    }
    .sc-amb .amb-goal-n svg {
        width: 14px;
        height: 14px;
        color: var(--ink-muted);
    }
    /* the creative report, posted in Slack */
    .sc-amb .amb-slack {
        display: flex;
        gap: 8px;
        height: 44px;
        padding: 6px 9px;
        border-radius: 7px;
        background: var(--paper-cool);
    }
    .sc-amb .amb-slack img {
        flex: none;
        width: 14px;
        height: 14px;
        margin-top: 2px;
    }
    .sc-amb .amb-slack > span {
        display: flex;
        flex-direction: column;
        min-width: 0;
        font-size: 11.5px;
        line-height: 1.35;
    }
    .sc-amb .amb-slack > span > span {
        overflow: hidden;
        color: var(--ink-soft);
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* BFCM waits for approval: Review is pressed, then it goes live */
    .sc-amb .amb-bfcm {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        height: 44px;
    }
    .sc-amb .amb-bfcm-n {
        display: flex;
        flex-direction: column;
        gap: 2px;
        color: var(--ink-soft);
        font-size: 11.5px;
        line-height: 1.3;
    }
    .sc-amb .amb-bfcm-n b {
        margin-right: 3px;
        color: var(--ink);
        font-size: 14px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }
    .sc-amb .amb-btn {
        padding: 5px 14px;
        border-radius: 999px;
        background: var(--btn-fill);
        color: #fff;
        font-size: 11.5px;
        font-weight: 600;
    }
    .sc-amb.at-9 .amb-btn {
        animation: amb-press 0.7s var(--ease);
    }
    @keyframes amb-press {
        50% {
            transform: scale(0.9);
            background: var(--btn-fill-hover);
        }
    }
    .sc-amb .amb-live {
        color: var(--ink-muted);
        font-size: 11.5px;
        white-space: nowrap;
    }
    /* instant reset on scene re-entry (descendants only, so the phone
     accordion still animates the card itself) */
    .sc-amb.no-anim * {
        transition: none !important;
    }

    /* card 3 — track (checks load then resolve top-to-bottom when active) */
    .sc-track {
        width: 400px;
        max-width: 100%;
    }
    .sc-tk-row {
        display: grid;
        grid-template-columns: 22px 1fr auto;
        align-items: center;
        gap: 11px;
        padding: 13px 18px;
    }
    .sc-tk-row + .sc-tk-row {
        border-top: 1px solid var(--line);
    }
    .sc-tk-name {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--ink);
    }
    /* Metric deltas sat at the inherited 18px body size (no rule) — read too big
     next to the 13.5px channel name. Size in line + green for the up delta (R8). */
    .sc-pill {
        font-size: 12.5px;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        color: var(--ink);
    }
    .sc-pill.is-up {
        color: var(--accent-deep);
    }
    .sc-tk-checks {
        border-top: 1px solid var(--line);
        background: var(--paper-soft);
        padding: 14px 18px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .sc-check {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--ink);
    }
    .sc-tick {
        position: relative;
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
    }
    .sc-tick .ring {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 1.5px solid rgba(14, 16, 20, 0.18);
    }
    .sc-tick .fill {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--accent);
        display: grid;
        place-items: center;
        transform: scale(0);
        opacity: 0;
        transform-origin: center;
    }
    .sc-tick .fill svg {
        width: 9px;
        height: 9px;
        display: block;
    }
    .sc-scene.is-active .sc-check:nth-child(1) .fill {
        animation: scChk 0.45s var(--ease) 0.7s forwards;
    }
    .sc-scene.is-active .sc-check:nth-child(2) .fill {
        animation: scChk 0.45s var(--ease) 1s forwards;
    }
    .sc-scene.is-active .sc-check:nth-child(3) .fill {
        animation: scChk 0.45s var(--ease) 1.3s forwards;
    }
    @keyframes scChk {
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        /* Still cycle through the three chapters (the content matters), but as a
       gentle opacity crossfade — no sliding/scaling filmstrip, no micro-anims.
       Cards stack centred; only the active one shows. The JS clock keeps
       running; we remove the *motion*, not the rotation. */
        .sc-underline,
        .sc-step .lbl {
            transition: none;
        }
        .sc-scene {
            transform: translate(-50%, -50%) scale(1) !important;
            opacity: 0 !important;
            z-index: 1 !important;
            transition: opacity 0.6s var(--ease) !important;
        }
        .sc-scene.is-active {
            opacity: 1 !important;
            z-index: 3 !important;
        }
        .sc-row,
        .sc-spk-line,
        .sc-spk-dot,
        .sc-tick .fill {
            animation: none !important;
        }
        .sc-amb * {
            transition: none !important;
            animation: none !important;
        }
        /* resolved end states so each chapter reads complete the moment it shows */
        .sc-row {
            opacity: 1;
            transform: none;
        }
        .sc-spk-line {
            stroke-dashoffset: 0;
        }
        .sc-spk-dot {
            opacity: 1;
            offset-distance: 100%;
        }
        .sc-tick .fill {
            opacity: 1;
            transform: scale(1);
        }
    }

    @media (max-width: 960px) {
        section.hero .container {
            padding: 56px 24px 72px;
            gap: 40px;
        }
        .hero-stage {
            min-height: 440px;
        }
        .sc-steps {
            gap: 18px;
            padding: 26px 16px 0;
        }
        .sc-step {
            font-size: 12px;
            padding: 6px 2px 12px;
        }
    }
    /* 821 to 960px: the stage is ~312px tall, too short for Hudson's chat at
     the filmstrip's 1.4 scale, so the centred chat scales to 1.05 instead
     (the peek offsets follow --sc-centre) */
    @media (min-width: 821px) and (max-width: 960px) {
        .hero-stage[data-step="0"] {
            --sc-centre: 1.05;
        }
    }

    /* ===== MOBILE HERO — vertical accordion stack (<=820px) =====
     The desktop filmstrip can't fit a phone, so below 820px the same three
     layers become a vertical stack: the active layer (driven by the same JS
     clock / data-step / .is-active) expands to its animated card, the other
     two collapse to slim colour-coded bars. Tap a bar to jump. Placed after
     the reduced-motion block so it wins for mobile + reduced-motion too. */
    @media (max-width: 820px) {
        section.hero .container {
            padding: 40px 16px 64px;
            gap: 26px;
        }
        /* HARD height, not min-height: while one card collapses and the next expands
       the stack momentarily sums taller than any resting scene, and a min-height
       lets that overshoot push everything below the hero up and down each cycle.
       A fixed height + overflow clip keeps the stage inert — the brief
       mid-transition overlap clips inside the stage instead of moving the page.
       Sized to the tallest resting scene (~486px) + headroom. */
        .hero-stage {
            height: 500px;
            border-radius: 14px;
            background: var(--paper);
            overflow: clip;
        }
        .hero-stage .sc-bg {
            display: none !important;
        }
        .hero-stage .sc-steps {
            display: none !important;
        }
        .hero-stage .sc-stage {
            position: static !important;
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: initial;
            margin: 0;
            overflow: visible;
            -webkit-mask: none !important;
            mask: none !important;
        }
        /* each scene → a stacked accordion item carrying its own layer gradient */
        .hero-stage .sc-scene {
            position: static !important;
            transform: none !important;
            opacity: 1 !important;
            width: auto;
            max-width: none;
            z-index: auto !important;
            border-radius: 14px;
            overflow: hidden;
            transition: none;
        }
        .hero-stage .sc-scene::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            mix-blend-mode: overlay;
            opacity: 0.8;
            background-size: 170px 170px;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
        }
        .hero-stage .sc-scene > * {
            position: relative;
            z-index: 1;
        }
        .hero-stage .sc-scene[data-layer="verd"] {
            background:
                radial-gradient(
                    ellipse 95% 120% at 100% -10%,
                    rgba(238, 242, 226, 0.6) 0%,
                    rgba(200, 218, 170, 0.28) 30%,
                    transparent 70%
                ),
                linear-gradient(150deg, #7b9560 0%, #5a7038 55%, #3f4e26 100%);
        }
        .hero-stage .sc-scene[data-layer="warm"] {
            background:
                radial-gradient(
                    ellipse 80% 120% at 20% 10%,
                    #a89cc4 0%,
                    transparent 60%
                ),
                radial-gradient(
                    ellipse 80% 120% at 90% 100%,
                    #e8744a 0%,
                    transparent 60%
                ),
                linear-gradient(150deg, #b3a4c8 0%, #d49870 55%, #b88858 100%);
        }
        .hero-stage .sc-scene[data-layer="blue"] {
            background:
                radial-gradient(
                    ellipse 90% 120% at 85% -10%,
                    rgba(244, 248, 252, 0.55) 0%,
                    transparent 60%
                ),
                linear-gradient(150deg, #a8bcd6 0%, #7890b0 55%, #51647f 100%);
        }
        /* tappable bar */
        .hero-stage .sc-scene-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            background: none;
            border: 0;
            cursor: pointer;
            text-align: left;
            font: 600 14px var(--font-ui);
            color: #fff;
            padding: 16px 18px;
        }
        .hero-stage .sc-scene-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            flex: 0 0 auto;
            transition:
                box-shadow 0.3s var(--ease),
                background 0.3s var(--ease);
        }
        .hero-stage .sc-scene.is-active .sc-scene-dot {
            background: #fff;
            box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
        }
        /* collapse / expand the card */
        .hero-stage .sc-card {
            width: auto !important;
            max-width: none !important;
            margin: 0 14px 0;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            padding-top: 0;
            padding-bottom: 0;
            box-shadow: 0 12px 26px -16px rgba(14, 16, 20, 0.55);
            transition:
                max-height 0.5s var(--ease),
                opacity 0.35s var(--ease),
                padding 0.5s var(--ease),
                margin 0.5s var(--ease);
        }
        .hero-stage .sc-scene.is-active .sc-card {
            max-height: 520px;
            opacity: 1;
            padding-top: 16px;
            padding-bottom: 16px;
            margin: 0 14px 16px;
        }
        /* analyze table → compact 4-col (drop First/Last CPA) */
        .hero-stage .sc-analyze {
            width: auto;
        }
        .hero-stage .sc-analyze .sc-thead,
        .hero-stage .sc-analyze .sc-row {
            grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
            column-gap: 8px;
            padding-left: 14px;
            padding-right: 14px;
        }
        .hero-stage .sc-analyze .sc-thead > :nth-child(4),
        .hero-stage .sc-analyze .sc-thead > :nth-child(5),
        .hero-stage .sc-analyze .sc-row > :nth-child(4),
        .hero-stage .sc-analyze .sc-row > :nth-child(5) {
            display: none;
        }
        .hero-stage .sc-analyze .sc-row {
            font-size: 12px;
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .hero-stage .sc-track {
            width: auto;
        }
        /* Hudson's chat → the same accordion expand/collapse the cards get */
        .hero-stage .sc-amb {
            width: auto;
            max-width: none;
            overflow: hidden;
            margin: 0 14px;
            max-height: 0;
            opacity: 0;
            transition:
                max-height 0.5s var(--ease),
                opacity 0.35s var(--ease),
                margin 0.5s var(--ease);
        }
        .hero-stage .sc-scene.is-active .sc-amb {
            max-height: 320px;
            opacity: 1;
            margin: 0 14px 8px;
        }
        /* room for two lines, so nothing jumps while the question types and
         Hudson replies */
        .hero-stage .sc-amb .amb-q,
        .hero-stage .sc-amb .amb-h {
            min-height: 51px;
        }
        /* the cards become one row; the script slides it to each new card and
         the next one peeks in from the right */
        .hero-stage .sc-amb .amb-cards-vp {
            overflow: hidden;
            padding-bottom: 10px; /* room for the cards' shadow */
        }
        .hero-stage .sc-amb .amb-cards {
            display: flex;
        }
        .hero-stage .sc-amb .amb-card {
            flex: 0 0 82%;
        }
    }

    /* ===== RAMP-STYLE PROOF GRID =====
     7 cols × 2 rows. Col 1 = headline cell, spans both rows.
     Some logo cells are "case-study" cells with a "+" badge.
     A single floating expansion card auto-cycles between four 2x2 footprints. */
    section.proof {
        padding: 0;
        background: var(--paper);
    }
    section.proof > .container {
        padding: 0;
    }
    /* Ramp-style: off-white panel showing through as gap "dividers" between
     white rounded tiles. No actual border lines. */
    .proof-grid {
        position: relative;
        display: grid;
        grid-template-columns: 1.4fr repeat(6, 1fr);
        gap: 2px;
        padding: 10px;
        background: var(--paper-cool);
        border-radius: 0;
    }
    .proof-cell {
        position: relative;
        aspect-ratio: 1 / 1;
        background: var(--paper);
        border-radius: 14px;
        display: grid;
        place-items: center;
        transition:
            background 0.3s var(--ease),
            opacity 0.5s var(--ease);
    }
    .proof-cell:hover {
        background: var(--paper);
    }
    .proof-cell img {
        max-width: 60%;
        max-height: 42px;
        object-fit: contain;
        /* brightness(0) flattens every logo to a dark silhouette regardless of
       whether the source PNG is white-on-transparent or dark-on-transparent. */
        filter: brightness(0);
        opacity: 0.42;
        transition: opacity 0.3s var(--ease);
        user-select: none;
        -webkit-user-drag: none;
    }
    .proof-cell:hover img {
        opacity: 0.85;
    }
    .proof-cell.is-covered {
        opacity: 0;
        transition-delay: 0.05s;
    }

    /* The headline cell — col 1, spans both rows. Leads with the $3B+ stat as
     the cell's primary visual hook, supporting copy below. */
    .proof-cell.head {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: auto;
        background: transparent;
        border-radius: 0;
        padding: 26px 40px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
    }
    .proof-cell.head:hover {
        background: transparent;
    }
    .proof-cell.head .head-stat {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .proof-cell.head .stat-value {
        font-size: clamp(40px, 4.4vw, 56px);
        line-height: 1;
        letter-spacing: -0.04em;
        font-weight: 600;
        /* Flat accent green (set in the highlight-text block above) — opts
       out of the verdant gradient that the other accent hooks use. */
    }
    .proof-cell.head .stat-copy {
        margin: 0;
        font-size: var(--text-card);
        line-height: var(--text-card--line-height);
        letter-spacing: -0.005em;
        font-weight: var(--text-card--font-weight);
        color: var(--ink);
        max-width: 100%;
    }
    .proof-cell.head .stat-copy b {
        color: var(--ink);
        font-weight: 600;
    }
    .proof-cell.head .head-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink);
    }
    .proof-cell.head .head-cta .arr {
        transition: transform 0.25s var(--ease);
    }
    .proof-cell.head .head-cta:hover .arr {
        transform: translateX(4px);
    }

    /* Mobile-only social-proof scroller — the 12 logos as six columns of two
     stacked tiles in a horizontal snap-scroll strip. Columns are sized so the
     next pair always peeks in from the right edge — the visible cut-off is the
     scroll affordance. User-driven (no auto-advance). Hidden on desktop (the
     interactive .proof-grid owns wide viewports); revealed in the ≤800px
     block below. */
    .proof-mobile {
        display: none;
    }
    /* The 3×4 grid nests inside .proof-mobile's own padded cool panel — no
     double panel chrome, and always 3 columns regardless of sp-grid's own
     width breakpoints. */
    .proof-mobile .sp-grid {
        /* display:grid + the tile aspect-ratio live in TrustedBy's scoped style,
           which doesn't reach here — restate them so the tiles form the compact
           square grid instead of stacking full-height. */
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        padding: 0;
        background: transparent;
        margin-top: 8px;
    }
    .proof-mobile .sp-tile {
        position: relative;
        aspect-ratio: 1 / 1;
        background: var(--paper);
        border-radius: 14px;
        display: grid;
        place-items: center;
        min-width: 0;
        color: inherit;
    }
    .proof-mobile .sp-tile img {
        max-width: 62%;
        max-height: 32px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: brightness(0);
    }
    /* Case-study tiles are anchors carrying an .sp-arr chip. Its global styling
       lives in TrustedBy's scoped block, which doesn't reach these inline tiles —
       so pin it as an absolute corner chip (matching the prototype's global
       social-proof .sp-arr). Without this it grid-places as a second row and
       shoves the logo up, breaking the centering on every case-study tile. */
    .proof-mobile .sp-tile .sp-arr {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--paper);
        border: 1px solid var(--line-strong);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ink-muted);
        transition:
            background 0.25s var(--ease),
            border-color 0.25s var(--ease),
            color 0.25s var(--ease),
            transform 0.25s var(--ease);
    }
    .proof-mobile .sp-tile .sp-arr svg {
        width: 13px;
        height: 13px;
        display: block;
    }
    .proof-mobile a.sp-tile:hover .sp-arr {
        background: var(--ink);
        border-color: var(--ink);
        color: var(--paper);
        transform: translateX(1px);
    }

    /* "+" badge — text glyph, same family/weight as the → / ↓ arrows used
     elsewhere. Lighter circle so it recedes until hovered. The "+" glyph has
     a baseline offset that makes it sit ~1px low optically — countered by
     padding-bottom which shifts the centered content up by half its value. */
    .proof-cell .plus {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--paper);
        border: 1px solid var(--line-strong);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        font-weight: 400;
        line-height: 1;
        padding-bottom: 2px;
        color: var(--ink-muted);
        transition:
            transform 0.4s var(--ease),
            opacity 0.4s var(--ease),
            border-color 0.25s var(--ease),
            color 0.25s var(--ease);
    }
    .proof-cell:hover .plus {
        border-color: var(--ink-soft);
        color: var(--ink-soft);
    }
    .proof-cell.is-active .plus {
        transform: rotate(45deg) scale(1.05);
    }
    .proof-cell.is-covered .plus {
        opacity: 0;
    }

    /* The floating expansion card — covers a 2×2 footprint at the active position */
    .proof-expand {
        position: absolute;
        border-radius: 18px;
        overflow: hidden;
        background: var(--ink);
        color: var(--paper);
        pointer-events: auto;
        /* Open state: opacity rides a steep ease-out — most of the fade happens
       in the first third of the balloon animation, then settles. */
        transition:
            top 0.95s var(--ease),
            left 0.95s var(--ease),
            width 0.95s var(--ease),
            height 0.95s var(--ease),
            opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 30px 60px -30px rgba(14, 16, 20, 0.35);
        z-index: 2;
    }
    /* Hidden state — used both as the boot/idle resting state and as the brief
     case-to-case fade-out (Phase 1 of setActive). Short ease-in. */
    .proof-expand.is-hidden {
        opacity: 0;
        pointer-events: none;
        transition:
            top 0.95s var(--ease),
            left 0.95s var(--ease),
            width 0.95s var(--ease),
            height 0.95s var(--ease),
            opacity 0.4s cubic-bezier(0.7, 0, 0.84, 0);
    }
    /* Auto-collapse fade-out: opacity rides a steep ease-in matched to the
     shrink duration — card stays near full opacity for most of the shrink,
     then drops fast at the very end. */
    .proof-expand.is-collapsing {
        opacity: 0;
        transition:
            top 0.95s var(--ease),
            left 0.95s var(--ease),
            width 0.95s var(--ease),
            height 0.95s var(--ease),
            opacity 0.95s cubic-bezier(0.7, 0, 0.84, 0);
    }
    /* Text + link layer that scales with the box. Fades in late on open (so
     the box starts ballooning before the text appears) and fades out fast
     on close (so the text disappears before it can overlap itself as the
     box shrinks back into the cell). */
    .proof-expand .ex-content {
        position: absolute;
        inset: 0;
        opacity: 1;
        transform: scale(1);
        transform-origin: center center;
        transition:
            opacity 0.35s var(--ease) 0.18s,
            transform 0.45s var(--ease) 0.18s;
        pointer-events: none;
    }
    .proof-expand .ex-content > * {
        pointer-events: auto;
    }
    .proof-expand.is-hidden .ex-content,
    .proof-expand.is-collapsing .ex-content {
        opacity: 0;
        transform: scale(0.88);
        transition:
            opacity 0.3s var(--ease),
            transform 0.42s var(--ease);
    }
    .proof-expand::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                180deg,
                rgba(14, 16, 20, 0) 30%,
                rgba(14, 16, 20, 0.65) 100%
            ),
            linear-gradient(135deg, var(--grad-2), var(--grad-3), var(--grad-4));
        background-blend-mode: multiply;
        transition: opacity 0.5s var(--ease);
    }
    .proof-expand .ex-photo {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            135deg,
            var(--grad-4),
            var(--grad-2),
            var(--grad-1)
        );
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .proof-expand .ex-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            transparent 40%,
            rgba(14, 16, 20, 0.7) 100%
        );
    }
    .proof-expand .ex-brand {
        position: absolute;
        top: 22px;
        left: 22px;
        height: 28px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
        object-position: left center;
        /* Flatten any brand mark (color or monochrome) to a clean white logo on the
       dark expansion card. Matches the dark-theme TrustedBy treatment. */
        filter: brightness(0) invert(1)
            drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
        z-index: 2;
        user-select: none;
        -webkit-user-drag: none;
    }
    /* Close button — sits opposite the brand mark. Inverted styling of the
     cell-level "+" badge so it reads as a clear "exit this case" on the
     dark card. Lives inside .ex-content, so the card's open/close opacity
     covers its show/hide for free. */
    .proof-expand .ex-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--paper);
        cursor: pointer;
        padding: 0;
        z-index: 4;
        transition:
            background 0.2s var(--ease),
            border-color 0.2s var(--ease),
            transform 0.2s var(--ease);
    }
    .proof-expand .ex-close:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.45);
    }
    .proof-expand .ex-close:active {
        transform: scale(0.94);
    }
    .proof-expand .ex-close svg {
        display: block;
    }
    /* Metric + oneliner + CTA share one footer. The value takes a full
     row; the oneliner and "View case study" sit beside each other and
     wrap as a unit when the 2×2 card is too narrow for both (just above
     the 800px mobile cutoff the CTA would otherwise collapse the label
     track to a few pixels). */
    .proof-expand .ex-body {
        position: absolute;
        left: 22px;
        right: 22px;
        bottom: 22px;
        z-index: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        column-gap: 16px;
        row-gap: 4px;
    }
    .proof-expand .ex-value {
        flex: 1 0 100%;
        font-size: clamp(36px, 4vw, 56px);
        line-height: 1;
        letter-spacing: -0.04em;
        font-weight: 500;
        color: var(--paper);
        margin: 0 0 6px;
    }
    .proof-expand .ex-label {
        flex: 1 1 8rem;
        min-width: 0;
        overflow-wrap: break-word;
        font-size: var(--text-label);
        line-height: var(--text-label--line-height);
        color: rgba(255, 255, 255, 0.78);
        font-weight: 400;
    }
    /* "Read the case study" link — inline text, opposite the KPI label.
     No pill, no chrome. nowrap so the CTA never splits; margin-left:auto
     keeps it right-aligned if it wraps onto its own row. Same
     --text-label measure as the oneliner so wrapped lines and the CTA
     share one caption stack. */
    .proof-expand .ex-link {
        flex: 0 0 auto;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--paper);
        font-size: var(--text-label);
        line-height: var(--text-label--line-height);
        font-weight: var(--text-label--font-weight);
        white-space: nowrap;
        pointer-events: auto;
        transition: opacity 0.25s var(--ease);
    }
    .proof-expand .ex-link:hover {
        opacity: 0.78;
    }
    .proof-expand .ex-link .ex-arrow {
        display: inline-flex;
        font-size: var(--text-label);
        transition: transform 0.25s var(--ease);
    }
    .proof-expand .ex-link:hover .ex-arrow {
        transform: translateX(2px);
    }
    .proof-expand.is-hidden {
        opacity: 0;
    }

    /* ===== MODULES — Atio-style blueprint storytelling ===== */
    section.modules {
        padding: 0;
        position: relative;
    }
    /* Soft blue radial backdrop, sibling pattern to .cta-bg. Lives in a child
     element so it doesn't fight the global section::before divider or the
     full-bleed modules-item hatched margins below. */
    .modules-bg {
        position: absolute;
        inset: 0;
        background:
            radial-gradient(40% 22% at 85% 6%, var(--grad-2), transparent 60%),
            radial-gradient(35% 25% at 14% 32%, var(--grad-2), transparent 60%),
            radial-gradient(40% 25% at 88% 64%, var(--grad-2), transparent 62%),
            radial-gradient(42% 25% at 20% 90%, var(--grad-2), transparent 60%);
        pointer-events: none;
        z-index: 0;
        opacity: 0.7;
    }
    section.modules > * {
        position: relative;
        z-index: 1;
    }
    /* The article rows' hatched full-bleed background is transparent between
     stripes, so the section gradient reads through the outer margins. */

    /* Header strip at the top of each section — soft Hanken Grotesk label,
     not monospace. The body font carries through; we just tighten size,
     weight, and tracking so it reads as a quiet caption. */
    .modules-strip {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink-subtle);
        border-bottom: 1px solid var(--line);
    }
    .modules-strip .idx {
        color: var(--ink-muted);
        margin-right: 10px;
        font-weight: 500;
    }

    /* Section heading block: short feature title sitting above the article
     rows. No scroll-jack — flows normally. */
    .modules-title {
        padding: 144px 0 160px;
        max-width: 880px;
    }
    .modules-title h2 {
        margin: 0;
        font-size: var(--text-h2);
        line-height: var(--text-h2--line-height);
        letter-spacing: var(--text-h2--letter-spacing);
        font-weight: var(--text-h2--font-weight);
        color: var(--ink);
    }
    .modules-title .sub {
        margin: 12px 0 0;
        font-size: clamp(20px, 1.6vw, 22px);
        line-height: 1.5;
        letter-spacing: -0.005em;
        font-weight: 400;
        color: var(--ink-muted);
    }

    /* Item rows just need a top divider. The outer-margin hatching is now
     provided by the body pseudos (the section is no longer no-hatch), so
     painting another hatch here would stack on top and read 2–3× as dense. */
    .modules-item {
        border-top: 1px solid var(--line);
    }
    .modules-item .container {
        background: var(--paper);
        position: relative;
    }
    .modules-item-strip {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink-subtle);
    }
    .modules-item-strip .idx {
        color: var(--ink-muted);
        margin-right: 10px;
        font-weight: 500;
    }

    .modules-item-grid {
        display: grid;
        grid-template-columns: 4fr 8fr;
        column-gap: 56px;
        row-gap: 32px;
        padding: 64px 0;
    }

    .item-copy {
        max-width: 36ch;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .item-copy h3 {
        margin: 0;
        font-size: 28px;
        letter-spacing: -0.015em;
        line-height: 1.15;
        font-weight: 600;
        color: var(--ink);
    }
    .item-copy p {
        margin: 0;
        font-size: 17px;
        line-height: 1.6;
        color: var(--ink-muted);
    }
    .item-copy .cta {
        margin-top: 8px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--accent);
    }
    .item-copy .cta:hover {
        color: var(--accent-deep);
    }
    .item-copy .cta .arr {
        transition: transform 0.25s var(--ease);
    }
    .item-copy .cta:hover .arr {
        transform: translateX(3px);
    }

    .item-focus {
        aspect-ratio: 16 / 11;
        background: linear-gradient(
            135deg,
            var(--grad-4) 0%,
            var(--grad-3) 40%,
            var(--grad-2) 75%,
            var(--grad-1) 100%
        );
        position: relative;
        overflow: hidden;
    }
    .item-focus::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(
                60% 50% at 20% 20%,
                rgba(255, 255, 255, 0.55),
                transparent 70%
            ),
            radial-gradient(
                60% 50% at 85% 80%,
                rgba(205, 217, 232, 0.45),
                transparent 70%
            );
        pointer-events: none;
    }

    /* Layered focus variant: a dithered green gradient backdrop with a product
     UI placeholder card floating in front, slightly offset. Used on the
     Agentic Media Buying row to anchor the section visually. */
    .item-focus-stack {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 11;
    }
    .focus-gradient {
        position: absolute;
        top: 0;
        right: 0;
        width: 80%;
        height: 100%;
        border-radius: 22px;
        overflow: hidden;
        background: linear-gradient(
            180deg,
            #c9d4cf 0%,
            #93a594 25%,
            #5f7855 50%,
            #3a5230 75%,
            #1c2c15 100%
        );
    }
    .focus-gradient::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
        background-size: 220px 220px;
        mix-blend-mode: overlay;
        opacity: 0.5;
    }
    .focus-product {
        position: absolute;
        top: 12%;
        left: 0;
        width: 74%;
        aspect-ratio: 5 / 4;
        border-radius: 0;
        overflow: hidden;
        background: linear-gradient(
            135deg,
            var(--grad-4) 0%,
            var(--grad-3) 40%,
            var(--grad-2) 75%,
            var(--grad-1) 100%
        );
        display: grid;
        place-items: center;
        font-size: 13px;
        color: var(--ink-subtle);
        letter-spacing: 0;
    }
    .focus-product::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(
                60% 50% at 20% 20%,
                rgba(255, 255, 255, 0.55),
                transparent 70%
            ),
            radial-gradient(
                60% 50% at 85% 80%,
                rgba(205, 217, 232, 0.45),
                transparent 70%
            );
        pointer-events: none;
    }
    .focus-product > * {
        position: relative;
        z-index: 1;
    }

    /* ===== BENTO SECTIONS — replaces blueprint scroll-stack on Agentic + Measurement.
     11 Labs-inspired 2-up + 3-up mosaic. Warm dither on Agentic, cool dither
     on Measurement — the alternation is baked in so every new bento page
     inherits the pattern. ~12px corner radii per Round 3 (down from 20–24px).
     No eyebrow strips, no scroll-jacked title. ===== */
    section.modules.bento-section {
        padding: 96px 0 77px;
    }
    .bento-section > .container {
        display: flex;
        flex-direction: column;
        gap: 64px;
    }
    .bento-head {
        max-width: 880px;
    }
    .bento-head h2 {
        margin: 0;
        font-size: var(--text-h2);
        line-height: var(--text-h2--line-height);
        letter-spacing: var(--text-h2--letter-spacing);
        font-weight: var(--text-h2--font-weight);
        color: var(--ink);
    }
    .bento-head p {
        margin: 16px 0 0;
        font-size: 18px;
        line-height: 1.55;
        letter-spacing: 0;
        font-weight: 400;
        color: var(--ink-muted);
        max-width: 76ch;
    }
    .bento {
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-template-rows: minmax(360px, auto) auto;
        gap: 12px;
    }
    .bento-tile {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        background: var(--paper-cool);
        padding: 28px;
        display: flex;
        flex-direction: column;
        border: 1px solid var(--line);
    }
    .bento-tile .meta {
        margin-top: auto;
    }
    .bento-tile h3 {
        margin: 0 0 8px;
        font-size: 15px;
        font-weight: 500;
        color: var(--ink-muted);
        letter-spacing: -0.005em;
    }
    .bento-tile p {
        margin: 0;
        max-width: 44ch;
        font-size: 20px;
        line-height: 1.45;
        color: var(--ink);
        letter-spacing: -0.01em;
    }

    /* Featured tile — Cool dither (Measurement) */
    .bento-tile.is-featured.is-cool {
        background:
      /* Soft, oversized bloom anchored just off the top-right corner. Three
         stops with a sage mid-tone so the highlight melts into the green
         instead of reading as a hard white disc. */
            radial-gradient(
                ellipse 95% 95% at 100% -5%,
                rgba(238, 242, 226, 0.65) 0%,
                rgba(200, 218, 170, 0.32) 28%,
                rgba(140, 165, 110, 0.1) 60%,
                transparent 90%
            ),
            /* Mid-tone wash through the body for depth. */
            radial-gradient(
                    ellipse 75% 45% at 45% 55%,
                    #6e8c4a 0%,
                    transparent 70%
                ),
            /* Deep anchor at the bottom so the SHIFT pills read against forest green. */
            radial-gradient(
                    ellipse 100% 55% at 50% 100%,
                    #3a4a26 0%,
                    transparent 60%
                ),
            /* Base top→bottom ramp: sage → forest. */
            linear-gradient(
                    180deg,
                    #7b9560 0%,
                    #5a7038 45%,
                    #3f4e26 85%,
                    #2f3a1c 100%
                );
        color: #ffffff;
        border: 0;
        min-height: 360px;
    }
    .bento-tile.is-featured::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
        background-size: 180px 180px;
        mix-blend-mode: overlay;
        opacity: 0.85;
        pointer-events: none;
    }
    .bento-tile.is-featured h3 {
        color: rgba(255, 255, 255, 0.72);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }
    .bento-tile.is-featured p {
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    }
    .bento-tile.is-featured .meta {
        position: relative;
        z-index: 1;
    }

    /* MTA bar-comparison mock for Measurement featured */
    .bento-bars {
        position: relative;
        z-index: 1;
        background: rgba(14, 16, 20, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }
    .bento-bars .row {
        display: grid;
        grid-template-columns: 96px 1fr 52px;
        align-items: center;
        gap: 12px;
        font-size: 12px;
        color: #ffffff;
        font-weight: 500;
    }
    .bento-bars .row .label {
        letter-spacing: 0.02em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }
    .bento-bars .row .bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        overflow: hidden;
    }
    .bento-bars .row .bar i {
        display: block;
        height: 100%;
        background: linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.85) 100%
        );
    }
    .bento-bars .row .v {
        text-align: right;
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    }

    /* Right-column product tile — small inline mock card */
    .bento-mock {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 6px 18px rgba(15, 13, 46, 0.06);
    }
    .bento-mock .head {
        font-size: 10.5px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--ink-subtle);
        font-weight: 600;
        padding-bottom: 2px;
    }
    .bento-mock .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: var(--paper-cool);
        border-radius: 6px;
        padding: 7px 10px;
        font-size: 12px;
        color: var(--ink);
    }
    .bento-mock .row .v {
        font-weight: 600;
        color: var(--accent-deep);
        background: rgba(47, 110, 75, 0.1);
        border-radius: 999px;
        padding: 2px 8px;
        font-size: 10.5px;
    }

    /* ===== Bento tiles as links =====================================
     Both featured tiles route to their respective product page when
     clicked. Keep the tile's existing flex/column behaviour. */
    a.bento-tile {
        text-decoration: none;
        color: inherit;
        /* Subtle hover lift, distinct from the .bento-small hover so featured
       tiles still feel "important" rather than card-y. */
        transition:
            transform 0.25s var(--ease),
            box-shadow 0.25s var(--ease);
    }
    /* Card-lift on hover intentionally suppressed in the new Agentic layout
     (Option C): only the corner arrow gets focused, not the whole tile.
     Keep the lift for any other section that uses a.bento-tile so we
     don't regress elsewhere. */
    a.bento-tile:not(.is-featured):not(.is-mcp):not(
            .is-mta
        ):not(.is-convtrack):not(.is-mktg):hover {
        transform: translateY(-2px);
    }

    /* Clickable-affordance arrow chip on the featured tiles, mirroring the
     `.bento-small .icon` arrow swap. Bottom-right corner so it doesn't fight
     the chat illustration above it. */
    .bento-tile.is-featured .tile-arrow {
        position: absolute;
        bottom: 24px;
        right: 24px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.45);
        display: grid;
        place-items: center;
        color: var(--ink);
        z-index: 3;
        pointer-events: none;
        transition:
            background 0.25s var(--ease),
            color 0.25s var(--ease),
            border-color 0.25s var(--ease),
            transform 0.25s var(--ease);
    }
    .bento-tile.is-featured .tile-arrow svg {
        width: 16px;
        height: 16px;
        display: block;
    }
    /* On hover, the chip turns brand green with a small diagonal kick — same
     accent + nudge pattern as the `.bento-small` icon swap below. */
    .bento-tile.is-featured:hover .tile-arrow {
        background: var(--accent);
        border-color: var(--accent);
        color: #ffffff;
        transform: translate(2px, -2px);
    }
    /* Reserve right padding on the meta block so the description text doesn't
     run under the arrow chip. */
    .bento-tile.is-featured .meta {
        padding-right: 56px;
    }

    /* Bottom row — 2 small icon tiles (Routines + Self-learning). */
    .bento-row {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /* `.is-static` strips the click affordance for cards that don't deep-link
     (value props like Self-learning). No cursor pointer, no hover lift,
     and the icon's hover-arrow swap is suppressed. */
    .bento-small.is-static {
        cursor: default;
    }
    .bento-small.is-static:hover {
        background: var(--paper);
        transform: none;
    }
    .bento-small.is-static:hover .icon {
        background: var(--paper-cool);
        color: var(--ink);
        border-color: var(--line);
    }
    .bento-small {
        border-radius: 12px;
        border: 1px solid var(--line);
        background: var(--paper);
        padding: 22px;
        min-height: 220px;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        transition:
            background 0.18s var(--ease),
            transform 0.18s var(--ease);
    }
    .bento-small:hover {
        background: var(--paper-cool);
        transform: translateY(-1px);
    }
    .bento-small .icon {
        position: relative;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: var(--paper-cool);
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
        color: var(--ink);
        /* No fixed gap below — h3 below uses `margin-top: auto` to push the
       title + body to the bottom of the card. */
        margin-bottom: 0;
        flex: 0 0 auto;
        transition:
            background 0.18s var(--ease),
            color 0.18s var(--ease),
            border-color 0.18s var(--ease);
    }
    .bento-small .icon svg {
        width: 18px;
        height: 18px;
    }
    .bento-small .icon .ic-default,
    .bento-small .icon .ic-arrow {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        transition:
            opacity 0.18s var(--ease),
            transform 0.18s var(--ease);
    }
    .bento-small .icon .ic-arrow {
        opacity: 0;
        transform: translate(-2px, 2px);
    }
    .bento-small:hover .icon {
        background: var(--accent);
        color: #ffffff;
        border-color: var(--accent);
    }
    .bento-small:hover .icon .ic-default {
        opacity: 0;
        transform: translate(2px, -2px);
    }
    .bento-small:hover .icon .ic-arrow {
        opacity: 1;
        transform: translate(0, 0);
    }
    .bento-small h3 {
        /* margin-top: auto floats the title (and the paragraph beneath it)
       down to the bottom of the flex column. */
        margin: auto 0 6px 0;
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-muted);
    }
    .bento-small p {
        margin: 0;
        font-size: 16.5px;
        line-height: 1.4;
        color: var(--ink);
        letter-spacing: -0.005em;
    }

    /* Split layout — featured tile (tall) on the left, 2x2 quad of small
     tiles on the right. Used by the Measurement section. */
    .bento.is-split {
        /* 50/50 split: gives the right-hand 2×2 quad enough width that each card's
       body copy stops wrapping awkwardly. */
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    .bento.is-split .bento-tile.is-featured.is-tall {
        /* Shorter so the right-side quad reads as a 2×2 of near-square cards
       instead of tall rectangles, and the left tile's title block + chips
       don't have a big empty middle. */
        min-height: 500px;
        padding: 36px;
    }
    .bento-quad {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 12px;
    }
    .bento-quad .bento-small {
        min-height: 0;
    }

    /* Featured tile — tall variant: eyebrow + title + body + shift chips */
    .bento-tile.is-featured.is-tall .feat-eyebrow {
        position: relative;
        z-index: 1;
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.82);
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    }
    .bento-tile.is-featured.is-tall .feat-title {
        position: relative;
        z-index: 1;
        /* Eyebrow removed — title now sits at the top of the tile with no
       top offset. */
        margin: 0 0 18px;
        font-size: clamp(28px, 2.6vw, 36px);
        font-weight: 500;
        line-height: 1.08;
        letter-spacing: -0.02em;
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        /* Wider so the title can fill more of the tile horizontally. */
        max-width: 18ch;
    }
    .bento-tile.is-featured.is-tall .feat-body {
        position: relative;
        z-index: 1;
        margin: 0;
        /* Was 32ch, which wrapped this paragraph into four short lines.
       48ch lets it lay out as two fuller lines on this tile width. */
        max-width: 48ch;
        /* 18px — matches the sibling bento tiles' copy on this page (Round 12). */
        font-size: 18px;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.94);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    .bento-tile.is-featured.is-tall .feat-chips {
        position: relative;
        z-index: 1;
        margin-top: auto;
        padding-top: 28px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .bento-shift {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        background: rgba(14, 16, 20, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        font-size: 13px;
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(6px);
    }
    .bento-shift .tag {
        font-size: 10.5px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.95);
        background: rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        padding: 3px 10px;
        font-weight: 600;
        text-shadow: none;
    }
    .bento-shift .label {
        font-weight: 500;
    }
    .bento-shift .delta {
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

    /* ===== MEASUREMENT — 3-up + full-width TOF band (Round 8 restructure) =====
     Row 1: Multi-touch Attribution · Conversion Tracking · Marketing
     Analytics as three compact product tiles whose stages share a
     hairline-ledger language (no bounded row containers; soft-gray
     content so the subtitles lead). Row 2: "Justify top-of-funnel
     spend" as a full-width band on the cool dither. */
    .bento.is-measurement {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: minmax(320px, auto) auto;
        gap: 12px;
    }
    .bento.is-measurement .is-tof {
        grid-column: 1 / -1;
    }
    .bento.is-measurement .bento-tile {
        padding: 28px;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition:
            transform 0.22s var(--ease),
            border-color 0.22s var(--ease);
    }
    /* The three illustrations have different natural heights (rows / events /
     KPI grid). Pin them to a common height so the .meta beneath them starts
     at the same y in every tile — that is what top-aligns the titles. */
    .bento.is-measurement .ms-stage {
        flex: 0 0 auto;
        min-height: 180px;
    }
    /* Top-anchored, NOT bottom-anchored (margin-top: auto). Bottom-anchoring
     makes the title position depend on how many lines the body wraps to, so a
     3-line body pushes its title up out of line with its siblings. Anchoring
     the meta directly under the fixed-height stage keeps every title on the
     same line; bodies simply run further down the tile. */
    .bento.is-measurement .bento-tile .meta {
        margin-top: 0;
        padding-top: 28px;
    }
    /* Title-case h3 matching Self-learning — same canon as Agentic
     (design.md §2). Body slightly smaller + muted so the title leads. */
    .bento.is-measurement .bento-tile .meta h3 {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 6px;
        font-size: 20px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.015em;
        line-height: 1.15;
    }
    .bento.is-measurement .bento-tile .meta p {
        margin: 0;
        max-width: 40ch;
        font-size: 16.5px;
        font-weight: 400;
        color: var(--ink-muted);
        letter-spacing: -0.005em;
        line-height: 1.4;
    }
    /* Featured cool-dither tile inverts contrast like AMB does. */
    .bento.is-measurement .bento-tile.is-featured.is-cool .meta h3 {
        color: rgba(255, 255, 255, 0.65);
    }
    .bento.is-measurement .bento-tile.is-featured.is-cool .meta p {
        color: #fff;
    }
    /* Linked product tiles — NO card lift on hover, only the inline arrow
     reveals (same pattern as Agentic). Animations keep looping
     uninterrupted; hover never restarts them. */
    .bento.is-measurement a.bento-tile:hover {
        transform: none;
        border-color: var(--line);
    }
    /* Square w/ rounded corners — matches the Agentic section's arrow
     shape so both bento sections share one inline-arrow language. */
    .bento.is-measurement a.bento-tile .arrow-inline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: var(--accent);
        color: #fff;
        border: 1px solid transparent;
        opacity: 0;
        transform: translateX(-4px);
        transition:
            opacity 0.2s var(--ease),
            transform 0.2s var(--ease);
        flex-shrink: 0;
    }
    .bento.is-measurement a.bento-tile .arrow-inline svg {
        width: 13px;
        height: 13px;
    }
    .bento.is-measurement a.bento-tile:hover .arrow-inline {
        opacity: 1;
        transform: translate(0, 0);
    }
    .bento.is-measurement .bento-tile .tile-arrow {
        display: none;
    }

    /* Touch devices have no hover state, so the inline card arrows would never
     appear. Surface them at rest on no-hover pointers (the green chips ride
     their resting style) so the tap affordance reads on mobile. */
    @media (hover: none) {
        .bento.is-measurement a.bento-tile .arrow-inline {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Value-prop card (cool dither) — feat-title/feat-body restyled to
     match the Self-learning label canon (20px title-case white title +
     15px muted-white body). White text preserved for contrast against
     the cool dither bg. */
    .bento.is-measurement .bento-tile.is-featured.is-cool {
        min-height: 0;
        isolation: isolate;
    }
    .bento.is-measurement .bento-tile.is-featured.is-cool.is-tof {
        min-height: 260px;
    }
    .bento.is-measurement .feat-title {
        position: relative;
        z-index: 1;
        margin: 0 0 8px;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -0.015em;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    .bento.is-measurement .feat-body {
        position: relative;
        z-index: 1;
        margin: 0;
        max-width: 56ch;
        font-size: 16.5px;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: -0.005em;
        color: rgba(255, 255, 255, 0.78);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    .bento.is-measurement .feat-chips {
        position: relative;
        z-index: 1;
        margin-top: auto;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    @keyframes ms-shift-in {
        from {
            opacity: 0;
            transform: translateX(-8px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    .bento.is-measurement
        .is-featured.is-cool:hover
        .feat-chips
        .bento-shift:nth-child(1) {
        animation: ms-shift-in 0.4s var(--ease) both;
    }
    .bento.is-measurement
        .is-featured.is-cool:hover
        .feat-chips
        .bento-shift:nth-child(2) {
        animation: ms-shift-in 0.4s var(--ease) both 0.1s;
    }
    .bento.is-measurement
        .is-featured.is-cool:hover
        .feat-chips
        .bento-shift:nth-child(3) {
        animation: ms-shift-in 0.4s var(--ease) both 0.2s;
    }

    /* --- Justify TOF: production-style pie chart, restyled in Swiss Authority verdant. A white card holds the chart so it pops on the cool dither
     beneath. Three wedges + a "+15%" badge call out the increment that
     Converge unlocks. Hover replays the increment growth + badge entry. */
    /* Horizontal bar-chart "Share of ad spend" sitting directly on the
     cool-dither tile — no white card backdrop. Each row is a labeled
     track whose width represents its share. The TOF row's +15%
     increment fills in continuously to convey the Converge unlock. */
    /* --- Justify TOF: full-width band on the cool dither. Copy left; ONE
     thick stacked horizontal bar right. The TOF segment grows 20% → 35%
     (the +15% Converge unlocks) while Other fills the remainder; the
     legend percentages tick along with the growth (integer custom
     properties rendered via CSS counters, same trick as the
     self-learning autonomy readout) and the +15% pill fades in as the
     growth completes. Copy column is slightly wider than the chart so
     the body breaks without an orphaned last word. */
    .bento.is-measurement .is-tof {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 44px;
        align-items: center;
        min-height: 260px;
        padding-top: 44px;
        padding-bottom: 44px;
    }
    .is-tof .feat-copy {
        position: relative;
        z-index: 1;
    }
    .is-tof .tof-chart {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 13px;
        animation: tof-nums 6.5s ease-in-out infinite;
    }
    .is-tof .tof-cap {
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.82);
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    }
    .is-tof .tof-bar {
        display: flex;
        gap: 3px;
        height: 68px;
    }
    .is-tof .tof-bar .seg {
        border-radius: 8px;
    }
    .is-tof .tof-seg-tof {
        width: 20%;
        background: #eaf3ea;
    }
    /* The Converge increment is its own segment that grows in — reads as a
     portion ADDED (not the whole bar resizing), and its width is exactly the
     +15% the pill claims. Its fill is the SAME #eaf3ea as the base TOF segment
     and the +15% pill, so the bar and the pill state the same thing in the
     same colour; the 3px seam is what distinguishes base from increment. */
    .is-tof .tof-seg-add {
        width: 0%;
        background: #eaf3ea;
        animation: tof-add-grow 6.5s ease-in-out infinite;
    }
    .is-tof .tof-seg-other {
        flex: 1;
        background: rgba(255, 255, 255, 0.2);
    }
    .is-tof .tof-legend {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14.5px;
    }
    .is-tof .tof-legend .lg {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: rgba(255, 255, 255, 0.8);
    }
    /* Phones: keep each label on one line and let the row wrap, so
       "Top-of-funnel" never splits at its hyphen (same fix as the MTA page). */
    @media (max-width: 700px) {
        .is-tof .tof-legend {
            flex-wrap: wrap;
            gap: 10px 16px;
        }
        .is-tof .tof-legend .lg {
            white-space: nowrap;
        }
    }
    .is-tof .tof-legend .sw {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        flex: 0 0 auto;
    }
    .is-tof .tof-legend b {
        color: #fff;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        font-size: 16px;
    }
    .is-tof .tof-num-tof::after {
        counter-reset: tofpct var(--tof-pct);
        content: counter(tofpct) "%";
    }
    .is-tof .tof-num-oth::after {
        counter-reset: othpct var(--oth-pct);
        content: counter(othpct) "%";
    }
    .is-tof .tof-legend b.tof-delta {
        display: inline-flex;
        align-items: center;
        padding: 2px 8px;
        border-radius: 999px;
        background: #eaf3ea;
        color: var(--accent-deep);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: -0.005em;
        opacity: 0;
        animation: tof-delta-fade 6.5s ease-in-out infinite;
    }

    /* --- MTA stage: hairline ledger — Meta CPA by attribution model ---
     Caption (Meta logo + label) over three hairline-divided rows:
     model | verdict-colored track | soft-gray CPA | verdict chip. As
     models credit the upper funnel, the verdict shifts Pause → Hold →
     Scale; the fill color matches the verdict (pause red, hold orange,
     scale green). Bars grow in cascaded on a loop. */
    .mta-cap {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12.5px;
        font-weight: 500;
        color: var(--ink-subtle);
        margin-bottom: 2px;
    }
    .mta-cap img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .mta-rows {
        display: flex;
        flex-direction: column;
    }
    .mta-row {
        display: grid;
        grid-template-columns: 98px minmax(0, 1fr) 46px 58px;
        align-items: center;
        gap: 12px;
        padding: 13px 0;
        border-top: 1px solid var(--line);
    }
    .mta-row:first-of-type {
        border-top: 0;
    }
    .mta-model {
        font-size: 14px;
        font-weight: 500;
        color: var(--ink-soft);
        letter-spacing: -0.005em;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mta-track {
        height: 7px;
        border-radius: 4px;
        overflow: hidden;
    }
    .mta-track i {
        display: block;
        height: 100%;
        border-radius: 4px;
        transform-origin: left;
    }
    .mta-row.is-pause .mta-track {
        background: var(--paper-sunken);
    }
    .mta-row.is-pause .mta-track i {
        background: var(--ink-subtle);
    }
    .mta-row.is-hold .mta-track {
        background: var(--amber-soft);
    }
    .mta-row.is-hold .mta-track i {
        background: var(--color-role-warm-2);
    }
    .mta-row.is-scale .mta-track {
        background: var(--accent-mist);
    }
    .mta-row.is-scale .mta-track i {
        background: var(--accent);
    }
    .mta-val {
        font-size: 15px;
        font-weight: 600;
        color: var(--ink-muted);
        font-variant-numeric: tabular-nums;
        text-align: right;
        line-height: 1;
    }
    .mta-decision {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 3px 0;
        border-radius: 5px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
    }
    .mta-decision.is-pause {
        background: var(--paper-sunken);
        color: var(--ink-soft);
    }
    .mta-decision.is-hold {
        background: var(--amber-soft);
        color: var(--amber-ink);
    }
    .mta-decision.is-scale {
        background: var(--accent-soft);
        color: var(--accent-deep);
    }
    /* Bars grow in cascaded on a loop. */
    .mta-r1 .mta-track i {
        animation: mta-bar-grow 5.5s var(--ease) infinite;
    }
    .mta-r2 .mta-track i {
        animation: mta-bar-grow 5.5s var(--ease) infinite 0.15s;
    }
    .mta-r3 .mta-track i {
        animation: mta-bar-grow 5.5s var(--ease) infinite 0.3s;
    }

    /* --- Conversion Tracking stage: production-style 4-event funnel ---
     Events flow top → bottom: view → cart → checkout → purchase. Each
     event is a thin white row with an icon (progressive verdant tone),
     name, and three destination logos (Meta / Google Ads / Klaviyo)
     forwarded server-side. The final "Purchase" row tints faintly to
     signal the conversion. Hover cascades the rows top → bottom. */
    .ct-events {
        display: flex;
        flex-direction: column;
    }
    /* Hairline ledger rows — no bounded containers; thin dividers separate
     the events so the soft-gray content recedes behind the subtitle. */
    .ct-event {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 10px 0;
        border-top: 1px solid var(--line);
    }
    .ct-event.ct-e1 {
        border-top: 0;
    }
    .ct-icon {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }
    .ct-icon svg {
        width: 11px;
        height: 11px;
    }
    /* Progressive verdant tones — lighter early funnel, darker as it
     converges to the Purchase conversion. */
    .ct-tone-1 {
        background: var(--paper-sunken);
        color: var(--ink-subtle);
    }
    .ct-tone-2 {
        background: rgba(47, 110, 75, 0.08);
        color: var(--accent);
    }
    .ct-tone-3 {
        background: rgba(47, 110, 75, 0.16);
        color: var(--accent-deep);
    }
    .ct-tone-4 {
        background: var(--accent);
        color: #fff;
    }
    .ct-name {
        flex: 1;
        font-size: 15px;
        font-weight: 400;
        color: var(--ink-soft);
        letter-spacing: -0.005em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ct-conv .ct-name {
        color: var(--accent-deep);
        font-weight: 600;
    }
    .ct-dests {
        display: inline-flex;
        align-items: center;
        gap: 9px;
    }
    .ct-dests img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        flex-shrink: 0;
    }
    /* Continuous loop matching the production pattern (10s cycle).
     Each event starts hidden, slides in cumulatively, holds visible,
     then all four clear together so the next loop starts empty. */
    @keyframes ct-event-loop-1 {
        0%,
        3% {
            opacity: 0;
            transform: translateY(6px);
        }
        7%,
        90% {
            opacity: 1;
            transform: translateY(0);
        }
        96%,
        100% {
            opacity: 0;
            transform: translateY(-4px);
        }
    }
    @keyframes ct-event-loop-2 {
        0%,
        13% {
            opacity: 0;
            transform: translateY(6px);
        }
        17%,
        90% {
            opacity: 1;
            transform: translateY(0);
        }
        96%,
        100% {
            opacity: 0;
            transform: translateY(-4px);
        }
    }
    @keyframes ct-event-loop-3 {
        0%,
        23% {
            opacity: 0;
            transform: translateY(6px);
        }
        27%,
        90% {
            opacity: 1;
            transform: translateY(0);
        }
        96%,
        100% {
            opacity: 0;
            transform: translateY(-4px);
        }
    }
    @keyframes ct-event-loop-4 {
        0%,
        33% {
            opacity: 0;
            transform: translateY(6px);
        }
        37%,
        90% {
            opacity: 1;
            transform: translateY(0);
        }
        96%,
        100% {
            opacity: 0;
            transform: translateY(-4px);
        }
    }
    .ct-e1 {
        animation: ct-event-loop-1 10s ease-in-out infinite;
    }
    .ct-e2 {
        animation: ct-event-loop-2 10s ease-in-out infinite;
    }
    .ct-e3 {
        animation: ct-event-loop-3 10s ease-in-out infinite;
    }
    .ct-e4 {
        animation: ct-event-loop-4 10s ease-in-out infinite;
    }

    /* Reduced motion: the measurement tiles' loops stop on their finished
       state (the +15% top-of-funnel share, full attribution bars, all four
       tracked events) instead of cycling forever. */
    @media (prefers-reduced-motion: reduce) {
        .is-tof .tof-chart,
        .mta-r1 .mta-track i,
        .mta-r2 .mta-track i,
        .mta-r3 .mta-track i,
        .ct-e1,
        .ct-e2,
        .ct-e3,
        .ct-e4 {
            animation: none;
        }
        .is-tof .tof-seg-add {
            animation: none;
            width: 15%;
        }
        .is-tof .tof-legend b.tof-delta {
            animation: none;
            opacity: 1;
        }
    }

    /* --- Marketing Analytics stage: mini bar chart --- */
    /* --- Marketing Analytics stage: production-style 3×2 KPI grid.
     Each tile shows a label + canonical value; hover flashes the value
     verdant with a stagger to suggest the live-ticking dashboard the
     real product is. */
    .ma-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
    /* Hairline KPI cells — no boxes; a divided 2×3 grid so six metrics
     read as one quiet ledger. */
    .ma-tile {
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        border-top: 1px solid var(--line);
    }
    .ma-tile:nth-child(-n + 2) {
        border-top: 0;
    }
    .ma-lbl {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink-subtle);
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ma-num {
        font-size: 19px;
        font-weight: 600;
        color: var(--ink-muted);
        font-variant-numeric: tabular-nums;
        line-height: 1;
        letter-spacing: -0.005em;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Continuous ticker — JS swaps each cell's value through 4 frames on
     a staggered cadence (see end-of-doc script). The CSS just handles
     the brief verdant flash on swap. Matches the production
     HomeMarketingAnalyticsAnim flash behavior. */
    .ma-num {
        transition: color 800ms ease;
    }
    .ma-tile.is-flash .ma-num {
        color: var(--accent-deep);
        transition: color 0ms;
    }
    /* Inline trend arrow — direction (up/down) + tone (good/bad/neutral) set by
     the ticker JS; pulses on each value change. */
    .ma-numrow {
        display: flex;
        align-items: center;
        gap: 7px;
    }
    .ma-arrow {
        display: inline-flex;
        width: 15px;
        height: 15px;
        flex: 0 0 auto;
        opacity: 0;
    }
    .ma-arrow.show {
        opacity: 1;
    }
    .ma-arrow svg {
        width: 100%;
        height: 100%;
        display: block;
        transition: transform 300ms var(--ease);
    }
    .ma-arrow.dir-down svg {
        transform: rotate(90deg);
    }
    .ma-arrow.dir-flat svg {
        transform: rotate(45deg);
    }
    .ma-arrow.tone-good {
        color: var(--accent);
    }
    .ma-arrow.tone-bad {
        color: var(--neg-ink);
    }
    .ma-arrow.tone-neutral {
        color: var(--ink-subtle);
    }
    .ma-arrow.is-pulse.dir-up {
        animation: ma-pulse-up 560ms var(--ease);
    }
    .ma-arrow.is-pulse.dir-down {
        animation: ma-pulse-down 560ms var(--ease);
    }
    .ma-arrow.is-pulse.dir-flat {
        animation: ma-pulse-flat 560ms var(--ease);
    }
    @keyframes ma-pulse-up {
        0% {
            transform: translateY(0) scale(1);
        }
        42% {
            transform: translateY(-3px) scale(1.35);
        }
        100% {
            transform: translateY(0) scale(1);
        }
    }
    @keyframes ma-pulse-down {
        0% {
            transform: translateY(0) scale(1);
        }
        42% {
            transform: translateY(3px) scale(1.35);
        }
        100% {
            transform: translateY(0) scale(1);
        }
    }
    @keyframes ma-pulse-flat {
        0% {
            transform: scale(1);
        }
        42% {
            transform: scale(1.25);
        }
        100% {
            transform: scale(1);
        }
    }
    /* Looping bar growth — bars rise cascaded, hold, shrink, restart.
     6s cycle with a gentle stagger per bar. */
    @keyframes ma-grow-loop {
        0%,
        5% {
            height: 0;
        }
        22%,
        78% {
            height: var(--h);
        }
        92%,
        100% {
            height: 0;
        }
    }
    .is-mktg.is-playing .ma-bars i:nth-child(1) {
        animation: ma-grow-loop 6s ease-in-out infinite;
    }
    .is-mktg.is-playing .ma-bars i:nth-child(2) {
        animation: ma-grow-loop 6s ease-in-out infinite 0.08s;
    }
    .is-mktg.is-playing .ma-bars i:nth-child(3) {
        animation: ma-grow-loop 6s ease-in-out infinite 0.16s;
    }
    .is-mktg.is-playing .ma-bars i:nth-child(4) {
        animation: ma-grow-loop 6s ease-in-out infinite 0.24s;
    }
    .is-mktg.is-playing .ma-bars i:nth-child(5) {
        animation: ma-grow-loop 6s ease-in-out infinite 0.32s;
    }
    .is-mktg.is-playing .ma-bars i:nth-child(6) {
        animation: ma-grow-loop 6s ease-in-out infinite 0.4s;
    }
    .is-mktg.is-playing .ma-bars i:nth-child(7) {
        animation: ma-grow-loop 6s ease-in-out infinite 0.48s;
    }

    @media (max-width: 760px) {
        .bento {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
        }
        .bento.is-split {
            grid-template-columns: 1fr;
        }
        .bento.is-measurement {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
        }
        /* TOF band collapses to one column (copy above the bar) and stays
       last, concluding the section the same way it does on desktop. */
        .bento.is-measurement .is-tof {
            grid-template-columns: 1fr;
            gap: 22px;
            min-height: 0;
        }
        .bento-row {
            grid-template-columns: 1fr;
        }
        .bento-quad {
            grid-template-columns: 1fr;
            grid-template-rows: auto;
        }
        .bento-tile.is-featured.is-tall {
            min-height: 480px;
            padding: 28px;
        }
        section.modules.bento-section {
            padding: 58px 0 46px;
        }
    }

    /* ===== INTEGRATIONS =====
       Categorized "logo wall" — many marks visible so buyers spot their own
       stack at a glance. Soft-blue dithered wash on the right side aligns
       with the cool/soft-blue accent direction from R3 — same backdrop
       treatment used on the hero and Converge-effect sections. */
    section.integrations {
        padding: 0;
        background: var(--paper);
        position: relative;
        overflow: hidden;
    }
    section.integrations .container {
        padding-top: 112px;
        padding-bottom: 112px;
        position: relative;
        z-index: 1;
    }
    /* Soft-blue radial wash — matches the hero + CTA band: white surface with
     two quiet blue washes, no dither. */
    section.integrations::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(45% 55% at 80% 25%, var(--grad-3), transparent 70%),
            radial-gradient(45% 55% at 20% 80%, var(--grad-2), transparent 70%);
        z-index: 0;
        pointer-events: none;
    }
    .int-head {
        max-width: 760px;
        margin: 0 auto 28px;
        text-align: center;
    }
    .int-head h2 {
        margin: 0 0 14px;
        font-size: var(--text-h2);
        font-weight: var(--text-h2--font-weight);
        letter-spacing: var(--text-h2--letter-spacing);
        line-height: var(--text-h2--line-height);
        color: var(--ink);
    }
    .int-head p {
        margin: 0;
        font-size: 18px;
        color: var(--ink-muted);
    }

    /* Marquee belts — three rows of full-colour logo tiles auto-scrolling in
     alternating directions, edges masked. Hover eases the hovered row to a
     slow crawl (never stops) via the Web Animations API; tiles lift on hover.
     No gradient on the module itself — the section's soft-blue wash (above)
     is the only backdrop. */
    .int-belts {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    /* The belt clips the horizontal marquee spill with overflow:hidden and softens
     the left/right edges with the mask. overflow:hidden clips at the PADDING box,
     so the belt is padded taller than its 74px tiles (12px top, 26px bottom) —
     that padding is the clip box's breathing room for the hover lift (top) and
     drop shadow (bottom), so neither gets cut. The padding would loosen the row
     rhythm, so negative margins pull the rows back to a 14px visual gap
     (26 bottom − 24 margin + 12 top of next = 14). first/last child cancel the
     outer padding so the block's top/bottom sit where they did before. */
    .int-belt {
        overflow: hidden;
        padding: 12px 0 26px;
        margin-bottom: -24px;
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent,
            #000 6%,
            #000 94%,
            transparent
        );
        mask-image: linear-gradient(
            90deg,
            transparent,
            #000 6%,
            #000 94%,
            transparent
        );
    }
    .int-belt:first-child {
        margin-top: -12px;
    }
    .int-belt:last-child {
        margin-bottom: -26px;
    }
    .int-track {
        display: flex;
        width: max-content;
        will-change: transform;
    }
    .int-btile {
        flex: 0 0 auto;
        position: relative;
        width: 74px;
        height: 74px;
        margin-right: 14px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 12px;
        text-decoration: none;
        display: grid;
        place-items: center;
        transition:
            transform 0.22s var(--ease),
            box-shadow 0.22s,
            border-color 0.22s;
    }
    .int-btile:hover {
        transform: translateY(-6px) scale(1.04);
        border-color: var(--line-strong);
        box-shadow: 0 14px 26px -14px rgba(14, 16, 20, 0.45);
        z-index: 2;
    }
    .int-btile img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        display: block;
    }

    .int-foot {
        margin-bottom: 56px;
        display: flex;
        justify-content: center;
    }
    .int-foot a.btn-ghost {
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
    }
    .int-foot a.btn-ghost:hover {
        color: var(--accent);
    }
    @media (max-width: 720px) {
        .int-btile {
            width: 62px;
            height: 62px;
            margin-right: 10px;
        }
        .int-btile img {
            width: 30px;
            height: 30px;
        }
    }

    /* ===== STATIC VISUAL STUBS (simplified versions of production animations) ===== */
    .mock {
        font-size: 12px;
        color: var(--ink);
    }
    .mock-card {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px;
    }
    .mock-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mock-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        border-radius: 99px;
        font-size: 10px;
        font-weight: 500;
    }

    /* Conversion Tracking event rows */
    .vis-events {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .vis-events .row {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 7px 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
    }
    .vis-events .row .icon {
        width: 14px;
        height: 14px;
        border-radius: 3px;
    }
    .vis-events .row .icon.viewed {
        background: var(--ink);
    }
    .vis-events .row .icon.cart {
        background: var(--ink-soft);
    }
    .vis-events .row .icon.checkout {
        background: var(--ink-muted);
    }
    .vis-events .row .icon.purchase {
        background: var(--ink-subtle);
    }
    .vis-events .row span.lbl {
        flex: 1;
        color: var(--ink);
    }
    .vis-events .row .chans {
        display: flex;
        gap: 4px;
    }
    .vis-events .row .chans .c {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        background: var(--paper-cool);
        border: 1px solid var(--line);
        font-size: 8px;
        display: grid;
        place-items: center;
        color: var(--ink-subtle);
        font-weight: 600;
    }
    .vis-events .row .chans .c.meta {
        background: var(--ink-soft);
        color: var(--paper);
        border-color: transparent;
    }
    .vis-events .row .chans .c.goog {
        background: var(--ink-muted);
        color: var(--paper);
        border-color: transparent;
    }
    .vis-events .row .chans .c.tt {
        background: var(--ink);
        color: var(--paper);
        border-color: transparent;
    }

    /* MTA compare row */
    .vis-mta {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 14px 16px;
    }
    .vis-mta .meta {
        width: 20px;
        height: 20px;
        border-radius: 5px;
        background: var(--ink-soft);
        color: var(--paper);
        font-size: 12px;
        display: grid;
        place-items: center;
        font-weight: 700;
    }
    .vis-mta .label-eb {
        font-size: 10px;
        letter-spacing: 0.14em;
        color: var(--ink-muted);
    }
    .vis-mta .lbl {
        flex: 1;
        font-size: 13px;
        color: var(--ink);
    }
    .vis-mta .val {
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
    }
    .vis-mta .badge {
        background: var(--paper-cool);
        color: var(--ink-soft);
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 99px;
        font-weight: 500;
        border: 1px solid var(--line);
    }

    /* Marketing Analytics KPI grid */
    .vis-kpis {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .vis-kpis .kpi {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 7px;
        padding: 8px 9px;
    }
    .vis-kpis .kpi .k {
        font-size: 8px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ink-subtle);
        font-weight: 500;
        margin-bottom: 3px;
    }
    .vis-kpis .kpi .v {
        font-size: 13px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -0.015em;
    }
    .vis-kpis .kpi.green .v {
        color: var(--ink);
    }

    /* Top of funnel pie */
    .vis-pie {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        height: 100%;
        justify-content: center;
    }
    .vis-pie .head {
        font-size: 11px;
        color: var(--ink-muted);
    }
    .vis-pie .donut {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: conic-gradient(
            var(--ink-soft) 0 22%,
            var(--ink) 22% 27%,
            var(--paper-cool) 27% 100%
        );
        position: relative;
        border: 1px solid var(--line);
    }
    .vis-pie .donut::after {
        content: "+15%";
        position: absolute;
        right: -4px;
        top: 36%;
        background: var(--ink);
        color: var(--paper);
        padding: 3px 8px;
        border-radius: 99px;
        font-size: 10px;
        font-weight: 500;
    }
    .vis-pie .legend {
        display: flex;
        gap: 14px;
        font-size: 11px;
        color: var(--ink-muted);
    }
    .vis-pie .legend span {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .vis-pie .legend .sw {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }
    .vis-pie .legend .sw.t {
        background: var(--ink-soft);
    }
    .vis-pie .legend .sw.o {
        background: var(--ink-subtle);
    }

    /* ===== CONVERGE EFFECT — Mosaic of case studies (ElevenLabs-inspired) =====
     Pill-toggle between Agentic Marketing + Measurement. Each tab shows
     three image tiles in a varied grid plus a few decorative accent tiles.
     Hover scales the focused tile + blurs the rest. */
    section.featured {
        padding: 0;
        background: var(--paper);
    }
    section.featured .container {
        padding-top: 96px;
        padding-bottom: 96px;
    }
    section.featured .modules-head {
        text-align: center;
    }
    section.featured .modules-head h2 {
        font-size: var(--text-h2);
        font-weight: var(--text-h2--font-weight);
        letter-spacing: var(--text-h2--letter-spacing);
        line-height: var(--text-h2--line-height);
        color: var(--ink);
        margin: 10px auto 0;
        /* In em so the cap scales with the clamped font size: "Companies that
           run on Converge" is about 14em wide and must fit on one line
           wherever .br-wide is active. */
        max-width: 16em;
        text-wrap: balance;
    }
    /* The line break only reads well on wide screens. On phones it leaves
       "Converge" alone on a line. */
    section.featured .modules-head h2 .br-wide {
        display: none;
    }
    @media (min-width: 720px) {
        section.featured .modules-head h2 .br-wide {
            display: inline;
        }
    }

    /* Pill toggle */
    .case-toggle-wrap {
        display: flex;
        justify-content: center;
        margin: 26px 0 40px;
    }
    .case-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: var(--paper-cool);
        border: 1px solid var(--line);
        border-radius: 99px;
        padding: 4px;
    }
    .ct-btn {
        padding: 9px 22px;
        border: 0;
        background: transparent;
        border-radius: 99px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink-muted);
        cursor: pointer;
        transition:
            color 0.25s var(--ease),
            background 0.25s var(--ease),
            box-shadow 0.25s var(--ease);
    }
    .ct-btn:hover {
        color: var(--ink-soft);
    }
    .ct-btn.is-active {
        background: var(--paper);
        color: var(--ink);
        box-shadow:
            0 2px 6px -2px rgba(14, 16, 20, 0.1),
            0 1px 2px rgba(14, 16, 20, 0.04);
    }

    /* Mosaic grid — three content tiles staggered with two accent placeholders.
       Col 1: tile-left (top 75%) + acc-left (bottom 25%)
       Col 2: tile-big spans full height
       Col 3: acc-right (top 25%) + tile-right (bottom 75%)
     Creates the diagonal/staggered rhythm of the ElevenLabs reference. */
    .case-mosaic {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1.4fr 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 18px;
        max-width: 1200px;
        margin: 0 auto;
        min-height: 600px;
    }
    /* Agentic layout (default): left tile anchored top, right tile anchored bottom */
    .tile-left {
        grid-column: 1;
        grid-row: 1 / 7;
    }
    .acc-left {
        grid-column: 1;
        grid-row: 7 / 9;
    }
    .tile-big {
        grid-column: 2;
        grid-row: 1 / 9;
    }
    /* acc-right floated DOWN (row 1 left empty); blue tile-right is SHORTER than
     Rove (5/8 rows vs 6/8) so the column reads as a mosaic, not a mirror. */
    .acc-right {
        grid-column: 3;
        grid-row: 2 / 4;
    }
    .tile-right {
        grid-column: 3;
        grid-row: 4 / 9;
    }

    /* Measurement layout — distinctly different proportions from Agentic.
     Side tiles are SHORTER (2 rows tall vs Agentic's 3), accents are
     TALLER (2 rows vs 1), creating a 50/50 split per side column
     instead of the 75/25 split. Reads as a different composition,
     not a mirror. */
    /* Round 8 (Scott): the two Measurement side tiles were too short for the hover
     reveal — give each one extra row (accents shrink to compensate). */
    .case-mosaic[data-tab="measurement"] .acc-left {
        grid-row: 1 / 4;
    }
    .case-mosaic[data-tab="measurement"] .tile-left {
        grid-row: 4 / 9;
    }
    .case-mosaic[data-tab="measurement"] .tile-right {
        grid-row: 1 / 6;
    }
    .case-mosaic[data-tab="measurement"] .acc-right {
        grid-row: 6 / 9;
    }

    /* Content tiles */
    .case-tile {
        position: relative;
        border-radius: 22px;
        overflow: hidden;
        text-decoration: none;
        color: var(--paper);
        background-color: var(--paper-cool);
        transition:
            transform 0.55s var(--ease),
            filter 0.55s var(--ease),
            opacity 0.55s var(--ease),
            box-shadow 0.55s var(--ease);
        will-change: transform;
    }
    .case-tile .ct-img {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transition: opacity 0.4s var(--ease);
    }
    .case-tile::after {
        content: "";
        position: absolute;
        inset: 0;
        /* Top-left wash keeps the white wordmark legible over bright photos. */
        background:
            radial-gradient(
                120% 80% at 0% 0%,
                rgba(14, 16, 20, 0.45) 0%,
                rgba(14, 16, 20, 0.18) 34%,
                rgba(14, 16, 20, 0) 62%
            ),
            linear-gradient(
                180deg,
                rgba(14, 16, 20, 0) 35%,
                rgba(14, 16, 20, 0.78) 100%
            );
        pointer-events: none;
        z-index: 1;
    }
    .case-tile .ct-content {
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 22px;
        z-index: 2;
        transition: opacity 0.32s var(--ease);
    }
    /* Metric stack. At rest only the first metric shows (the resting headline
     stat + label); on hover the other two metrics + the case title reveal.
     .ct-content is bottom-anchored, so the reveal grows upward. */
    .case-tile .ct-metrics {
        display: flex;
        flex-direction: column;
    }
    .case-tile .ct-metric {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition:
            max-height 0.4s var(--ease),
            opacity 0.32s var(--ease),
            margin 0.4s var(--ease);
    }
    .case-tile .ct-metric:first-child {
        max-height: 96px;
        opacity: 1;
    }
    .case-tile .ct-metric-v {
        font-size: clamp(22px, 2.4vw, 32px);
        font-weight: 600;
        letter-spacing: -0.025em;
        line-height: 1.05;
        color: var(--paper);
    }
    .case-tile.tile-big .ct-metric-v {
        font-size: clamp(28px, 3vw, 40px);
    }
    .case-tile .ct-metric-l {
        font-size: 13px;
        line-height: 1.3;
        margin-top: 3px;
        color: rgba(255, 255, 255, 0.82);
        font-weight: 500;
    }
    /* Title visible AT REST (Round 10 — Jerome, citing ElevenLabs/Ramp). Hover
     still reveals the other two metrics above it. */
    .case-tile .ct-title {
        max-height: 120px;
        opacity: 1;
        overflow: hidden;
        margin-top: 12px;
        font-size: 17px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.92);
        font-weight: 500;
        transition: margin 0.4s var(--ease);
    }
    .case-tile.tile-big .ct-title {
        font-size: 18px;
    }

    /* Reveal on hover (mobile forces this open — see the responsive block). */
    .case-tile:hover .ct-metric {
        max-height: 96px;
        opacity: 1;
    }
    .case-tile:hover .ct-metric + .ct-metric {
        margin-top: 12px;
    }
    .case-tile:hover .ct-title {
        max-height: 120px;
        opacity: 1;
        margin-top: 16px;
    }
    /* Darken the photo further on hover so the fuller text block stays legible. */
    .case-tile:hover::after {
        background: linear-gradient(
            180deg,
            rgba(14, 16, 20, 0) 8%,
            rgba(14, 16, 20, 0.55) 45%,
            rgba(14, 16, 20, 0.9) 100%
        );
    }

    /* Brand wordmark — floats to the tile's top-left, over the photo. Source PNGs
     vary (white/dark/palette); brightness(0) invert(1) flattens any of them to a
     clean white silhouette that reads over the photo. */
    .ct-logo {
        position: absolute;
        top: 22px;
        left: 24px;
        z-index: 2;
        height: 24px;
        width: auto;
        max-width: 160px;
        object-fit: contain;
        object-position: left center;
        /* drop-shadow (not a box-shadow) so the glow traces the glyphs themselves —
       a white wordmark on a light patch of photo was disappearing otherwise. */
        filter: brightness(0) invert(1)
            drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
        opacity: 0.95;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
    }
    .case-tile.tile-big .ct-logo {
        top: 26px;
        height: 30px;
        max-width: 210px;
    }

    /* Accent placeholders — flat rounded SQUARES (not full-width strips). Each is
     floated to the inner corner nearest the big centre tile so the pair frames
     it; size + position match the annotated green-box reference (2026-06-18). */
    .case-accent {
        /* Small gray resting tiles. The visible fill is the cool-gray paper; a subtle
       white-glow gradient (white -> gray) is layered per accent below. */
        background: var(--paper-sunken);
        border: 1px solid var(--line);
        border-radius: 16px;
        transition:
            opacity 0.55s var(--ease),
            transform 0.55s var(--ease);
    }
    /* Subtle white gradient over the gray base — the white glow sits in a different
     corner per square for a touch of mosaic variety (no colour, just a soft sheen):
       agentic acc-left = bottom-left, measurement acc-right = bottom-right,
       agentic acc-right = top-right, measurement acc-left = top-left. */
    .case-mosaic[data-tab="agentic"] .acc-left {
        background: radial-gradient(
            70% 70% at 16% 84%,
            var(--paper) 0%,
            var(--paper-sunken) 68%
        );
    }
    .case-mosaic[data-tab="measurement"] .acc-right {
        background: radial-gradient(
            70% 70% at 84% 84%,
            var(--paper) 0%,
            var(--paper-sunken) 68%
        );
    }
    .case-mosaic[data-tab="agentic"] .acc-right {
        background: radial-gradient(
            70% 70% at 84% 16%,
            var(--paper) 0%,
            var(--paper-sunken) 68%
        );
    }
    .case-mosaic[data-tab="measurement"] .acc-left {
        background: radial-gradient(
            70% 70% at 16% 16%,
            var(--paper) 0%,
            var(--paper-sunken) 68%
        );
    }
    /* Measurement — square ~2/3 of the column, floated toward the mosaic's
     horizontal midline + the centre tile: acc-left bottom-right, acc-right top-left. */
    .case-mosaic[data-tab="measurement"] .case-accent {
        width: 68%;
        aspect-ratio: 1 / 1;
    }
    .case-mosaic[data-tab="measurement"] .acc-left {
        justify-self: end;
        align-self: end;
    }
    .case-mosaic[data-tab="measurement"] .acc-right {
        justify-self: start;
        align-self: start;
    }
    /* Agentic — accents sit in single-row bands; size the square to the band
     height and float it horizontally toward the centre tile. */
    .case-mosaic[data-tab="agentic"] .case-accent {
        height: 100%;
        aspect-ratio: 1 / 1;
    }
    .case-mosaic[data-tab="agentic"] .acc-left {
        justify-self: end;
        align-self: end;
    }
    .case-mosaic[data-tab="agentic"] .acc-right {
        justify-self: start;
        align-self: start;
    }

    /* Hover focus — just a soft scale-up + lift shadow on the hovered tile.
     Other tiles + accents stay fully visible. */
    .case-tile:hover {
        transform: scale(1.025);
        z-index: 3;
        box-shadow: 0 24px 60px -28px rgba(14, 16, 20, 0.45);
    }

    /* Dither placeholder tile — the warm (agentic) "chapter" gradient stands in
     for a not-yet-built case study. The dither lives on the .ct-img layer so it
     crossfades like any photo during a tab morph; the tile-level .is-dither just
     drops the scrim, content, and interactivity. Direct-child selectors (>) so
     the rules never reach the cloned old layer inside a .ct-fade overlay. */
    .case-tile.is-dither {
        cursor: default;
    }
    .case-tile.is-dither:hover {
        transform: none;
        box-shadow: none;
        z-index: auto;
    }
    .case-tile.is-dither::after {
        display: none;
    }
    .case-tile.is-dither > .ct-content {
        display: none;
    }
    .ct-img.is-dither.dither-warm {
        background:
            radial-gradient(
                ellipse 70% 60% at 22% 78%,
                #e8744a 0%,
                transparent 55%
            ),
            radial-gradient(
                ellipse 60% 60% at 80% 80%,
                #d4a45c 0%,
                transparent 55%
            ),
            radial-gradient(
                ellipse 80% 70% at 20% 18%,
                #a89cc4 0%,
                transparent 60%
            ),
            radial-gradient(
                ellipse 70% 50% at 80% 15%,
                #c89880 0%,
                transparent 55%
            ),
            linear-gradient(160deg, #b3a4c8 0%, #d49870 55%, #b88858 100%);
    }
    .ct-img.is-dither.dither-blue {
        background:
            radial-gradient(
                ellipse 90% 80% at 85% -5%,
                rgba(244, 248, 252, 0.6) 0%,
                rgba(205, 217, 232, 0.3) 30%,
                transparent 65%
            ),
            radial-gradient(
                ellipse 70% 50% at 40% 60%,
                #8aa2c0 0%,
                transparent 70%
            ),
            radial-gradient(
                ellipse 100% 55% at 50% 105%,
                #3c5070 0%,
                transparent 62%
            ),
            linear-gradient(175deg, #a8bcd6 0%, #7890b0 50%, #51647f 100%);
    }
    .ct-img.is-dither::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
        background-size: 180px 180px;
        mix-blend-mode: overlay;
        opacity: 0.85;
        pointer-events: none;
    }

    /* Tab morph = direct image-to-image crossfade (no blank gap). On swap, each
     tile's current visual is cloned into a .ct-fade overlay shown on top; the
     new visual is applied to the base underneath; then the overlay dissolves out
     while the FLIP transform morphs the rectangles — so the imagery appears to
     morph into the next tab rather than fade out and back in. */
    .ct-fade {
        position: absolute;
        inset: 0;
        z-index: 4;
        border-radius: inherit;
        overflow: hidden;
        opacity: 1;
        pointer-events: none;
        transition: opacity 680ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .ct-fade .ct-img {
        z-index: 0;
    }
    .ct-fade .ct-content {
        z-index: 2;
        opacity: 1;
    }
    .ct-fade.has-scrim::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            180deg,
            rgba(14, 16, 20, 0) 35%,
            rgba(14, 16, 20, 0.78) 100%
        );
        pointer-events: none;
    }

    /* ===== QUOTE band — centered quote + small avatar attribution =====
     Pushed-out vertical padding gives the H&H wordmark watermarks room to
     sit upper-left + lower-right behind the quote without crowding it. */
    section.quote-band {
        padding: 0;
        background: var(--paper);
        margin-top: -104px;
    }
    section.quote-band .container {
        padding-top: 200px;
        padding-bottom: 200px;
        position: relative;
        /* No overflow clipping — watermarks can extend past the band into the
       adjacent rail lines. Looks intentional, prevents the edge cropping
       we'd otherwise get at larger sizes. */
    }
    .quote-center {
        max-width: 880px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 48px;
        text-align: center;
        position: relative;
        z-index: 1;
    }
    .quote-center blockquote {
        margin: 0;
        font-size: clamp(28px, 3.4vw, 44px);
        line-height: 1.18;
        letter-spacing: -0.025em;
        font-weight: 500;
        color: var(--ink);
        max-width: 820px;
    }
    /* Color comes from the highlight-gradient rule (--grad-verdant clipped to
     the glyphs); only the weight is set here. */
    .quote-center blockquote b {
        font-weight: 600;
    }

    /* H&H wordmark watermarks.
     - Rendered as <div>s (not <img>s) so we can tint via background-color
       (cool zinc-leaning gray, matches the rest of the system) instead of
       a brightness(0) crush which read as neutral/warm at low opacity.
     - Two mask layers per watermark, composited via mask-composite:
       `intersect` so the watermark only shows where BOTH the wordmark PNG
       AND a radial gradient are opaque. The radial gradient anchors at the
       inner corner (the corner pointing at the quote), so letters near the
       quote (right side of "hims", lower-left of "hers") fade to ~white
       while the outer letters stay visible. */
    .quote-watermark {
        position: absolute;
        width: clamp(380px, 42vw, 620px);
        background-color: var(--ink-muted);
        -webkit-mask-repeat: no-repeat, no-repeat;
        mask-repeat: no-repeat, no-repeat;
        -webkit-mask-size:
            contain,
            100% 100%;
        mask-size:
            contain,
            100% 100%;
        -webkit-mask-position: center, center;
        mask-position: center, center;
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
        opacity: 0;
        transform: translateY(8px);
        transition:
            opacity 1.4s var(--ease),
            transform 1.4s var(--ease);
        pointer-events: none;
        user-select: none;
        z-index: 0;
    }
    .quote-band.is-revealed .quote-watermark {
        opacity: 0.1;
        transform: translateY(0);
    }
    .quote-band.is-revealed .quote-watermark.is-bl {
        transition-delay: 0.25s;
    }

    /* hims — lower-left; inner corner is top-right of the wordmark. Radial
     fade anchored there dims the M/S that sit nearest the quote. */
    .quote-watermark.is-bl {
        bottom: 12%;
        left: 3%;
        aspect-ratio: 2378 / 872;
        -webkit-mask-image:
            var(--wm-image),
            radial-gradient(
                ellipse 145% 280% at 100% 0%,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 88%
            );
        mask-image:
            var(--wm-image),
            radial-gradient(
                ellipse 145% 280% at 100% 0%,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 88%
            );
    }
    /* hers — upper-right; inner corner is bottom-left of the wordmark. */
    .quote-watermark.is-tr {
        top: 4%;
        right: 3%;
        aspect-ratio: 2409 / 1056;
        -webkit-mask-image:
            var(--wm-image),
            radial-gradient(
                ellipse 145% 280% at 0% 100%,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 88%
            );
        mask-image:
            var(--wm-image),
            radial-gradient(
                ellipse 145% 280% at 0% 100%,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 88%
            );
    }

    /* Felix attribution row — mirrors the production runconverge.com layout:
     avatar | name + role | vertical divider | Hims & Hers wordmark.
     The wordmark sits alongside the name (not under it) so the H&H
     affiliation reads at the same hierarchy as Felix himself. */
    .quote-cite {
        display: inline-flex;
        align-items: center;
        gap: 18px;
        text-align: left;
    }
    .quote-cite .avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        overflow: hidden;
        background: var(--paper-cool);
        border: 1px solid var(--line);
        flex-shrink: 0;
    }
    .quote-cite .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }
    .quote-cite .meta {
        display: flex;
        flex-direction: column;
        font-size: 14px;
        line-height: 1.4;
    }
    .quote-cite .meta b {
        color: var(--ink);
        font-weight: 600;
        font-size: 15px;
    }
    .quote-cite .meta .role {
        color: var(--ink-muted);
    }
    /* Vertical hairline separating Felix's text from the H&H wordmark. */
    .quote-cite .divider {
        width: 1px;
        height: 36px;
        background: var(--line-strong);
        flex-shrink: 0;
    }
    /* Hims & Hers wordmark — the actual brand mark, matched in height to the
     name + role stack so it reads as a co-attribution. */
    .quote-cite .brand-mark {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }
    .quote-cite .brand-mark img {
        height: 26px;
        width: auto;
        display: block;
    }

    @media (max-width: 880px) {
        /* Symmetric padding — the shallow 60px top let the quote crowd the "hers"
       watermark pinned to the band's upper-right. */
        section.quote-band .container {
            padding-top: 120px;
            padding-bottom: 120px;
        }
        .quote-center {
            gap: 32px;
        }
        .quote-center blockquote {
            font-size: 24px;
        }
        .quote-watermark {
            width: clamp(240px, 65vw, 380px);
        }
        .quote-band.is-revealed .quote-watermark {
            opacity: 0.08;
        }
        .quote-watermark.is-bl {
            bottom: 10%;
            left: 4%;
        }
        .quote-watermark.is-tr {
            top: 3%;
            right: 4%;
        }
    }

    /* ===== CTA band ===== */
    section.cta-band {
        padding: 0;
        background: var(--paper);
        position: relative;
        /* Do NOT put a z-index here. This section is `.no-hatch`, and that mask
       (section.no-hatch::after, z-index 2) is what covers the body hatch in the
       outer margins. A z-index here makes the section a stacking context, which
       traps the mask inside it — the whole section then ties with body::after
       (also z-index 1) and loses on tree order, so the hatch paints straight
       back over the right margin. Round 12. */
    }
    section.cta-band .container {
        padding-top: 96px;
        padding-bottom: 96px;
    }
    /* Soft radial backdrop in a child element so it doesn't conflict with
     either the section::before divider or the container::after corner dot. */
    .cta-bg {
        position: absolute;
        inset: 0;
        /* Corner-anchored wash: top-right (grad-3) + bottom-left (grad-2), never
       centred. Shared verbatim with the interior CTA (.cs-cta-bg). */
        background:
            radial-gradient(
                820px 520px at 100% 0%,
                var(--grad-3),
                transparent 72%
            ),
            radial-gradient(
                820px 520px at 0% 100%,
                var(--grad-2),
                transparent 72%
            );
        pointer-events: none;
        z-index: 0;
    }
    section.cta-band .cta-inner {
        position: relative;
        z-index: 1;
    }
    .cta-inner {
        position: relative;
        text-align: center;
        max-width: 720px;
        margin: 0 auto;
    }
    .cta-inner h2 {
        margin: 0 0 16px;
        font-size: clamp(40px, 5vw, 64px);
        font-weight: 600;
        letter-spacing: -0.035em;
        line-height: 1.04;
        color: var(--ink);
    }
    .cta-inner p {
        font-size: 19px;
        color: var(--ink-muted);
        margin: 0 0 28px;
    }
    .cta-inner .row {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    /* ===== responsive ===== */
    @media (max-width: 960px) {
        .container {
            padding-left: 24px;
            padding-right: 24px;
        }
        /* Mosaic — collapse accent columns + stack tiles vertically on mobile */
        .case-mosaic {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto auto;
            min-height: 0;
        }
        .case-mosaic .case-accent {
            display: none;
        }
        /* Drop the dithered placeholder tile (the blue/warm "not-yet-built" stand-in)
       on mobile — keep it on desktop. Real case studies only on small screens. */
        .case-mosaic .case-tile.is-dither {
            display: none;
        }
        /* Stack every tile full-width regardless of tab. The [data-tab] attribute
       matches the specificity of the desktop per-tab grid-row rules (e.g.
       [data-tab="measurement"] .tile-left { grid-row: 4 / 9 }) — without it
       those win on the Measurement tab and the tiles pile onto each other.
       Landscape ratio: with a single KPI + title the tall portrait isn't
       needed, so tiles read shorter and the section scrolls faster. */
        .case-mosaic[data-tab] .tile-left,
        .case-mosaic[data-tab] .tile-big,
        .case-mosaic[data-tab] .tile-right {
            grid-column: 1;
            grid-row: auto;
            aspect-ratio: 3 / 2;
        }
        /* Hudson tab: the featured study (centre tile on desktop) leads the stack. */
        .case-mosaic[data-tab="agentic"] .tile-big {
            order: -1;
        }
        /* No hover on touch — show ONLY the headline KPI + the case title.
       The two secondary metrics stay desktop-hover-only. */
        .case-tile .ct-metric:first-child {
            max-height: 96px;
            opacity: 1;
        }
        .case-tile .ct-metric + .ct-metric {
            display: none;
        }
        /* One copy spec for every tile — the big-tile (Proper Cloth) sizes. The
       .case-mosaic prefix outranks the desktop .case-tile.tile-big variants so
       side tiles don't render smaller than the centre one. */
        .case-mosaic .case-tile .ct-metric-v {
            font-size: 28px;
        }
        .case-mosaic .case-tile .ct-title {
            max-height: 140px;
            opacity: 1;
            margin-top: 12px;
            font-size: 18px;
        }
        .case-tile::after {
            background: linear-gradient(
                180deg,
                rgba(14, 16, 20, 0) 8%,
                rgba(14, 16, 20, 0.55) 45%,
                rgba(14, 16, 20, 0.9) 100%
            );
        }
        .modules-item-grid {
            grid-template-columns: 1fr;
            padding: 36px 0;
        }
        .modules-title {
            padding: 56px 0 64px;
        }
        .item-copy {
            max-width: none;
        }
    }

    /* Proof grid — mobile: swap the interactive 7-col grid for the rotating
     quadrant carousel (headline row above four-logo 2×2 panels). */
    @media (max-width: 800px) {
        .proof-grid {
            display: none;
        }
        .proof-mobile {
            display: block;
            padding: 8px;
            background: var(--paper-cool);
        }
        .proof-cell.head {
            grid-column: 1 / -1;
            grid-row: auto;
            aspect-ratio: auto;
            padding: 22px 20px 18px;
        }
        .proof-cell.head h2 {
            font-size: 17px;
        }
    }

    @media (max-width: 600px) {
        /* Testimonial: stack the attribution — avatar + name/role on one row,
       Hims & Hers wordmark dropped below (divider becomes a full-width break). */
        .quote-cite {
            flex-wrap: wrap;
            justify-content: center;
            gap: 14px 14px;
        }
        .quote-cite .divider {
            flex-basis: 100%;
            width: 0;
            height: 0;
            background: none;
            margin: 0;
        }
        .quote-cite .brand-mark {
            margin-top: 2px;
        }
    }

    @media (max-width: 520px) {
        .container {
            padding-left: 16px;
            padding-right: 16px;
        }
        .nav-inner {
            padding-left: 16px;
            padding-right: 16px;
        }
        .nav ul {
            display: none;
        }
        .proof-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }