    /* ─────────────────────────────────────────────
   TOKENS — deep dark, ambient light source
   Not the AI dark cluster: no acid green, no vermilion.
   Violet + coral gradient, cool near-black bg.
   ───────────────────────────────────────────── */
    :root {
      --bg: #08080B;
      --surface: #0E0E14;
      --surface-2: #14141C;
      --border: #1E1E28;
      --border-lit: #2E2E3D;
      --text: #ECECF1;
      --text-muted: #9A9AA8;
      --text-quiet: #8A8A98;
      /* nudged up from #7A7A88 to stay comfortably WCAG AA (6.1:1 on --bg) */
      --violet: #A78BFA;
      --violet-strong: #8B5CF6;
      --coral: #FF7A6B;
      --violet-glow: rgba(167, 139, 250, .6);
      --coral-glow: rgba(255, 122, 107, .55);

      /* iOS notch / Dynamic Island — nav & footer pad by insets when device provides them. */
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-left: env(safe-area-inset-left, 0px);
      --safe-right: env(safe-area-inset-right, 0px);

      /* Fraunces handles both display (roman) and italic accents — single
     variable family with expressive opsz/SOFT/wght axes. */
      --f-display: "Fraunces", "Times New Roman", serif;
      --f-italic: "Fraunces", Georgia, serif;
      --f-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
      --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

      --space-1: .5rem;
      --space-2: 1rem;
      --space-3: 1.5rem;
      --space-4: 2rem;
      --space-5: 3rem;
      --space-6: 4rem;
      --space-7: 6rem;
      --space-8: 9rem;

      --measure: 34rem;
      --shell: min(1200px, 100% - 2.5rem);
      --shell-narrow: min(880px, 100% - 2.5rem);

      --ease-out: cubic-bezier(.16, 1, .3, 1);
      --ease-quiet: cubic-bezier(.4, 0, .2, 1);
      /* Subtle spring-back — feels like the motion has weight, not code. */
      --ease-spring: cubic-bezier(.34, 1.35, .5, 1);
      --ease-draw: cubic-bezier(.2, .7, .15, 1);
      --radius: 14px;
      --radius-sm: 8px;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box
    }

    html {
      -webkit-text-size-adjust: 100%;
      scroll-behavior: smooth;
      background: var(--bg)
    }

    /* View transitions API — enables smooth cross-document transitions
   in Chromium when the site gains subpages (case study detail routes,
   for example). Progressive enhancement; no-op where unsupported. */
    @view-transition {
      navigation: auto
    }

    /* Anchor scrolling — leave room for the sticky nav so a hash jump
   never parks the target under the header. */
    main section[id],
    main header[id],
    #contact,
    #subscribe-h {
      scroll-margin-top: 80px;
    }

    body {
      margin: 0;
      color: var(--text);
      font-family: var(--f-body);
      font-size: 1rem;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      overflow-x: clip;
      min-height: 100dvh;
      /* Ambient mesh gradient — layered radial glows, not blob divs.
     Static; the perception of depth is enough. */
      background:
        radial-gradient(ellipse 95% 55% at 50% -10%, rgba(167, 139, 250, .22), transparent 62%),
        radial-gradient(ellipse 60% 40% at 12% 12%, rgba(255, 122, 107, .10), transparent 65%),
        radial-gradient(ellipse 55% 38% at 88% 22%, rgba(120, 170, 255, .08), transparent 65%),
        var(--bg);
      background-repeat: no-repeat;
      background-attachment: fixed;
    }

    img {
      max-width: 100%;
      display: block
    }

    /* Focus ring — layered halo via box-shadow.
   Bg-offset gives clean gap (like outline-offset), inner ring is the
   focus indicator, outer glow softens the whole thing without adding
   a hard second edge. */
    :focus-visible {
      outline: none;
      box-shadow:
        0 0 0 3px var(--bg),
        0 0 0 5px var(--violet),
        0 0 24px -2px rgba(167, 139, 250, .45);
      border-radius: 4px;
      transition: box-shadow .25s var(--ease-quiet);
    }

    ::selection {
      background: rgba(167, 139, 250, .35);
      color: var(--text)
    }

    /* ─────────────────────────────────────────────
   SCROLL PROGRESS — 2px gradient rule at the very
   top of the viewport, fills as the user reads.
   Driven by CSS scroll-timeline where supported,
   with a rAF-throttled JS fallback in the script.
   ───────────────────────────────────────────── */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      z-index: 40;
      /* above nav (30) so it always shows */
      background: linear-gradient(90deg, var(--violet), var(--coral));
      transform-origin: left center;
      transform: scaleX(0);
      will-change: transform;
      pointer-events: none;
      /* subtle glow so it's visible on light hero frames */
      box-shadow: 0 0 12px rgba(167, 139, 250, .45), 0 0 2px rgba(255, 122, 107, .35);
    }

    @supports (animation-timeline: scroll()) {
      .scroll-progress {
        animation: scroll-progress linear both;
        animation-timeline: scroll(root block);
      }

      @keyframes scroll-progress {
        from {
          transform: scaleX(0)
        }

        to {
          transform: scaleX(1)
        }
      }
    }

    .shell {
      width: var(--shell);
      margin-inline: auto
    }

    .shell-n {
      width: var(--shell-narrow);
      margin-inline: auto
    }

    .skip {
      position: absolute;
      left: -9999px;
      top: 0;
      background: var(--text);
      color: var(--bg);
      padding: var(--space-2) var(--space-3);
      z-index: 100;
      font-family: var(--f-mono);
      font-size: .8rem;
    }

    .skip:focus {
      left: var(--space-2);
      top: var(--space-2)
    }

    /* ─────────────────────────────────────────────
   NAV — sticky, backdrop blur, gains rule after scroll
   ───────────────────────────────────────────── */
    .nav {
      position: sticky;
      top: 0;
      z-index: 30;
      background: color-mix(in srgb, var(--bg) 68%, transparent);
      backdrop-filter: saturate(1.4) blur(14px);
      -webkit-backdrop-filter: saturate(1.4) blur(14px);
      border-bottom: 1px solid transparent;
      transition: border-color .3s var(--ease-quiet), background .3s var(--ease-quiet);
    }

    .nav.is-scrolled {
      border-bottom-color: var(--border);
      background: color-mix(in srgb, var(--bg) 85%, transparent);
    }

    .nav-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-block: var(--space-2);
      padding-top: calc(var(--space-2) + var(--safe-top));
      padding-left: var(--safe-left);
      padding-right: var(--safe-right);
      min-height: 56px;
    }

    .nav-mark {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding-block: .25rem;
      font-family: var(--f-display);
      font-weight: 500;
      font-size: 1.05rem;
      letter-spacing: -.015em;
      color: var(--text);
      text-decoration: none;
    }

    .nav-mark-cc {
      color: var(--violet)
    }

    /* Multi-page nav links — added for the 6-page site split */
    .nav-links {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      list-style: none;
      margin: 0;
      padding: 0;
      min-height: 44px;
    }

    .nav-links a {
      font-family: var(--f-body);
      font-size: .88rem;
      font-weight: 500;
      letter-spacing: -.005em;
      color: var(--text-muted);
      text-decoration: none;
      padding: .25rem 0;
      transition: color .25s var(--ease-quiet);
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-links a[aria-current="page"] {
      color: var(--text);
      box-shadow: inset 0 -2px 0 var(--violet);
    }

    @media (max-width: 720px) {
      .nav-links {
        display: none;
      }
    }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      min-height: 44px;
      padding: 0 var(--space-3);
      border-radius: 999px;
      background: var(--text);
      color: var(--bg);
      font-family: var(--f-body);
      font-size: .85rem;
      font-weight: 500;
      letter-spacing: -.005em;
      text-decoration: none;
      transition:
        background .35s var(--ease-quiet),
        color .35s var(--ease-quiet),
        gap .45s var(--ease-spring),
        transform .35s var(--ease-spring),
        box-shadow .4s var(--ease-quiet);
    }

    .nav-cta::after {
      content: "→";
      font-family: var(--f-italic);
      font-style: italic;
      font-size: .95rem;
      line-height: 1;
      translate: -4px 0;
      opacity: 0;
      transition: translate .45s var(--ease-spring), opacity .35s var(--ease-quiet);
    }

    .nav-cta:hover {
      background: var(--text);
      transform: translateY(-1px);
      gap: .7rem;
      box-shadow: 0 8px 22px -10px rgba(167, 139, 250, .55), 0 0 0 1px rgba(167, 139, 250, .35);
    }

    .nav-cta:hover::after {
      translate: 0 0;
      opacity: 1
    }

    /* ─────────────────────────────────────────────
   HERO — the signature moment
   Name assembles with blur-to-focus + stagger.
   ───────────────────────────────────────────── */
    .hero {
      position: relative;
      padding-block: clamp(var(--space-6), 15vh, var(--space-8)) var(--space-7);
    }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      margin: 0 0 var(--space-5);
      padding: .4rem .85rem .4rem .55rem;
      border-radius: 999px;
      background: rgba(167, 139, 250, .08);
      border: 1px solid rgba(167, 139, 250, .22);
      font-family: var(--f-mono);
      font-size: .72rem;
      font-weight: 500;
      letter-spacing: .02em;
      color: var(--text-muted);
    }

    .hero-tag::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--violet);
      box-shadow: 0 0 12px 2px rgba(167, 139, 250, .6);
      animation: pulse 2.4s var(--ease-quiet) infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1)
      }

      50% {
        opacity: .55;
        transform: scale(.85)
      }
    }

    .name {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 144, "SOFT" 30;
      margin: 0;
      line-height: .92;
      letter-spacing: -.03em;
      /* looser for serif — Fraunces reads tight already */
      color: var(--text);
      font-weight: 500;
    }

    .name-1 {
      font-variation-settings: "opsz" 144, "SOFT" 20;
      font-weight: 500
    }

    .name-2 {
      font-variation-settings: "opsz" 96, "SOFT" 40;
      font-weight: 400
    }

    .name-row {
      display: block;
      overflow: hidden;
      padding-block: .05em;
      /* prevents descenders being clipped */
    }

    .name-1 {
      font-size: clamp(3.5rem, 1.2rem + 9.5vw, 8.5rem);
    }

    .name-2 {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: .35em;
      font-size: clamp(2.2rem, 1rem + 5.5vw, 5.5rem);
      color: var(--text-muted);
      font-weight: 500;
      letter-spacing: -.04em;
      margin-top: .05em;
    }

    .name-italic {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      letter-spacing: -.02em;
      color: var(--text);
      padding-left: .05em;
      background: linear-gradient(120deg, var(--violet) 0%, var(--coral) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }

    /* Kinetic reveal: blur-to-focus + rise, staggered.
   Very trendy right now; GPU-cheap. */
    .word {
      display: inline-block;
      opacity: 0;
      transform: translateY(1.2em);
      filter: blur(10px);
      transition: opacity .95s var(--ease-out), transform .95s var(--ease-out), filter .95s var(--ease-out);
      transition-delay: var(--d, 0ms);
      will-change: transform, opacity, filter;
    }

    .is-in .word {
      opacity: 1;
      transform: none;
      filter: none
    }

    .hero-domain {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: .55rem;
      margin-top: var(--space-4);
      font-family: var(--f-mono);
      font-size: .78rem;
      letter-spacing: .04em;
      color: var(--text-muted);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity .7s var(--ease-out) 1.5s, transform .7s var(--ease-out) 1.5s;
    }

    .is-in .hero-domain {
      opacity: 1;
      transform: none
    }

    .hero-domain-tld {
      color: var(--violet);
      font-weight: 500
    }

    .hero-domain-note {
      font-family: var(--f-italic);
      font-style: italic;
      font-size: 1rem;
      color: var(--text-quiet);
      letter-spacing: 0;
    }

    .hero-domain-note em {
      color: var(--violet);
      font-style: italic
    }

    .hero-thesis {
      max-width: 38rem;
      margin: var(--space-6) 0 0;
      font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem);
      line-height: 1.4;
      color: var(--text-muted);
      font-weight: 400;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .8s var(--ease-out) 1.7s, transform .8s var(--ease-out) 1.7s;
    }

    .hero-thesis strong {
      color: var(--text);
      font-weight: 500
    }

    .hero-thesis em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--text);
    }

    .is-in .hero-thesis {
      opacity: 1;
      transform: none
    }

    .hero-cta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: var(--space-3);
      margin-top: var(--space-5);
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .8s var(--ease-out) 1.95s, transform .8s var(--ease-out) 1.95s;
    }

    .is-in .hero-cta {
      opacity: 1;
      transform: none
    }

    /* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .55rem;
      min-height: 52px;
      padding: 0 var(--space-4);
      border-radius: 999px;
      border: 1px solid transparent;
      font-family: var(--f-body);
      font-size: .95rem;
      font-weight: 500;
      letter-spacing: -.005em;
      text-decoration: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      isolation: isolate;
      transition:
        background .35s var(--ease-quiet),
        color .35s var(--ease-quiet),
        border-color .35s var(--ease-quiet),
        gap .45s var(--ease-spring),
        transform .38s var(--ease-spring),
        box-shadow .45s var(--ease-quiet);
    }

    /* Primary — the light button. Layered shadow, gap grows in sync with
   arrow shift; both track a single spring easing so it feels like ONE
   gesture, not two properties transitioning. */
    .btn-primary {
      background: var(--text);
      color: var(--bg);
      box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
    }

    .btn-primary:hover {
      transform: translateY(-2px) scale(1.008);
      gap: .85rem;
      box-shadow:
        0 22px 50px -20px rgba(167, 139, 250, .6),
        0 8px 18px -8px rgba(255, 122, 107, .35),
        0 0 0 1px rgba(167, 139, 250, .4);
    }

    /* Arrow: leads with translate + spring, matches the gap-grow tempo */
    .btn-arrow {
      transition: transform .38s var(--ease-spring)
    }

    .btn-primary:hover .btn-arrow {
      transform: translateX(3px)
    }

    /* Secondary — the dark/ghost button. Fill-from-left instead of
   flat background swap: surface colour draws in from the left edge,
   so the button feels like it's being "filled" rather than repainted. */
    .btn-quiet {
      background: transparent;
      color: var(--text);
      border-color: var(--border-lit);
    }

    .btn-quiet::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, var(--surface-2), var(--surface) 60%);
      transform: translateX(-101%);
      transition: transform .55s var(--ease-draw);
      z-index: -1;
    }

    .btn-quiet:hover {
      border-color: var(--text-muted);
      gap: .7rem;
      transform: translateY(-1px);
    }

    .btn-quiet:hover::before {
      transform: translateX(0)
    }

    /* ─────────────────────────────────────────────
   SECTIONS — generous rhythm on dark
   ───────────────────────────────────────────── */
    .band {
      position: relative;
      padding-block: var(--space-7);
    }

    .band+.band {
      border-top: 1px solid var(--border)
    }

    .sec-head {
      margin-bottom: var(--space-6)
    }

    .sec-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      margin: 0 0 var(--space-3);
      padding: .35rem .7rem;
      border-radius: 999px;
      background: var(--surface);
      border: 1px solid var(--border);
      font-family: var(--f-mono);
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .sec-eyebrow-num {
      color: var(--violet)
    }

    /* Reveal override for pills — scale-in with spring, no translate/blur.
   Feels like the pill settles into place, doesn't drift up from below. */
    .sec-eyebrow.rise {
      translate: 0 0;
      filter: none;
      scale: .9;
      transform-origin: left center;
      transition: opacity .55s var(--ease-quiet), scale .65s var(--ease-spring);
    }

    .sec-eyebrow.rise[data-seen="1"] {
      scale: 1
    }

    .sec-title {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 72, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(2rem, 1.4rem + 2.8vw, 3.5rem);
      line-height: 1.02;
      letter-spacing: -.025em;
      margin: 0 0 var(--space-3);
      max-width: 22ch;
      text-wrap: balance;
      color: var(--text);
    }

    .sec-title em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      background: linear-gradient(120deg, var(--violet) 0%, var(--coral) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .sec-lede {
      font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
      line-height: 1.55;
      color: var(--text-muted);
      max-width: var(--measure);
      margin: 0;
    }

    /* ─── SERVICES — spotlight bento cards ─── */
    .svc-grid {
      display: grid;
      gap: var(--space-3);
      grid-template-columns: 1fr;
    }

    @media (min-width:52rem) {
      .svc-grid {
        grid-template-columns: repeat(3, 1fr)
      }
    }

    .svc {
      position: relative;
      display: block;
      padding: var(--space-4);
      border-radius: var(--radius);
      background: var(--surface);
      border: 1px solid var(--border);
      overflow: hidden;
      isolation: isolate;
    }

    /* Combined transition — .rise (below in source) would otherwise win the
   shorthand and clobber the hover transitions. .svc.rise beats .rise
   on specificity, so this declaration owns both concerns cleanly. */
    .svc,
    .svc.rise {
      transition:
        opacity .8s var(--ease-out),
        translate .8s var(--ease-out),
        filter .8s var(--ease-out),
        border-color .55s var(--ease-quiet),
        transform .38s var(--ease-spring);
    }

    .svc:hover {
      border-color: var(--border-lit);
      transform: translateY(-4px);
    }

    /* On leave, be even snappier (exit ~65% of enter) — motion rule for polish. */
    .svc.rise:not(:hover) {
      transition-duration: .8s, .8s, .8s, .55s, .25s
    }

    /* Top-edge shine — 1px gradient rule that draws from left on hover.
   Only rewards the reader who lingers. */
    .svc::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg,
          transparent 0%,
          rgba(167, 139, 250, .6) 25%,
          rgba(255, 122, 107, .55) 55%,
          transparent 100%);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform .7s var(--ease-draw);
      pointer-events: none;
      z-index: 2;
    }

    .svc:hover::after {
      transform: scaleX(1)
    }

    /* Mouse-follow spotlight, powered by CSS vars set from JS */
    .svc::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -20%),
          rgba(167, 139, 250, .16),
          rgba(255, 122, 107, .06) 40%,
          transparent 65%);
      opacity: 0;
      transition: opacity .55s var(--ease-quiet);
      /* slower than lift = layered depth */
      pointer-events: none;
      z-index: -1;
    }

    .svc:hover::before {
      opacity: 1
    }

    .svc-num {
      font-family: var(--f-mono);
      font-size: .72rem;
      font-weight: 500;
      letter-spacing: .1em;
      color: var(--text-quiet);
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      margin-bottom: var(--space-3);
      transition: color .5s var(--ease-quiet), letter-spacing .5s var(--ease-quiet);
    }

    /* Little dot that grows into a rule as the card is engaged.
   Rests as a punctuation mark; on hover it becomes structure. */
    .svc-num::before {
      content: "";
      display: block;
      width: 6px;
      height: 1px;
      background: currentColor;
      transition: width .55s var(--ease-draw), background .5s var(--ease-quiet);
    }

    .svc:hover .svc-num {
      color: var(--violet);
      letter-spacing: .12em;
    }

    .svc:hover .svc-num::before {
      width: 22px
    }

    .svc-name {
      font-family: var(--f-display);
      font-weight: 500;
      font-size: 1.65rem;
      letter-spacing: -.025em;
      line-height: 1.05;
      margin: 0 0 var(--space-2);
      color: var(--text);
    }

    .svc-name em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--violet);
    }

    .svc-body {
      margin: 0;
      color: var(--text-muted);
      font-size: 1rem;
      line-height: 1.55;
    }

    /* ─── WORK — case cards with media, quote, metric ─── */
    .cases {
      display: grid;
      gap: var(--space-3);
      grid-template-columns: 1fr;
      margin-top: var(--space-2);
    }

    /* Desktop: 3-col grid. Mobile: horizontal snap carousel (mobile-first
   different layout, not just responsive stack). */
    @media (min-width:52rem) {
      .cases {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
      }
    }

    @media (max-width:51.99rem) {
      .cases {
        /* Horizontal scroll snap carousel. Cards peek from the right so the
       user sees more exist. Breaks out of the shell for edge-to-edge scroll. */
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.25rem;
        padding-block: .5rem 1rem;
        padding-inline: 1.25rem;
        margin-inline: -1.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .cases::-webkit-scrollbar {
        display: none
      }

      .case {
        scroll-snap-align: start
      }
    }

    .case {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--border);
      isolation: isolate;
      transition:
        opacity .8s var(--ease-out),
        translate .8s var(--ease-out),
        filter .8s var(--ease-out),
        border-color .55s var(--ease-quiet),
        transform .38s var(--ease-spring);
      will-change: opacity, translate, filter;
    }

    .case:hover {
      border-color: var(--border-lit);
      transform: translateY(-4px);
    }

    .case-link {
      display: flex;
      flex-direction: column;
      height: 100%;
      text-decoration: none;
      color: inherit;
      gap: 0;
    }

    /* Case media — SVG mockup of each project's core surface.
   Layered on a soft mesh gradient background with a subtle grid
   drafting overlay. SVG scales; strokes stay crisp. Replace with
   real screenshots by swapping the inner <svg> for <img src="...">. */
    .case-media {
      position: relative;
      aspect-ratio: 4/3;
      background:
        radial-gradient(ellipse 100% 80% at 30% 20%, rgba(167, 139, 250, .18), transparent 60%),
        radial-gradient(ellipse 80% 60% at 80% 90%, rgba(255, 122, 107, .12), transparent 60%),
        linear-gradient(135deg, var(--surface-2), var(--surface));
      border-bottom: 1px solid var(--border);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: var(--space-3);
    }

    .case-media::before {
      /* subtle grid — reads as a drafting surface behind the mockup */
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent 90%);
      -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent 90%);
    }

    .case-media-tag {
      position: absolute;
      top: 1rem;
      left: 1rem;
      font-family: var(--f-mono);
      font-size: .7rem;
      font-weight: 500;
      letter-spacing: .14em;
      color: var(--violet);
      z-index: 2;
    }

    .case-mockup {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 340px;
      height: auto;
      filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .35)) drop-shadow(0 0 40px rgba(167, 139, 250, .08));
      transition: transform .6s var(--ease-spring);
    }

    .case:hover .case-mockup {
      transform: translateY(-4px) rotate(-.5deg)
    }

    /* Mockup styling tokens — used by all three SVG diagrams below. */
    .case-mockup .m-frame {
      fill: var(--surface);
      stroke: var(--border-lit);
      stroke-width: 1
    }

    .case-mockup .m-frame-head {
      fill: var(--bg)
    }

    .case-mockup .m-dot {
      fill: var(--border-lit)
    }

    .case-mockup .m-line {
      fill: var(--border-lit);
      rx: 1;
      ry: 1
    }

    .case-mockup .m-line-lit {
      fill: var(--text-muted)
    }

    .case-mockup .m-pill {
      fill: var(--surface-2);
      stroke: var(--border);
      stroke-width: .5;
    }

    .case-mockup .m-pill-lit {
      fill: rgba(167, 139, 250, .15);
      stroke: rgba(167, 139, 250, .4);
      stroke-width: .5;
    }

    .case-mockup .m-accent {
      fill: var(--violet)
    }

    .case-mockup .m-coral {
      fill: var(--coral)
    }

    .case-mockup .m-text {
      fill: var(--text);
      font-family: "Inter Tight", system-ui, sans-serif;
      font-size: 6px;
      font-weight: 500;
    }

    .case-mockup .m-text-quiet {
      fill: var(--text-quiet);
      font-family: "JetBrains Mono", monospace;
      font-size: 4.5px;
      letter-spacing: .06em;
    }

    .case-mockup .m-node {
      fill: var(--surface-2);
      stroke: var(--border-lit);
      stroke-width: .7;
    }

    .case-mockup .m-node-lit {
      fill: rgba(167, 139, 250, .14);
      stroke: var(--violet);
      stroke-width: .9;
    }

    .case-mockup .m-flow {
      fill: none;
      stroke: var(--violet);
      stroke-width: .9;
      stroke-linecap: round;
      stroke-dasharray: 2 3;
      animation: mockup-flow 6s linear infinite;
    }

    @keyframes mockup-flow {
      to {
        stroke-dashoffset: -40
      }
    }

    .case-mockup .m-bar {
      fill: url(#bar-grad)
    }

    .case-mockup .m-bar-2 {
      fill: var(--border-lit)
    }

    /* ─── SIGNATURE MOMENT ORCHESTRATION ─── */
    /* The .cc callout section reveals its parts in a *coordinated*
   sequence — eyebrow, then the wordmark line, then the italic gloss.
   Timed together instead of each animating on its own IO trigger.
   This is the "single wow moment" the review flagged as missing. */
    .sig-eyebrow,
    .sig-line,
    .sig-note {
      opacity: 0;
      translate: 0 14px;
      filter: blur(6px);
      transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), filter .9s var(--ease-out);
    }

    .sig-cc-inner {
      display: inline-block;
      transform: scale(.7) rotate(-4deg);
      transform-origin: center;
      transition: transform 1.1s var(--ease-spring);
    }

    .sig[data-seen="1"] .sig-eyebrow {
      opacity: 1;
      translate: 0 0;
      filter: none;
      transition-delay: 0ms
    }

    .sig[data-seen="1"] .sig-line {
      opacity: 1;
      translate: 0 0;
      filter: none;
      transition-delay: 180ms
    }

    .sig[data-seen="1"] .sig-cc-inner {
      transform: scale(1) rotate(0deg);
      transition-delay: 520ms
    }

    .sig[data-seen="1"] .sig-note {
      opacity: 1;
      translate: 0 0;
      filter: none;
      transition-delay: 820ms
    }

    /* After the reveal has fully settled (~1.6s from data-seen), the .cc
   starts a slow, imperceptible breathing loop. Not decoration —
   the piece stays alive instead of freezing into a static ornament. */
    .sig[data-seen="1"] .sig-cc-inner {
      animation: cc-breathe 7s var(--ease-quiet) 1800ms infinite;
    }

    @keyframes cc-breathe {

      0%,
      100% {
        transform: scale(1) rotate(0deg)
      }

      45% {
        transform: scale(1.024) rotate(-.5deg)
      }

      55% {
        transform: scale(1.024) rotate(-.5deg)
      }
    }

    .case-body {
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
      padding: var(--space-4);
      flex: 1;
    }

    .case-meta {
      font-family: var(--f-mono);
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin: 0;
    }

    .case-name {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 48, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.25rem, 1rem + .7vw, 1.55rem);
      line-height: 1.1;
      letter-spacing: -.02em;
      color: var(--text);
      margin: 0;
    }

    .case-quote {
      font-family: var(--f-italic);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 28, "SOFT" 60;
      font-style: italic;
      font-weight: 400;
      font-size: .98rem;
      line-height: 1.4;
      color: var(--text-muted);
      margin: 0;
      padding-left: .85rem;
      border-left: 2px solid var(--violet);
    }

    .case-foot {
      margin-top: auto;
      padding-top: var(--space-3);
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: var(--space-2);
      border-top: 1px solid var(--border);
    }

    .case-metric {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 48, "SOFT" 40;
      font-weight: 500;
      font-size: 1.5rem;
      letter-spacing: -.03em;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .case-metric-unit {
      font-size: .62rem;
      font-family: var(--f-mono);
      font-weight: 500;
      letter-spacing: .1em;
      text-transform: uppercase;
      background: none;
      -webkit-text-fill-color: var(--text-quiet);
      color: var(--text-quiet);
      margin-left: .35rem;
      vertical-align: middle;
    }

    .case-arrow {
      font-family: var(--f-italic);
      font-style: italic;
      font-size: .95rem;
      color: var(--violet);
      transition: transform .38s var(--ease-spring), gap .5s var(--ease-quiet);
      display: inline-flex;
      gap: .4rem;
    }

    .case:hover .case-arrow {
      transform: translateX(6px);
      gap: .65rem
    }

    /* ─── APPROACH — numbered vertical ─── */
    .steps {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: var(--space-4);
    }

    @media (min-width:52rem) {
      .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5) var(--space-6)
      }
    }

    .step {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: var(--space-3);
      align-items: start;
      padding: var(--space-3) 0;
    }

    .step-num {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      font-size: 2.75rem;
      line-height: .9;
      min-width: 2.75rem;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      /* Numeral settles with a subtle scale-in after its parent reveals. */
      transform: scale(.86);
      transform-origin: left bottom;
      transition: transform .9s var(--ease-spring) .15s;
    }

    .rise[data-seen="1"] .step-num {
      transform: scale(1)
    }

    .step-name {
      font-family: var(--f-display);
      font-weight: 500;
      font-size: 1.35rem;
      letter-spacing: -.02em;
      line-height: 1.1;
      margin: .3rem 0 .7rem;
      color: var(--text);
      position: relative;
      display: inline-block;
      padding-bottom: .35rem;
    }

    /* Gradient underline that draws from left AFTER the step has settled.
   The delay is the "signature" — it feels handmade because it's timed
   to arrive after you finish reading the name. */
    .step-name::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--violet), var(--coral) 70%, transparent);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 1s var(--ease-draw) .55s;
    }

    .rise[data-seen="1"] .step-name::after {
      transform: scaleX(1)
    }

    .step-body {
      margin: 0;
      color: var(--text-muted);
      font-size: 1rem;
      max-width: 28rem;
    }

    /* ─── CONTACT ─── */
    .contact {
      padding-block: var(--space-7);
      border-top: 1px solid var(--border);
    }

    .contact-grid {
      display: grid;
      gap: var(--space-6);
      grid-template-columns: 1fr;
      align-items: start;
    }

    @media (min-width:52rem) {
      .contact-grid {
        grid-template-columns: minmax(240px, 340px) 1fr;
        gap: var(--space-6);
      }
    }

    .contact-copy {
      max-width: 38rem
    }

    /* Portrait placeholder — square frame with initials as monogram,
   gradient background matching the site's accent language. Swap the
   inner content for <img src="..."> when the real portrait exists. */
    .portrait {
      margin: 0
    }

    .portrait {
      perspective: 1200px;
      perspective-origin: 50% 50%;
    }

    .portrait-frame {
      position: relative;
      aspect-ratio: 1/1;
      border-radius: var(--radius);
      overflow: hidden;
      background:
        radial-gradient(ellipse 80% 60% at 30% 25%, rgba(167, 139, 250, .28), transparent 60%),
        radial-gradient(ellipse 70% 60% at 75% 80%, rgba(255, 122, 107, .22), transparent 60%),
        linear-gradient(160deg, var(--surface-2) 0%, var(--bg) 100%);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
      transform-style: preserve-3d;
      will-change: transform;
      /* JS updates --rx / --ry from pointer position; long ease returns
     the tilt to rest so it feels like weight, not a servo. */
      transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
      transition: transform .9s var(--ease-quiet);
    }

    .portrait-frame.is-tilting {
      transition: transform .18s linear
    }

    /* Ambient rim-light that follows the tilt — cheap way to make the
   plane feel like it has surface, not paint. Positioned via --mx/--my. */
    .portrait-frame::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
          rgba(255, 255, 255, .045),
          transparent 55%);
      opacity: 0;
      transition: opacity .5s var(--ease-quiet);
      pointer-events: none;
      z-index: 2;
    }

    .portrait-frame.is-tilting::after {
      opacity: 1
    }

    .portrait-frame::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 95%);
      -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 95%);
    }

    .portrait-initials {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 144, "SOFT" 20;
      font-weight: 400;
      font-size: clamp(5rem, 3rem + 8vw, 8rem);
      line-height: 1;
      color: var(--text);
      letter-spacing: -.04em;
      z-index: 1;
    }

    .portrait-initials-cc {
      font-family: var(--f-italic);
      font-style: italic;
      font-variation-settings: "opsz" 144, "SOFT" 60;
      font-weight: 400;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-left: .04em;
    }

    .portrait-note {
      position: absolute;
      bottom: 1rem;
      left: 1rem;
      right: 1rem;
      font-family: var(--f-mono);
      font-size: .6rem;
      font-weight: 500;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--text-quiet);
      text-align: center;
      z-index: 1;
    }

    .portrait-cap {
      margin: var(--space-3) 0 0;
      display: flex;
      flex-direction: column;
      gap: .15rem;
    }

    .portrait-cap-name {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 28, "SOFT" 40;
      font-weight: 500;
      font-size: 1rem;
      letter-spacing: -.01em;
      color: var(--text);
    }

    .portrait-cap-role {
      font-family: var(--f-mono);
      font-size: .7rem;
      letter-spacing: .08em;
      color: var(--text-muted);
    }

    .contact-h {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 144, "SOFT" 40;
      font-weight: 500;
      font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
      line-height: .98;
      letter-spacing: -.03em;
      margin: 0 0 var(--space-3);
      max-width: 18ch;
      text-wrap: balance;
      color: var(--text);
    }

    .contact-h em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      background: linear-gradient(120deg, var(--violet) 0%, var(--coral) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .contact-lede {
      font-size: 1.15rem;
      color: var(--text-muted);
      max-width: var(--measure);
      margin: 0 0 var(--space-5);
    }

    .contact-mail {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      min-height: 52px;
      padding-block: .5rem;
      font-family: var(--f-display);
      font-weight: 500;
      font-size: clamp(1.4rem, 1rem + 1.7vw, 2.5rem);
      letter-spacing: -.03em;
      color: var(--text);
      text-decoration: none;
      overflow-wrap: anywhere;
      position: relative;
      transition: color .35s var(--ease-quiet), gap .5s var(--ease-spring);
    }

    /* Two-layer underline: base rule + accent on hover. Base draws from
   left on reveal (delay lets the eye reach it). */
    .contact-mail::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: .2rem;
      height: 2px;
      background: linear-gradient(90deg, var(--violet), var(--coral) 75%, transparent);
      transform: scaleX(0);
      transform-origin: left center;
      transition:
        transform 1.1s var(--ease-draw) .45s,
        height .4s var(--ease-quiet),
        bottom .4s var(--ease-quiet);
    }

    .rise[data-seen="1"].contact-mail::before {
      transform: scaleX(1)
    }

    .contact-mail:hover::before {
      height: 4px;
      bottom: 0;
      transition-delay: 0s;
      /* on hover, respond immediately */
    }

    /* Italic arrow that slides in from the left as the underline widens. */
    .contact-mail::after {
      content: "→";
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      font-size: .6em;
      line-height: 1;
      color: var(--violet);
      translate: -6px 0;
      opacity: 0;
      transition: translate .5s var(--ease-spring), opacity .35s var(--ease-quiet);
    }

    .contact-mail:hover::after {
      translate: 0 0;
      opacity: 1
    }

    .contact-mail:hover {
      gap: .65rem
    }

    /* Per-character wave on hover — each glyph lifts and tints on its own
   micro-delay so the email responds to attention like it's tangible.
   JS splits the text into .contact-mail-char spans and sets --i. */
    .contact-mail-word {
      display: inline-flex;
      flex-wrap: wrap
    }

    .contact-mail-char {
      display: inline-block;
      transition:
        transform .55s var(--ease-spring),
        color .35s var(--ease-quiet);
      transition-delay: calc(var(--i, 0) * 18ms);
      will-change: transform;
    }

    .contact-mail:hover .contact-mail-char {
      transform: translateY(-3px);
      color: var(--violet);
    }

    .contact-mail:hover .contact-mail-char:nth-child(3n+2) {
      color: var(--coral);
    }

    /* Secondary contact — 15-min call. Quiet link, italic accent, arrow
   translates on hover to match the primary email's language. */
    .contact-alt {
      display: inline-flex;
      align-items: baseline;
      gap: .4rem;
      color: var(--text-muted);
      font-family: var(--f-body);
      font-size: 1rem;
      font-weight: 500;
      letter-spacing: -.005em;
      text-decoration: none;
      transition: color .3s var(--ease-quiet), gap .5s var(--ease-spring);
      border-bottom: 1px solid transparent;
      padding-bottom: 2px;
    }

    .contact-alt em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--text);
    }

    .contact-alt-arrow {
      display: inline-block;
      color: var(--violet);
      font-family: var(--f-italic);
      font-style: italic;
      transition: transform .38s var(--ease-spring);
    }

    .contact-alt:hover {
      color: var(--text);
      gap: .65rem;
    }

    .contact-alt:hover .contact-alt-arrow {
      transform: translateX(3px)
    }

    /* ─────────────────────────────────────────────
   SCROLL HERO — parallax clip reveal with video.
   Vanilla port of SmoothScrollHero; uses <video> for the media
   and transform:scale for the zoom effect (background-size doesn't
   apply to video elements). CSS scroll-driven animations drive
   everything on the compositor.
   Placed at the top of the page as the intro.
   ───────────────────────────────────────────── */

    /* Break out of the .shell container width so the effect goes edge-to-edge. */
    .scroll-hero-wrap {
      width: 100vw;
      margin-inline: calc(50% - 50vw);
      margin-block: 0 var(--space-6);
    }

    /* Structure is ALWAYS applied (regardless of scroll-timeline support):
   tall section + sticky stage + clipped initial state + scaled video.
   Progressive enhancement below layers the CSS animation on top.
   JS fallback picks up if the CSS animation-timeline isn't available. */
    .scroll-hero {
      position: relative;
      width: 100%;
      /* Total scroll length = extra height on top of one viewport.
     900px animates the video/clip/text, ~450–600px is the HOLD
     window where the video sits stuck at 100% before the next
     section slides up. Tune this number if you want longer hold. */
      height: calc(1400px + 100vh);
    }

    .scroll-hero-stage {
      position: sticky;
      top: 0;
      height: 100vh;
      width: 100%;
      overflow: hidden;
      background: var(--bg);
      clip-path: polygon(25% 25%, 75% 25%, 75% 75%, 25% 75%);
      will-change: clip-path;
    }

    .scroll-hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      /* Desktop / landscape: `contain` = whole 16:9 frame visible, letterboxed
     into --bg. Portrait phones flip to `cover` (see media query) so a
     narrow viewport doesn't get huge black bars above/below. */
      object-fit: contain;
      object-position: center;
      display: block;
      transform: scale(1.7);
      transform-origin: center;
      will-change: transform;
      background: var(--bg);
    }

    /* On portrait phones the 16:9 video letterboxes with huge black bars
   into a tall viewport — fill the stage instead. The CSS scroll-timeline
   animation still owns transform:scale, so we don't touch it here. */
    @media (max-width:52rem) and (orientation:portrait) {
      .scroll-hero-video {
        object-fit: cover
      }
    }

    /* Hero density collapse on narrow viewports: the desktop rhythm (tag +
   spacer + thesis + name + two buttons) is cramped in ~700px of vertical
   space. Tighten the between-block spacing and drop the redundant spacer. */
    @media (max-width:52rem) {
      .scroll-hero-overlay-inner {
        padding-block: var(--space-3)
      }

      .hero-thesis {
        margin-top: var(--space-4)
      }

      .hero-cta {
        margin-top: var(--space-4);
        gap: var(--space-2)
      }

      .hero-tag {
        margin-bottom: var(--space-3)
      }

      /* Hidden spacer above thesis exists only to reserve room for the
     animated name. On mobile the name is smaller, so the spacer's
     over-reservation eats hero real estate — collapse it. */
      .scroll-hero-overlay-inner .name[aria-hidden="true"] {
        display: none
      }
    }

    /* Subtle vignette so bright video frames don't fight nearby text. */
    .scroll-hero-stage::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 55%, rgba(8, 8, 11, .35) 100%);
      pointer-events: none;
      z-index: 1;
    }

    /* Overlay — hero text sits on top of the video, fades in as user
   scrolls and the video enlarges. Constrained to shell width so
   text stays in reading measure. */
    .scroll-hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: center;
      pointer-events: none;
      /* passes through to video / rest */
    }

    .scroll-hero-overlay>* {
      pointer-events: auto
    }

    /* Sound toggle button — visible on the hero video so users know
       they can tap to enable audio (browsers block unmuted autoplay). */
    .hero-sound {
      position: absolute;
      bottom: var(--space-3);
      right: var(--space-3);
      z-index: 3;
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .5rem .85rem;
      border: 1px solid var(--border-lit);
      border-radius: 999px;
      background: rgba(8, 8, 11, .72);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: var(--text);
      font-family: var(--f-body);
      font-size: .82rem;
      font-weight: 500;
      letter-spacing: -.005em;
      cursor: pointer;
      transition: background .3s var(--ease-quiet), border-color .3s var(--ease-quiet), transform .3s var(--ease-spring);
    }

    .hero-sound:hover {
      background: rgba(167, 139, 250, .18);
      border-color: var(--violet);
      transform: translateY(-1px);
    }

    .hero-sound-icon {
      font-size: 1rem;
      line-height: 1;
    }

    .hero-sound.is-on .hero-sound-icon {
      animation: soundPulse 1.4s ease-in-out infinite;
    }

    @keyframes soundPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: .55; }
    }

    @media (max-width: 52rem) {
      .hero-sound {
        bottom: var(--space-2);
        right: var(--space-2);
        padding: .4rem .7rem;
        font-size: .76rem;
      }
    }

    .scroll-hero-overlay-inner {
      width: var(--shell);
      margin-inline: auto;
      padding-block: var(--space-4);
    }

    /* Bottom-heavy scrim under text for legibility on bright video frames. */
    .scroll-hero-overlay::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg,
          rgba(8, 8, 11, 0) 0%,
          rgba(8, 8, 11, .15) 40%,
          rgba(8, 8, 11, .55) 100%);
      pointer-events: none;
      z-index: -1;
    }

    /* Initial state — always hidden, regardless of scroll-timeline support.
   JS fallback or CSS scroll-driven animation reveals it based on scroll. */
    .scroll-hero-overlay-inner {
      opacity: 0;
      translate: 0 20px;
      filter: blur(6px);
      will-change: opacity, translate, filter;
    }

    /* Progressive enhancement — CSS scroll-driven parallax reveal.
   Runs on the compositor (zero JS cost) when supported.

   Timing shape (0% = start of stuck period, 100% = end):
   0 ─── 50%   video zooms out (1.7x → 1x) + clip-path opens
      50%      video HITS 100% (natural size, full frame)
   50 ─── 75%  overlay text fades in over the settled video
   75 ─── 100% HOLD everything at 100% — the "read moment"
                    while the container is still stuck to the
                    top of the viewport. This is what the
                    animation-fill-mode:both keeps locked when
                    scroll goes past the range afterwards. */
    @supports (animation-timeline:view()) {
      .scroll-hero {
        view-timeline-name: --sh;
        view-timeline-axis: block;
      }

      .scroll-hero-stage {
        animation: sh-clip linear both;
        animation-timeline: --sh;
        animation-range: entry 100% exit 0%;
      }

      .scroll-hero-video {
        animation: sh-zoom linear both;
        animation-timeline: --sh;
        animation-range: entry 100% exit 0%;
      }

      .scroll-hero-overlay-inner {
        animation: sh-text linear both;
        animation-timeline: --sh;
        animation-range: entry 100% exit 0%;
      }

      @keyframes sh-clip {

        0%,
        0% {
          clip-path: polygon(25% 25%, 75% 25%, 75% 75%, 25% 75%)
        }

        50%,
        100% {
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)
        }
      }

      @keyframes sh-zoom {

        0%,
        0% {
          transform: scale(1.7)
        }

        50%,
        100% {
          transform: scale(1)
        }
      }

      @keyframes sh-text {

        0%,
        50% {
          opacity: 0;
          translate: 0 20px;
          filter: blur(6px)
        }

        75%,
        100% {
          opacity: 1;
          translate: 0 0;
          filter: blur(0)
        }
      }
    }

    /* ─────────────────────────────────────────────
   MOBILE STICKY CTA — bottom-anchored, shows after
   the user has scrolled past the fold. Desktop never
   sees it. Hidden on the contact section (redundant).
   ───────────────────────────────────────────── */
    .m-cta {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      bottom: calc(var(--safe-bottom) + var(--space-2));
      padding: 0 var(--space-3);
      z-index: 25;
      pointer-events: none;
      /* let scroll pass through the wrapper */
    }

    .m-cta-inner {
      pointer-events: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      padding: .6rem .6rem .6rem 1.1rem;
      background: color-mix(in srgb, var(--surface) 75%, transparent);
      backdrop-filter: saturate(1.5) blur(18px);
      -webkit-backdrop-filter: saturate(1.5) blur(18px);
      border: 1px solid var(--border-lit);
      border-radius: 999px;
      box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(167, 139, 250, .15);
      opacity: 0;
      translate: 0 20px;
      transition: opacity .45s var(--ease-quiet), translate .55s var(--ease-spring);
    }

    .m-cta.is-visible .m-cta-inner {
      opacity: 1;
      translate: 0 0
    }

    .m-cta-label {
      font-family: var(--f-body);
      font-size: .85rem;
      font-weight: 500;
      color: var(--text);
      letter-spacing: -.005em;
    }

    .m-cta-label em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--text-muted);
      padding-right: .15em;
    }

    .m-cta-btn {
      display: inline-flex;
      align-items: center;
      gap: .3rem;
      min-height: 40px;
      padding: 0 var(--space-2);
      border-radius: 999px;
      background: var(--text);
      color: var(--bg);
      font-family: var(--f-body);
      font-size: .82rem;
      font-weight: 500;
      text-decoration: none;
      transition: gap .35s var(--ease-spring);
    }

    .m-cta-btn::after {
      content: "→";
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
    }

    @media (max-width:52rem) {
      .m-cta {
        display: block
      }

      /* leave room for the sticky bar so it doesn't cover footer content */
      body {
        padding-bottom: calc(72px + var(--safe-bottom))
      }
    }

    /* ─────────────────────────────────────────────
   SYSTEM DIAGRAM — bento rhythm-break section.
   Asymmetric grid: one large "the system" tile that
   spans two columns, plus supporting tiles that show
   the pieces underneath. Breaks the eyebrow > title >
   lede > cards pattern used elsewhere.
   ───────────────────────────────────────────── */
    .bento {
      display: grid;
      gap: var(--space-3);
      grid-template-columns: 1fr;
      grid-auto-rows: minmax(160px, auto);
      margin-top: var(--space-4);
    }

    @media (min-width:52rem) {
      .bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(180px, auto);
      }

      .bento-lead {
        grid-column: span 4;
        grid-row: span 2
      }

      .bento-a {
        grid-column: span 2
      }

      .bento-b {
        grid-column: span 2
      }

      .bento-c {
        grid-column: span 3
      }

      .bento-d {
        grid-column: span 3
      }
    }

    .bento-cell {
      position: relative;
      border-radius: var(--radius);
      background: var(--surface);
      border: 1px solid var(--border);
      padding: var(--space-4);
      overflow: hidden;
      isolation: isolate;
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
      transition:
        opacity .8s var(--ease-out),
        translate .8s var(--ease-out),
        filter .8s var(--ease-out),
        border-color .5s var(--ease-quiet),
        transform .38s var(--ease-spring);
    }

    .bento-cell:hover {
      border-color: var(--border-lit);
      transform: translateY(-3px);
    }

    .bento-tag {
      font-family: var(--f-mono);
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-quiet);
      margin: 0;
    }

    .bento-h {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 48, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.25rem, 1rem + .7vw, 1.5rem);
      line-height: 1.1;
      letter-spacing: -.02em;
      margin: 0;
      color: var(--text);
    }

    .bento-h em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--violet);
    }

    .bento-body {
      margin: 0;
      color: var(--text-muted);
      font-size: .95rem;
      line-height: 1.55;
    }

    /* Lead tile: bigger type, visual diagram inside. */
    .bento-lead {
      background:
        radial-gradient(ellipse 60% 45% at 12% 100%, rgba(167, 139, 250, .15), transparent 60%),
        radial-gradient(ellipse 60% 45% at 100% 0%, rgba(255, 122, 107, .10), transparent 60%),
        var(--surface);
    }

    .bento-lead .bento-h {
      font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem);
    }

    .bento-lead .bento-body {
      max-width: 34ch;
      font-size: 1rem;
    }

    /* Inline diagram — visitor → site → automations → outcomes.
   Pure SVG, uses design tokens; scales fluidly with container. */
    .bento-diagram {
      margin-top: auto;
      padding-top: var(--space-3);
      width: 100%;
      aspect-ratio: 16/6;
    }

    .bento-diagram svg {
      width: 100%;
      height: 100%;
      display: block;
      overflow: visible
    }

    .bento-diagram .node-fill {
      fill: var(--surface-2);
      stroke: var(--border-lit)
    }

    .bento-diagram .node-text {
      fill: var(--text);
      font-family: var(--f-body);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: -.01em;
    }

    .bento-diagram .node-sub {
      fill: var(--text-quiet);
      font-family: "JetBrains Mono", ui-monospace, monospace;
      font-size: 8px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .bento-diagram .flow {
      fill: none;
      stroke: url(#bento-grad);
      stroke-width: 1.5;
      stroke-linecap: round;
      stroke-dasharray: 2 4;
      animation: flow-dash 8s linear infinite;
    }

    @keyframes flow-dash {
      to {
        stroke-dashoffset: -60
      }
    }

    .bento-diagram .flow-arrow {
      fill: var(--violet)
    }

    /* Numeric callouts count up when they enter view — tabular-nums
   keeps digit widths steady so the number doesn't wobble mid-tween. */
    [data-count] {
      font-variant-numeric: tabular-nums;
      display: inline-block;
    }

    /* Sub-tile numeric callouts */
    .bento-metric {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 72, "SOFT" 40;
      font-weight: 500;
      font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
      line-height: 1;
      letter-spacing: -.03em;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      margin: 0;
    }

    .bento-metric-note {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--text-muted);
      font-size: .9rem;
      line-height: 1.4;
      margin: 0;
      max-width: 22ch;
    }

    /* ─────────────────────────────────────────────
   SIGNATURE — the .cc callout.
   Full-bleed centered moment between sections;
   the wordplay is the primary content.
   ───────────────────────────────────────────── */
    .sig {
      position: relative;
      padding-block: var(--space-7);
      text-align: center;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      overflow: hidden;
    }

    .sig::before {
      /* Very faint centered halo — visible only against the ambient bg. */
      content: "";
      position: absolute;
      inset: auto 0 auto 0;
      height: 200%;
      top: -50%;
      background: radial-gradient(ellipse 50% 30% at 50% 50%, rgba(167, 139, 250, .10), transparent 60%);
      pointer-events: none;
      z-index: -1;
    }

    .sig-eyebrow {
      font-family: var(--f-mono);
      font-size: .7rem;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--text-quiet);
      margin: 0 0 var(--space-3);
    }

    .sig-line {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 144, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(2rem, 1.2rem + 4.5vw, 4.5rem);
      line-height: 1.05;
      letter-spacing: -.03em;
      margin: 0;
      color: var(--text);
      max-width: 22ch;
      margin-inline: auto;
      text-wrap: balance;
    }

    .sig-cc {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: transparent;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      padding: 0 .05em;
    }

    .sig-note {
      margin: var(--space-4) auto 0;
      max-width: 34rem;
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      font-size: 1.05rem;
      color: var(--text-muted);
    }

    .sig-note em {
      font-style: italic;
      color: var(--violet);
      padding: 0 .1em;
    }

    /* ─────────────────────────────────────────────
   FAQ — accordion built on <details>/<summary>.
   Semantic, keyboard-accessible by default, works
   without JS. Custom marker + smooth height.
   ───────────────────────────────────────────── */
    .faq {
      display: flex;
      flex-direction: column;
      gap: 0;
      border-top: 1px solid var(--border);
    }

    .faq-item {
      border-bottom: 1px solid var(--border);
      padding: var(--space-3) 0;
      transition: padding .5s var(--ease-quiet);
    }

    .faq-item[open] {
      padding-bottom: var(--space-4)
    }

    .faq-q {
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);
      padding: .6rem 0;
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 32, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
      letter-spacing: -.01em;
      color: var(--text);
      transition: color .3s var(--ease-quiet);
    }

    .faq-q::-webkit-details-marker {
      display: none
    }

    /* +/x marker built from two independent lines so open/close can be
   choreographed rather than a flat 45deg rotate. Horizontal line rotates
   first, vertical follows 60ms later — the tiny stagger reads as
   crafted, not stock. Each line lands on its own accent color. */
    .faq-marker {
      position: relative;
      display: inline-block;
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      color: var(--text-muted);
      transition: color .3s var(--ease-quiet), transform .5s var(--ease-spring);
    }

    .faq-marker::before,
    .faq-marker::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 50%;
      height: 1.5px;
      margin-top: -.75px;
      background: currentColor;
      border-radius: 1px;
      transform-origin: center;
      transition: transform .55s var(--ease-spring), background-color .35s var(--ease-quiet);
    }

    .faq-marker::before {
      transform: rotate(0deg);
      transition-delay: 0ms
    }

    .faq-marker::after {
      transform: rotate(90deg);
      transition-delay: 60ms
    }

    .faq-item[open] .faq-marker {
      transform: rotate(180deg);
      color: var(--violet);
    }

    .faq-item[open] .faq-marker::before {
      transform: rotate(45deg);
      background: var(--violet);
    }

    .faq-item[open] .faq-marker::after {
      transform: rotate(-45deg);
      background: var(--coral);
    }

    .faq-item:hover .faq-q {
      color: var(--text)
    }

    .faq-item:hover .faq-marker {
      color: var(--violet)
    }

    .faq-a {
      margin: var(--space-2) 0 0;
      max-width: 56ch;
      color: var(--text-muted);
      font-size: 1rem;
      line-height: 1.6;
    }

    .faq-a em {
      font-family: var(--f-italic);
      font-style: italic;
      color: var(--text);
    }

    /* Answer settles in after the marker begins morphing — feels like the
   answer is drawn out of the question, not popped up separately. */
    .faq-item[open] .faq-a {
      animation: faq-answer-in .55s var(--ease-out) 60ms both;
    }

    @keyframes faq-answer-in {
      from {
        opacity: 0;
        translate: 0 -4px;
        filter: blur(2px)
      }

      to {
        opacity: 1;
        translate: 0 0;
        filter: blur(0)
      }
    }

    /* ─────────────────────────────────────────────
   PRINCIPLES — editorial manifest strip.
   Deliberately skips the numbered eyebrow so it
   reads as a philosophy card, not another product
   tile. Three roman-numeral principles.
   ───────────────────────────────────────────── */
    .principles {
      padding-block: var(--space-6);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background:
        radial-gradient(ellipse 40% 30% at 50% 100%, rgba(167, 139, 250, .06), transparent 70%),
        transparent;
    }

    .principles-eyebrow {
      display: block;
      font-family: var(--f-mono);
      font-size: .7rem;
      font-weight: 500;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--text-quiet);
      text-align: center;
      margin: 0 0 var(--space-3);
    }

    .principles-h {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 72, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem);
      line-height: 1.12;
      letter-spacing: -.025em;
      text-align: center;
      margin: 0 auto var(--space-5);
      max-width: 24ch;
      text-wrap: balance;
      color: var(--text);
    }

    .principles-h em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: transparent;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
    }

    .principles-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: var(--space-5);
      grid-template-columns: 1fr;
    }

    @media (min-width:52rem) {
      .principles-list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4) var(--space-5);
      }
    }

    .principle {
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
      align-items: flex-start;
      padding-left: var(--space-3);
      border-left: 1px solid var(--border);
    }

    .principle-num {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      font-size: 1.75rem;
      line-height: 1;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .principle-body {
      margin: 0;
      color: var(--text-muted);
      font-size: 1rem;
      line-height: 1.55;
      max-width: 32ch;
    }

    .principle-body em {
      font-family: var(--f-italic);
      font-style: italic;
      color: var(--text);
    }

    /* Anti-list — the negative-space differentiator that lives at the
   bottom of Principles. Sets expectations by naming what won't happen
   here. Editorial pill row, coral tag, italic list items. */
    .anti {
      margin-top: var(--space-5);
      padding-top: var(--space-4);
      border-top: 1px dashed var(--border);
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: baseline;
      gap: .6rem var(--space-2);
      text-align: center;
    }

    .anti-tag {
      font-family: var(--f-mono);
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--coral);
      padding: .2rem .6rem;
      border: 1px solid rgba(255, 122, 107, .28);
      border-radius: 999px;
      background: rgba(255, 122, 107, .04);
    }

    .anti-items {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: .35rem .6rem;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .anti-items li {
      color: var(--text-muted);
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      font-size: .98rem;
      letter-spacing: -.01em;
      line-height: 1.35;
      position: relative;
      transition: color .35s var(--ease-quiet);
      cursor: default;
    }

    .anti-items li+li::before {
      content: "·";
      color: var(--text-quiet);
      padding-right: .55rem;
      font-style: normal;
      font-family: var(--f-body);
    }

    /* Thematic strikethrough: on hover, a hairline draws across the phrase
   left-to-right — a small "no" gesture on things Ambru declines to do.
   Uses inner span so the dot separator isn't struck through too. */
    .anti-items li>span {
      position: relative;
      display: inline-block;
    }

    .anti-items li>span::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 52%;
      height: 1px;
      background: var(--coral);
      transform: scaleX(0);
      transform-origin: left center;
      opacity: .65;
      transition: transform .55s var(--ease-draw);
    }

    .anti-items li:hover {
      color: var(--text)
    }

    .anti-items li:hover>span::after {
      transform: scaleX(1)
    }

    /* ─────────────────────────────────────────────
   APPROACH FOOTER — pricing snapshot inside the
   Approach section. Positioned as an "invoice"
   after the four steps, so pricing lands as the
   natural closing of the how-it-works story
   rather than a separate haggling moment.
   ───────────────────────────────────────────── */
    .approach-foot {
      margin-top: var(--space-6);
      padding: var(--space-4);
      border-radius: var(--radius);
      background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(167, 139, 250, .08), transparent 60%),
        var(--surface);
      border: 1px solid var(--border);
      display: grid;
      gap: var(--space-3);
      grid-template-columns: 1fr;
      align-items: center;
    }

    @media (min-width:44rem) {
      .approach-foot {
        grid-template-columns: 1fr auto;
        gap: var(--space-4)
      }
    }

    .approach-foot-copy {
      display: flex;
      flex-direction: column;
      gap: .35rem;
    }

    .approach-foot-tag {
      font-family: var(--f-mono);
      font-size: .68rem;
      font-weight: 500;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-quiet);
    }

    .approach-foot-line {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 48, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
      color: var(--text);
      letter-spacing: -.015em;
      line-height: 1.25;
      max-width: 36ch;
    }

    .approach-foot-line em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--violet);
    }

    .approach-foot-amt-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: .15rem;
    }

    @media (min-width:44rem) {
      .approach-foot-amt-wrap {
        align-items: flex-end;
        text-align: right
      }
    }

    .approach-foot-amt {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 96, "SOFT" 40;
      font-weight: 500;
      font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem);
      line-height: 1;
      letter-spacing: -.03em;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .approach-foot-amt-note {
      font-family: var(--f-mono);
      font-size: .68rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--text-quiet);
    }

    /* ─────────────────────────────────────────────
   NEWSLETTER — small, editorial signup strip.
   Sits between contact and footer. UI only; wire
   the form's action attribute to your ESP endpoint
   (ConvertKit, Buttondown, Beehiiv, Formspree...).
   The submit handler shows a local confirmation
   so the UI doesn't look broken while unwired.
   ───────────────────────────────────────────── */
    .subscribe {
      padding-block: var(--space-6);
      border-top: 1px solid var(--border);
    }

    .subscribe-inner {
      display: grid;
      gap: var(--space-4);
      grid-template-columns: 1fr;
      align-items: end;
    }

    @media (min-width:52rem) {
      .subscribe-inner {
        grid-template-columns: 1fr auto;
        gap: var(--space-5);
        align-items: end
      }
    }

    .subscribe-copy>* {
      margin: 0
    }

    .subscribe-tag {
      font-family: var(--f-mono);
      font-size: .7rem;
      font-weight: 500;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-quiet);
      margin: 0 0 var(--space-2);
    }

    .subscribe-h {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 72, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
      line-height: 1.15;
      letter-spacing: -.022em;
      margin: 0 0 .35rem;
      color: var(--text);
      max-width: 24ch;
      text-wrap: balance;
    }

    .subscribe-h em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: var(--violet);
    }

    .subscribe-note {
      color: var(--text-muted);
      font-size: .95rem;
      line-height: 1.5;
      max-width: 44ch;
    }

    .subscribe-form {
      display: flex;
      gap: .5rem;
      align-items: stretch;
      flex-wrap: wrap;
      min-width: min(100%, 380px);
    }

    .subscribe-input {
      flex: 1;
      min-width: 200px;
      min-height: 48px;
      padding: 0 var(--space-3);
      background: var(--surface);
      border: 1px solid var(--border-lit);
      border-radius: 999px;
      color: var(--text);
      font-family: var(--f-body);
      font-size: .95rem;
      transition: border-color .3s var(--ease-quiet), background .3s var(--ease-quiet), box-shadow .35s var(--ease-quiet);
    }

    .subscribe-input::placeholder {
      color: var(--text-quiet)
    }

    .subscribe-input:focus-visible {
      outline: none;
      border-color: var(--violet);
      box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
      background: color-mix(in srgb, var(--surface) 92%, var(--violet));
      /* One-shot emanation on focus — a signal that lands, then rests.
     No infinite loop, no ripple library, no attention theft. */
      animation: input-signal .9s var(--ease-out) 1;
    }

    @keyframes input-signal {
      0% {
        box-shadow: 0 0 0 0 rgba(167, 139, 250, .55), 0 0 0 3px rgba(167, 139, 250, .18)
      }

      55% {
        box-shadow: 0 0 0 14px rgba(167, 139, 250, 0), 0 0 0 3px rgba(167, 139, 250, .18)
      }

      100% {
        box-shadow: 0 0 0 14px rgba(167, 139, 250, 0), 0 0 0 3px rgba(167, 139, 250, .18)
      }
    }

    .subscribe-input:disabled {
      opacity: .75;
      cursor: default
    }

    .subscribe-submit {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      min-height: 48px;
      padding: 0 var(--space-3) 0 var(--space-4);
      background: var(--text);
      color: var(--bg);
      border: none;
      border-radius: 999px;
      font-family: var(--f-body);
      font-size: .9rem;
      font-weight: 500;
      cursor: pointer;
      letter-spacing: -.005em;
      transition: transform .35s var(--ease-spring), gap .45s var(--ease-spring), box-shadow .4s var(--ease-quiet);
    }

    .subscribe-submit::after {
      content: "→";
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      font-size: .95rem;
      line-height: 1;
      translate: -2px 0;
      opacity: .75;
      transition: translate .45s var(--ease-spring), opacity .35s var(--ease-quiet);
    }

    .subscribe-submit:hover {
      transform: translateY(-1px);
      gap: .65rem;
      box-shadow: 0 8px 22px -10px rgba(167, 139, 250, .55), 0 0 0 1px rgba(167, 139, 250, .3);
    }

    .subscribe-submit:hover::after {
      translate: 0 0;
      opacity: 1
    }

    .subscribe-submit:disabled {
      opacity: .7;
      cursor: default;
      transform: none;
      box-shadow: none
    }

    .subscribe-form.is-done .subscribe-input {
      border-color: var(--violet);
      color: var(--violet);
      font-family: var(--f-italic);
      font-style: italic;
    }

    /* ─────────────────────────────────────────────
   TESTIMONIALS — editorial "wall of quotes".
   Deliberately no eyebrow number, so it reads as
   a magazine sidebar rather than another product
   tile. First card spans 2 columns on desktop
   (the "featured" pull-quote); the rest form the
   supporting chorus underneath.
   ───────────────────────────────────────────── */
    .notes {
      padding-block: var(--space-7);
      border-top: 1px solid var(--border);
    }

    .notes-head {
      text-align: center;
      margin-bottom: var(--space-5);
    }

    .notes-eyebrow {
      display: block;
      font-family: var(--f-mono);
      font-size: .7rem;
      font-weight: 500;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--text-quiet);
      margin: 0 0 var(--space-3);
    }

    .notes-h {
      font-family: var(--f-display);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 96, "SOFT" 30;
      font-weight: 500;
      font-size: clamp(1.7rem, 1.2rem + 2vw, 2.75rem);
      line-height: 1.1;
      letter-spacing: -.025em;
      margin: 0 auto;
      max-width: 22ch;
      text-wrap: balance;
      color: var(--text);
    }

    .notes-h em {
      font-family: var(--f-italic);
      font-style: italic;
      font-weight: 400;
      color: transparent;
      background: linear-gradient(120deg, var(--violet), var(--coral));
      -webkit-background-clip: text;
      background-clip: text;
    }

    .notes-grid {
      display: grid;
      gap: var(--space-3);
      grid-template-columns: 1fr;
    }

    @media (min-width:52rem) {
      .notes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3)
      }

      .note-lead {
        grid-column: span 2
      }
    }

    .note {
      position: relative;
      margin: 0;
      padding: var(--space-4);
      border-radius: var(--radius);
      background: var(--surface);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
      isolation: isolate;
      transition:
        opacity .8s var(--ease-out),
        translate .8s var(--ease-out),
        filter .8s var(--ease-out),
        border-color .5s var(--ease-quiet),
        transform .38s var(--ease-spring);
    }

    .note:hover {
      border-color: var(--border-lit);
      transform: translateY(-3px);
    }

    /* Cursor-follow spotlight on the note. Softer than .svc — testimonial
   cards should feel like paper catching light, not spec pages. --mx/--my
   are written by the same pointermove handler that drives service cards. */
    .note[data-spot]::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%),
          rgba(167, 139, 250, .11),
          rgba(255, 122, 107, .05) 42%,
          transparent 68%);
      opacity: 0;
      transition: opacity .55s var(--ease-quiet);
      pointer-events: none;
      z-index: -1;
    }

    .note[data-spot]:hover::before {
      opacity: 1
    }

    /* Top gradient rule that draws in on hover — same idiom as .svc,
   keeps the interaction language consistent across the site. */
    .note::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .5), rgba(255, 122, 107, .4), transparent);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform .7s var(--ease-draw);
      pointer-events: none;
    }

    .note:hover::after {
      transform: scaleX(1)
    }

    /* Quote-mark hover response: subtle tilt + color settle. Reads as the
   piece "noticing" attention, not shouting. */
    .note-quote::before {
      transition: transform .55s var(--ease-spring), opacity .35s var(--ease-quiet), color .35s var(--ease-quiet);
    }

    .note:hover .note-quote::before {
      transform: rotate(-6deg) translate(-1px, -2px);
      opacity: 1;
    }

    .note-dot {
      transition: transform .45s var(--ease-spring), box-shadow .5s var(--ease-quiet);
    }

    .note:hover .note-dot {
      transform: scale(1.15);
      box-shadow: 0 0 0 3px var(--surface), 0 0 14px 2px var(--dot-glow, rgba(167, 139, 250, .55));
    }

    .note-quote {
      font-family: var(--f-italic);
      font-optical-sizing: auto;
      font-variation-settings: "opsz" 32, "SOFT" 60;
      font-style: italic;
      font-weight: 400;
      font-size: 1rem;
      line-height: 1.5;
      color: var(--text-muted);
      margin: 0;
      position: relative;
      padding-left: .85rem;
    }

    .note-quote::before {
      content: "“";
      position: absolute;
      left: -.05em;
      top: -.15em;
      font-family: var(--f-display);
      font-style: normal;
      font-size: 2.2em;
      line-height: 1;
      color: var(--violet);
      opacity: .7;
    }

    .note-lead .note-quote {
      font-size: clamp(1.15rem, .95rem + .7vw, 1.4rem);
      line-height: 1.4;
      color: var(--text);
      padding-left: 1.1rem;
    }

    .note-lead .note-quote::before {
      font-size: 2.8em;
      top: -.1em;
    }

    .note-attr {
      display: flex;
      align-items: center;
      gap: .7rem;
      margin-top: auto;
      padding-top: var(--space-3);
      border-top: 1px solid var(--border);
    }

    .note-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--dot, var(--violet));
      flex-shrink: 0;
      box-shadow: 0 0 0 3px var(--surface), 0 0 10px 0 var(--dot-glow, rgba(167, 139, 250, .4));
    }

    .note-attr-copy {
      display: flex;
      flex-direction: column;
      gap: .1rem;
      min-width: 0;
    }

    .note-attr-name {
      font-family: var(--f-body);
      font-size: .85rem;
      font-weight: 500;
      color: var(--text);
      letter-spacing: -.01em;
    }

    .note-attr-role {
      font-family: var(--f-mono);
      font-size: .65rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--text-quiet);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Illustrative marker — a tiny mono footer under the grid, subtle
   enough not to shout, honest enough not to mislead. Remove this
   .notes-disclaimer paragraph when you swap in real testimonials. */
    .notes-disclaimer {
      margin: var(--space-4) 0 0;
      font-family: var(--f-mono);
      font-size: .62rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--text-quiet);
      text-align: center;
      opacity: .55;
    }

    /* ─── FOOTER ─── */
    .foot {
      border-top: 1px solid var(--border);
      padding-block: var(--space-4) var(--space-5);
      padding-bottom: calc(var(--space-5) + var(--safe-bottom));
    }

    .foot-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: var(--space-2);
      font-family: var(--f-mono);
      font-size: .7rem;
      letter-spacing: .08em;
      color: var(--text-quiet);
    }

    .foot p {
      margin: 0
    }

    .foot a {
      color: var(--text-muted);
      text-decoration: none;
    }

    .foot a:hover {
      color: var(--text)
    }

    .foot-cc {
      color: var(--violet)
    }

    .foot-note em {
      font-family: var(--f-italic);
      font-style: italic;
      color: var(--text-muted);
      letter-spacing: 0
    }

    /* ─────────────────────────────────────────────
   Reveal — below-the-fold
   ───────────────────────────────────────────── */
    /* Uses `translate:` (independent from `transform:`) so hover states
   on the same element can own `transform` without a specificity fight. */
    .rise {
      opacity: 0;
      translate: 0 20px;
      filter: blur(8px);
      transition: opacity .8s var(--ease-out), translate .8s var(--ease-out), filter .8s var(--ease-out);
      transition-delay: var(--d, 0ms);
      will-change: translate, opacity, filter;
    }

    .rise[data-seen="1"] {
      opacity: 1;
      translate: 0 0;
      filter: none
    }

    /* ─────────────────────────────────────────────
   Reduced data — respect Save-Data / metered networks.
   Swap the autoplaying hero video for the static poster
   and quiet down the ambient CSS flourishes. JS-side
   also switches preload to "none" and skips play().
   ───────────────────────────────────────────── */
    @media (prefers-reduced-data:reduce) {
      .scroll-hero-stage {
        background: url("assets/hero-poster.jpg") center/cover no-repeat, var(--bg);
      }

      .scroll-hero-video {
        display: none
      }

      .bento-diagram .flow,
      .case-mockup .m-flow {
        animation: none
      }
    }

    /* ─────────────────────────────────────────────
   Reduced motion — resolve everything instantly
   ───────────────────────────────────────────── */
    @media (prefers-reduced-motion:reduce) {
      html {
        scroll-behavior: auto
      }

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
      }

      .word,
      .hero-domain,
      .hero-thesis,
      .hero-cta {
        opacity: 1;
        transform: none;
        filter: none;
      }

      .rise {
        opacity: 1;
        translate: 0 0;
        filter: none
      }

      .sec-eyebrow.rise {
        scale: 1
      }

      .step-num,
      .step-name::after,
      .contact-mail::before {
        transform: none !important
      }

      .btn-primary:hover,
      .btn-quiet:hover,
      .nav-cta:hover,
      .work-link:hover,
      .svc:hover,
      .case:hover,
      .bento-cell:hover {
        transform: none;
        padding-left: 0
      }

      .btn-quiet::before {
        transform: translateX(-101%)
      }

      .hero-tag::before {
        animation: none
      }

      .bento-diagram .flow {
        animation: none
      }

      .case-mockup .m-flow {
        animation: none
      }

      /* Signature moment: resolve to final state instantly, no rotate/scale,
     no breathing loop. */
      .sig-eyebrow,
      .sig-line,
      .sig-note {
        opacity: 1;
        translate: 0 0;
        filter: none
      }

      .sig-cc-inner,
      .sig[data-seen="1"] .sig-cc-inner {
        transform: none;
        animation: none !important
      }

      /* Micro-interactions: hold in resting state. */
      .subscribe-input:focus-visible {
        animation: none !important
      }

      .faq-item[open] .faq-a {
        animation: none !important
      }

      .portrait-frame {
        transform: none !important
      }

      .contact-mail-char {
        transform: none !important;
        transition: none !important
      }

      /* Mobile sticky CTA: keep it visible without slide-in. */
      .m-cta.is-visible .m-cta-inner {
        transition: none
      }

      /* Scroll hero: no parallax, no sticky, no zoom, no auto-playing video.
     Overlay text visible immediately so the intro reads without motion. */
      .scroll-hero {
        height: 100vh !important
      }

      .scroll-hero-stage {
        position: relative !important;
        clip-path: none !important;
        animation: none !important;
      }

      .scroll-hero-video {
        transform: none !important;
        animation: none !important;
      }

      .scroll-hero-overlay-inner {
        opacity: 1 !important;
        translate: 0 0 !important;
        filter: none !important;
        animation: none !important;
      }
    }

    /* ─────────────────────────────────────────────
   PRINT — clean, high-contrast, ink-conservative.
   Kills the dark theme, gradients, media, and
   sticky UI. Preserves the reading path so a
   printed proposal or archival copy is legible.
   ───────────────────────────────────────────── */
    @media print {

      *,
      *::before,
      *::after {
        background: none !important;
        background-image: none !important;
        background-color: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
      }

      html,
      body {
        background: #fff !important;
        color: #000 !important;
        font-family: Georgia, "Times New Roman", serif;
      }

      /* Hide interactive / decorative chrome. */
      .nav,
      .m-cta,
      .scroll-hero-wrap,
      .subscribe-form,
      .btn,
      .nav-cta,
      .case-media,
      .portrait-frame,
      .bento-diagram,
      .sig,
      .hero-tag,
      .hero-cta {
        display: none !important
      }

      /* Cells lose their gradient background — give them a hard border. */
      .bento-cell,
      .svc,
      .case,
      .approach-foot,
      .faq-item,
      .principle {
        border: 1px solid #000 !important;
        padding: 1em !important;
        margin-bottom: .5em !important;
      }

      .principle {
        border: none !important;
        border-left: 2px solid #000 !important;
        padding: 0 0 0 1em !important
      }

      /* Preserve hierarchy typographically without color. */
      h1,
      .name,
      .name-1,
      .name-2 {
        font-size: 22pt !important;
        line-height: 1.15 !important;
        color: #000 !important;
        font-weight: 600;
      }

      h2,
      .sec-title,
      .contact-h,
      .principles-h,
      .sig-line,
      .subscribe-h {
        font-size: 16pt !important;
        line-height: 1.2 !important;
        color: #000 !important;
      }

      h3 {
        font-size: 12pt !important;
        line-height: 1.3 !important
      }

      p,
      li {
        font-size: 10.5pt;
        line-height: 1.45
      }

      em {
        font-style: italic
      }

      .sec-eyebrow,
      .principles-eyebrow,
      .subscribe-tag,
      .case-meta,
      .bento-tag,
      .approach-foot-tag {
        font-size: 8.5pt !important;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #555 !important;
        font-weight: 600;
      }

      /* Show URL after external links for reference. */
      a {
        color: #000 !important;
        text-decoration: underline
      }

      a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: .85em;
        color: #555 !important;
      }

      a[href^="mailto:"]::after,
      a[href^="#"]::after,
      a[href^="javascript:"]::after {
        content: ""
      }

      /* Avoid awkward mid-section page breaks. */
      section,
      .band,
      .principles,
      .approach-foot,
      .subscribe,
      article,
      li,
      .step,
      .svc,
      .case {
        page-break-inside: avoid;
        break-inside: avoid;
      }

      h1,
      h2,
      h3 {
        page-break-after: avoid;
        break-after: avoid;
      }

      @page {
        margin: 2cm
      }
    }

    /* ─────────────────────────────────────────────
   CONTACT FORM — delivers via FormSubmit.
   Same surface/border language as the cards.
   ───────────────────────────────────────────── */
    .contact-form {
      max-width: var(--measure);
      margin: var(--space-5) auto 0;
      display: grid;
      gap: var(--space-3);
      text-align: left;
      position: relative;
    }

    .contact-form label {
      display: block;
      margin-bottom: var(--space-1);
      font-family: var(--f-mono);
      font-size: .72rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--text-quiet);
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: .85rem 1rem;
      border: 1px solid var(--border-lit);
      border-radius: var(--radius-sm);
      background: var(--surface);
      color: var(--text);
      font-family: var(--f-body);
      font-size: 1rem;
      transition: border-color .25s var(--ease-quiet), box-shadow .25s var(--ease-quiet);
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: var(--text-quiet);
    }

    .contact-form input:focus-visible,
    .contact-form textarea:focus-visible {
      outline: none;
      border-color: var(--violet);
      box-shadow: 0 0 0 3px rgba(167, 139, 250, .18);
    }

    .contact-form textarea {
      min-height: 9rem;
      resize: vertical;
    }

    .cf-actions {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      flex-wrap: wrap;
    }

    .cf-actions .btn[disabled] {
      opacity: .6;
      pointer-events: none;
    }

    .cf-status {
      margin: 0;
      font-family: var(--f-mono);
      font-size: .8rem;
      color: var(--text-muted);
    }

    .cf-status[data-state="ok"] {
      color: var(--violet);
    }

    .cf-status[data-state="err"] {
      color: var(--coral);
    }
