/* StarForge website 2026 — prototype styles.
   Storybook workshop: ink outlines, hard offset shadows, round corners, one squiggle per screen.
   Every colour comes from the role tokens below. */

@view-transition { navigation: auto; }

:root {
  --night:#1a1423; --plum:#3d314a; --mauve:#684756; --clay:#96705b; --star:#b5673c; --sky:#cde6f5; --white:#fff;
  --paper:#fffdfb; --paper-raised:#ffffff; --paper-mist:#eef6fb; --paper-band:#cde6f5; --paper-sunk:#f4f1f6;
  --ink:#1a1423; --ink-muted:#684756; --line:#e6dfec; --line-strong:#8a7f95;
  --primary:#3d314a; --on-primary:#fff; --pop:#cde6f5; --on-pop:#1a1423;
  --accent-ink:#7a5846; --clay-soft:#f4ebe5; --sky-soft:#cde6f5; --link:#3d314a; --focus:#3d314a; --squiggle:#b5673c;
  --ok:#1f6b73; --ok-soft:#dcefef; --warn:#8a4b00; --warn-soft:#f8e3c9; --danger:#a3311f; --danger-soft:#f6dcd6;
  --shadow-ink:#1a1423;
  --pop-s:2px 2px 0 var(--shadow-ink); --pop-m:4px 4px 0 var(--shadow-ink); --pop-l:8px 8px 0 var(--shadow-ink);
  --r-sm:8px; --r-md:14px; --r-lg:24px; --r-xl:36px; --pill:999px;
  --font-display:"Fraunces", "Cooper Black", Georgia, serif;
  --font-sans:"Nunito", "Segoe UI Rounded", system-ui, sans-serif;
  --font-hand:"Patrick Hand", "Segoe Print", cursive;
  --font-mono:"DM Mono", ui-monospace, Consolas, monospace;
  --gutter:clamp(16px, 4vw, 56px); --max:1320px;
  --ease-pop:cubic-bezier(.34,1.56,.64,1); --ease-out:cubic-bezier(.22,1,.36,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper:#1a1423; --paper-raised:#261e31; --paper-mist:#221a2c; --paper-band:#3d314a; --paper-sunk:#140f1b;
  --ink:#fbf8fd; --ink-muted:#c3b7cc; --line:#3a3047; --line-strong:#8c7e9b;
  --primary:#cde6f5; --on-primary:#1a1423; --pop:#c79a80; --on-pop:#1a1423;
  --accent-ink:#e0bba5; --clay-soft:#3a2c22; --sky-soft:#22303d; --link:#cde6f5; --focus:#cde6f5; --squiggle:#c79a80;
  --ok:#7fcbd2; --ok-soft:#0f2a2e; --warn:#f0a24a; --warn-soft:#2e1d08; --danger:#f08a78; --danger-soft:#33130d;
  --shadow-ink:#c79a80; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --paper:#1a1423; --paper-raised:#261e31; --paper-mist:#221a2c; --paper-band:#3d314a; --paper-sunk:#140f1b;
    --ink:#fbf8fd; --ink-muted:#c3b7cc; --line:#3a3047; --line-strong:#8c7e9b;
    --primary:#cde6f5; --on-primary:#1a1423; --pop:#c79a80; --link:#cde6f5; --focus:#cde6f5; --squiggle:#c79a80;
    --accent-ink:#e0bba5; --clay-soft:#3a2c22; --sky-soft:#22303d; --ok:#7fcbd2; --ok-soft:#0f2a2e; --warn:#f0a24a; --warn-soft:#2e1d08;
    --shadow-ink:#c79a80; color-scheme: dark;
  }
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
html.lenis, html.lenis body { height:auto; }
.lenis.lenis-smooth { scroll-behavior:auto !important; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-sans); font-size:17px; line-height:1.65; font-weight:500; -webkit-font-smoothing:antialiased; overflow-x:clip; transition:background .4s, color .4s; }
body::after { content:""; position:fixed; inset:0; pointer-events:none; z-index:200; opacity:.05; mix-blend-mode:multiply;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] body::after { mix-blend-mode:screen; opacity:.035; }
img { max-width:100%; display:block; }
a { color:var(--link); text-underline-offset:3px; text-decoration-thickness:2px; }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; border-radius:6px; }
::selection { background:var(--star); color:#fff; }
.skip { position:absolute; left:-999px; top:8px; z-index:300; } .skip:focus { left:8px; }
.wrap { width:min(100% - var(--gutter)*2, var(--max)); margin-inline:auto; }
.section { padding-block:clamp(72px, 10vw, 140px); position:relative; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Type */
.display, h1, h2, h3 { font-family:var(--font-display); font-variation-settings:"SOFT" 100, "WONK" 1; font-optical-sizing:auto; margin:0; text-wrap:balance; color:var(--ink); }
h1, .display { font-weight:900; letter-spacing:-.025em; line-height:.92; font-size:clamp(54px, 8.6vw, 136px); }
h2 { font-weight:880; letter-spacing:-.02em; line-height:1; font-size:clamp(40px, 5.6vw, 84px); }
h3 { font-weight:820; letter-spacing:-.01em; line-height:1.12; font-size:clamp(22px, 2.1vw, 30px); }
.lede { font-size:clamp(18px, 1.5vw, 21px); line-height:1.6; max-width:52ch; margin:0; }
.label { font-family:var(--font-mono); font-size:12px; line-height:16px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); }
.data { font-family:var(--font-mono); font-variant-numeric:tabular-nums; font-size:14px; }
.muted { color:var(--ink-muted); }
.note { font-family:var(--font-hand); font-size:22px; line-height:1.1; color:var(--ink); }
.squiggle { position:relative; white-space:nowrap; display:inline-block; }
.squiggle svg { position:absolute; left:-2%; bottom:-.16em; width:104%; height:.32em; overflow:visible; }
.squiggle path { fill:none; stroke:var(--squiggle); stroke-width:6; stroke-linecap:round; stroke-linejoin:round; }
.char { display:inline-block; will-change:transform; }
.wonk.is-live .char { transition:font-variation-settings .35s var(--ease-out), transform .45s var(--ease-pop), color .3s; }
.wonk.is-live .char:hover { font-variation-settings:"SOFT" 0, "WONK" 0, "wght" 400; transform:translateY(-.08em) rotate(-4deg); color:var(--star); }
.eyebrow { display:inline-flex; align-items:center; gap:10px; }
.eyebrow::before { content:""; width:28px; height:2px; background:currentColor; border-radius:2px; }

/* Star mark */
.starmark { width:1em; height:1em; display:inline-block; vertical-align:-.12em; flex:none; }
.starmark path { fill:var(--star); stroke:var(--night); stroke-width:1.7; stroke-linejoin:round; }

/* Buttons */
.btn { --bg:var(--primary); --fg:var(--on-primary); position:relative; font:inherit; font-size:16px; font-weight:800; line-height:20px; display:inline-flex; align-items:center; gap:10px; padding:14px 24px; border-radius:var(--pill); border:2px solid var(--night); background:var(--bg); color:var(--fg); box-shadow:var(--pop-m); text-decoration:none; cursor:pointer; transition:transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background .2s; white-space:nowrap; }
:root[data-theme="dark"] .btn { border-color:var(--ink); }
.btn:hover { transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--shadow-ink); }
.btn:active { transform:translate(2px,2px); box-shadow:var(--pop-s); }
.btn-pop { --bg:var(--pop); --fg:var(--on-pop); }
.btn-quiet { --bg:var(--paper-raised); --fg:var(--ink); }
.btn-s { padding:9px 16px; font-size:14px; }
.btn .arrow { transition:transform .25s var(--ease-pop); } .btn:hover .arrow { transform:translateX(4px); }
.btn[disabled] { opacity:.45; pointer-events:none; }
.link-arrow { font-weight:800; color:var(--ink); text-decoration:none; display:inline-flex; gap:8px; align-items:center; border-bottom:2px solid currentColor; padding-bottom:2px; }
.link-arrow:hover { color:var(--accent-ink); }

/* Tags, stickers, notes */
.tag { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:12px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; padding:4px 10px; border:1.5px solid var(--ink); border-radius:var(--pill); background:var(--paper-raised); color:var(--ink); }
.tag-human { background:var(--sky-soft); color:var(--link); }
.tag-ai { background:var(--clay-soft); color:var(--accent-ink); }
.tag-ok { background:var(--ok-soft); color:var(--ok); } .tag-warn { background:var(--warn-soft); color:var(--warn); } .tag-danger { background:var(--danger-soft); color:var(--danger); }
.tag-sample { background:var(--paper-sunk); color:var(--ink-muted); border-style:dashed; }
.sticker { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; background:var(--paper-raised); border:2px solid var(--ink); border-radius:var(--pill); box-shadow:var(--pop-m); font-weight:800; font-size:15px; }
.notecard { display:inline-block; font-family:var(--font-hand); font-size:21px; line-height:1.15; background:#fff8d6; color:#1a1423; padding:10px 14px 12px; border:2px solid #1a1423; border-radius:4px 4px 14px 4px; box-shadow:var(--pop-m); transform:rotate(-2deg); }

/* Hallmark */
.hallmark { display:inline-flex; align-items:stretch; border:2.5px solid var(--ink); border-radius:var(--pill); background:var(--paper-raised); box-shadow:var(--pop-m); overflow:hidden; font-family:var(--font-mono); }
.hallmark > span { display:flex; flex-direction:column; justify-content:center; padding:6px 14px; border-left:2px solid var(--ink); line-height:1.1; }
.hallmark > span:first-child { border-left:0; padding:6px 10px 6px 14px; font-size:26px; }
.hallmark i { font-style:normal; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-muted); }
.hallmark b { font-size:16px; font-weight:500; }

/* Cards */
.card { background:var(--paper-raised); border:2px solid var(--ink); border-radius:var(--r-lg); box-shadow:var(--pop-m); }
.tilt { transform-style:preserve-3d; transition:transform .5s var(--ease-out), box-shadow .3s; will-change:transform; }
.tilt:hover { box-shadow:var(--pop-l); }

/* Header */
.site-header { position:fixed; inset:12px 0 auto; z-index:100; pointer-events:none; transition:transform .45s var(--ease-out); }
.site-header.is-hidden { transform:translateY(-140%); }
.site-header .bar { pointer-events:auto; width:min(100% - 24px, 1400px); margin:auto; display:flex; align-items:center; gap:18px; padding:10px 10px 10px 20px; background:color-mix(in oklab, var(--paper-raised) 92%, transparent); backdrop-filter:blur(10px); border:2px solid var(--ink); border-radius:var(--pill); box-shadow:var(--pop-m); }
.wordmark { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-display); font-weight:900; font-variation-settings:"SOFT" 100,"WONK" 1; font-size:25px; letter-spacing:-.02em; color:var(--ink); text-decoration:none; }
.wordmark .starmark { width:30px; height:30px; transition:transform .6s var(--ease-pop); }
.wordmark:hover .starmark { transform:rotate(72deg) scale(1.1); }
.nav { display:flex; gap:4px; margin:0 auto; padding:0; list-style:none; }
.nav a { display:block; padding:8px 14px; border-radius:var(--pill); color:var(--ink); text-decoration:none; font-weight:800; font-size:15px; position:relative; }
.nav a:hover, .nav a[aria-current="page"] { background:var(--paper-band); }
.status { display:flex; align-items:center; gap:10px; font-family:var(--font-mono); font-size:12px; line-height:1.25; color:var(--ink-muted); }
.status .dot { width:9px; height:9px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 0 var(--ok); animation:ping 2.4s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 color-mix(in oklab, var(--ok) 60%, transparent);} 80%,100%{box-shadow:0 0 0 9px transparent;} }
.status b { color:var(--ink); font-weight:500; display:block; }
.icon-btn { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; border:2px solid var(--ink); background:var(--paper-raised); color:var(--ink); cursor:pointer; box-shadow:var(--pop-s); transition:transform .2s var(--ease-pop); }
.icon-btn:hover { transform:rotate(-12deg) scale(1.06); }
.icon-btn svg { width:20px; height:20px; }
.menu-btn { display:none; }
.menu { position:fixed; inset:0; z-index:150; background:var(--plum); color:#fff; display:flex; flex-direction:column; padding:96px var(--gutter) 40px; clip-path:circle(0% at calc(100% - 48px) 44px); transition:clip-path .7s var(--ease-out); visibility:hidden; }
.menu.is-open { clip-path:circle(150% at calc(100% - 48px) 44px); visibility:visible; }
.menu a { color:#fff; text-decoration:none; font-family:var(--font-display); font-weight:900; font-variation-settings:"SOFT" 100,"WONK" 1; font-size:clamp(40px, 11vw, 72px); line-height:1.1; }
.menu a:hover { color:var(--sky); }

/* Preloader */
.loader { position:fixed; inset:0; z-index:400; background:var(--sky); display:grid; place-items:center; color:#1a1423; }
.loader .forge { width:220px; height:180px; overflow:visible; }
.loader .count { font-family:var(--font-mono); font-size:13px; letter-spacing:.1em; margin-top:10px; text-align:center; }
.loader .wave { position:absolute; left:0; right:0; bottom:-79px; height:80px; width:100%; }
.loader .wave path { fill:var(--sky); }
html.is-loaded .loader { pointer-events:none; }
html.no-loader .loader { display:none; }

/* Hero */
.hero { padding:104px 12px 0; }
.hero-band { position:relative; background:var(--paper-band); border:3px solid var(--ink); border-radius:var(--r-xl); min-height:min(860px, calc(100svh - 120px)); overflow:hidden; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); align-items:center; padding:clamp(28px,5vw,72px); gap:24px; isolation:isolate; }
.hero-copy { position:relative; z-index:2; display:flex; flex-direction:column; gap:26px; }
.hero-copy h1 { color:var(--ink); }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.hero-proof { display:flex; flex-wrap:wrap; gap:10px 22px; font-weight:700; font-size:15px; }
.hero-proof span { display:inline-flex; gap:8px; align-items:center; }
.hero-proof svg { width:18px; height:18px; color:var(--ok); }
.stage { position:relative; height:100%; min-height:520px; }
.stage canvas { position:absolute; inset:-10% -14% -6% -8%; width:122% !important; height:116% !important; cursor:grab; touch-action:pan-y; }
.stage .fallback { position:absolute; inset:12%; object-fit:contain; display:none; }
.stage.no-webgl .fallback { display:block; } .stage.no-webgl canvas { display:none; }
.float { position:absolute; z-index:3; pointer-events:auto; }
.float.f1 { top:9%; right:4%; } .float.f2 { bottom:16%; left:-2%; } .float.f3 { bottom:5%; right:8%; }
.bubble { position:absolute; z-index:4; top:6%; left:8%; background:var(--paper-raised); color:var(--ink); border:2px solid var(--ink); border-radius:18px; padding:10px 16px; font-weight:800; box-shadow:var(--pop-m); max-width:250px; transform-origin:bottom left; }
.bubble::after { content:""; position:absolute; left:28px; bottom:-11px; width:18px; height:18px; background:inherit; border-right:2px solid var(--ink); border-bottom:2px solid var(--ink); transform:rotate(45deg); }
.dots { position:absolute; inset:0; z-index:-1; pointer-events:none; }
.dots i { position:absolute; width:var(--s,12px); height:var(--s,12px); border-radius:50%; background:var(--star); border:2px solid var(--night); }
.hero-wave { position:absolute; left:-4%; right:-4%; bottom:-2px; height:120px; z-index:-1; pointer-events:none; }
.hero-wave path { fill:color-mix(in oklab, var(--paper-band) 70%, var(--plum) 30%); opacity:.35; }

/* Marquee */
.marquee { border-block:2.5px solid var(--ink); background:var(--plum); color:#fff; overflow:hidden; margin-top:42px; }
.marquee .track { display:flex; width:max-content; gap:0; animation:marq 38s linear infinite; }
.marquee:hover .track { animation-play-state:paused; }
.marquee span { display:inline-flex; align-items:center; gap:22px; padding:18px 22px; font-family:var(--font-display); font-variation-settings:"SOFT" 100,"WONK" 1; font-weight:850; font-size:clamp(22px,2.4vw,34px); white-space:nowrap; }
.marquee .starmark { width:.9em; height:.9em; }
@keyframes marq { to { transform:translateX(-50%); } }

/* Section heads */
.head { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:32px; align-items:end; margin-bottom:clamp(40px,5vw,72px); }
.head p { margin:0; }
.head .label { margin-bottom:18px; display:block; }

/* Leaks grid */
.leaks { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.leak { padding:26px; display:flex; flex-direction:column; gap:14px; min-height:330px; position:relative; overflow:hidden; }
.leak .pic { height:132px; display:flex; align-items:center; justify-content:center; background:var(--paper-mist); border:2px solid var(--ink); border-radius:var(--r-md); margin-bottom:6px; overflow:hidden; }
.leak .pic img { height:116px; width:auto; transition:transform .6s var(--ease-pop); }
.leak:hover .pic img { transform:scale(1.12) rotate(-4deg); }
.leak p { margin:0; color:var(--ink-muted); font-size:16px; }
.leak .link-arrow { margin-top:auto; align-self:flex-start; font-size:15px; }
.leak { padding-top:44px; }
.leak .num { position:absolute; top:14px; right:22px; font-family:var(--font-mono); font-size:12px; color:var(--ink-muted); }

/* Systems (pinned) */
.systems { background:var(--paper-mist); border-block:2.5px solid var(--ink); }
.sys-wrap { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(32px,5vw,80px); align-items:start; }
.sys-steps { display:flex; flex-direction:column; }
.sys-step { min-height:78vh; display:flex; flex-direction:column; justify-content:center; gap:18px; opacity:.28; transition:opacity .5s; }
.sys-step.is-active { opacity:1; }
.sys-step ul { margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.sys-step li { display:flex; gap:10px; align-items:flex-start; font-weight:600; }
.sys-step li::before { content:"✓"; flex:none; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:var(--ok-soft); color:var(--ok); border:1.5px solid var(--ink); font-size:13px; font-weight:900; margin-top:2px; }
.sys-step .tag { align-self:flex-start; }
.sys-device { position:sticky; top:14vh; height:72vh; min-height:520px; }
.device { position:absolute; inset:0; background:var(--paper-raised); border:3px solid var(--ink); border-radius:var(--r-lg); box-shadow:var(--pop-l); overflow:hidden; display:flex; flex-direction:column; opacity:0; visibility:hidden; transform:translateY(40px) scale(.96); transition:opacity .5s var(--ease-out), transform .6s var(--ease-pop), visibility .5s; }
.device.is-active { opacity:1; visibility:visible; transform:none; }
.device-top { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:2px solid var(--ink); background:var(--paper-sunk); }
.device-top i { width:12px; height:12px; border-radius:50%; border:2px solid var(--ink); background:var(--paper-raised); }
.device-top i:nth-child(1){ background:var(--star);} .device-top i:nth-child(2){ background:var(--sky);}
.device-top .label { margin-left:8px; }
.device-top .tag { margin-left:auto; font-size:10px; padding:2px 8px; }
.device-body { flex:1; padding:22px; display:flex; flex-direction:column; gap:12px; overflow:hidden; position:relative; }
.row { display:grid; grid-template-columns:1.4fr 1fr .7fr .6fr; gap:10px; padding:9px 12px; border:2px solid var(--line); border-radius:10px; font-size:14px; align-items:center; background:var(--paper-raised); }
.row.head-row { border-color:var(--ink); background:var(--paper-mist); font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; }
.row.messy { font-family:var(--font-hand); font-size:18px; color:var(--ink-muted); border-style:dashed; }
.row .ok { color:var(--ok); font-weight:900; }
.meter { height:16px; border:2px solid var(--ink); border-radius:var(--pill); background:var(--paper-sunk); overflow:hidden; }
.meter i { display:block; height:100%; width:0; background:repeating-linear-gradient(-45deg, var(--star) 0 10px, #c97c50 10px 20px); border-right:2px solid var(--ink); }
.big-num { font-family:var(--font-display); font-weight:900; font-variation-settings:"SOFT" 100,"WONK" 1; font-size:clamp(40px,4.6vw,64px); line-height:1; }
.bill-line { display:flex; justify-content:space-between; padding:10px 0; border-bottom:2px dotted var(--line); font-weight:700; }
.bill-total { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border:2px solid var(--ink); border-radius:12px; background:var(--paper-band); font-weight:900; font-size:20px; }
.stamp { position:absolute; right:28px; bottom:28px; border:4px solid var(--ok); color:var(--ok); font-family:var(--font-display); font-weight:900; font-size:30px; padding:6px 18px; border-radius:14px; transform:rotate(-8deg); opacity:0; }
.approve { display:flex; gap:12px; align-items:center; padding:14px; border:2px solid var(--ink); border-radius:14px; background:var(--paper-mist); }
.approve img { width:74px; }
.chat { padding:12px 14px; border:2px solid var(--ink); border-radius:16px 16px 16px 4px; background:var(--paper-raised); max-width:88%; font-weight:600; font-size:15px; }
.chat.me { align-self:flex-end; border-radius:16px 16px 4px 16px; background:var(--paper-band); }
.bars { display:flex; align-items:flex-end; gap:12px; height:180px; padding:12px; border:2px solid var(--ink); border-radius:14px; background:var(--paper-mist); }
.bars i { flex:1; border:2px solid var(--ink); border-radius:8px 8px 0 0; background:var(--plum); height:0; }
.bars i:nth-child(3n) { background:var(--star); } .bars i:nth-child(3n+2) { background:var(--sky); }

/* Journey / PhaseTrail */
.journey { overflow:hidden; }
.journey-pin { height:100svh; display:flex; flex-direction:column; justify-content:center; gap:30px; }
.journey-track { position:relative; width:max-content; height:420px; padding-left:var(--gutter); display:flex; align-items:center; }
.journey svg.path { position:absolute; left:0; top:0; height:420px; overflow:visible; }
.journey .path path { fill:none; stroke:var(--ink); stroke-width:3; stroke-dasharray:10 12; stroke-linecap:round; }
.stop { position:absolute; width:300px; padding:22px; display:flex; flex-direction:column; gap:10px; }
.stop .n { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; border:2.5px solid var(--ink); background:var(--pop); color:var(--on-pop); font-family:var(--font-mono); font-weight:500; box-shadow:var(--pop-s); }
.stop p { margin:0; font-size:15px; color:var(--ink-muted); }
.stop.is-on .n { background:var(--primary); color:var(--on-primary); }
.journey-track.is-stacked { width:auto !important; height:auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; padding:0 var(--gutter); }
.journey-track.is-stacked .stop { position:static; width:auto; }
.journey-track.is-stacked svg, .journey-track.is-stacked .walker { display:none; }
.journey:has(.is-stacked) .journey-pin { height:auto; padding-block:80px; }
.walker { position:absolute; left:0; top:0; width:88px; height:88px; z-index:3; margin:-44px 0 0 -44px; }

/* Sign-off */
.signoff-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,72px); align-items:center; }
.ledger { position:relative; padding:0; overflow:visible; border-radius:var(--r-md); }
.ledger header { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:18px 22px; border-bottom:2px solid var(--ink); }
.ledger header h3 { font-size:22px; }
.ledger dl { margin:0; display:grid; grid-template-columns:150px 1fr; }
.ledger dt, .ledger dd { margin:0; padding:14px 22px; border-bottom:2px dotted var(--line); }
.ledger dt { font-family:var(--font-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-muted); padding-top:17px; }
.ledger dd { font-weight:600; }
.ledger .hallmark { position:absolute; right:-18px; bottom:-34px; transform-origin:center; }
.ledger .inkdots i { position:absolute; width:10px; height:10px; border-radius:50%; background:var(--ink); opacity:0; }

/* Case study */
.case { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); overflow:hidden; border-radius:var(--r-xl); border-width:3px; }
.case figure { margin:0; border-right:3px solid var(--ink); overflow:hidden; background:var(--plum); }
.case figure img { width:100%; height:100%; object-fit:cover; transform:scale(1.08); }
.case .body { padding:clamp(28px,4vw,56px); display:flex; flex-direction:column; gap:20px; }
.case blockquote { margin:0; font-family:var(--font-display); font-variation-settings:"SOFT" 50,"WONK" 0; font-style:italic; font-size:24px; line-height:1.35; }
.facts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.facts div { border:2px solid var(--ink); border-radius:var(--r-md); padding:14px; background:var(--paper-mist); }
.facts b { display:block; font-family:var(--font-display); font-variation-settings:"SOFT" 100,"WONK" 1; font-size:22px; line-height:1.1; }
.facts span { font-size:14px; color:var(--ink-muted); }

/* Products */
.toggle { display:inline-flex; padding:5px; border:2px solid var(--ink); border-radius:var(--pill); background:var(--paper-raised); box-shadow:var(--pop-s); position:relative; }
.toggle button { position:relative; z-index:1; font:inherit; font-weight:800; font-size:15px; border:0; background:none; color:var(--ink); padding:8px 18px; border-radius:var(--pill); cursor:pointer; }
.toggle .knob { position:absolute; z-index:0; top:5px; bottom:5px; border-radius:var(--pill); background:var(--pop); border:2px solid var(--ink); transition:left .45s var(--ease-pop), width .45s var(--ease-pop); }
.products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.product { overflow:hidden; display:flex; flex-direction:column; }
.product figure { margin:0; aspect-ratio:3/2; border-bottom:2px solid var(--ink); overflow:hidden; background:var(--sky); }
.product figure img { width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease-out); }
.product:hover figure img { transform:scale(1.06); }
.product .body { padding:22px; display:flex; flex-direction:column; gap:12px; flex:1; }
.product .body p { margin:0; color:var(--ink-muted); font-size:16px; }
.product .price { display:flex; align-items:baseline; gap:8px; margin-top:auto; padding-top:8px; }
.product .price b { font-family:var(--font-display); font-variation-settings:"SOFT" 100,"WONK" 1; font-weight:900; font-size:26px; }
.product .actions { display:flex; gap:10px; flex-wrap:wrap; }
.product .tags { display:flex; gap:8px; flex-wrap:wrap; }

/* Tool */
.tool { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); overflow:hidden; }
.tool form { padding:clamp(24px,3.5vw,44px); display:grid; gap:16px; border-right:2px solid var(--ink); }
.field { display:grid; gap:6px; }
.field label { font-weight:800; font-size:15px; }
.field input, .field select, .field textarea { font:inherit; font-size:16px; padding:12px 14px; border:2px solid var(--line-strong); border-radius:var(--r-sm); background:var(--paper-raised); color:var(--ink); transition:border-color .2s, box-shadow .2s; width:100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--ink); box-shadow:var(--pop-s); }
.field small { color:var(--ink-muted); font-size:13px; }
.tool .out { padding:clamp(24px,3.5vw,44px); background:var(--paper-band); display:flex; flex-direction:column; justify-content:center; gap:14px; position:relative; }
.tool .out .big-num { font-size:clamp(64px,8vw,120px); }
.tool .out img { position:absolute; right:16px; bottom:12px; width:120px; }

/* Notes */
.notes { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:24px; }
.post { overflow:hidden; display:flex; flex-direction:column; text-decoration:none; color:var(--ink); }
.post figure { margin:0; aspect-ratio:16/10; border-bottom:2px solid var(--ink); overflow:hidden; }
.post figure img { width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease-out); }
.post:hover figure img { transform:scale(1.07) rotate(-1deg); }
.post .body { padding:20px 22px 24px; display:grid; gap:10px; }
.post h3 { font-size:24px; }
.post .meta { display:flex; gap:12px; align-items:center; }

/* FAQ */
.faq { display:grid; gap:14px; max-width:920px; }
.faq details { border:2px solid var(--ink); border-radius:var(--r-md); background:var(--paper-raised); box-shadow:var(--pop-s); overflow:hidden; }
.faq summary { list-style:none; cursor:pointer; padding:20px 24px; font-weight:800; font-size:19px; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-family:var(--font-mono); font-size:22px; width:34px; height:34px; display:grid; place-items:center; border:2px solid var(--ink); border-radius:50%; flex:none; transition:transform .4s var(--ease-pop), background .3s; }
.faq details[open] summary::after { transform:rotate(135deg); background:var(--pop); }
.faq details > div { padding:0 24px 22px; color:var(--ink-muted); max-width:70ch; }

/* CTA */
.cta { padding:12px; }
.cta-band { background:var(--plum); color:#fff; border:3px solid var(--night); border-radius:var(--r-xl); padding:clamp(36px,6vw,96px); display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:32px; align-items:center; position:relative; overflow:hidden; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#e9e1ef; }
.cta-band .btn { --bg:var(--sky); --fg:#1a1423; border-color:#1a1423; box-shadow:4px 4px 0 #1a1423; }
.cta-band .btn-quiet { --bg:transparent; --fg:#fff; border-color:#fff; box-shadow:4px 4px 0 #120d18; }
.cta-band img { width:min(100%,360px); justify-self:center; }

/* Footer */
.site-footer { padding:72px 0 28px; border-top:2.5px solid var(--ink); margin-top:clamp(56px,8vw,120px); background:var(--paper-mist); overflow:hidden; }
.foot-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; }
.foot-grid h4 { margin:0 0 12px; font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); font-weight:500; }
.foot-grid ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.foot-grid a { color:var(--ink); text-decoration:none; font-weight:700; }
.foot-grid a:hover { text-decoration:underline; }
.news { display:flex; gap:8px; margin-top:16px; max-width:420px; }
.news input { flex:1; font:inherit; padding:12px 16px; border:2px solid var(--ink); border-radius:var(--pill); background:var(--paper-raised); color:var(--ink); min-width:0; }
.giant { font-family:var(--font-display); font-weight:900; font-variation-settings:"SOFT" 100,"WONK" 1; font-size:clamp(72px, 21.6vw, 360px); line-height:.8; letter-spacing:-.05em; margin:56px 0 .26em; color:var(--ink); white-space:nowrap; user-select:none; }
.giant.is-live .char:hover { color:var(--star); }
.legal { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:14px; color:var(--ink-muted); }
.legal a { color:var(--ink-muted); }

/* Floating book button */
.fab { position:fixed; right:20px; bottom:20px; z-index:90; transform:translateY(140%); transition:transform .5s var(--ease-pop); }
.fab.is-on { transform:none; }

/* Cursor */
.cursor { position:fixed; left:0; top:0; z-index:500; pointer-events:none; width:34px; height:34px; margin:-17px 0 0 -17px; border:2px solid var(--ink); border-radius:50%; transition:width .3s var(--ease-pop), height .3s var(--ease-pop), margin .3s var(--ease-pop), background .3s; display:grid; place-items:center; font-family:var(--font-hand); font-size:16px; color:var(--night); }
.cursor.is-link { width:58px; height:58px; margin:-29px 0 0 -29px; background:color-mix(in oklab, var(--sky) 70%, transparent); }
.cursor.is-poke { width:76px; height:76px; margin:-38px 0 0 -38px; background:var(--star); color:#fff; border-color:var(--night); }
.cursor-dot { position:fixed; left:0; top:0; z-index:501; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:var(--ink); pointer-events:none; }
@media (hover:none), (pointer:coarse) { .cursor, .cursor-dot { display:none; } }

/* Page hero (inner pages) */
.page-hero { padding:128px 0 48px; }
.page-hero .wrap { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr); gap:32px; align-items:end; }
.page-hero h1 { font-size:clamp(52px,7vw,112px); }
.page-hero img { width:min(100%,300px); justify-self:end; }
.crumbs { display:flex; gap:8px; margin-bottom:18px; }
.crumbs a { color:var(--ink-muted); text-decoration:none; }

/* Booking */
.book { display:grid; grid-template-columns:300px minmax(0,1fr) 300px; overflow:hidden; border-radius:var(--r-lg); border-width:3px; box-shadow:var(--pop-l); min-height:580px; }
.book > * { padding:26px; }
.book .info { border-right:2px solid var(--ink); background:var(--paper-mist); display:flex; flex-direction:column; gap:14px; }
.book .info img { width:120px; }
.book .info ul { list-style:none; margin:0; padding:0; display:grid; gap:10px; font-weight:700; font-size:15px; }
.book .info li { display:flex; gap:10px; align-items:center; }
.book .info svg { width:20px; height:20px; flex:none; }
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:12px; }
.cal-head h3 { font-size:26px; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
.cal-grid .dow { text-align:center; font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; color:var(--ink-muted); padding:4px 0; }
.day { aspect-ratio:1; display:grid; place-items:center; position:relative; border-radius:14px; border:2px solid transparent; background:none; font:inherit; font-weight:800; font-size:16px; color:var(--ink); cursor:pointer; transition:transform .25s var(--ease-pop), background .2s, border-color .2s; }
.day[disabled] { color:var(--line-strong); cursor:not-allowed; font-weight:600; text-decoration:line-through; text-decoration-color:var(--line); }
.day.has { background:var(--paper-mist); border-color:var(--line); }
.day.has::after { content:""; position:absolute; bottom:7px; width:6px; height:6px; border-radius:50%; background:var(--star); }
.day.has:hover { transform:translateY(-3px); border-color:var(--ink); box-shadow:var(--pop-s); }
.day.today { outline:2px dashed var(--ink-muted); outline-offset:-5px; }
.day.is-picked { background:var(--primary); color:var(--on-primary); border-color:var(--ink); box-shadow:var(--pop-s); }
.day.is-picked::after { background:var(--on-primary); }
.slots { border-left:2px solid var(--ink); display:flex; flex-direction:column; gap:10px; overflow:auto; max-height:640px; }
.slots .tz { display:grid; gap:6px; margin-bottom:6px; }
.slots select { font:inherit; font-size:14px; padding:8px 10px; border:2px solid var(--line-strong); border-radius:var(--r-sm); background:var(--paper-raised); color:var(--ink); }
.slot { font:inherit; font-weight:800; padding:12px; border:2px solid var(--ink); border-radius:12px; background:var(--paper-raised); color:var(--ink); cursor:pointer; display:flex; justify-content:space-between; align-items:center; transition:transform .2s var(--ease-pop), background .2s, box-shadow .2s; }
.slot:hover { transform:translateX(4px); box-shadow:var(--pop-s); background:var(--paper-mist); }
.slot.is-picked { background:var(--pop); box-shadow:var(--pop-s); }
.slot[disabled] { border-style:dashed; color:var(--ink-muted); font-weight:600; cursor:not-allowed; background:var(--paper-sunk); }
.book-form { display:grid; gap:14px; }
.book-form .two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.done { display:grid; gap:16px; justify-items:start; }
.checklist { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.checklist li { display:flex; gap:12px; align-items:center; font-weight:700; padding:12px 14px; border:2px solid var(--ink); border-radius:12px; background:var(--paper-raised); opacity:0; transform:translateY(10px); }
.checklist li b { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--ok-soft); color:var(--ok); border:2px solid var(--ink); flex:none; }

/* Shop */
.filters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:28px; }
.chip { font:inherit; font-weight:800; font-size:15px; padding:9px 18px; border:2px solid var(--ink); border-radius:var(--pill); background:var(--paper-raised); color:var(--ink); cursor:pointer; transition:transform .2s var(--ease-pop); }
.chip:hover { transform:translateY(-2px); }
.chip.is-on { background:var(--primary); color:var(--on-primary); box-shadow:var(--pop-s); }
.drawer { position:fixed; inset:0; z-index:300; display:grid; justify-items:end; background:color-mix(in oklab, var(--night) 45%, transparent); opacity:0; visibility:hidden; transition:opacity .35s, visibility .35s; }
.drawer.is-open { opacity:1; visibility:visible; }
.drawer .panel { width:min(460px,100%); height:100%; background:var(--paper-raised); border-left:3px solid var(--ink); padding:28px; display:flex; flex-direction:column; gap:18px; transform:translateX(100%); transition:transform .55s var(--ease-out); overflow:auto; }
.drawer.is-open .panel { transform:none; }
.pay-methods { display:flex; gap:8px; flex-wrap:wrap; }

/* Portal */
.portal { display:grid; grid-template-columns:240px minmax(0,1fr); gap:24px; align-items:start; }
.side { padding:18px; display:grid; gap:6px; position:sticky; top:100px; }
.side a { padding:10px 14px; border-radius:12px; color:var(--ink); text-decoration:none; font-weight:800; display:flex; gap:10px; align-items:center; }
.side a.is-on, .side a:hover { background:var(--paper-band); }
.dash { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px; }
.dash > .card { padding:22px; }
.span-6 { grid-column:span 6; } .span-4 { grid-column:span 4; } .span-3 { grid-column:span 3; } .span-2 { grid-column:span 2; }
.trail { list-style:none; margin:18px 0 0; padding:0; display:grid; grid-template-columns:repeat(6,1fr); position:relative; }
.trail::before { content:""; position:absolute; left:8%; right:8%; top:21px; border-top:3px dashed var(--line-strong); }
.trail li { display:flex; flex-direction:column; align-items:center; gap:8px; position:relative; text-align:center; font-weight:800; font-size:14px; }
.trail .stop-dot { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; border:2.5px solid var(--ink); background:var(--paper-raised); font-family:var(--font-mono); position:relative; z-index:1; }
.trail .done .stop-dot { background:var(--ok-soft); color:var(--ok); }
.trail .now .stop-dot { background:var(--pop); box-shadow:var(--pop-s); transform:scale(1.15); }
.trail .now .note { position:absolute; top:-34px; white-space:nowrap; font-size:18px; color:var(--accent-ink); }
.list { display:grid; gap:10px; margin-top:12px; }
.list > div { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 14px; border:2px solid var(--line); border-radius:12px; font-weight:700; font-size:15px; }
.login { max-width:520px; margin:0 auto; padding:clamp(28px,4vw,48px); display:grid; gap:18px; text-align:left; }
.demo-banner { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:12px 18px; border:2px dashed var(--ink); border-radius:var(--r-md); margin-bottom:24px; background:var(--paper-sunk); }

/* Services */
.svc { border-top:2.5px solid var(--ink); }
.svc-row { border-bottom:2.5px solid var(--ink); display:grid; grid-template-columns:90px minmax(0,1fr) 300px; gap:24px; padding:28px 0; align-items:center; cursor:pointer; position:relative; }
.svc-row .n { font-family:var(--font-mono); color:var(--ink-muted); }
.svc-row h3 { font-size:clamp(28px,3.6vw,52px); transition:transform .5s var(--ease-out), color .3s; }
.svc-row:hover h3 { transform:translateX(12px); color:var(--accent-ink); }
.svc-row p { margin:8px 0 0; color:var(--ink-muted); max-width:62ch; }
.svc-row img { width:100%; height:160px; object-fit:cover; border:2px solid var(--ink); border-radius:var(--r-md); box-shadow:var(--pop-s); clip-path:inset(0 0 0 100% round 14px); transition:clip-path .6s var(--ease-out); }
.svc-row:hover img, .svc-row:focus-within img { clip-path:inset(0 0 0 0 round 14px); }

/* Reveal helpers (JS adds .is-in) */
[data-reveal] { opacity:0; transform:translateY(34px); }
html.no-js [data-reveal], html.reduce [data-reveal] { opacity:1; transform:none; }

/* Responsive */
@media (max-width:1100px) {
  .nav, .status { display:none; } .menu-btn { display:grid; }
  .hero-band { grid-template-columns:1fr; } .stage { min-height:440px; }
  .leaks, .products { grid-template-columns:1fr 1fr; } .notes { grid-template-columns:1fr 1fr; } .notes .post:first-child { grid-column:span 2; }
  .sys-wrap { grid-template-columns:1fr; } .sys-device { top:90px; height:58vh; min-height:420px; order:-1; z-index:2; } .sys-step { min-height:60vh; }
  .book { grid-template-columns:1fr; } .book .info { border-right:0; border-bottom:2px solid var(--ink); } .slots { border-left:0; border-top:2px solid var(--ink); max-height:none; }
  .portal { grid-template-columns:1fr; } .side { position:static; display:flex; overflow:auto; }
  .svc-row { grid-template-columns:60px 1fr; } .svc-row img { display:none; }
}
@media (max-width:760px) {
  .hero { padding-top:88px; } .hero-band { padding:28px 20px; border-radius:var(--r-lg); } .stage { min-height:360px; }
  .float.f2 { display:none; }
  .head, .signoff-grid, .case, .tool, .cta-band, .page-hero .wrap, .foot-grid { grid-template-columns:1fr; }
  .case figure { border-right:0; border-bottom:3px solid var(--ink); } .tool form { border-right:0; border-bottom:2px solid var(--ink); }
  .leaks, .products, .notes { grid-template-columns:1fr; } .notes .post:first-child { grid-column:auto; }
  .facts { grid-template-columns:1fr; } .ledger dl { grid-template-columns:1fr; } .ledger dt { padding-bottom:0; border-bottom:0; }
  .ledger .hallmark { right:8px; bottom:-30px; }
  .dash > .card { grid-column:span 6; } .trail { grid-template-columns:repeat(3,1fr); row-gap:26px; } .trail::before { display:none; }
  .book-form .two { grid-template-columns:1fr; } .page-hero img { justify-self:start; width:180px; }
  .status { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .marquee .track { animation:none; }
}

.notes.notes-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:1100px) { .notes.notes-3 { grid-template-columns:1fr 1fr; } .notes.notes-3 .post:first-child { grid-column:auto; } }
@media (max-width:760px) { .notes.notes-3 { grid-template-columns:1fr; } }

[hidden] { display:none !important; }
.product .price { flex-wrap:wrap; row-gap:2px; }

/* Word masks: letters animate inside their word, so a slow device never shows overlapping text */
.word { display:inline-block; white-space:nowrap; overflow:hidden; vertical-align:top; padding:.06em .05em .16em; margin:-.06em -.05em -.16em; }
.giant .word { padding-bottom:.2em; margin-bottom:-.2em; }

/* Phones: the header "Book a call" button pushed the menu button off-screen; the floating booking button covers it here. */
@media (max-width:560px) { .site-header .bar > .btn-s { display:none; } .site-header .bar { justify-content:space-between; } }
