/* ==========================================================================
   Soft Lead Solutions — "Graphite & Highlighter" design system
   Concept: lead = pencil graphite. Ideas start as sketches; Jia Yong leads
   them to shipped products. Graphite blacks, cool paper, a highlighter accent
   and blueprint blue for diagrams.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: "Geist";
    src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Caveat";
    src: url("assets/fonts/caveat-latin-wght-normal.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;

    --ink-0: #0a0b0d;
    --ink-1: #101216;
    --ink-2: #16191e;
    --ink-3: #1e2228;
    --ink-4: #2a2f37;
    --line: rgba(226, 232, 240, 0.09);
    --line-strong: rgba(226, 232, 240, 0.18);

    --text: #e8ebee;
    --text-2: #a9afb8;
    --text-3: #7c838e;

    --paper: #e6e9ec;
    --paper-2: #d7dce1;
    --pencil: #2f343c;
    --pencil-soft: #6b727d;

    --hl: #d4ff3a;
    --hl-2: #b8e61f;
    --hl-ink: #0f1405;
    --hl-glow: rgba(212, 255, 58, 0.18);
    --blue: #6ea8ff;
    --blue-soft: rgba(110, 168, 255, 0.14);
    --ok: #4ade80;

    --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --f-hand: "Caveat", "Segoe Print", cursive;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 22px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1240px;
    --nav-h: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    background: var(--ink-1);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--hl); color: var(--hl-ink); }

:focus-visible {
    outline: 2px solid var(--hl);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    background: var(--hl);
    color: var(--hl-ink);
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Film grain + cursor spotlight over a faint drafting grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(212, 255, 58, 0.06), transparent 60%),
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    mask-image: radial-gradient(900px circle at var(--mx, 70%) var(--my, 20%), #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.18) 100%);
    -webkit-mask-image: radial-gradient(900px circle at var(--mx, 70%) var(--my, 20%), #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.18) 100%);
}
body::after {
    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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site { position: relative; z-index: 2; }

/* ---------- Type ---------- */
.display {
    font-family: var(--f-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
    font-variation-settings: "wdth" 90;
}
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; }

.mono {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hand { font-family: var(--f-hand); font-weight: 600; letter-spacing: 0; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--hl);
}
.eyebrow--plain::before { display: none; }

.lede {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-2);
    max-width: 38em;
}

/* Highlighter mark drawn behind a word */
.mark {
    position: relative;
    white-space: nowrap;
    z-index: 0;
    color: inherit;
}
.mark::before {
    content: "";
    position: absolute;
    left: -0.1em;
    right: -0.14em;
    bottom: 0.06em;
    height: 0.42em;
    z-index: -1;
    background: var(--hl);
    border-radius: 0.12em 0.3em 0.16em 0.4em;
    transform: scaleX(var(--mark, 1)) rotate(-1deg);
    transform-origin: left center;
    transition: transform 0.9s var(--ease) 0.5s;
}
.mark--text { color: var(--hl-ink); }
.mark--text::before { height: 0.96em; bottom: -0.04em; }
.mark--full::before { height: 0.9em; bottom: 0.02em; }
[data-reveal] .mark::before { --mark: 0; }
[data-reveal].is-in .mark::before { --mark: 1; }
[data-reveal] .mark--text { color: var(--text); transition: color 0.5s var(--ease) 0.9s; }
[data-reveal].is-in .mark--text { color: var(--hl-ink); }

/* ---------- Layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 52rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    --bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text-2); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--hl {
    --bg: var(--hl);
    color: var(--hl-ink);
    border-color: var(--hl);
    box-shadow: 0 0 0 0 var(--hl-glow);
}
.btn--hl:hover { border-color: var(--hl); box-shadow: 0 10px 40px -6px var(--hl-glow), 0 0 0 6px rgba(212, 255, 58, 0.08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.link-arrow:hover { color: var(--hl); border-color: var(--hl); }
.link-arrow svg { width: 16px; height: 16px; flex: none; }

/* ---------- Status chip ---------- */
.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(16, 18, 22, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-2);
}
.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}
.pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--ok);
    animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
    background: rgba(10, 11, 13, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-color: var(--line);
}
.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}
.brand__mark { width: 36px; height: 36px; flex: none; border-radius: 9px; transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 2px;
    background: var(--hl);
    border-radius: 2px;
}
.nav__cta { margin-left: 10px; }
.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    align-items: center;
    justify-content: center;
}
.nav__toggle span {
    position: relative;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: rotate(-45deg); }

.menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 99;
    background: var(--ink-0);
    padding: 32px var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu a:not(.btn) {
    font-family: var(--f-display);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.menu a:not(.btn) small { font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.06em; }
.menu .btn { margin-top: 24px; }
.menu__meta { margin-top: auto; padding-top: 32px; display: grid; gap: 6px; color: var(--text-2); font-size: 0.95rem; }

@media (max-width: 920px) {
    .nav__links { display: none; }
    .nav__toggle { display: inline-flex; }
}
@media (min-width: 921px) {
    .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 260vh;
}
.hero__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 5rem); text-wrap: balance; }
.hero__title em { font-style: normal; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--text-3);
}
.hero__meta b { color: var(--text); font-weight: 500; }

/* Intro choreography */
.intro > * {
    opacity: 0.01;
    transform: translateY(18px);
    animation: rise 1s var(--ease) forwards;
}
.intro > *:nth-child(1) { animation-delay: 0.05s; }
.intro > *:nth-child(2) { animation-delay: 0.15s; }
.intro > *:nth-child(3) { animation-delay: 0.3s; }
.intro > *:nth-child(4) { animation-delay: 0.42s; }
.intro > *:nth-child(5) { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* The sketch → shipped canvas */
.canvas {
    position: relative;
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.35s forwards;
}
.sheet {
    position: relative;
    aspect-ratio: 600 / 430;
    border-radius: var(--r-lg);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(110, 168, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 168, 255, 0.16) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: -1px -1px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 40px 80px -30px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: rotate(var(--tilt, -1.2deg));
    transition: transform 0.8s var(--ease);
}
.canvas[data-stage="3"] .sheet { --tilt: 0deg; }
.sheet__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sketch path,
.sketch rect,
.sketch line,
.sketch polyline,
.sketch circle {
    fill: none;
    stroke: var(--pencil);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.3s var(--ease) forwards;
    animation-delay: calc(0.5s + var(--d, 0) * 0.08s);
}
.sketch .soft { stroke: var(--pencil-soft); stroke-width: 1.2; }
.sketch .fill-hatch { stroke: var(--pencil-soft); stroke-width: 0.9; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.notes text {
    font-family: var(--f-hand);
    font-weight: 600;
    fill: var(--pencil);
}
.notes .n {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.notes .n--intro { animation: rise 0.8s var(--ease) forwards; animation-delay: calc(1.4s + var(--d, 0) * 0.15s); }
.canvas[data-stage="1"] .notes .n--s1,
.canvas[data-stage="2"] .notes .n--s1,
.canvas[data-stage="3"] .notes .n--s1 { opacity: 1; transform: none; }
.notes .hl-stroke {
    fill: none;
    stroke: var(--hl);
    stroke-width: 14;
    stroke-linecap: round;
    opacity: 0.85;
    mix-blend-mode: multiply;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.9s var(--ease) 0.2s;
}
.canvas[data-stage="1"] .notes .hl-stroke,
.canvas[data-stage="2"] .notes .hl-stroke,
.canvas[data-stage="3"] .notes .hl-stroke { stroke-dashoffset: 0; }
.pin circle { fill: var(--blue); stroke: none; }
.pin text { fill: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.pin-label text { font-family: var(--f-mono) !important; font-size: 10.5px; font-weight: 500 !important; fill: #2b5bb8 !important; letter-spacing: 0.02em; }

/* Ink layer: the built product, wiped in over the sketch */
.ink {
    position: absolute;
    inset: 0;
    background: #0d0f13;
    color: var(--text);
    clip-path: inset(0 calc((1 - var(--wipe, 0)) * 100%) 0 0);
    display: grid;
    grid-template-columns: 22% 1fr;
    font-size: clamp(8px, 0.95vw, 12.5px);
}
.ink::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--wipe, 0) * 100% - 2px);
    width: 3px;
    background: var(--hl);
    box-shadow: 0 0 24px 4px var(--hl-glow), 0 0 4px var(--hl);
    opacity: calc(var(--wipe, 0) * (1 - var(--wipe, 0)) * 6);
}
.ink__side {
    border-right: 1px solid var(--line);
    padding: 1.4em 1.1em;
    display: grid;
    align-content: start;
    gap: 0.5em;
    background: #0a0c0f;
}
.ink__logo { display: flex; align-items: center; gap: 0.5em; font-weight: 700; margin-bottom: 1.2em; font-family: var(--f-display); font-size: 1.15em; }
.ink__logo i { width: 1.1em; height: 1.1em; border-radius: 4px; background: var(--hl); display: block; }
.ink__nav { padding: 0.45em 0.7em; border-radius: 6px; color: var(--text-3); }
.ink__nav.is-on { background: var(--ink-3); color: var(--text); }
.ink__main { padding: 1.4em 1.6em; display: grid; gap: 1.1em; align-content: start; }
.ink__head { display: flex; justify-content: space-between; align-items: center; }
.ink__head b { font-family: var(--f-display); font-size: 1.6em; letter-spacing: -0.02em; }
.ink__avatars { display: flex; }
.ink__avatars i { width: 1.8em; height: 1.8em; border-radius: 50%; border: 2px solid #0d0f13; margin-left: -0.5em; display: block; }
.ink__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.ink__tile { border: 1px solid var(--line); border-radius: 8px; padding: 0.8em 0.9em; background: var(--ink-2); }
.ink__tile small { display: block; color: var(--text-3); font-family: var(--f-mono); font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; }
.ink__tile b { font-size: 1.45em; font-family: var(--f-display); letter-spacing: -0.02em; }
.ink__tile b em { font-style: normal; color: var(--hl); }
.ink__chart { border: 1px solid var(--line); border-radius: 8px; padding: 0.8em; background: var(--ink-2); height: 7.5em; }
.ink__chart svg { width: 100%; height: 100%; overflow: visible; }
.ink__rows { display: grid; gap: 0.45em; }
.ink__row { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.8em; border-radius: 6px; background: var(--ink-2); border: 1px solid var(--line); }
.ink__row i { width: 1.1em; height: 1.1em; border-radius: 50%; border: 1.5px solid var(--text-3); display: grid; place-items: center; flex: none; font-style: normal; font-size: 0.75em; }
.ink__row.done i { background: var(--hl); border-color: var(--hl); color: var(--hl-ink); }
.ink__row span { flex: 1; }
.ink__row em { font-style: normal; font-family: var(--f-mono); font-size: 0.8em; color: var(--text-3); }
.toast {
    position: absolute;
    right: 4%;
    bottom: 6%;
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.8em 1.1em;
    border-radius: 10px;
    background: var(--hl);
    color: var(--hl-ink);
    font-weight: 600;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.toast svg { width: 1.3em; height: 1.3em; }
.canvas[data-stage="3"] .toast { opacity: 1; transform: none; }

.stages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
}
.stages__item { display: flex; align-items: center; gap: 8px; transition: color 0.4s; white-space: nowrap; }
.stages__item b { font-weight: 500; color: var(--text-3); transition: color 0.4s; }
.stages__bar { flex: 1; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.stages__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hl);
    transform: scaleX(var(--fill, 0));
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.canvas[data-stage="1"] .stages__bar--1,
.canvas[data-stage="2"] .stages__bar--1,
.canvas[data-stage="3"] .stages__bar--1,
.canvas[data-stage="2"] .stages__bar--2,
.canvas[data-stage="3"] .stages__bar--2 { --fill: 1; }
.canvas .stages__item[data-s="0"],
.canvas[data-stage="1"] .stages__item[data-s="1"],
.canvas[data-stage="2"] .stages__item[data-s="1"],
.canvas[data-stage="3"] .stages__item[data-s="1"],
.canvas[data-stage="2"] .stages__item[data-s="2"],
.canvas[data-stage="3"] .stages__item[data-s="2"] { color: var(--text); }
.canvas .stages__item[data-s="0"] b,
.canvas[data-stage="1"] .stages__item[data-s="1"] b,
.canvas[data-stage="2"] .stages__item[data-s="1"] b,
.canvas[data-stage="3"] .stages__item[data-s="1"] b,
.canvas[data-stage="2"] .stages__item[data-s="2"] b,
.canvas[data-stage="3"] .stages__item[data-s="2"] b { color: var(--hl); }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    transition: opacity 0.4s;
}
.scroll-cue i {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--text-3), transparent);
    animation: cue 1.8s var(--ease) infinite;
    transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero[data-progress="1"] .scroll-cue { opacity: 0; }

@media (max-width: 920px) {
    .hero { height: auto; }
    .hero__pin { position: relative; height: auto; min-height: 0; padding-top: calc(var(--nav-h) + 36px); padding-bottom: 72px; }
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .scroll-cue { display: none; }
    .stages { font-size: 0.66rem; gap: 8px; }
}

/* ---------- Ticker ---------- */
.ticker {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding: 18px 0;
    background: var(--ink-0);
}
.ticker__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: ticker 40s linear infinite;
}
.ticker__item { display: flex; align-items: center; gap: 48px; font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text-2); white-space: nowrap; }
.ticker__item::after { content: ""; width: 10px; height: 10px; background: var(--hl); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Now leading (live board) ---------- */
.board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.proj {
    position: relative;
    display: grid;
    gap: 22px;
    align-content: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.proj:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.proj::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hl), transparent 70%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.proj:hover::before,
.proj.is-in::before { transform: scaleX(1); }
.proj__top { display: flex; justify-content: space-between; align-items: center; }
.proj__name { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.proj__team { display: grid; gap: 12px; }
.dots { display: flex; flex-wrap: wrap; gap: 7px; min-height: 40px; align-content: flex-start; }
.dots i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--text-2);
    display: block;
    transform: scale(0);
    transition: transform 0.5s var(--ease);
    transition-delay: calc(var(--i, 0) * 50ms + 200ms);
}
.dots i.lead { background: var(--hl); border-color: var(--hl); }
.is-in .dots i { transform: scale(1); }
.proj__count { font-family: var(--f-display); font-size: 3.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; }
.proj__count small { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-left: 8px; }
.proj__role { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-2);
}
.tag--hl { border-color: rgba(212, 255, 58, 0.4); color: var(--hl); }
.board__total {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.stat { padding: 26px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--f-display); font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.stat b em { font-style: normal; color: var(--hl); }
@media (max-width: 920px) {
    .board { grid-template-columns: 1fr; }
    .board__total { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }
}

/* ---------- Approach (sticky blueprint board) ---------- */
.approach {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.approach__steps { display: grid; }
.step {
    min-height: 70vh;
    display: grid;
    align-content: center;
    gap: 18px;
    padding-block: 40px;
}
.step__title, .step__num { transition: color 0.5s var(--ease); }
.step:not(.is-active) .step__title { color: var(--text-3); }
.step:not(.is-active) .step__num { color: var(--text-3); }
.step__num { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--hl); }
.step__title { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.step p { color: var(--text-2); font-size: 1.1rem; max-width: 30em; }
.step__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.approach__board {
    position: sticky;
    top: calc(var(--nav-h) + 6vh);
    height: min(560px, 72vh);
}
.bp {
    position: relative;
    height: 100%;
    border-radius: var(--r-lg);
    border: 1px solid rgba(110, 168, 255, 0.25);
    background-color: #0c1220;
    background-image:
        linear-gradient(rgba(110, 168, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 168, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(110, 168, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 168, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.bp__label {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(110, 168, 255, 0.75);
    z-index: 2;
}
.bp__view {
    position: absolute;
    inset: 56px 24px 24px;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    pointer-events: none;
}
.bp[data-step="1"] .bp__view[data-view="1"],
.bp[data-step="2"] .bp__view[data-view="2"],
.bp[data-step="3"] .bp__view[data-view="3"] { opacity: 1; transform: none; }
.bp svg { width: 100%; height: 100%; overflow: visible; }
.bp text { font-family: var(--f-mono); fill: #c9dcff; font-size: 12px; }
.bp .t-hand { font-family: var(--f-hand); font-size: 20px; fill: var(--hl); font-weight: 600; }

/* view 1: roadmap */
.rm-bar {
    fill: rgba(110, 168, 255, 0.18);
    stroke: var(--blue);
    stroke-width: 1.2;
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 120ms + 150ms);
}
.rm-bar.hl { fill: rgba(212, 255, 58, 0.22); stroke: var(--hl); }
.bp[data-step="1"] .rm-bar { transform: scaleX(1); }
.rm-grid { stroke: rgba(110, 168, 255, 0.18); stroke-dasharray: 3 5; }
.rm-today { stroke: var(--hl); stroke-width: 1.5; }

/* view 2: architecture */
.node rect { fill: #101a2e; stroke: var(--blue); stroke-width: 1.2; }
.node.hl rect { stroke: var(--hl); fill: rgba(212, 255, 58, 0.08); }
.node text { text-anchor: middle; dominant-baseline: middle; font-size: 12.5px; }
.node.hl text { fill: var(--hl); }
.node {
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms + 100ms);
}
.bp[data-step="2"] .node { opacity: 1; }
.wire {
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.3;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms + 500ms);
}
.bp[data-step="2"] .wire { stroke-dashoffset: 0; }
.wire-flow {
    fill: none;
    stroke: var(--hl);
    stroke-width: 2;
    stroke-dasharray: 0.04 0.96;
    stroke-linecap: round;
    animation: flow 2.4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s 1.4s;
}
.bp[data-step="2"] .wire-flow { opacity: 1; }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* view 3: kanban */
.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 100%; position: relative; }
.kb__col { border: 1px dashed rgba(110, 168, 255, 0.28); border-radius: 12px; padding: 12px; display: grid; align-content: start; gap: 10px; }
.kb__col h4 { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(201, 220, 255, 0.8); font-weight: 500; display: flex; justify-content: space-between; }
.kb__card { padding: 10px 12px; border-radius: 9px; background: #121b2e; border: 1px solid rgba(110, 168, 255, 0.25); font-size: 0.82rem; color: #dfe8ff; display: grid; gap: 6px; }
.kb__card small { font-family: var(--f-mono); font-size: 0.64rem; color: rgba(201, 220, 255, 0.55); letter-spacing: 0.04em; }
.kb__card.done { border-color: rgba(212, 255, 58, 0.45); }
.kb__card.done small { color: var(--hl); }
.kb__mover {
    position: absolute;
    top: 46%;
    left: 12px;
    width: calc((100% - 24px) / 3 - 24px);
    background: var(--hl);
    color: var(--hl-ink);
    border-color: var(--hl);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}
.kb__mover small { color: rgba(15, 20, 5, 0.7); }
.bp[data-step="3"] .kb__mover { animation: move 6s var(--ease) infinite; }
@keyframes move {
    0%, 18% { transform: translateX(0) rotate(0); }
    26% { transform: translateX(calc(100% + 36px)) rotate(2deg); }
    32%, 52% { transform: translateX(calc(100% + 36px)) rotate(0); }
    60% { transform: translateX(calc(200% + 72px)) rotate(-2deg); }
    66%, 92% { transform: translateX(calc(200% + 72px)) rotate(0); }
    100% { transform: translateX(0); opacity: 0; }
}

@media (max-width: 920px) {
    .approach { grid-template-columns: 1fr; }
    .approach__board { top: calc(var(--nav-h) + 8px); height: 300px; z-index: 3; order: -1; }
    .approach__steps { position: relative; z-index: 2; }
    .step { min-height: 60vh; padding-block: 24px; }
    .step__title { font-size: 2.8rem; }
    .bp__view { inset: 46px 14px 14px; }
    .kb__card { font-size: 0.72rem; padding: 8px; }
}

/* ---------- Ownership ---------- */
.own {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.own__col { padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px; align-content: start; }
.own__col + .own__col { border-left: 1px solid var(--line); background: linear-gradient(160deg, rgba(212, 255, 58, 0.05), transparent 60%); }
.own__col h3 { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.own__list { display: grid; gap: 4px; }
.own__list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.own__list li:last-child { border-bottom: 0; }
.own__list li span { font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-3); width: 24px; }
.curve {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 32px);
    display: grid;
    gap: 12px;
}
.curve__head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.curve svg { width: 100%; height: auto; overflow: visible; }
.curve .axis { stroke: var(--line-strong); stroke-width: 1; }
.curve .line {
    fill: none;
    stroke: var(--hl);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2s var(--ease) 0.2s;
}
.curve .area { fill: url(#curveFill); opacity: 0; transition: opacity 1s 1s; }
.curve.is-in .line { stroke-dashoffset: 0; }
.curve.is-in .area { opacity: 1; }
.curve text { fill: var(--text-3); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.curve .t-hand { font-family: var(--f-hand); font-size: 21px; fill: var(--text); text-transform: none; letter-spacing: 0; }
@media (max-width: 760px) {
    .own { grid-template-columns: 1fr; }
    .own__col + .own__col { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- 90-day plan tool ---------- */
.plan {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-0);
    overflow: hidden;
}
.plan__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
}
.plan__tab {
    padding: 22px 24px;
    text-align: left;
    display: grid;
    gap: 6px;
    border-right: 1px solid var(--line);
    position: relative;
    transition: background 0.3s;
}
.plan__tab:last-child { border-right: 0; }
.plan__tab:hover { background: var(--ink-2); }
.plan__tab .mono { color: var(--text-3); }
.plan__tab b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.plan__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--hl);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}
.plan__tab[aria-selected="true"] { background: var(--ink-2); }
.plan__tab[aria-selected="true"] .mono { color: var(--hl); }
.plan__tab[aria-selected="true"]::after { transform: scaleX(1); }
.plan__panel { padding: clamp(24px, 4vw, 44px); display: grid; gap: 28px; }
.plan__panel[hidden] { display: none; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.phase { padding: 0 24px 0 0; display: grid; gap: 14px; align-content: start; position: relative; }
.phase__when { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hl); }
.phase__when::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212, 255, 58, 0.5), var(--line)); }
.phase h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.phase ul { display: grid; gap: 10px; }
.phase li { display: flex; gap: 10px; color: var(--text-2); font-size: 0.98rem; line-height: 1.45; }
.phase li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border: 1.5px solid var(--text-3); transform: rotate(45deg); }
.plan__panel:not([hidden]) .phase { animation: rise 0.6s var(--ease) both; }
.plan__panel:not([hidden]) .phase:nth-child(2) { animation-delay: 0.08s; }
.plan__panel:not([hidden]) .phase:nth-child(3) { animation-delay: 0.16s; }
.plan__out {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--r);
    background: var(--ink-2);
    border: 1px solid var(--line);
}
.plan__out p { font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.plan__out p span { color: var(--text-3); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 400; }
.plan__note { color: var(--text-3); font-size: 0.88rem; }
@media (max-width: 860px) {
    .plan__tabs { grid-template-columns: 1fr; }
    .plan__tab { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
    .plan__tab:last-child { border-bottom: 0; }
    .timeline { grid-template-columns: 1fr; gap: 28px; }
    .phase { padding: 0; }
}

/* ---------- Bio ---------- */
.bio {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.bio__photo { position: relative; }
.bio__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 30% 30%;
    border-radius: var(--r-lg);
}
.bio__note {
    position: absolute;
    right: -14px;
    bottom: 28px;
    transform: rotate(-4deg);
    background: var(--hl);
    color: var(--hl-ink);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--f-hand);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
}
.bio__copy { display: grid; gap: 22px; }
.bio__copy p { color: var(--text-2); font-size: 1.12rem; }
.bio__copy p strong { color: var(--text); font-weight: 500; }
.bio__links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
@media (max-width: 860px) {
    .bio { grid-template-columns: 1fr; }
    .bio__photo { max-width: 420px; }
    .bio__note { right: 10px; }
}

/* ---------- Fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit__col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 20px; align-content: start; }
.fit__col h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; }
.fit__col li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.05rem; line-height: 1.45; }
.fit__col li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.fit__col--yes { border-color: rgba(212, 255, 58, 0.3); }
.fit__col--yes svg { color: var(--hl); }
.fit__col--no { color: var(--text-2); }
.fit__col--no svg { color: var(--text-3); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    font-family: var(--f-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--hl); }
.faq summary i {
    position: relative;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.faq summary i::before,
.faq summary i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary i { background: var(--hl); border-color: var(--hl); color: var(--hl-ink); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 64px 28px 0; color: var(--text-2); font-size: 1.05rem; max-width: 52em; display: grid; gap: 12px; }
.faq__a a { color: var(--hl); text-decoration: underline; text-underline-offset: 3px; }
.faq details[open] .faq__a { animation: rise 0.5s var(--ease); }

/* ---------- Doors (cross-links) ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.door {
    position: relative;
    display: grid;
    gap: 16px;
    padding: clamp(26px, 3.5vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.door:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.door h3 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.door p { color: var(--text-2); max-width: 34em; }
.door__go {
    position: absolute;
    top: clamp(22px, 3vw, 34px);
    right: clamp(22px, 3vw, 34px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease), color 0.3s;
}
.door__go svg { width: 20px; height: 20px; }
.door:hover .door__go { background: var(--hl); border-color: var(--hl); color: var(--hl-ink); transform: rotate(-45deg); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.contact__aside { display: grid; gap: 30px; position: sticky; top: calc(var(--nav-h) + 32px); }
.next-steps { display: grid; gap: 0; counter-reset: s; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.next-steps li::before {
    counter-increment: s;
    content: "0" counter(s);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    color: var(--hl);
    padding-top: 3px;
}
.next-steps b { display: block; font-weight: 600; }
.next-steps span { color: var(--text-2); font-size: 0.96rem; }
.channels { display: grid; gap: 10px; }
.channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.2s, background 0.2s;
}
.channel:hover { border-color: var(--hl); background: rgba(212, 255, 58, 0.04); }
.channel span { display: grid; }
.channel small { font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.channel svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.form-sheet {
    position: relative;
    border-radius: var(--r-lg);
    background: #f1f3f5;
    padding: 18px 10px 10px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
    transform: rotate(0.6deg);
}
.form-sheet::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 120px;
    height: 26px;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(212, 255, 58, 0.75);
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.form-sheet iframe { width: 100%; height: 1040px; border: 0; border-radius: 12px; background: #f1f3f5; }
.form-sheet__fallback { color: var(--pencil); text-align: center; font-size: 0.9rem; padding: 12px; }
.form-sheet__fallback a { text-decoration: underline; }
@media (max-width: 920px) {
    .contact { grid-template-columns: 1fr; }
    .contact__aside { position: static; }
    .form-sheet { transform: none; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-0); padding-top: clamp(64px, 10vw, 120px); position: relative; z-index: 2; overflow: hidden; }
.footer__big {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(3rem, 11vw, 10rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: var(--text);
}
.footer__big span { color: var(--text-3); }
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-block: clamp(48px, 7vw, 80px);
}
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__label { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer__col a { color: var(--text-2); transition: color 0.2s; width: fit-content; }
.footer__col a:hover { color: var(--hl); }
.footer__col p { color: var(--text-2); max-width: 26em; }
.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 26px 40px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.86rem;
}
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color 0.2s, color 0.2s; }
.socials a:hover { border-color: var(--hl); color: var(--hl); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px 0 14px;
    border-radius: 999px;
    background: #1fbd5a;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 14px 30px -10px rgba(31, 189, 90, 0.55);
    transition: transform 0.35s var(--ease), opacity 0.35s, box-shadow 0.3s;
}
.wa svg { width: 24px; height: 24px; }
.wa:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(31, 189, 90, 0.7); }
.wa.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 600px) {
    .wa { padding: 0; width: 52px; justify-content: center; right: 16px; bottom: 16px; }
    .wa span { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero__inner { display: grid; gap: 26px; justify-items: start; max-width: 60rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--hl); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-4); }

/* ---------- Process (website design) ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: p; }
.process li {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: grid;
    gap: 14px;
    align-content: start;
}
.process li::before { counter-increment: p; content: "Phase 0" counter(p); font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hl); }
.process h3 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }
.process p { color: var(--text-2); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }

/* Preview flip (website design hero) */
.flip { position: relative; }
.flip__frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--ink-2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.flip__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--ink-1); }
.flip__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.flip__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-3); }
.flip__stage { position: relative; aspect-ratio: 16 / 10; }
.flip__stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.flip__stage img { object-fit: cover; object-position: top; }
.flip__sketch { background: var(--paper); background-image: linear-gradient(rgba(110, 168, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 168, 255, 0.16) 1px, transparent 1px); background-size: 22px 22px; }
.flip__built { clip-path: inset(0 0 0 var(--split, 50%)); }
.flip__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split, 50%);
    width: 2px;
    background: var(--hl);
    transform: translateX(-1px);
    pointer-events: none;
}
.flip__handle::after {
    content: "⟷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hl);
    color: var(--hl-ink);
    display: grid;
    place-items: center;
    font-weight: 700;
}
.flip__range { position: absolute; inset: 0; opacity: 0; cursor: ew-resize; width: 100%; height: 100%; margin: 0; }
.flip__labels { display: flex; justify-content: space-between; margin-top: 14px; color: var(--text-3); }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-1);
    transition: transform 0.4s var(--ease), border-color 0.3s;
}
.price:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.price--pop { border-color: rgba(212, 255, 58, 0.45); background: linear-gradient(180deg, rgba(212, 255, 58, 0.06), var(--ink-1) 50%); }
.price__badge { position: absolute; top: -12px; left: 30px; background: var(--hl); color: var(--hl-ink); padding: 4px 12px; border-radius: 999px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.price h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.price__amt { font-family: var(--f-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price__amt small { font-size: 1rem; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.price__for { color: var(--text-2); }
.price ul { display: grid; gap: 10px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 0.98rem; }
.price li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--hl); }
.price li.no { color: var(--text-3); }
.price li.no svg { color: var(--text-3); }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.addon b { display: block; font-weight: 600; }
.addon span { color: var(--text-3); font-size: 0.9rem; }
.addon strong { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -0.03em; white-space: nowrap; }
.addon strong small { font-size: 0.85rem; color: var(--text-3); font-weight: 400; }
.fineprint { margin-top: 22px; color: var(--text-3); font-size: 0.9rem; }
@media (max-width: 920px) { .prices, .addons { grid-template-columns: 1fr; } }

/* ---------- Work grid ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card { display: grid; gap: 18px; }
.work-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink-2);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__media .tag { position: absolute; top: 14px; left: 14px; background: rgba(10, 11, 13, 0.75); backdrop-filter: blur(6px); }
.work-card__body { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.work-card h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.work-card p { color: var(--text-2); margin-top: 6px; }
.work-card .door__go { position: static; flex: none; }
.work-card:hover .door__go { background: var(--hl); border-color: var(--hl); color: var(--hl-ink); transform: rotate(-45deg); }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* ---------- Case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.case-meta > div { padding: 22px 24px; border-right: 1px solid var(--line); display: grid; gap: 6px; }
.case-meta > div:last-child { border-right: 0; }
.case-meta b { font-weight: 500; }
.browser {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--ink-2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.browser__view { position: relative; height: min(78vh, 720px); overflow: hidden; }
.browser__view img {
    width: 100%;
    transform: translateY(0);
    transition: transform var(--dur, 6s) cubic-bezier(0.45, 0, 0.55, 1);
}
.browser:hover .browser__view img,
.browser:focus-within .browser__view img { transform: translateY(var(--shift, 0px)); }
.browser__hint { position: absolute; bottom: 16px; right: 16px; background: rgba(10, 11, 13, 0.8); backdrop-filter: blur(6px); }
.browser--sm .browser__view { height: 420px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split p { color: var(--text-2); font-size: 1.12rem; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 40px; border-top: 1px solid var(--line); }
.next-case b { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; transition: color 0.2s; }
.next-case:hover b { color: var(--hl); }
@media (max-width: 760px) {
    .case-meta { grid-template-columns: 1fr; }
    .case-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .gallery, .split { grid-template-columns: 1fr; }
    .browser__view { height: 60vh; }
}

/* ---------- Team / Careers ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease); }
.member:hover img { transform: scale(1.04); }
.member__cap { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(10, 11, 13, 0.92)); display: grid; gap: 2px; }
.member__cap b { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.member--lead { grid-row: span 2; }
.member--lead img { aspect-ratio: auto; height: 100%; object-position: 30% 30%; }
.member--more { display: grid; place-content: center; text-align: center; gap: 8px; padding: 28px; aspect-ratio: 1; background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, 0.02) 12px 13px), var(--ink-2); }
/* "+N" card fills the rest of the last row: 2 of 3 columns on desktop, a normal tile below 860px */
.member--wide { grid-column: span 2; aspect-ratio: auto; padding: 36px 28px; }
@media (max-width: 860px) { .member--wide { grid-column: auto; aspect-ratio: 1; } }
.member--more b { font-family: var(--f-display); font-size: 3rem; letter-spacing: -0.04em; color: var(--hl); line-height: 1; }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.perk { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 14px; align-content: start; }
.perk h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.perk p { color: var(--text-2); }
.perk__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 255, 58, 0.1); color: var(--hl); }
.perk__icon svg { width: 22px; height: 22px; }
.role {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.3s;
}
.role:hover { border-color: var(--hl); }
.role__num { font-family: var(--f-mono); color: var(--hl); }
.role h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; }
.role__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.culture { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.culture__stats { display: grid; gap: 18px; }
@media (max-width: 860px) {
    .team, .perks { grid-template-columns: 1fr 1fr; }
    .member--lead { grid-column: span 2; grid-row: auto; }
    .member--lead img { aspect-ratio: 4 / 3; }
    .culture { grid-template-columns: 1fr; }
    .role { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 520px) { .team, .perks { grid-template-columns: 1fr; } .member--lead { grid-column: auto; } }

/* ---------- Legal prose ---------- */
.prose { max-width: 46rem; color: var(--text-2); font-size: 1.02rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-display); color: var(--text); font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { font-family: var(--f-display); color: var(--text); font-size: 1.2rem; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--hl); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; }
.lost__inner { display: grid; gap: 24px; justify-items: center; max-width: 36rem; }
.lost__inner > svg { width: min(360px, 80vw); height: auto; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Cross-document view transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.35s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    html { scroll-behavior: auto; }
    .hero { height: auto; }
    .hero__pin { position: relative; height: auto; padding-bottom: 80px; padding-top: calc(var(--nav-h) + 48px); }
    .scroll-cue { display: none; }
    .ticker__track { animation: none; }
    .bp[data-step="3"] .kb__mover { animation: none; transform: translateX(calc(200% + 72px)); }
    @view-transition { navigation: none; }
}

/* ---------- Small additions ---------- */
.next-case .door__go { position: static; flex: none; }
.next-case:hover .door__go { background: var(--hl); border-color: var(--hl); color: var(--hl-ink); transform: rotate(-45deg); }
.next-case > span:first-child { flex: none; }
.next-case b { flex: 1; }
.page-hero .hero__grid { align-items: center; }
.page-hero .flip { margin-top: 8px; }
.lost .sketch path, .lost .sketch rect, .lost .sketch line { stroke: #a9afb8; }
.work--3 { grid-template-columns: repeat(3, 1fr); }
.work--3 .work-card h3 { font-size: 1.4rem; }
@media (max-width: 920px) { .work--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work--3 { grid-template-columns: 1fr; } }
.member__cap { padding-top: 90px; background: linear-gradient(transparent, rgba(10, 11, 13, 0.55) 35%, rgba(10, 11, 13, 0.94)); }
.member__cap .mono.dim { color: var(--text-2); }
