      /* ═══════════════════════════════════════════════════════════
   MONOCHROME · EDITORIAL GRID
   Hero / header / footer: full width.
   All main content: centered container + label-left grid.
   ═══════════════════════════════════════════════════════════ */
      :root {
        --bg: #e8edef;
        --bg-2: #e8edef;
        --bg-3: #e8edef;
        --surface: rgba(247, 250, 251, 0.42);
        --ink: #171a1c;
        --ink-dim: #4f565a;
        --ink-faint: #7d8589;
        --line: rgba(255, 255, 255, 0.52);
        --line-soft: rgba(255, 255, 255, 0.32);
        --accent: #e99a00;
        --accent-2: #262b2e;
        --accent-soft: rgba(245, 193, 82, 0.2);
        --logo-glow: 233, 154, 0;
        --ink-bg: rgba(215, 224, 226, 0.6);

        --font-display: "Bricolage Grotesque", sans-serif;
        --font-body: "Instrument Sans", sans-serif;

        --pad-x: clamp(20px, 5vw, 80px);
        --radius: 20px;
        --wrap-max: 1360px;

        --motion-fast: 180ms;
        --motion-base: 420ms;
        --motion-slow: 820ms;
        --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
        --ease-spring: cubic-bezier(0.16, 0.82, 0.25, 1);
      }

      *,
      *::before,
      *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      ::selection {
        background: var(--ink);
        color: var(--bg);
      }

      body {
        font-family: var(--font-body);
        background: var(--bg);
        color: var(--ink);
        font-weight: 400;
        line-height: 1.65;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
      }
      a {
        color: inherit;
        text-decoration: none;
      }

      /* grain */
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: 0.05;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      }

      /* ── Gyre — the persistent WebGL object behind the whole page.
     z-index:0 sits above the body bg but below every section (.grid-sec/footer are
     z-index:2) and below the grain (z:1, deliberately grains the render too). The
     canvas is OPAQUE with an in-scene backdrop matched pixel-exact to --bg: visually
     identical to transparency over the solid page color, and required — three.js
     `transmission` renders flat white wherever the canvas behind glass is empty.
     Sections with opaque surfaces cover the object; whitespace reveals it. ── */
      #obj-canvas {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        display: block;
      }
      #obj-canvas.in-hero {
        position: absolute;
      } /* RM + ≤920 rungs: object lives in the hero only and scrolls away */
      /* no-WebGL / no-JS fallback — blueprint line drawing of the object, existing tokens only */
      .obj-fallback {
        position: absolute;
        right: 4vw;
        top: 50%;
        transform: translateY(-42%);
        width: min(60vh, 46vw);
        height: min(60vh, 46vw);
        pointer-events: none;
        z-index: 1;
        opacity: 1;
        transition: opacity 0.3s ease;
      }
      body.webgl-on .obj-fallback {
        opacity: 0;
      }

      /* ── preloader ── */
      #loader {
        position: fixed;
        inset: 0;
        z-index: 300;
        background: var(--bg);
        transition: clip-path 0.62s cubic-bezier(0.76, 0, 0.24, 1);
        clip-path: inset(0 0 0 0);
      }
      #loader.done {
        clip-path: inset(0 0 100% 0);
      }
      #loader .mark {
        position: absolute;
        top: 34px;
        left: var(--pad-x);
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 18px;
      }
      #loader .mark i {
        font-style: normal;
        color: var(--ink-faint);
      }
      #loader-pct {
        position: absolute;
        bottom: 20px;
        left: var(--pad-x);
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(90px, 18vw, 220px);
        line-height: 1;
        letter-spacing: -0.04em;
        font-variant-numeric: tabular-nums;
      }
      #loader-status {
        position: absolute;
        bottom: 44px;
        right: var(--pad-x);
        font-size: 12px;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--ink-faint);
      }

      /* ── nav — FULL WIDTH ── */
      header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 var(--pad-x);
        height: 84px;
        background: linear-gradient(115deg, rgba(255,255,255,.48), rgba(255,255,255,.13) 52%, rgba(255,255,255,.32));
        border-bottom: 1px solid rgba(255,255,255,.46);
        -webkit-backdrop-filter: blur(24px) saturate(145%);
        backdrop-filter: blur(24px) saturate(145%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 12px 36px rgba(55,65,70,.07);
        transition:
          background 0.4s,
          border-color 0.4s;
      }
      header.scrolled {
        background: linear-gradient(115deg, rgba(255,255,255,.58), rgba(232,237,239,.26) 52%, rgba(255,255,255,.4));
        border-bottom-color: rgba(255,255,255,.58);
      }
      header::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 2px;
        pointer-events: none;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
        transform: scaleX(var(--scroll-progress, 0));
        transform-origin: left center;
        transition: transform 90ms linear;
      }
      .logo {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 19px;
        letter-spacing: -0.01em;
        color: var(--accent);
        display: inline-flex;
        align-items: center;
      }
      .logo i {
        font-style: normal;
        color: var(--ink-faint);
      }
      /* ── logo video — kn monogram, two variants picked by JS: .alpha = VP9 WebM with a
     real alpha channel (pure line-art, no plate), .chip = the mp4 on its black plate
     worn as a rounded badge for browsers without VP9 alpha (Safari) or if the webm
     fails. The "/khang" text stays in the DOM as the fallback until the video proves
     playable (.video-on). ── */
      .logo-video {
        display: none;
        width: 46px;
        height: 46px;
        object-fit: cover;
        pointer-events: none;
      }
      .logo-video.chip {
        border-radius: 12px;
      }
      /* neon accent — sepia(1) first normalizes every hue (kills the clip's baked-in blue
   sweep) so the whole mark lands on ONE amber; drop-shadows trace the alpha silhouette
   as the halo. One permanent variant: the page is all-light now, so the mark is always
   amber ink with a subtle glow. */
      .logo-video.alpha {
        filter: sepia(1) saturate(3.2) hue-rotate(-8deg) brightness(0.55)
          drop-shadow(0 0 4px rgba(var(--logo-glow), 0.5))
          drop-shadow(0 0 12px rgba(var(--logo-glow), 0.22));
      }
      .logo.video-on .logo-video {
        display: block;
      }
      .logo.video-on .logo-text {
        display: none;
      }
      nav.links {
        display: flex;
        gap: 30px;
        background: rgba(255, 253, 252, 0.66);
        border: 1px solid rgba(23, 42, 58, 0.08);
        box-shadow: 0 10px 32px rgba(23, 42, 58, 0.06);
        backdrop-filter: blur(12px);
        border-radius: 999px;
        padding: 12px 30px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }
      nav.links a {
        position: relative;
        font-size: 14px;
        color: var(--ink-dim);
        transition: color var(--motion-fast) ease;
      }
      nav.links a::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -5px;
        left: 0;
        height: 2px;
        border-radius: 99px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: right center;
        transition: transform var(--motion-base) var(--ease-out);
      }
      nav.links a:hover,
      nav.links a.active {
        color: var(--ink);
      }
      nav.links a:hover::after,
      nav.links a.active::after {
        transform: scaleX(1);
        transform-origin: left center;
      }

      /* pill buttons */
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 14px;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 10px 10px 10px 24px;
        background: rgba(255, 253, 252, 0.72);
        color: var(--ink);
        box-shadow: 0 8px 22px rgba(23, 42, 58, 0.07);
        cursor: pointer;
        transition:
          background var(--motion-base) var(--ease-out),
          color var(--motion-fast) ease,
          border-color var(--motion-fast) ease,
          transform var(--motion-base) var(--ease-spring),
          box-shadow var(--motion-base) var(--ease-out);
      }
      .btn .chip {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--accent-2);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        transition:
          transform var(--motion-base) var(--ease-spring),
          background var(--motion-fast) ease,
          color var(--motion-fast) ease;
      }
      .btn:hover {
        background: var(--accent-2);
        color: #ffffff;
        border-color: var(--accent-2);
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(47, 111, 115, 0.2);
      }
      .btn:hover .chip {
        background: #ffffff;
        color: var(--accent-2);
        transform: rotate(45deg);
      }
      .btn.primary {
        background: var(--accent);
        color: #ffffff;
        border-color: var(--accent);
        box-shadow: 0 10px 28px rgba(217, 95, 59, 0.22);
      }
      .btn.primary .chip {
        background: #ffffff;
        color: var(--accent);
      }
      .btn.primary:hover {
        background: #be4c2e;
        color: #ffffff;
        border-color: #be4c2e;
      }
      .btn.primary:hover .chip {
        background: #ffffff;
        color: #be4c2e;
      }
      .btn.ghost {
        border: none;
        padding: 10px 6px;
        color: var(--ink-dim);
      }
      .btn.ghost:hover {
        background: transparent;
        color: var(--ink);
      }

      /* ═══ EDITORIAL GRID SCAFFOLD ═══
   Every main-content section: centered container, two columns —
   sticky label (left) + content (right). Collapses on mobile. */
      section.grid-sec {
        padding: clamp(80px, 11vh, 140px) var(--pad-x);
        position: relative;
        z-index: 2;
        isolation: isolate;
        /* every section stages at least one full viewport (svh where supported);
           short sections center their content, tall ones (#work, #approach) just
           exceed the minimum and scroll normally */
        min-height: 100vh;
        min-height: 100svh;
        display: grid;
        align-content: center;
      }
      section.grid-sec + section.grid-sec {
        border-top: 1px solid var(--line-soft);
      }
      #statement {
        background: transparent;
      }
      .btn:active {
        transform: translateY(0) scale(0.97);
        transition-duration: 90ms;
      }
      .btn:focus-visible,
      nav.links a:focus-visible,
      .rail a:focus-visible,
      .text-link:focus-visible,
      .foot-col a:focus-visible,
      .foot-base a:focus-visible {
        outline: 3px solid rgba(233, 154, 0, 0.38);
        outline-offset: 4px;
      }
      #build {
        background: transparent;
      }
      #work {
        background: transparent;
      }
      #approach {
        background: transparent;
      }
      #how {
        background: transparent;
      }
      #experience {
        background: transparent;
      }
      #cta {
        background: transparent;
      }
      .wrap {
        max-width: var(--wrap-max);
        margin: 0 auto;
        display: grid;
        grid-template-columns: clamp(150px, 17vw, 240px) minmax(0, 1fr);
        gap: clamp(26px, 4.5vw, 70px);
        align-items: start;
      }
      .eyebrow {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.26em;
        text-transform: uppercase;
        color: var(--accent-2);
        position: sticky;
        top: 110px;
        display: flex;
        align-items: baseline;
        gap: 12px;
      }
      .eyebrow::after {
        content: "";
        flex: 1;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), transparent);
        align-self: center;
      }
      .eyebrow .idx {
        font-style: normal;
        color: var(--accent);
        letter-spacing: 0.08em;
        font-variant-numeric: tabular-nums;
      }
      /* ── section-index rail: fixed right edge, ticks + numbers; active section
         gets an elongated amber tick. Driven by updateScrollMotion(). ── */
      .rail {
        position: fixed;
        right: clamp(14px, 2vw, 28px);
        top: 50%;
        transform: translateY(-50%);
        z-index: 150;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
      }
      .rail a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 3px 0;
        text-decoration: none;
        color: var(--ink-faint);
      }
      .rail a i {
        font-style: normal;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.14em;
        font-variant-numeric: tabular-nums;
        opacity: 0;
        transform: translateX(4px);
        transition:
          opacity var(--motion-base) var(--ease-out),
          transform var(--motion-base) var(--ease-out),
          color var(--motion-base) var(--ease-out);
      }
      .rail a span {
        /* full section name for assistive tech only */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
      }
      .rail a::after {
        content: "";
        width: 18px;
        height: 2px;
        background: currentColor;
        opacity: 0.5;
        transition:
          width var(--motion-base) var(--ease-out),
          opacity var(--motion-base) var(--ease-out),
          background-color var(--motion-base) var(--ease-out);
      }
      .rail a:hover i {
        opacity: 1;
        transform: none;
      }
      .rail a:hover::after {
        opacity: 0.9;
      }
      .rail a.active {
        color: var(--accent-2);
      }
      .rail a.active i {
        opacity: 1;
        transform: none;
      }
      .rail a.active::after {
        width: 34px;
        opacity: 1;
        background: var(--accent);
      }
      /* the rail sits OUTSIDE the sec-ink token scope (it must not inherit
         section re-tokens) — flip it explicitly on the ink band or the active
         label lands #262b2e-on-#22262A */
      body.sec-ink .rail a {
        color: #8b9398;
      }
      body.sec-ink .rail a.active {
        color: #eceff1;
      }
      .content {
        min-width: 0;
      }

      h2.display {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(30px, 4.4vw, 58px);
        line-height: 1.08;
        letter-spacing: -0.025em;
        max-width: 22ch;
        color: var(--ink);
        text-wrap: balance;
      }
      h2.display::after {
        content: "";
        display: block;
        width: clamp(52px, 7vw, 92px);
        height: 5px;
        border-radius: 99px;
        margin-top: 20px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
      }
      .lede {
        color: var(--ink-dim);
        font-size: 16px;
        max-width: 46ch;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
      .js .reveal {
        opacity: 0;
        filter: blur(5px);
        transform: translate3d(0, 30px, 0);
        transition:
          opacity var(--motion-slow) var(--ease-out),
          transform var(--motion-slow) var(--ease-out),
          filter 620ms ease;
        transition-delay: var(--reveal-delay, 0ms);
        will-change: opacity, transform, filter;
      }
      .js .eyebrow.reveal {
        transform: translate3d(-22px, 0, 0);
      }
      .js .reveal.in {
        opacity: 1;
        filter: none;
        transform: none;
        will-change: auto;
        /* revealed elements also fade color/surface changes (the sec-ink band
           re-tokens them mid-page). Reveal properties stay first — the entrance
           animation and its stagger delay are unchanged. */
        transition:
          opacity var(--motion-slow) var(--ease-out),
          transform var(--motion-slow) var(--ease-out),
          filter 620ms ease,
          color 0.45s ease,
          background 0.45s ease,
          border-color 0.45s ease;
        transition-delay: var(--reveal-delay, 0ms);
      }
      /* non-reveal text inside sections fades the same way on sec-ink flips;
         links are excluded — .text-link owns its own color transition */
      .grid-sec h2,
      .grid-sec h3,
      .grid-sec p,
      .grid-sec .lede {
        transition: color 0.45s ease;
      }
      .eyebrow::after,
      h2.display::after {
        transform: scaleX(1);
        transform-origin: left center;
      }
      .js .eyebrow.reveal::after,
      .js h2.display.reveal::after {
        transform: scaleX(0);
        transition: transform 720ms var(--ease-out) 180ms;
      }
      .js .eyebrow.reveal.in::after,
      .js h2.display.reveal.in::after {
        transform: scaleX(1);
      }

      /* ── HERO — FULL WIDTH · light field, text upper-left, the object owns lower-right ── */
      #hero {
        height: 100vh;
        height: 100svh;
        position: relative;
        z-index: 2;
        padding: clamp(140px, 22vh, 220px) var(--pad-x) 0;
        background: transparent;
      }
      .hero-inner {
        position: relative;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: var(--wrap-max);
        margin: 0 auto;
      }
      h1 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(
          44px,
          6.8vw,
          98px
        ); /* trimmed from 116px — buys the rock-core safe zone (ROCK_SAFE_X) */
        line-height: 1.02;
        letter-spacing: -0.035em;
        color: var(--ink);
        text-shadow:
          0 2px 0 rgba(255, 255, 255, 0.55),
          0 18px 50px rgba(23, 42, 58, 0.08);
        opacity: 1;
      }
      h1::after {
        content: "";
        display: block;
        width: clamp(76px, 10vw, 138px);
        height: 7px;
        border-radius: 99px;
        margin-top: 24px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
      }
      .hero-sub {
        margin-top: 30px;
        max-width: 520px;
        color: var(--ink-dim);
        font-size: 16px;
        opacity: 1;
      }
      .hero-cta {
        margin-top: 40px;
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        align-items: center;
        opacity: 1;
      }
      .hero-meta {
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
      }
      .hero-scroll {
        position: absolute;
        bottom: 36px;
        left: var(--pad-x);
        z-index: 3;
        font-size: 12px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--ink-dim);
        opacity: 1;
      }
      .hero-loc {
        position: absolute;
        bottom: 36px;
        right: var(--pad-x);
        z-index: 3;
        font-size: 12px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--ink-dim);
        opacity: 1;
      }
      .js #he1,
      .js #he2,
      .js #he3,
      .js #he4,
      .js #he5 {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
        transition:
          opacity var(--motion-slow) var(--ease-out),
          transform var(--motion-slow) var(--ease-out);
      }
      .js #hero.hero-ready #he1,
      .js #hero.hero-ready #he2,
      .js #hero.hero-ready #he3,
      .js #hero.hero-ready #he4,
      .js #hero.hero-ready #he5 {
        opacity: 1;
        transform: none;
      }
      .js #hero.hero-ready #he1 { transition-delay: 60ms; }
      .js #hero.hero-ready #he2 { transition-delay: 220ms; }
      .js #hero.hero-ready #he3 { transition-delay: 360ms; }
      .js #hero.hero-ready #he4,
      .js #hero.hero-ready #he5 { transition-delay: 520ms; }
      .js #hero.hero-ready h1::after {
        animation: heroRuleIn 780ms var(--ease-out) 420ms both;
        transform-origin: left center;
      }
      .js #hero.hero-ready .hero-scroll {
        animation: scrollCue 2.4s ease-in-out 1.2s infinite;
      }

      /* ── statement ── */
      #statement h2 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(24px, 3.2vw, 42px);
        line-height: 1.24;
        letter-spacing: -0.02em;
        max-width: 28ch;
        color: var(--ink);
      }
      #statement h2 .dim {
        color: var(--accent-2);
      }

      /* ── services ── */
      .svc-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 26px;
        flex-wrap: wrap;
        margin-bottom: 48px;
      }
      .svc-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
      .svc {
        background: rgba(255, 253, 252, 0.8);
        border: 1px solid rgba(23, 42, 58, 0.11);
        border-top: 4px solid var(--accent);
        border-radius: var(--radius);
        padding: 34px 28px 42px;
        box-shadow: 0 16px 38px rgba(23, 42, 58, 0.07);
        transition:
          background 0.4s,
          transform 0.4s,
          border-color 0.4s,
          box-shadow 0.4s;
      }
      .svc:nth-child(2) {
        border-top-color: var(--accent-2);
      }
      .svc:nth-child(3) {
        border-top-color: #b8873b;
      }
      .svc:hover {
        background: var(--surface);
        transform: translateY(-6px);
        border-color: rgba(47, 111, 115, 0.28);
        box-shadow: 0 22px 46px rgba(23, 42, 58, 0.11);
      }
      .svc .ic {
        width: 34px;
        height: 34px;
        margin: 0 auto 26px;
        color: var(--accent-2);
        display: block;
      }
      .svc h3 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 20px;
        letter-spacing: -0.015em;
        margin-bottom: 12px;
        line-height: 1.25;
        text-align: center;
        color: var(--accent-2);
      }
      .svc p {
        color: var(--ink-dim);
        font-size: 14px;
      }

      /* ── WORK cards ── */
      .work-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        margin-top: 48px;
      }
      .wcard {
        background: rgba(255, 253, 252, 0.88);
        border: 1px solid rgba(23, 42, 58, 0.11);
        border-radius: var(--radius);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 16px 38px rgba(23, 42, 58, 0.07);
        transition:
          transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
          border-color 0.45s,
          box-shadow 0.45s;
      }
      .wcard:hover {
        transform: translateY(-6px);
        border-color: rgba(47, 111, 115, 0.3);
        box-shadow: 0 24px 52px rgba(23, 42, 58, 0.12);
      }
      .wcard .visual {
        aspect-ratio: 16/10;
        background: linear-gradient(145deg, #dce8e8, #eedfd8);
        border-bottom: 1px solid var(--line-soft);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
      }
      .wcard .visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          120% 90% at 50% 0%,
          transparent 60%,
          rgba(20, 24, 28, 0.14)
        );
        pointer-events: none;
      }
      .wcard .info {
        padding: 28px 28px 34px;
      }
      .wcard .row1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        margin-bottom: 12px;
      }
      .wcard h3 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 23px;
        letter-spacing: -0.02em;
        color: var(--accent-2);
      }
      .wcard .badge {
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        border: 1px solid rgba(217, 95, 59, 0.28);
        background: var(--accent-soft);
        border-radius: 999px;
        padding: 5px 13px;
        color: #8d3d27;
        white-space: nowrap;
      }
      .wcard p {
        color: var(--ink-dim);
        font-size: 14px;
        margin-bottom: 16px;
      }
      .wcard .tags {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }
      .wcard .tags span {
        font-size: 11px;
        color: var(--accent-2);
        background: #e8f0ee;
        border: 1px solid rgba(47, 111, 115, 0.14);
        border-radius: 999px;
        padding: 4px 11px;
      }
      .wcard .links {
        margin-top: 18px;
        display: flex;
        gap: 18px;
      }
      .text-link {
        font-size: 13px;
        font-weight: 500;
        border-bottom: 1px solid var(--line);
        padding-bottom: 2px;
        transition:
          border-color 0.3s,
          color 0.3s;
      }
      .text-link {
        color: var(--accent-2);
      }
      .text-link:hover {
        border-color: var(--accent);
        color: var(--accent);
      }

      /* code-drawn mockups */
      .mock {
        width: 84%;
        max-width: 440px;
        background: #142735;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 26px 50px rgba(23, 42, 58, 0.28);
        transform: translateY(8%);
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
      }
      .wcard:hover .mock {
        transform: translateY(4%) scale(1.02);
      }
      .mock .bar {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 9px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }
      .mock .bar i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #1c1e21;
        border: 1px solid rgba(255, 255, 255, 0.16);
      }
      .mock .bar b {
        margin-left: auto;
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.14em;
        color: #8b9096;
        text-transform: uppercase;
      }
      .mock .pad {
        padding: 14px 16px;
        font-size: 11px;
        line-height: 1.9;
        color: #9ca1a6;
        font-family: ui-monospace, Menlo, monospace;
      }
      .mock .ok {
        color: #ffffff;
      }
      .mock .mut {
        color: #6a6f74;
      }
      .mock table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10.5px;
        font-family: var(--font-body);
      }
      .mock th {
        color: #7d8287;
        font-weight: 500;
        text-align: left;
        padding: 6px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 9px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }
      .mock td {
        padding: 7px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #9ca1a6;
      }
      .mock td.rank {
        color: #ffffff;
        font-weight: 600;
      }
      .mock .barfill {
        height: 4px;
        background: #1e2023;
        border-radius: 2px;
        overflow: hidden;
      }
      .mock .barfill i {
        display: block;
        height: 100%;
        background: #e47a58;
        opacity: 0.95;
      }
      .mock .check {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-family: var(--font-body);
        font-size: 11px;
        color: #9ca1a6;
      }
      .mock .check .box {
        width: 13px;
        height: 13px;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        flex: none;
      }
      .mock .check.done .box {
        background: #ffffff;
        color: #0f1012;
        border-color: #ffffff;
      }
      .mock .check.done span {
        color: #6a6f74;
        text-decoration: line-through;
      }
      .mock .check .st {
        margin-left: auto;
        font-size: 9px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #7d8287;
      }
      .mock .aline {
        display: flex;
        gap: 10px;
        align-items: baseline;
        padding: 5.5px 0;
        font-family: var(--font-body);
        font-size: 11px;
        color: #9ca1a6;
      }
      .mock .aline .flag {
        flex: none;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.08em;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 4px;
        padding: 1px 7px;
        color: #ffffff;
      }
      .mock .aline.pass .flag {
        color: #6a6f74;
      }

      /* ── approach rows ── */
      .appr-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(30px, 4vw, 64px);
        align-items: center;
        padding: clamp(40px, 6vh, 70px) 0;
        border-top: 1px solid var(--line-soft);
      }
      .appr-row:first-of-type {
        margin-top: 48px;
      }
      .appr-row.flip .vis {
        order: 2;
      }
      .appr-row h3 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(22px, 2.5vw, 32px);
        letter-spacing: -0.02em;
        line-height: 1.15;
        margin-bottom: 14px;
        color: var(--accent-2);
      }
      .appr-row p {
        color: var(--ink-dim);
        font-size: 15px;
        max-width: 46ch;
      }
      .appr-row .vis {
        background: rgba(255, 253, 252, 0.76);
        border: 1px solid rgba(23, 42, 58, 0.11);
        border-radius: var(--radius);
        aspect-ratio: 4/3;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        box-shadow: 0 16px 38px rgba(23, 42, 58, 0.06);
      }
      .flow {
        display: flex;
        flex-direction: column;
        gap: 13px;
        width: 76%;
      }
      .flow .node {
        border: 1px solid rgba(47, 111, 115, 0.15);
        border-radius: 12px;
        background: #ffffff;
        padding: 11px 15px;
        font-size: 11.5px;
        color: var(--ink-dim);
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .flow .node b {
        color: var(--ink);
        font-weight: 600;
        font-size: 11.5px;
      }
      .flow .node .pulse {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent);
        animation: blink 2s infinite;
      }
      @keyframes blink {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.25;
        }
      }
      @keyframes heroRuleIn {
        from { opacity: 0; transform: scaleX(0); }
        to { opacity: 1; transform: scaleX(1); }
      }
      @keyframes scrollCue {
        0%, 100% { transform: translateY(0); opacity: 0.68; }
        50% { transform: translateY(7px); opacity: 1; }
      }
      .flow .link {
        width: 1px;
        height: 13px;
        background: var(--line);
        margin-left: 26px;
      }
      .aipanel {
        width: 80%;
        background: #ffffff;
        border: 1px solid var(--line-soft);
        border-radius: 12px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 9px;
      }
      .aipanel .msg {
        border: 1px solid var(--line-soft);
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 11px;
        color: var(--ink-dim);
        max-width: 88%;
      }
      .aipanel .msg.me {
        align-self: flex-end;
        background: #e5efed;
        color: var(--ink);
      }
      .aipanel .msg .cap {
        display: block;
        font-size: 8.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-faint);
        margin-bottom: 3px;
      }
      .uptime {
        width: 80%;
      }
      .uptime .head {
        display: flex;
        justify-content: space-between;
        font-size: 10px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-faint);
        margin-bottom: 13px;
      }
      .uptime .head b {
        color: var(--ink);
      }
      .uptime svg {
        width: 100%;
        height: auto;
        display: block;
      }
      .uptime .ticks {
        display: flex;
        gap: 4px;
        margin-top: 13px;
      }
      .uptime .ticks i {
        flex: 1;
        height: 20px;
        border-radius: 3px;
        background: var(--accent-2);
        opacity: 0.85;
      }
      .uptime .ticks i.dim {
        opacity: 0.18;
      }

      /* ── steps · #how hosts the page's one full-dark moment — but the dark is the
      WEBGL BACKDROP (keyframes lerp bg to #22262A between av-guard anchors above
      #how / #experience), not a section background. The DOM side is body.sec-ink,
      toggled with ±48px hysteresis by updateScrollMotion() at the ramp midpoints.
      The canvas is ONE global color, so the flip re-tokens every .grid-sec —
      neighboring sections' sticky kickers and tails cross the band during the
      ramps — while the fixed header/footer keep their light glass. ── */
      #how {
        background: transparent;
        border-top: 1px solid var(--line-soft);
      }
      #how + section.grid-sec {
        border-top: none;
      }
      #how .eyebrow {
        color: var(--accent-2);
      }
      #how .eyebrow::after {
        background: linear-gradient(90deg, var(--accent), transparent);
      }
      #how h2.display {
        color: var(--ink);
      }
      body.sec-ink section.grid-sec {
        --ink: #eceff1;
        --ink-dim: #b7bec3;
        --ink-faint: #8b9398;
        --accent-2: #e3e7ea;
        --line: rgba(255, 255, 255, 0.18);
        --line-soft: rgba(255, 255, 255, 0.13);
      }
      body.sec-ink section.grid-sec .eyebrow {
        /* neighbors' kickers dim on ink; #how's own stays token-bright via its
           more specific rule above — deliberate active-section hierarchy */
        color: #9ba3a8;
      }
      /* white-glass cards do NOT survive on ink (interior text drops to ~2:1) —
         dark-glass variant; backdrop-filter stays and frosts the light pool */
      body.sec-ink .svc,
      body.sec-ink .wcard,
      body.sec-ink .appr-row .vis,
      body.sec-ink .step,
      body.sec-ink .xp {
        background: linear-gradient(
          135deg,
          rgba(23, 26, 28, 0.55),
          rgba(23, 26, 28, 0.28) 48%,
          rgba(23, 26, 28, 0.44)
        );
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.1),
          0 18px 42px rgba(0, 0, 0, 0.35);
      }
      .steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 48px;
      }
      .step {
        background: rgba(255, 253, 252, 0.78);
        border: 1px solid rgba(23, 42, 58, 0.11);
        border-top: 4px solid var(--accent-2);
        border-radius: var(--radius);
        padding: 31px 28px 40px;
        box-shadow: 0 14px 34px rgba(23, 42, 58, 0.06);
        transition:
          background 0.4s,
          border-color 0.4s,
          transform 0.4s,
          box-shadow 0.4s;
      }
      .step:nth-child(even) {
        border-top-color: var(--accent);
      }
      .step:hover {
        background: var(--surface);
        border-color: rgba(217, 95, 59, 0.26);
        transform: translateY(-4px);
        box-shadow: 0 20px 42px rgba(23, 42, 58, 0.1);
      }
      .step .ic {
        width: 25px;
        height: 25px;
        margin: 0 auto 24px;
        color: var(--accent-2);
        display: block;
      }
      .step h3 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 18px;
        letter-spacing: -0.01em;
        line-height: 1.3;
        margin-bottom: 10px;
        text-align: center;
        color: var(--ink);
      }
      .step p {
        color: var(--ink-dim);
        font-size: 13.5px;
      }

      /* ── experience ── */
      .xp {
        border-top: 1px solid var(--line-soft);
        display: grid;
        grid-template-columns: 160px 1fr 1.25fr;
        gap: clamp(16px, 2.6vw, 44px);
        padding: 30px 0;
        transition: background 0.3s;
      }
      .xp:hover {
        background: rgba(255, 253, 252, 0.46);
      }
      .xp:first-of-type {
        margin-top: 48px;
      }
      .xp:last-of-type {
        border-bottom: 1px solid var(--line-soft);
      }
      .xp .yr {
        font-size: 13px;
        color: var(--ink-faint);
        padding-top: 4px;
        font-variant-numeric: tabular-nums;
      }
      .xp .yr.now {
        color: var(--ink);
      }
      .xp h3 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 18px;
        letter-spacing: -0.01em;
        line-height: 1.3;
        color: var(--accent-2);
      }
      .xp .org {
        font-size: 11.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-faint);
        margin-top: 5px;
      }
      .xp p {
        color: var(--ink-dim);
        font-size: 14px;
      }
      .edu-line {
        margin-top: 34px;
        font-size: 13.5px;
        color: var(--ink-dim);
      }
      .edu-line b {
        color: var(--ink);
        font-weight: 500;
      }

      /* liquid-glass card system */
      .svc,
      .wcard,
      .appr-row .vis,
      .step,
      .xp {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.52),
          rgba(225, 234, 237, 0.13) 48%,
          rgba(255, 255, 255, 0.3)
        );
        border: 1px solid rgba(255,255,255,.48);
        border-top-color: rgba(255,255,255,.48);
        -webkit-backdrop-filter: blur(26px) saturate(145%);
        backdrop-filter: blur(26px) saturate(145%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.86),
          inset 0 -1px 0 rgba(91, 106, 112, 0.08),
          0 18px 42px rgba(55, 65, 70, 0.09);
        transform-origin: 50% 74%;
        transition:
          transform var(--motion-base) var(--ease-spring),
          background var(--motion-base) var(--ease-out),
          border-color var(--motion-fast) ease,
          box-shadow var(--motion-base) var(--ease-out);
      }
      .svc::before,
      .wcard::before,
      .appr-row .vis::before,
      .step::before,
      .xp::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -55%;
        pointer-events: none;
        background:
          radial-gradient(
            circle at 28% 28%,
            rgba(255, 255, 255, 0.98) 0 8%,
            transparent 24%
          ),
          radial-gradient(
            circle at 72% 66%,
            rgba(120, 120, 120, 0.12) 0 7%,
            transparent 26%
          ),
          radial-gradient(
            circle at 36% 78%,
            rgba(255, 255, 255, 0.34) 0 6%,
            transparent 24%
          );
        filter: blur(7px);
        opacity: 0.78;
        transform: translate3d(-2%, -2%, 0) rotate(-2deg) scale(1.02);
        transition:
          transform 1.2s var(--ease-out),
          opacity var(--motion-base) ease;
      }
      .svc::after,
      .wcard::after,
      .appr-row .vis::after,
      .step::after,
      .xp::after {
        content: "";
        position: absolute;
        z-index: 2;
        inset: -30% -55%;
        pointer-events: none;
        background: linear-gradient(
          112deg,
          transparent 38%,
          rgba(255, 255, 255, 0.1) 43%,
          rgba(255, 255, 255, 0.58) 49%,
          rgba(255, 255, 255, 0.12) 55%,
          transparent 61%
        );
        opacity: 0;
        transform: translateX(-65%) rotate(4deg);
      }
      .svc > *,
      .wcard > *,
      .appr-row .vis > *,
      .step > *,
      .xp > * {
        position: relative;
        z-index: 1;
      }
      .svc:hover,
      .wcard:hover,
      .step:hover,
      .appr-row .vis:hover,
      .xp:hover {
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.68),
          rgba(255, 255, 255, 0.24),
          rgba(255, 255, 255, 0.42)
        );
        border-color: rgba(255,255,255,.58);
        transform: translate3d(0, -8px, 0) scale(1.012);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.92),
          inset 0 -1px 0 rgba(91, 106, 112, 0.08),
          0 26px 58px rgba(55, 65, 70, 0.14);
      }
      @media (hover: hover) and (pointer: fine) {
        .svc:hover::before,
        .wcard:hover::before,
        .appr-row .vis:hover::before,
        .step:hover::before,
        .xp:hover::before {
          opacity: 0.94;
          transform: translate3d(4%, 3%, 0) rotate(3deg) scale(1.08);
        }
        .svc:hover::after,
        .wcard:hover::after,
        .appr-row .vis:hover::after,
        .step:hover::after,
        .xp:hover::after {
          animation: liquidGlassShine 900ms var(--ease-out) both;
        }
      }
      @media (hover: none) {
        .svc:hover,
        .wcard:hover,
        .step:hover,
        .appr-row .vis:hover,
        .xp:hover {
          transform: none;
        }
      }
      .svc:nth-child(1),
      .svc:nth-child(2),
      .svc:nth-child(3) {
        border-top-color: rgba(255,255,255,.48);
      }
      .svc:nth-child(1):hover,
      .svc:nth-child(2):hover,
      .svc:nth-child(3):hover {
        border-top-color: rgba(255,255,255,.58);
      }
      .flow .node,
      .aipanel,
      .aipanel .msg {
        background: rgba(255, 255, 255, 0.5);
        border-color: transparent;
        -webkit-backdrop-filter: blur(10px) saturate(135%);
        backdrop-filter: blur(10px) saturate(135%);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.78),
          0 8px 22px rgba(0, 0, 0, 0.05);
      }
      .aipanel .msg.me {
        background: rgba(255, 255, 255, 0.34);
      }
      .wcard .visual {
        background: rgba(255, 255, 255, 0.1);
      }
      .xp {
        border: 1px solid transparent;
        border-radius: 18px;
        padding: 30px 24px;
        margin-bottom: 12px;
      }
      .xp:last-of-type {
        border-bottom-color: transparent;
      }
      @keyframes liquidGlassShine {
        0% {
          transform: translateX(-65%) rotate(4deg);
          opacity: 0;
        }
        35% {
          opacity: 0.7;
        }
        100% {
          transform: translateX(65%) rotate(4deg);
          opacity: 0;
        }
      }

      /* ── CTA (grid section, left-aligned content) ── */
      #cta h2 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: clamp(36px, 5.6vw, 80px);
        line-height: 1.04;
        letter-spacing: -0.03em;
        max-width: 16ch;
        color: var(--ink);
      }
      #cta h2::after {
        content: "";
        display: block;
        width: clamp(62px, 8vw, 110px);
        height: 6px;
        border-radius: 99px;
        margin-top: 22px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
      }
      #cta .sub {
        color: var(--ink-dim);
        max-width: 50ch;
        margin-top: 24px;
        font-size: 15.5px;
      }
      #cta .cta-row {
        margin-top: 40px;
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
      }
      #copy-email {
        position: relative;
      }
      #copy-email .copied {
        position: absolute;
        top: -34px;
        left: 50%;
        transform: translateX(-50%) translateY(6px);
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink);
        opacity: 0;
        transition:
          opacity 0.3s,
          transform 0.3s;
        pointer-events: none;
      }
      #copy-email.show .copied {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }

      /* ── footer — full-width band, content at main-content width ── */
      footer {
        position: relative;
        z-index: 2;
        border-top: 1px solid rgba(255,255,255,.5);
        padding: 60px var(--pad-x) 34px;
        background: linear-gradient(115deg, rgba(255,255,255,.42), rgba(225,234,237,.12) 48%, rgba(255,255,255,.3));
        -webkit-backdrop-filter: blur(30px) saturate(145%);
        backdrop-filter: blur(30px) saturate(145%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 -18px 50px rgba(55,65,70,.06);
      }
      .foot-wrap {
        max-width: var(--wrap-max);
        margin: 0 auto;
      }
      .foot-grid {
        display: flex;
        justify-content: space-between;
        gap: 40px;
        flex-wrap: wrap;
        margin-bottom: 56px;
      }
      .foot-grid .brand {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 19px;
        color: var(--accent-2);
      }
      .foot-grid .brand i {
        font-style: normal;
        color: var(--ink-faint);
      }
      .foot-col .h {
        font-size: 11px;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--ink-faint);
        margin-bottom: 16px;
      }
      .foot-col a {
        display: block;
        font-size: 14px;
        color: var(--ink-dim);
        margin-bottom: 9px;
        transition: color 0.3s;
      }
      .foot-col a:hover {
        color: var(--ink);
      }
      .foot-base {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
        font-size: 12px;
        color: var(--ink-faint);
        border-top: 1px solid var(--line-soft);
        padding-top: 26px;
      }
      .foot-base a:hover {
        color: var(--ink);
      }

      /* ── responsive ── */
      @media (max-width: 1080px) {
        .svc-grid {
          grid-template-columns: 1fr;
        }
        .oc-grid {
          grid-template-columns: 1fr;
        }
      }
      @media (max-width: 920px) {
        nav.links {
          display: none;
        }
        .rail {
          display: none;
        }
        .wrap {
          grid-template-columns: 1fr;
          gap: 26px;
        }
        .eyebrow {
          position: static;
        }
        .work-grid {
          grid-template-columns: 1fr;
        }
        .appr-row {
          grid-template-columns: 1fr;
        }
        .appr-row.flip .vis {
          order: 0;
        }
        .xp {
          grid-template-columns: 1fr;
          gap: 10px;
          padding: 26px 0;
        }
        #hero {
          padding-top: clamp(110px, 18vh, 160px);
        } /* text top, object below it (L2 hero pose) */
      }
      @media (max-width: 620px) {
        .steps {
          grid-template-columns: 1fr;
        }
        .hero-loc {
          display: none;
        }
      }
      @media (max-height: 600px) {
        #hero {
          padding-top: 90px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation: none !important;
          transition: none !important;
        }
        .reveal {
          opacity: 1;
          filter: none;
          transform: none;
          will-change: auto;
        }
        .js #he1,
        .js #he2,
        .js #he3,
        .js #he4,
        .js #he5 {
          opacity: 1;
          transform: none;
        }
        html {
          scroll-behavior: auto;
        }
      }
