/* ============================================================
   MERIDIAN — Layer 4: sections
   Section composition + responsive. Positions primitives;
   never restyles their internals. Ref: MERIDIAN-BUILD §11, §14.
   ============================================================ */
@layer tokens, base, components, sections, motion;

@layer sections {

  /* =========================================================
     THE MERIDIAN — fixed left thread + time-stations (≥1080px)
     ========================================================= */
  .meridian {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--rail-w); z-index: var(--z-thread);
    pointer-events: none; display: none;
    opacity: 0.9;
  }
  @media (min-width: 1080px) { .meridian { display: block; } }
  .meridian__track {
    position: absolute; left: 33px; top: 96px; bottom: 48px; width: 1.5px;
    background: var(--border); border-radius: 2px; overflow: hidden;
    opacity: 0.75;
    transition: background var(--dur-slow) var(--ease-out);
  }
  .meridian__fill {
    position: absolute; inset: 0; background: var(--accent-fill);
    transform: scaleY(var(--thread, 0)); transform-origin: top;
    transition: background var(--dur-slow) var(--ease-out);
  }
  .meridian__station { position: absolute; left: 28px; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); }
  .meridian__dot {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--surface); border: 1.5px solid var(--border-strong);
    opacity: 0.55;
    transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  }
  .meridian__label {
    font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500;
    letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted);
    white-space: nowrap; opacity: 0.32; transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  }
  .meridian__station.is-active .meridian__dot { background: var(--accent-fill); border-color: var(--accent-fill); transform: scale(1.3); opacity: 1; }
  .meridian__station.is-active .meridian__label { color: var(--accent-deep); opacity: 0.95; }
  .meridian__station--terminal .meridian__dot { border-color: var(--accent-fill); }
  .meridian__station--terminal.is-active .meridian__dot::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent-fill);
    animation: status-pulse 2s var(--ease-out) infinite;
  }
  .meridian__dot { position: relative; }

  /* While a drenched (full-amber) section sits behind the rail, invert the
     thread to ink tones so it reads as a quiet line instead of amber-on-amber. */
  .meridian.on-drench .meridian__track { background: oklch(0.3 0.05 60 / 0.4); }
  .meridian.on-drench .meridian__fill { background: var(--drench-ink); }
  .meridian.on-drench .meridian__dot { border-color: oklch(0.3 0.05 60 / 0.55); }
  .meridian.on-drench .meridian__station.is-active .meridian__dot { background: var(--drench-ink); border-color: var(--drench-ink); }
  .meridian.on-drench .meridian__label { color: oklch(0.3 0.05 60 / 0.6); }
  .meridian.on-drench .meridian__station.is-active .meridian__label { color: var(--drench-ink); opacity: 1; }

  /* inline station markers shown when the thread is hidden (<1080px) */
  .station-inline { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
  .station-inline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); flex: none; }
  @media (min-width: 1080px) { .station-inline { display: none; } }

  /* =========================================================
     HERO (#home)
     ========================================================= */
  .hero { background: var(--bg); padding-block: clamp(40px, 4vw, 72px) var(--section-pad); position: relative; overflow: hidden; }
  .hero__grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(140% 90% at 72% 8%, #000 30%, transparent 78%);
    mask-image: radial-gradient(140% 90% at 72% 8%, #000 30%, transparent 78%);
    opacity: 0.7;
  }
  .hero__spotlight {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(240px 240px at var(--mx, 72%) var(--my, 30%), oklch(0.85 0.13 80 / 0.28), transparent 70%);
    opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  }
  .hero:hover .hero__spotlight { opacity: 1; }
  .hero > .container { position: relative; z-index: 1; }

  /* Height is a percentage of the hero (78%) so the backdrop genuinely spans
     down behind the VSL and signup card. Width stays capped (not bare 100%)
     so height — always ~1300-1700px at 78% of a stacked hero — permanently
     dominates the `slice` scale over width. That's the structural fix for the
     original ultrawide bug: since height always drives the scale, the
     artwork's full vertical extent (including the peak node near the top) is
     always in frame; only the horizontal extremes bleed off the sides, which
     reads as intentional at this opacity, not a defect. The area-fill
     gradient already fades to transparent toward the artwork's own bottom
     edge, so the extra height reveals that built-in fade rather than a hard
     crop. 3600px covers every mainstream monitor (1920/2560/3440/3840) with
     real margin — verified the top node stays in-frame up to ~4200px, only
     clipping past ~4500px, well beyond any realistic single browser window. */
  .hero-viz { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 78%; width: min(100%, 3600px); z-index: 0; pointer-events: none; opacity: 0.9; }
  .hero-viz svg { width: 100%; height: 100%; display: block; }
  .hero-viz__area { fill: url(#viz-fill); }
  .hero-viz__curve { fill: none; stroke: var(--accent-fill); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
  .hero-viz__node { fill: var(--surface); stroke: var(--accent-text); stroke-width: 2; }

  .hero-top { max-width: 940px; margin-inline: auto; text-align: center; margin-bottom: var(--sp-4); }
  .hero-top .status-chip { margin-bottom: var(--sp-3); }
  .hero h1 { margin-bottom: var(--sp-3); }
  .hero h1 .hl-line { display: block; }
  .hero h1 .accent { color: var(--accent-text); }
  .hero-sub { color: var(--ink-body); font-size: var(--text-lg); max-width: var(--measure); margin-inline: auto; }
  .audit-line {
    font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent-deep);
    margin: var(--sp-3) auto 0; max-width: 62ch; text-align: left;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: 12px 16px; box-shadow: var(--shadow-sm); min-height: 3.4em;
  }
  .audit-line__caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; background: var(--accent-fill); vertical-align: text-bottom; animation: caret-blink 1s steps(2) infinite; }
  @media (prefers-reduced-motion: reduce) { .audit-line__caret { animation: none; } }

  .hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }

  /* VSL column */
  .vsl-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--console); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .vsl-wrapper iframe { width: 100%; height: 100%; border: none; display: block; }
  .vsl-placeholder { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; text-align: center; padding: var(--sp-3); }
  .vsl-placeholder-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .vsl-play-ring { width: 72px; height: 72px; border-radius: var(--r-pill); background: var(--accent-gradient); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-cta); transition: transform var(--dur-fast) var(--ease-out); }
  .vsl-play-ring .icon { width: 26px; height: 26px; }
  .vsl-placeholder:hover .vsl-play-ring { transform: scale(1.06); }
  .vsl-coming-label { color: var(--ink-on-dark); font-weight: 700; font-family: var(--font-display); }
  .vsl-coming-sub { color: var(--ink-on-dark-2); font-size: var(--text-sm); }
  /* overlay injected by hero-form.js */
  .vsl-click-overlay { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; background: oklch(0.2 0.01 60 / 0.35); cursor: pointer; transition: opacity var(--dur-base) var(--ease-out); }
  .vsl-click-overlay.hiding { opacity: 0; }
  .vsl-overlay-play { width: 66px; height: 66px; border-radius: var(--r-pill); background: var(--accent-gradient); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-cta); }
  .vsl-overlay-play::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
  .vsl-overlay-play i { display: none; }
  .vsl-overlay-label { position: absolute; bottom: 16px; color: var(--ink-on-dark); font-weight: 600; font-size: var(--text-sm); }

  .vsl-microcopy { color: var(--ink-muted); font-size: var(--text-sm); margin-top: var(--sp-3); max-width: 48ch; }
  .vsl-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: var(--sp-3); }
  .vsl-proof__avatars { display: flex; }
  .vsl-proof__avatars img { width: 38px; height: 38px; border-radius: var(--r-pill); border: 2px solid var(--surface); margin-left: -10px; background: var(--surface-sunken); }
  .vsl-proof__avatars img:first-child { margin-left: 0; }
  .vsl-proof__text { font-size: var(--text-sm); color: var(--ink-body); font-weight: 600; }
  .hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }

  /* Console form card */
  .hero-form-card { background: var(--console); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 34px); box-shadow: var(--shadow-lg); border: 1px solid var(--border-on-dark); }
  .form-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-on-dark); font-weight: 700; font-size: var(--text-sm); margin-bottom: 10px; }
  .hero-form-card h3 { color: var(--ink-on-dark); font-size: var(--text-xl); margin-bottom: 8px; }
  .hero-form-card h3 span { color: var(--accent-on-dark); }
  .form-subheading { color: var(--ink-on-dark-2); font-size: var(--text-sm); margin-bottom: var(--sp-3); }
  .hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-2); }
  .hf-group { margin-bottom: var(--sp-2); }
  .hf-field-error { display: none; color: var(--error-on-dark); font-size: var(--text-xs); margin-top: 5px; }
  .hf-field-error.visible { display: block; }
  .hf-phone-field { display: flex; align-items: center; gap: 8px; }
  .hf-phone-field .field { text-align: center; padding-inline: 8px; }
  .hf-phone-field .field:first-child { flex: 0 0 22%; }
  .hf-phone-sep { color: var(--ink-on-dark-2); }
  .hf-select-wrap { position: relative; }
  .hf-select-wrap::after { content: ""; position: absolute; right: 18px; top: 46%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); pointer-events: none; }
  .hf-sms-consent { margin: var(--sp-2) 0; display: flex; flex-direction: column; gap: 10px; }
  .hf-sms-label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
  .hf-sms-label input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent-fill); flex: none; }
  .hf-sms-text { font-size: 0.72rem; line-height: 1.5; color: var(--ink-on-dark-2); }
  .hf-sms-legal { font-size: 0.72rem; color: var(--ink-on-dark-2); line-height: 1.5; }
  .hf-sms-legal a { color: var(--accent-on-dark); }
  .hf-error { display: none; margin: var(--sp-2) 0; padding: 10px 14px; border-radius: var(--r-sm); background: oklch(0.55 0.16 25 / 0.15); border: 1px solid var(--error-on-dark); color: var(--error-on-dark); font-size: var(--text-sm); }
  .hf-error.visible { display: block; }
  .hf-submit { position: relative; width: 100%; min-height: 54px; margin-top: var(--sp-2); border: none; border-radius: var(--r-pill); background: var(--accent-gradient); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); box-shadow: var(--shadow-cta); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
  .hf-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px oklch(0.72 0.15 75 / 0.55); }
  .hf-btn-loading { display: none; }
  .hf-submit.loading .hf-btn-text { display: none; }
  .hf-submit.loading .hf-btn-loading { display: inline-flex; align-items: center; gap: 8px; }
  .hf-submit.success { background: oklch(0.7 0.15 145); }
  .hf-disclaimer { color: var(--ink-on-dark-2); font-size: var(--text-xs); margin-top: var(--sp-2); text-align: center; }

  .hero-proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
  .hero-proof-strip .metric__num { font-size: var(--text-xl); }
  .hero-proof-strip .metric { position: relative; }
  .hero-proof-strip .metric + .metric::before { content: ""; position: absolute; left: calc(var(--sp-3) / -2); top: 4px; bottom: 4px; width: 1px; background: var(--border); }

  /* =========================================================
     POSITIONING (#about)
     ========================================================= */
  .positioning__head { max-width: 780px; margin-bottom: var(--sp-4); }
  .positioning__head h2 { margin-bottom: var(--sp-3); }
  .positioning__head p { color: var(--ink-body); max-width: var(--measure); }
  .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .pillar { display: flex; flex-direction: column; }
  .pillar .figure__viz { aspect-ratio: 16 / 9; }
  .pillar h3 { margin-bottom: 10px; font-size: var(--text-lg); }
  .pillar p { color: var(--ink-body); font-size: var(--text-sm); }

  /* =========================================================
     GROWTH METHOD (#growth-method)
     ========================================================= */
  .method__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
  .method__aside { position: sticky; top: 100px; }
  .method__aside h2 { margin-bottom: var(--sp-3); }
  .method__aside p { color: var(--ink-body); max-width: 42ch; }
  .rail { position: relative; padding-left: 62px; }
  .rail__track { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
  .rail__fill { position: absolute; inset: 0; background: var(--accent-fill); transform: scaleY(var(--rail-progress, 0)); transform-origin: top; transition: transform 120ms linear; }
  .step { position: relative; padding-bottom: var(--sp-4); }
  .step:last-child { padding-bottom: 0; }
  .step__num { position: absolute; left: -62px; top: -4px; width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border); color: var(--ink-muted); font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
  .step.is-active .step__num { color: var(--accent-text); border-color: var(--accent-fill); background: var(--accent-wash); }
  .step__station { display: block; margin-bottom: 4px; }
  .step h3 { margin-bottom: 8px; }
  .step p { color: var(--ink-body); max-width: 52ch; }

  /* =========================================================
     ★ PROOF BAND
     ========================================================= */
  .proof-band { background: var(--drench-bg); padding-block: clamp(56px, 6vw, 104px); position: relative; overflow: hidden; }
  .proof-band__grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--drench-line) 1px, transparent 1px), linear-gradient(90deg, var(--drench-line) 1px, transparent 1px); background-size: 44px 44px; opacity: 0.18; }
  .proof-band__inner { position: relative; }
  .proof-band__lead { color: var(--drench-ink); font-weight: 700; font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--sp-4); max-width: 60ch; }
  .proof-band__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
  .proof-band .metric__num { color: var(--drench-ink); font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); }
  .proof-band .metric__label { color: oklch(0.32 0.06 60); font-weight: 600; }
  .proof-band .metric + .metric { border-left: 1px solid var(--drench-line); padding-left: var(--sp-3); }

  /* =========================================================
     BOOKING (#booking-section)
     ========================================================= */
  /* The calendar column hosts a third-party GHL iframe with its own internal
     7-day week grid; we can't reach into its CSS (cross-origin), so the fix is
     giving it real room instead of guessing its breakpoints. At the previous
     1:1.05 split the iframe only got ~545px at 1440px wide, tight enough that
     GHL's own day-of-week header truncated "Saturday". The prose column reads
     fine narrower; the rigid calendar widget does not. */
  .booking__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
  /* Stack earlier than the page's other 2-col sections (980px): between ~981
     and 1360px the split still only gave the iframe ~440-555px, which is why
     "Saturday" truncated. Stacked, the calendar gets the FULL content width
     at any viewport, which is always wider than a split can offer at the same
     width — so this floor can only help the widget, never hurt it. */
  @media (max-width: 1400px) {
    .booking__grid { grid-template-columns: 1fr; }
  }
  .booking__head .status-chip { margin-bottom: var(--sp-3); }
  .booking__head h2 { margin-bottom: var(--sp-3); }
  .booking__head p { color: var(--ink-body); margin-bottom: var(--sp-4); }
  .booking__cover-title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: var(--text-lg); margin-bottom: var(--sp-3); }
  .booking-features { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
  .booking-feature { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
  .booking-feature__title { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 3px; }
  .booking-feature__desc { color: var(--ink-body); font-size: var(--text-sm); }
  .guarantee-panel { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); background: var(--surface); }
  .guarantee-panel__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); font-weight: 700; margin-bottom: 8px; }
  .guarantee-panel p { color: var(--ink-body); font-size: var(--text-sm); }
  .calendar-card { padding: clamp(18px, 2vw, 26px); }
  .calendar-card__head { margin-bottom: var(--sp-3); }
  .calendar-card__head h3 { margin-bottom: 4px; }
  .calendar-card__head p { color: var(--ink-muted); font-size: var(--text-sm); }
  .ghl-shell { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 620px; background: var(--surface-sunken); }
  #calendly-container { position: relative; z-index: 1; min-height: 620px; scroll-margin-top: 100px; }
  #calendly-container iframe { width: 100%; min-height: 620px; border: none; }
  .ghl-skeleton { position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; color: var(--ink-muted); text-align: center; z-index: 0; }
  .booking-urgency { margin-top: var(--sp-3); color: var(--ink-muted); font-size: var(--text-sm); display: flex; align-items: center; gap: 10px; }

  /* =========================================================
     SERVICES (#services)
     ========================================================= */
  .services__head { max-width: 760px; margin-bottom: var(--sp-4); }
  .services__head h2 { margin-bottom: var(--sp-3); }
  .services__head p { color: var(--ink-body); }
  .services__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 1fr; gap: var(--sp-3); }
  .services__grid--4 { grid-template-columns: repeat(4, 1fr); }
  .service { background: transparent; border: 1px solid transparent; border-radius: var(--r-lg); padding: var(--sp-3); transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); display: flex; flex-direction: column; }
  .service:hover { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .service__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
  .service__code { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-deep); text-transform: uppercase; }
  .service h3 { font-size: var(--text-lg); margin-bottom: 8px; }
  .service h3 a { color: inherit; }
  .service__desc { color: var(--ink-body); font-size: var(--text-sm); margin-bottom: var(--sp-3); }
  .service__features { display: flex; flex-direction: column; gap: 9px; margin-bottom: var(--sp-3); }
  .service__features li { display: flex; align-items: start; gap: 10px; font-size: var(--text-sm); color: var(--ink-body); }
  .service__features a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .service__cta { margin-top: auto; }
  .service--featured { grid-column: 1; grid-row: 1 / span 2; background: var(--surface); border: 2px solid var(--accent-fill); box-shadow: var(--shadow-md); }
  .service--featured.service--row { grid-row: auto; }
  .service--featured:hover { transform: translateY(-3px); border-color: var(--accent-fill); }
  .service--featured h3 { font-size: var(--text-xl); }
  .service--featured .service__code { color: var(--accent-text); }
  .services-note { margin-top: var(--sp-4); border-top: 1px solid var(--border); padding-top: var(--sp-4); max-width: 70ch; }
  .services-note h3 { font-size: var(--text-lg); margin-bottom: 8px; }
  .services-note p { color: var(--ink-body); font-size: var(--text-sm); }

  /* =========================================================
     TESTIMONIALS (#testimonials)
     ========================================================= */
  .testimonials__head { max-width: 720px; margin-bottom: var(--sp-4); }
  .testimonials__head h2 { margin-bottom: var(--sp-3); }
  .testimonials__head p { color: var(--ink-body); }
  .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .testi { padding: var(--sp-3); display: flex; flex-direction: column; }
  .testi--featured { position: relative; }
  .testi--featured::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent-gradient); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .testi__quote-icon { display: block; color: var(--accent-fill); font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 0.6; height: 1.4rem; margin-bottom: var(--sp-2); }
  .testi__body { color: var(--ink-body); margin-bottom: var(--sp-3); }
  .testi__result { display: inline-flex; }
  .testi__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--border); }
  .testi__author img { width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--surface-sunken); }
  .testi__author h4 { font-size: var(--text-base); }
  .testi__author p { color: var(--ink-muted); font-size: var(--text-sm); }
  .testi__stars { margin-left: auto; color: var(--accent-fill); display: inline-flex; gap: 1px; white-space: nowrap; }
  .testi__stars .icon { width: 15px; height: 15px; }

  /* =========================================================
     RESULT-CHIP MARQUEE
     ========================================================= */
  .marquee { overflow: hidden; padding-block: var(--sp-4); background: var(--bg); border-block: 1px solid var(--border); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .marquee__track { display: flex; width: max-content; animation: marquee-scroll 40s linear infinite; }
  /* Floor each set at the viewport so one set always spans the band. A set
     narrower than the band would leave dead space on the right at the end of
     the cycle, which reads as the marquee stalling and snapping back.
     space-around absorbs the stretch; padding-right keeps the seam spacing
     equal to the internal gap when the set is at its natural width. */
  .marquee__set {
    display: flex; align-items: center; flex: none;
    gap: var(--sp-3); padding-right: var(--sp-3);
    min-width: 100vw; justify-content: space-around;
  }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
  /* Hold the chips clear of the fixed meridian rail: fade to opaque only past
     the longest station label instead of the default 8%. */
  @media (min-width: 1080px) {
    .has-thread .marquee {
      -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 180px, #000 92%, transparent);
      mask-image: linear-gradient(90deg, transparent 0, #000 180px, #000 92%, transparent);
    }
  }
  .marquee .mono-tag { font-size: 0.9rem; }

  /* =========================================================
     NEWSLETTER BAND
     ========================================================= */
  .newsletter-band { background: var(--console); }
  .newsletter-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding-block: clamp(40px, 4vw, 64px); }
  .newsletter-band__copy h2 { color: var(--ink-on-dark); font-size: var(--text-xl); margin-bottom: 6px; }
  .newsletter-band__copy p { color: var(--ink-on-dark-2); font-size: var(--text-sm); }

  /* =========================================================
     CONTACT (#contact)
     ========================================================= */
  .contact__head { max-width: 640px; margin-bottom: var(--sp-4); }
  .contact__head h2 { margin-bottom: var(--sp-3); }
  .contact__head p { color: var(--ink-body); }
  .contact-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: var(--sp-4); }
  .contact-route { padding: var(--sp-3) clamp(16px, 2vw, 32px); }
  .contact-route:first-child { padding-left: 0; }
  .contact-route + .contact-route { border-left: 1px solid var(--border); }
  .contact-route .mono-tag { margin-bottom: var(--sp-3); }
  .contact-route h3 { font-size: var(--text-lg); margin-bottom: 6px; }
  .contact-route__value { color: var(--ink); font-weight: 700; }
  .contact-route__meta { color: var(--ink-muted); font-size: var(--text-sm); }
  .final-cta { text-align: center; padding: clamp(36px, 5vw, 64px); }
  .final-cta h3 { font-size: var(--text-2xl); margin-bottom: var(--sp-3); max-width: 22ch; margin-inline: auto; }
  .final-cta p { color: var(--ink-body); max-width: 54ch; margin: 0 auto var(--sp-4); }

  /* =========================================================
     FOOTER
     ========================================================= */
  .site-footer { background: var(--console); color: var(--ink-on-dark-2); padding-block: var(--sp-5) var(--sp-4); }
  .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border-on-dark); }
  .footer-col h3 { color: var(--ink-on-dark); font-size: var(--text-base); margin-bottom: var(--sp-3); }
  .footer-col p { font-size: var(--text-sm); max-width: 42ch; }
  .footer-col ul { display: flex; flex-direction: column; gap: 4px; }
  .footer-col ul a { color: var(--ink-on-dark-2); font-size: var(--text-sm); min-height: 28px; display: inline-flex; align-items: center; }
  .footer-col ul a:hover { color: var(--accent-on-dark); }
  .footer-social { display: flex; gap: 10px; margin-bottom: var(--sp-3); }
  .footer-social a { width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--border-on-dark); display: grid; place-items: center; color: var(--ink-on-dark); }
  .footer-social a:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
  .footer-contact p { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); margin-bottom: 8px; }
  .footer-contact__tag { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); border: 1px solid var(--border-on-dark); border-radius: var(--r-sm); padding: 3px 7px; }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-3); font-size: var(--text-sm); }
  .footer-bottom a { color: var(--accent-on-dark); }

  /* =========================================================
     SUBPAGES (service detail pages) — shared composition
     ========================================================= */
  .page-hero { background: var(--bg); padding-block: clamp(40px, 4vw, 72px) clamp(48px, 5vw, 88px); position: relative; overflow: hidden; }
  .page-hero > .container { position: relative; z-index: 1; }
  .page-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
  .page-hero__solo { max-width: 760px; }
  .page-hero__code { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3); }
  .page-hero h1 { margin-bottom: var(--sp-3); }
  .page-hero__lead { color: var(--ink-body); font-size: var(--text-lg); max-width: var(--measure); margin-bottom: var(--sp-3); }
  .page-hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
  .page-hero .hero-proof-strip { max-width: 560px; }

  /* Instrument aside: a readout card (light) or console card (dark) */
  .instrument { padding: clamp(20px, 2.2vw, 30px); }
  .instrument__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
  .instrument__title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: var(--text-base); }
  .readout { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--sp-3); }
  .readout__row { display: grid; gap: 6px; }
  .readout__label { display: flex; justify-content: space-between; align-items: baseline; }
  .readout__label strong { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-deep); }
  .readout__track { height: 8px; border-radius: 4px; background: var(--surface-sunken); border: 1px solid var(--border); overflow: hidden; }
  .readout__bar { display: block; height: 100%; background: var(--accent-gradient); border-radius: 4px; transform-origin: left; }
  .js-motion .readout__bar { transform: scaleX(0); transition: transform 900ms var(--ease-out) 300ms; }
  .js-motion .is-in .readout__bar { transform: scaleX(1); }
  .instrument__note { border-top: 1px solid var(--border); padding-top: var(--sp-2); display: flex; flex-direction: column; gap: 8px; }
  .instrument__note li { display: flex; gap: 10px; align-items: start; font-size: var(--text-sm); color: var(--ink-body); }

  /* Console-style instrument (dark, mirrors index form card) */
  .instrument--console { background: var(--console); border-color: var(--border-on-dark); }
  .instrument--console .instrument__top { border-bottom-color: var(--border-on-dark); }
  .instrument--console .instrument__title { color: var(--ink-on-dark); }
  .thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-3); }
  .thread__bubble { max-width: 88%; padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: var(--console-2); color: var(--ink-on-dark-2); font-size: var(--text-sm); }
  .thread__bubble--out { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--accent-wash); color: var(--ink); }
  .routing { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border-on-dark); padding-top: var(--sp-2); }
  .routing__row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-sm); }
  .routing__row span { color: var(--ink-on-dark-2); }
  .routing__row strong { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-on-dark); }

  /* Horizontal plotted flow path (click -> revenue) */
  .flow-path { margin-block: var(--sp-4); overflow-x: auto; padding-bottom: 6px; }
  .flow-path__track { display: flex; align-items: center; min-width: max-content; }
  .flow-path__step { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-body); white-space: nowrap; }
  .flow-path__step::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-fill); flex: none; }
  .flow-path__step--end { background: var(--accent-gradient); border-color: transparent; color: var(--ink); box-shadow: var(--shadow-cta); }
  .flow-path__step--end::before { background: var(--ink); }
  .flow-path__link { width: clamp(18px, 3vw, 42px); height: 2px; background: var(--accent-fill); opacity: 0.5; flex: none; }

  /* Ledger rows (leak list — replaces identical card grids) */
  .ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
  .ledger__row { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; padding-block: var(--sp-3); border-bottom: 1px solid var(--border); }
  .ledger__row h3 { font-size: var(--text-base); margin-bottom: 4px; }
  .ledger__row p { color: var(--ink-body); font-size: var(--text-sm); }

  /* Two-column split (AI helps / team handles) */
  .split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .split-col { padding: var(--sp-3); }
  .split-col__head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
  .split-col__head h3 { font-size: var(--text-lg); }
  .split-col ul { display: flex; flex-direction: column; gap: 10px; }
  .split-col li { display: flex; gap: 10px; align-items: start; font-size: var(--text-sm); color: var(--ink-body); }
  .split-col--team { background: var(--console); border-color: var(--border-on-dark); }
  .split-col--team .split-col__head { border-bottom-color: var(--border-on-dark); }
  .split-col--team h3 { color: var(--ink-on-dark); }
  .split-col--team li { color: var(--ink-on-dark-2); }
  .split-col--team .tick::after { border-color: var(--accent-on-dark); }
  .section-note { color: var(--ink-muted); font-size: var(--text-sm); max-width: 70ch; margin-top: var(--sp-3); }

  /* Stack chips */
  .stack-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

  /* Audit panel — console band with checklist */
  .audit-panel { background: var(--console); border-radius: var(--r-lg); padding: clamp(28px, 3.5vw, 56px); box-shadow: var(--shadow-lg); }
  .audit-panel__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
  .audit-panel h2 { color: var(--ink-on-dark); margin-bottom: var(--sp-3); }
  .audit-panel__copy p { color: var(--ink-on-dark-2); margin-bottom: var(--sp-3); }
  .audit-panel__note { font-size: var(--text-sm); margin-top: var(--sp-2); }
  .audit-panel__list-card { background: var(--console-2); border: 1px solid var(--border-on-dark); border-radius: var(--r-md); padding: var(--sp-3); }
  .audit-panel__list-card h3 { color: var(--ink-on-dark); font-size: var(--text-base); margin-bottom: var(--sp-2); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .audit-panel__list-card ul { display: flex; flex-direction: column; gap: 9px; }
  .audit-panel__list-card li { display: flex; gap: 10px; align-items: start; font-size: var(--text-sm); color: var(--ink-on-dark-2); }
  .audit-panel__list-card .tick::after { border-color: var(--accent-on-dark); }

  /* FAQ — native details, mono index turns amber when open (no rotating chevron) */
  .faq { max-width: 820px; }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-item summary { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-3); align-items: baseline; padding-block: var(--sp-3); cursor: pointer; list-style: none; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary:hover .faq-item__q { color: var(--accent-deep); }
  .faq-item__idx { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; transition: color var(--dur-fast) var(--ease-out); }
  .faq-item__q { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--ink); transition: color var(--dur-fast) var(--ease-out); }
  .faq-item__mark { position: relative; width: 14px; height: 14px; align-self: center; }
  .faq-item__mark::before, .faq-item__mark::after { content: ""; position: absolute; background: var(--ink-muted); transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
  .faq-item__mark::before { left: 0; right: 0; top: 6px; height: 2px; }
  .faq-item__mark::after { top: 0; bottom: 0; left: 6px; width: 2px; }
  .faq-item[open] .faq-item__idx { color: var(--accent-text); }
  .faq-item[open] .faq-item__mark::after { transform: scaleY(0); }
  .faq-item[open] .faq-item__mark::before { background: var(--accent-fill); }
  .faq-item__a { padding: 0 0 var(--sp-3) calc(var(--sp-3) + 2.2ch); color: var(--ink-body); font-size: var(--text-sm); max-width: 65ch; }

  /* Case cards (quiet 3-up) */
  .case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .case-card { padding: var(--sp-3); }
  .case-card h3 { font-size: var(--text-lg); margin-bottom: 8px; }
  .case-card p { color: var(--ink-body); font-size: var(--text-sm); }

  /* Generic subpage section head */
  .sec-head { max-width: 780px; margin-bottom: var(--sp-4); }
  .sec-head h2 { margin-bottom: var(--sp-3); }
  .sec-head p { color: var(--ink-body); }

  /* =========================================================
     PHASE 2 — PPC "THE MEDIA DESK" (scrolling audit + sticky terminal)
     ========================================================= */
  .desk { padding-block: var(--section-pad); background: var(--surface-sunken); position: relative; }
  .desk__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
  .desk__steps { display: flex; flex-direction: column; }
  .desk-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity var(--dur-base) var(--ease-out); }
  .desk-step.is-current { opacity: 1; }
  .desk-step__label { margin-bottom: var(--sp-3); }
  .desk-step h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-3); max-width: 15ch; }
  .desk-step p { color: var(--ink-body); max-width: 46ch; margin-bottom: var(--sp-3); }

  .desk__aside { position: sticky; top: 96px; }
  .desk-terminal { padding: clamp(20px, 2.2vw, 28px); }
  .desk-terminal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
  .desk-terminal__title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: var(--text-base); }
  .desk-readout { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--sp-3); }
  .desk-readout__row { display: grid; gap: 6px; }
  .desk-readout__label { display: flex; justify-content: space-between; align-items: baseline; }
  .desk-readout__label strong { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); transition: color var(--dur-base) var(--ease-out); }
  .desk-readout__row.is-current .desk-readout__label strong { color: var(--accent-deep); }
  .desk-readout__track { height: 8px; border-radius: 4px; background: var(--surface-sunken); border: 1px solid var(--border); overflow: hidden; }
  .desk-readout__bar { display: block; height: 100%; background: var(--accent-gradient); border-radius: 4px; width: 0; transition: width 700ms var(--ease-out); }
  .desk-findings { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent-deep); min-height: 3em; padding: 12px 14px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-sm); transition: opacity 150ms linear; }
  .desk-lamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
  .desk-lamp { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
  .desk-lamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
  .desk-lamp.is-current { color: var(--accent-deep); }
  .desk-lamp.is-current::before { background: var(--accent-fill); box-shadow: 0 0 0 3px oklch(0.78 0.15 75 / 0.28); }

  /* Build sheet — horizontal scroll-snap gallery */
  .buildsheet-wrap { position: relative; }
  .buildsheet-hint { display: block; text-align: right; margin-bottom: var(--sp-2); }
  .buildsheet {
    display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-block: var(--sp-2) var(--sp-3); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  }
  .buildsheet::-webkit-scrollbar { display: none; }
  .buildsheet__card { scroll-snap-align: center; flex: 0 0 min(560px, 86vw); padding: var(--sp-4); }
  .buildsheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
  .buildsheet__code { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
  .buildsheet__stage { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
  .buildsheet__card h3 { font-size: var(--text-xl); margin-bottom: 10px; }
  .buildsheet__card > p { color: var(--ink-body); font-size: var(--text-sm); margin-bottom: var(--sp-3); }
  .buildsheet__artifacts { display: flex; flex-direction: column; gap: 9px; }
  .buildsheet__artifacts li { display: flex; gap: 10px; align-items: start; font-size: var(--text-sm); color: var(--ink-body); }
  .buildsheet-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--sp-3); }
  .buildsheet-dots button { width: 8px; height: 8px; border-radius: var(--r-pill); border: none; background: var(--border-strong); padding: 0; cursor: pointer; transition: width var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
  .buildsheet-dots button.is-current { width: 22px; background: var(--accent-fill); }

  /* =========================================================
     PHASE 2 — AI "THE FOLLOW-UP TIMELINE" (center spine)
     ========================================================= */
  .tl { position: relative; max-width: 1080px; margin-inline: auto; padding-block: var(--sp-3); }
  .tl__spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--border); border-radius: 2px; overflow: hidden; }
  .tl__fill { position: absolute; inset: 0; background: var(--accent-fill); transform: scaleY(var(--tl-progress, 0)); transform-origin: top; }
  .tl-event { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; margin-block: var(--sp-4); position: relative; }
  .tl-event__marker { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .tl-event__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); z-index: 1; }
  .tl-event.is-in .tl-event__dot { background: var(--accent-fill); border-color: var(--accent-fill); }
  .tl-event__time { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-muted); transition: color var(--dur-base) var(--ease-out); white-space: nowrap; }
  .tl-event.is-in .tl-event__time { color: var(--accent-deep); }
  .tl-event__card { max-width: 420px; }
  .tl-event--l .tl-event__card { grid-column: 1; justify-self: end; }
  .tl-event--r .tl-event__card { grid-column: 3; justify-self: start; }
  .tl-card { padding: var(--sp-3); }
  .tl-card__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .tl-card__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-base); }
  .tl-card__field { display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-sm); padding-block: 4px; }
  .tl-card__field span { color: var(--ink-muted); }
  .tl-card__field strong { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-deep); }
  .tl-card__list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
  .tl-card__list li { display: flex; gap: 10px; align-items: start; font-size: var(--text-sm); color: var(--ink-body); }
  .tl-card p { color: var(--ink-body); font-size: var(--text-sm); }
  .tl-card p + p { margin-top: 6px; }
  .tl-card__log { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
  .tl-card__stamp { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-deep); }
  .tl-card__title .status-dot { display: inline-block; vertical-align: middle; margin-right: 8px; }
  .sec-head--center { text-align: center; margin-inline: auto; }
  .section-note--center { text-align: center; margin-inline: auto; }
  .tl-card__stage { display: inline-flex; align-items: center; gap: 10px; }
  .tl-card__stage .chip { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; }
  .tl-card__stage-arrow { color: var(--accent-text); }
  /* SMS bubbles inside timeline */
  .tl-sms { max-width: 340px; padding: 12px 16px; border-radius: 14px 14px 14px 4px; font-size: var(--text-sm); }
  .tl-event--l .tl-sms { border-radius: 14px 14px 4px 14px; }
  .tl-sms--in { background: var(--console-2); color: var(--ink-on-dark); }
  .tl-sms--out { background: var(--accent-wash); color: var(--ink); }
  .tl-sms__meta { display: block; font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin-bottom: 5px; }
  .tl-sms--in .tl-sms__meta { color: var(--ink-on-dark-2); }
  /* typing indicator — hidden by default; scenes.js reveals it (no-JS shows only the message) */
  .tl-typing { display: none; gap: 4px; padding: 14px 16px; }
  .tl-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); animation: tl-type 1.2s var(--ease-out) infinite; }
  .tl-typing span:nth-child(2) { animation-delay: 0.15s; }
  .tl-typing span:nth-child(3) { animation-delay: 0.3s; }
  /* interleaved leak notes */
  .tl-note { grid-column: 1 / -1; text-align: center; margin-block: var(--sp-4); position: relative; z-index: 1; }
  .tl-note span { display: inline-block; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 10px 20px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em; color: var(--accent-deep); }

  /* Industries strip */
  .ind-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
  .ind-item h3 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .ind-item p { color: var(--ink-body); font-size: var(--text-sm); }

  /* Build log (AI method) — terminal window */
  .buildlog { max-width: 860px; margin-inline: auto; padding: 0; overflow: hidden; }
  .buildlog__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-on-dark); }
  .buildlog__dot { width: 11px; height: 11px; border-radius: 50%; }
  .buildlog__dot--r { background: var(--error-on-dark); }
  .buildlog__dot--y { background: var(--accent-on-dark); }
  .buildlog__dot--g { background: oklch(0.7 0.13 145); }
  .buildlog__name { margin-left: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-on-dark-2); }
  .buildlog__body { padding: var(--sp-3) clamp(18px, 2.4vw, 28px) var(--sp-4); font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.9; min-height: 260px; }
  .buildlog__line { color: var(--ink-on-dark-2); white-space: pre-wrap; }
  .buildlog__day { color: var(--accent-on-dark); }
  .buildlog__caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent-on-dark); vertical-align: text-bottom; animation: caret-blink 1s steps(2) infinite; }
  @media (prefers-reduced-motion: reduce) { .buildlog__caret { animation: none; } .tl-typing span { animation: none; } }

  /* =========================================================
     PHASE 2 — FAQ upgrade (sticky lead column)
     ========================================================= */
  .faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .faq-lead { position: sticky; top: 96px; }
  .faq-lead h2 { margin-block: var(--sp-3); }
  .faq-lead p { color: var(--ink-body); margin-bottom: var(--sp-3); }
  .faq-item__a .chip { margin-top: var(--sp-2); }

  /* =========================================================
     PHASE 2 — BLOG "FIELD NOTES"
     ========================================================= */
  /* Masthead — a technical-journal nameplate, not a SaaS hero */
  .masthead { background: var(--bg); padding-block: clamp(40px, 5vw, 72px) var(--sp-4); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
  .masthead > .container { position: relative; z-index: 1; }
  .masthead__nameplate {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
    flex-wrap: wrap; padding-bottom: var(--sp-3); margin-bottom: var(--sp-4); border-bottom: 2px solid var(--ink);
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink);
  }
  .masthead__nameplate .mn-sep { color: var(--accent-text); }
  .masthead__nameplate .mn-mut { color: var(--ink-muted); }
  .masthead__lede { max-width: 760px; }
  .masthead__lede h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.2rem); margin-bottom: var(--sp-3); }
  .masthead__lede p { color: var(--ink-body); font-size: var(--text-lg); max-width: var(--measure); }

  /* Category filter — mono chips built from live Contentful categories */
  .blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
  .blog-filter__chip {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--ink-body); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 16px; cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  }
  .blog-filter__chip:hover { border-color: var(--accent-text); color: var(--accent-deep); }
  .blog-filter__chip.is-active { background: var(--ink); color: var(--ink-on-dark); border-color: var(--ink); }
  .blog-filter:empty { display: none; }

  .blog-section { padding-block: var(--section-pad); background: var(--bg); }
  .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-3); counter-reset: entry; }
  .blog-grid .blog-card[hidden] { display: none; }
  .blog-loading { grid-column: 1 / -1; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ink-muted); padding-block: var(--sp-4); }
  .blog-grid .blog-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .blog-grid .blog-card:hover { border-color: var(--accent-fill); box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .blog-grid .blog-card::before {
    counter-increment: entry; content: "N°" counter(entry, decimal-leading-zero);
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
    color: var(--accent-deep); background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 4px 8px;
  }
  .blog-grid .blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .blog-grid .blog-content { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; }
  .blog-grid .blog-category {
    display: inline-flex; align-self: flex-start; font-family: var(--font-mono);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent-deep); margin-bottom: var(--sp-2);
  }
  .blog-grid .blog-content h2 { font-size: var(--text-lg); margin-bottom: 8px; }
  .blog-grid .blog-content > p { color: var(--ink-body); font-size: var(--text-sm); margin-bottom: var(--sp-3); }
  .blog-grid .blog-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.03em; }
  .blog-grid .blog-meta i, .blog-grid .read-more i { display: none; }
  .blog-grid .read-more { display: inline-flex; align-items: center; margin-top: var(--sp-3); color: var(--accent-text); font-weight: 600; font-size: var(--text-sm); }
  .blog-grid .read-more::after { content: "→"; margin-left: 6px; transition: transform var(--dur-fast) var(--ease-out); }
  .blog-grid .blog-card:hover .read-more::after { transform: translateX(3px); }
  /* Featured lead story — only in the unfiltered "all" view */
  .blog-grid:not([data-filtered]) .blog-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .blog-grid:not([data-filtered]) .blog-card:first-child img { width: 52%; aspect-ratio: auto; object-fit: cover; align-self: stretch; min-height: 320px; }
  .blog-grid:not([data-filtered]) .blog-card:first-child .blog-content { justify-content: center; padding: var(--sp-4); }
  .blog-grid:not([data-filtered]) .blog-card:first-child .blog-content h2 { font-size: var(--text-2xl); }
  .blog-grid:not([data-filtered]) .blog-card:first-child .blog-content > p { font-size: var(--text-base); }

  /* Blog post (memo) reading page */
  .memo { padding-block: clamp(40px, 4vw, 72px); }
  .memo__wrap { max-width: 720px; margin-inline: auto; }
  .memo__crumb { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin-bottom: var(--sp-3); }
  .memo__crumb a { color: var(--accent-deep); }
  .memo h1 { font-size: var(--text-2xl); max-width: 20ch; margin-bottom: var(--sp-3); }
  .memo__meta { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); margin-bottom: var(--sp-4); }
  .memo__hero-img { width: 100%; border-radius: var(--r-lg); margin-bottom: var(--sp-4); }
  .memo__body { font-size: var(--text-base); line-height: 1.75; color: var(--ink-body); }
  .memo__body > * { max-width: 68ch; }
  .memo__body h2 { font-size: var(--text-xl); margin: var(--sp-4) 0 var(--sp-3); }
  .memo__body h3 { font-size: var(--text-lg); margin: var(--sp-4) 0 var(--sp-2); }
  .memo__body p { margin-bottom: var(--sp-3); }
  .memo__body ul, .memo__body ol { margin: 0 0 var(--sp-3) 1.2em; display: flex; flex-direction: column; gap: 8px; }
  .memo__body li { list-style: disc; }
  .memo__body ol li { list-style: decimal; }
  .memo__body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
  .memo__body hr { border: none; height: 2px; width: 44px; background: var(--accent-fill); margin: var(--sp-4) 0; border-radius: 2px; }
  .memo__body blockquote { position: relative; margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--ink); font-size: var(--text-lg); }
  .memo__body blockquote::before { content: "\201C"; position: absolute; left: 12px; top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent-fill); }
  .memo__body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; }
  .memo__body img { border-radius: var(--r-md); margin: var(--sp-3) 0; }
  .memo__cta { max-width: 720px; margin: var(--sp-5) auto 0; padding-top: var(--sp-4); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
  .memo__cta p { color: var(--ink); font-weight: 600; max-width: 40ch; }
  .memo__loading, .memo__error { max-width: 620px; margin: var(--sp-5) auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--text-sm); }

  /* =========================================================
     RESPONSIVE
     ========================================================= */
  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .page-hero__grid { grid-template-columns: 1fr; }
    .ledger { grid-template-columns: 1fr; }
    .split-cols { grid-template-columns: 1fr; }
    .audit-panel__grid { grid-template-columns: 1fr; }
    .case-cards { grid-template-columns: 1fr; }
    .method__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
    .method__aside { position: static; }
    .services__grid, .services__grid--4 { grid-template-columns: 1fr 1fr; }
    .service--featured { grid-column: 1 / -1; grid-row: auto; }
    .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    /* PPC desk: stack, terminal above steps, non-sticky, steps normal height */
    .desk__grid { grid-template-columns: 1fr; }
    .desk__aside { position: static; order: -1; margin-bottom: var(--sp-4); }
    .desk-step { min-height: auto; opacity: 1; padding-block: var(--sp-3); }
    /* AI timeline: single column, left spine */
    .tl__spine { left: 7px; transform: none; }
    .tl-event { grid-template-columns: 24px 1fr; column-gap: var(--sp-3); }
    .tl-event__marker { flex-direction: row; grid-column: 1; }
    .tl-event__dot { width: 12px; height: 12px; }
    .tl-event__time { position: absolute; left: 34px; top: -20px; }
    .tl-event--l .tl-event__card, .tl-event--r .tl-event__card { grid-column: 2; justify-self: stretch; max-width: none; margin-top: 8px; }
    .tl-note { grid-column: 1 / -1; text-align: left; padding-left: 34px; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-lead { position: static; margin-bottom: var(--sp-3); }
    .ind-strip { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }
    /* The typing audit-line is a desktop flourish: on a phone it adds a 4th
       block of reading (chip -> h1 -> sub -> this) before the VSL/CTA even
       appear, and its ~2.5s type-in reads as sluggish at arm's length. */
    .audit-line { display: none; }
    .pillars { grid-template-columns: 1fr; }
    .proof-band__metrics { grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-3); }
    .proof-band .metric + .metric { border-left: none; padding-left: 0; }
    .proof-band__metrics .metric:nth-child(even) { border-left: 1px solid var(--drench-line); padding-left: var(--sp-3); }
    .services__grid { grid-template-columns: 1fr; }
    .hero-proof-strip { grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-2); }
    .hero-proof-strip .metric + .metric::before { content: none; }
    .page-hero { padding-block: clamp(34px, 8vw, 48px) clamp(42px, 10vw, 60px); }
    .page-hero__grid { gap: var(--sp-4); }
    .page-hero__code { width: 100%; justify-content: space-between; gap: 10px; margin-bottom: var(--sp-2); }
    .page-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); line-height: 0.96; letter-spacing: -0.045em; margin-bottom: var(--sp-2); }
    .page-hero__lead { font-size: clamp(1rem, 4.8vw, 1.14rem); line-height: 1.55; margin-bottom: var(--sp-3); }
    .page-hero__cta { gap: 10px; margin-bottom: var(--sp-3); }
    .page-hero__cta .btn {
      width: 100%;
      justify-content: center;
      min-height: 48px;
      padding-inline: 16px;
      gap: 8px;
      font-size: clamp(0.88rem, 4vw, 0.96rem);
      line-height: 1.08;
      white-space: nowrap;
    }
    .page-hero__cta .btn .icon { flex: none; }
    .page-hero .hero-proof-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0;
      max-width: none;
      margin-top: var(--sp-3);
      padding: 0;
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      background: oklch(0.99 0.008 80 / 0.76);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .page-hero .hero-proof-strip .metric {
      min-width: 0;
      padding: 13px 14px 12px;
    }
    .page-hero .hero-proof-strip .metric:nth-child(odd) { border-right: 1px solid var(--border); }
    .page-hero .hero-proof-strip .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
    .page-hero .hero-proof-strip .metric__num {
      display: block;
      font-size: clamp(1.38rem, 7vw, 1.75rem);
      line-height: 0.95;
      letter-spacing: -0.035em;
    }
    .page-hero .hero-proof-strip .metric__label {
      display: block;
      margin-top: 6px;
      font-size: 0.78rem;
      line-height: 1.15;
    }
    .tl {
      width: min(100% - 40px, 1080px);
      padding-block: var(--sp-2);
    }
    .tl-event {
      grid-template-columns: 22px minmax(0, 1fr);
      column-gap: 16px;
      margin-block: var(--sp-4);
    }
    .tl__spine { left: 6px; }
    .tl-event__time { left: 30px; }
    .tl-event--l .tl-event__card,
    .tl-event--r .tl-event__card {
      min-width: 0;
      margin-top: 10px;
    }
    .tl-card { padding: 18px; }
    .tl-card__label {
      align-items: flex-start;
      gap: 8px;
    }
    .tl-card__field {
      gap: 10px;
      align-items: baseline;
    }
    .tl-card__field strong {
      text-align: right;
      overflow-wrap: anywhere;
    }
    .tl-sms {
      max-width: none;
      width: 100%;
      padding: 13px 15px;
    }
    .tl-note {
      padding-left: 30px;
      padding-right: 0;
    }
    .tl-note span {
      max-width: 100%;
      border-radius: var(--r-lg);
      padding: 10px 14px;
      line-height: 1.35;
    }
    .contact-routes { grid-template-columns: 1fr; }
    .contact-route { padding-inline: 0; }
    .contact-route + .contact-route { border-left: none; border-top: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr; }
    /* Was 1fr here, stacking Name/Email and Business/Service into 4 full-width
       rows instead of 2 paired ones — the main reason the lead form ran so
       long on a phone. 2 columns still fits (~160px/field at 375px), so keep
       the pairing and only condense the fields themselves below. */
    .hf-row { gap: var(--sp-1); }
    /* Condense the lead-form fields themselves: 52px fields with 12px group
       gaps read "fat" stacked eight-deep on a phone. 44px is still the a11y
       touch-target floor; the primary CTA (.hf-submit) is untouched. */
    .field { min-height: 44px; padding: 10px 14px; }
    .field-label { margin-bottom: 4px; }
    .hf-group { margin-bottom: 8px; }
    .form-subheading { margin-bottom: var(--sp-2); }
    .buildsheet__card { flex-basis: 88vw; padding: var(--sp-3); }
    .ind-strip { grid-template-columns: 1fr; }
    .blog-grid:not([data-filtered]) .blog-card:first-child { flex-direction: column; }
    .blog-grid:not([data-filtered]) .blog-card:first-child img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
    .blog-grid:not([data-filtered]) .blog-card:first-child .blog-content { padding: var(--sp-3); }
    .masthead__nameplate { font-size: 0.62rem; letter-spacing: 0.06em; }
    .memo__cta { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 400px) {
    /* Was 1fr here, collapsing the 4 metrics to a stacked column on most
       phones (this breakpoint covers the iPhone SE/mini class, not just tiny
       screens). 2 columns fits comfortably at 320px+ and reads as the "4
       squares" grid the metrics are meant to be. */
    .page-hero .hero-proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl { width: min(100% - 32px, 1080px); }
    .tl-event { column-gap: 14px; }
    .tl-card { padding: 16px; }
  }

  /* =========================================================
     MOBILE REFINEMENT PASS  (phones, ≤640px)
     Every rule below is max-width guarded, so desktop/tablet
     ≥641px is never affected. Shared file → applies to the
     homepage AND every v2 subpage (ppc, follow-up, blog).
     Goal: quieter hero backdrop, tighter vertical rhythm,
     denser hero top, comfortable form controls.
     ========================================================= */
  @media (max-width: 640px) {
    /* Trim the section-padding floor. 72px min is heavy on a phone where
       every section already fills the fold; this tightens the whole page
       rhythm at once (also reaches the subpages via the shared token). */
    :root { --section-pad: clamp(52px, 11vw, 76px); }

    /* Hero backdrop: the growth-curve SVG is authored 1200×500. Stretched to
       78% of a ~2800px stacked hero it slice-crops into a distorted smear.
       Cap it to a real backdrop band sitting behind the headline only. */
    .hero-viz { height: clamp(220px, 46vw + 140px, 320px); opacity: 0.8; }
    .hero__grid { background-size: 36px 36px; }

    /* Denser hero top: the 1.36rem display sub wraps to ~6 lines and the
       block reads airy. Step the sub down to body size and pull the stack in. */
    .hero { padding-block: clamp(28px, 7vw, 44px) var(--section-pad); }
    .hero-top { margin-bottom: var(--sp-3); }
    .hero-sub { font-size: var(--text-base); }
    .hero-grid { gap: var(--sp-4); }

    /* Consent checkboxes: 18px native boxes sit below a comfortable tap
       floor and misalign with the multi-line legal copy beside them. */
    .hf-sms-label input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin-top: 2px; }
  }
}
