/* D.R.E.A.M.S: "Fresh Water + Blueprint" design system (light)
   ---------------------------------------------------------------------------
   Fresh Water: airy light base, lake blue ink, coral from the boat's red hull,
   friendly display type, rounded cards, organic photo shapes, depth contours.
   Blueprint touches: red-pen markups (circles, detail callouts), title-block
   tables, a blueprint grid behind hardware, small mono labels in blue ink.
   1 Tokens · 2 Base · 3 Type · 4 Buttons & chips · 5 Nav · 6 Hero & page heads
   7 Home sections · 8 Shared components · 9 Page-specific · 10 Footer
   11 Motion · 12 Responsive */

/* 1 ─ Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg: #F5F9FA;
  --white: #FFFFFF;
  --sand: #F7EFE4;
  --sky: #DCEEF5;
  --ink: #0D2E44;
  --ink-2: #3F5869;
  --muted: #5E7381;
  --line: #D6E3E9;
  --line-2: #B9CCD6;
  --blue: #1C6E9E;
  --coral: #D7263D;          /* accent red (boat hull): backgrounds, strokes, badges; text on it is white */
  --signal: #B51F35;         /* red that passes AA as text on light */
  --warn: #B51F35;
  --red-pen: #D7263D;        /* blueprint redline markups (decorative) */
  --green: #2E8F62;
  --grid: rgba(28, 110, 158, .08);
  --grid-2: rgba(28, 110, 158, .14);
  --deep: #0D2E44;           /* footer + CTA band */
  --text: var(--ink);
  --text-2: var(--ink-2);
  --shadow: 0 2px 4px rgba(13, 46, 68, .05), 0 16px 34px rgba(13, 46, 68, .09);
  --shadow-lg: 0 30px 60px rgba(13, 46, 68, .16);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max: 1320px;
  --gutter: 40px;
  --sec: 120px;
  --nav-h: 80px;
  --r: 24px;
  --r-sm: 14px;
  color-scheme: light;
}

/* 2 ─ Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 18px/1.62 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sec { position: relative; padding: var(--sec) 0; }
.sec.alt { background: var(--white); }
.sec.rule { border-top: 1px solid var(--line); }
.sec.paper { background: var(--sand); }
.sec.gridded { background-color: var(--bg); background-image:
  linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
  linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }
.sec.alt.gridded { background-color: var(--white); }
.contours { position: relative; isolation: isolate; }
.contours::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/contours.svg) center / cover no-repeat; opacity: .85; pointer-events: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font: 600 15px var(--body); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-18 { margin-top: 18px; }
.self-start { align-self: flex-start; }

/* 3 ─ Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
.display, h1, h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96, "wdth" 92; letter-spacing: -.032em; line-height: 1; }
h1 { font-size: clamp(46px, 6.2vw, 100px); }
h2 { font-size: clamp(36px, 4.6vw, 68px); }
h3 { font: 700 21px/1.3 var(--display); letter-spacing: -.01em; }
.h-sm { font-size: clamp(30px, 3.4vw, 48px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 600 14.5px/1.3 var(--body); color: var(--ink-2); }
.kicker::before { content: ""; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 8c2-3 4 3 6 0s4 3 6 0' fill='none' stroke='%231C6E9E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sec.alt .kicker { background: var(--bg); }
.label { font: 500 12.5px/1.45 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 20px; color: var(--ink-2); max-width: 52ch; }
h1, h2, h3, .kicker, .label, figcaption, dt { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 72px; align-items: end; margin-bottom: 56px; }
.head h2 { margin-top: 20px; }
.more { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0 4px; font: 700 16px var(--body); color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; }
.more:hover { color: var(--ink); }
.redline { position: relative; display: inline-block; white-space: nowrap; }
.redline::after { content: ""; position: absolute; left: -.12em; right: -.14em; top: -.04em; bottom: -.02em; border: .045em solid var(--red-pen); border-radius: 50% 46% 52% 48% / 58% 52% 48% 42%; transform: rotate(-2.5deg); pointer-events: none; }
.wavy { position: relative; display: inline-block; white-space: nowrap; color: var(--blue); }
.wavy::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.14em; height: .26em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 14 C 30 2, 50 22, 78 12 S 128 2, 152 13 S 204 22, 230 11 S 276 4, 296 12' fill='none' stroke='%23D7263D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* 4 ─ Buttons & chips ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16.5px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s; }
.btn-signal { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(215, 38, 61, .28); }
.btn-signal:hover { background: #B81F33; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(215, 38, 61, .36); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 12.5px/1.35 var(--body); white-space: nowrap; border: 1px solid transparent; }
.chip.designed { background: #E6EEF3; color: #31586F; }
.chip.built { background: #DFF3E8; color: #1F7A50; }
.chip.tested { background: var(--sky); color: #145A82; }
.chip.failed { background: #FDE3E6; color: var(--warn); }
.chip.shown { background: var(--sand); color: #7A4E17; }
.chip.incad, .chip.planned, .chip.dev { background: transparent; color: var(--muted); border: 1.5px dashed var(--line-2); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* 5 ─ Nav ─────────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .25s, box-shadow .25s; }
.nav.solid, .nav.open { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(13, 46, 68, .06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 20px var(--display); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 44px; }  /* wordmark from tools/make_logo.py */
.footer .brand img { height: 48px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list > li > a:not(.btn), .dd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 600 16px var(--body); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-list .nav-n { display: none; }
.nav-list > li > a:not(.btn):hover, .dd-btn:hover, .dd-btn[aria-expanded="true"], .nav-list [aria-current="page"]:not(.btn) { color: var(--ink); }
.nav-list [aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--coral); }
.dd-btn svg { width: 10px; height: 10px; transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-dd { position: relative; }
.dd { position: absolute; top: calc(100% + 16px); left: -20px; min-width: 320px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(13, 46, 68, .14); }
.dd[hidden] { display: none; }
.dd a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; }
.dd a:hover, .dd a:focus-visible { background: var(--bg); }
.dd .n { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--blue); font: 700 12px var(--body); }
.dd strong { font: 700 16px var(--body); color: var(--ink); }
.dd small { font-size: 14px; color: var(--muted); line-height: 1.4; }
.nav-cta { margin-left: 4px; }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15.5px; }
.nav-static { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nav-static a { font: 600 15px var(--body); color: var(--ink-2); text-decoration: none; }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--white); cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* 6 ─ Hero & page heads ───────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 32px) 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/contours.svg) center / cover no-repeat; opacity: .9; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: calc(100svh - var(--nav-h) - 104px); }
.hero h1 { margin: 26px 0 26px; }
.hero .lead { max-width: 44ch; }
.hero .btns { margin-top: 34px; }
.hud { display: flex; flex-wrap: wrap; margin: 40px 0 0; border-top: 1.5px solid var(--ink); max-width: 620px; }
.hud > div { flex: 1 1 0; min-width: 130px; padding: 14px 18px 0 0; }
.hud > div + div { padding-left: 18px; border-left: 1px dashed var(--line-2); }
.hud dt { font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hud dd { margin: 4px 0 0; font: 800 26px/1.1 var(--display); color: var(--ink); white-space: nowrap; }
.hud em { font-style: normal; color: var(--signal); }
.hero-visual { position: relative; width: min(100%, 600px); aspect-ratio: 15 / 16; }  /* blob below is exactly 4:5, like its photo */
.blob { position: absolute; inset: 0 4.5% 0 10.2%; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky); }
.blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 14px 30px rgba(13, 46, 68, .18); background: var(--white); }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble.a { width: 150px; height: 150px; left: 0; top: 54px; }
.bubble.b { width: 118px; height: 118px; left: 22px; bottom: 50px; }
.badge { position: absolute; right: 0; top: 10px; width: 150px; height: 150px; }
.badge .ring { transform-origin: 50% 50%; }
.place { position: absolute; right: 40px; bottom: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 10px 24px rgba(13, 46, 68, .14); font: 600 14.5px var(--body); color: var(--ink); }
.place::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

.page-head { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 72px; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(img/contours.svg) 70% 40% / cover no-repeat; opacity: .8; pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head .bg { position: absolute; z-index: -1; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: calc(var(--nav-h) + 40px); bottom: 48px; width: min(38vw, 500px);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky); }
.page-head .bg picture, .page-head .bg img { display: block; width: 100%; height: 100%; }
.page-head .bg img { object-fit: cover; opacity: 1 !important; }
.page-head h1 { margin-top: 22px; max-width: 12.5ch; }
.page-head .lead { margin-top: 24px; max-width: 46ch; }
.page-head > .wrap > *:not(.subnav) { max-width: min(640px, 56%); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 60%; }
.subnav a { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 600 15px var(--body); color: var(--ink-2); text-decoration: none; }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }

/* 7 ─ Home sections ───────────────────────────────────────────────────────── */
.name-band { padding: 40px 0 46px; background: var(--white); border-block: 1px solid var(--line); }
.name-line { margin-top: 12px; font: 800 clamp(26px, 3.6vw, 52px)/1.08 var(--display); font-variation-settings: "opsz" 96, "wdth" 92; letter-spacing: -.025em; color: var(--ink); }
.name-line b { font-weight: inherit; color: var(--coral); }

.statement { font: 800 clamp(36px, 5vw, 80px)/1.04 var(--display); font-variation-settings: "opsz" 96, "wdth" 92; letter-spacing: -.035em; color: var(--ink); max-width: 18ch; }
.statement .dim { color: #6E8796; }
.inline-ph { display: inline-block; width: 1.75em; height: .82em; vertical-align: -.06em; border-radius: 999px; overflow: hidden; margin: 0 .05em; background: var(--sky); box-shadow: 0 6px 14px rgba(13,46,68,.14); }
.inline-ph img { width: 100%; height: 100%; object-fit: cover; }
.statement-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 64px; align-items: start; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.figures > div { padding: 18px 18px 20px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.figures b { display: block; white-space: nowrap; font: 800 clamp(28px, 2.8vw, 40px)/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.figures span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* Build-log strip + cards (shared with the build-log page) */
.strip-wrap { position: relative; }
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 34px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; cursor: grab; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.dragging * { pointer-events: none; }
.strip > .log-card { flex: 0 0 clamp(240px, 22vw, 290px); scroll-snap-align: start; }
.strip-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.strip-btns { display: flex; gap: 8px; }
.strip-btns button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); cursor: pointer; color: var(--ink); }
.strip-btns button:hover { background: var(--ink); color: #fff; }
.strip-btns svg { width: 16px; height: 16px; }
.log-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.log-card .ph { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--sky); }
.log-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.log-card:hover .ph img { transform: scale(1.035); }
.log-card .meta { display: grid; gap: 10px; padding: 0 18px 20px; }
/* title-block row (blueprint touch) */
.log-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 -18px; padding: 10px 18px; border-bottom: 1px solid var(--line); font: 500 11.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.log-card h3 { font-size: 18.5px; line-height: 1.28; }
.log-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.log-card.failed .ph::after { content: "FAILED"; position: absolute; right: 14px; top: 14px; padding: 4px 10px; border: 2.5px solid var(--red-pen); border-radius: 8px; color: var(--warn); font: 700 13px var(--mono); letter-spacing: .14em; transform: rotate(5deg); background: rgba(255,255,255,.88); }

/* The boat: annotated board */
.boat-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.annotated { position: relative; }
.board-top { position: relative; }
.board-top img { width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(13, 46, 68, .28)); }
.board-cap { margin-top: 16px; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); transform: translate(-50%, -50%); }
.pin button { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--white); background: var(--coral); color: #fff; font: 800 13px var(--body); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(215,38,61,.25), 0 6px 14px rgba(13,46,68,.25); transition: transform .15s; }
.pin button:hover, .pin button[aria-expanded="true"] { transform: scale(1.12); }
.pin .tip { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); width: max-content; max-width: min(250px, calc(100vw - 48px)); padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 34px rgba(13,46,68,.18);
  font-size: 14px; line-height: 1.45; color: var(--ink-2); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 3; }
.pin .tip strong { display: block; font: 700 15px var(--display); color: var(--ink); margin-bottom: 3px; }
.pin button:hover + .tip, .pin button:focus-visible + .tip, .pin button[aria-expanded="true"] + .tip { opacity: 1; visibility: visible; }
.pins.tips-off .tip { opacity: 0 !important; visibility: hidden !important; }
.pin.r .tip { left: auto; right: -12px; transform: none; }
.pin.l .tip { left: -12px; transform: none; }
.pin.b .tip { bottom: auto; top: calc(100% + 14px); }
.legend { display: grid; grid-template-columns: 1fr; margin-top: 26px; border-top: 1.5px solid var(--ink); }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; color: var(--muted); }
.legend li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #fff; font: 800 12px var(--body); }
.legend li strong { color: var(--ink); font-weight: 700; margin-right: 4px; }
/* boat page: the board stays in view while its key scrolls beside it */
.board-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.board-layout > .annotated { position: sticky; top: calc(var(--nav-h) + 28px); }
.board-key .legend { margin-top: 10px; }
.board-key .legend li { padding: 12px 10px; transition: background-color .15s; }
.board-key .legend li.hl { background: rgba(215, 38, 61, .07); }
.pin.hl button { transform: scale(1.14); box-shadow: 0 0 0 7px rgba(215,38,61,.3), 0 6px 14px rgba(13,46,68,.25); }
.boards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 96px; }
.boards-copy { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-right: 16px; }
.boards-copy h3 { font: 800 clamp(28px, 2.6vw, 36px)/1.05 var(--display); letter-spacing: -.025em; }
.boards-copy p { color: var(--ink-2); }
.board-card { display: flex; flex-direction: column; margin: 0; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.board-card picture { display: block; padding: 22px 22px 6px; background: radial-gradient(ellipse at 50% 55%, #FFFFFF 0%, #EAF3F7 80%); }
.board-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.board-card figcaption { display: grid; gap: 3px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.board-card strong { font: 700 18px/1.25 var(--display); color: var(--ink); }
.board-card span { font: 500 11.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* spec list as a title block */
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.specs > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.specs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.specs dt { font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 5px 0 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
.specs dd small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Field test */
.field-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.field-copy { display: grid; gap: 26px; }
.facts { background: var(--white); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts li:last-child { border-bottom: 0; }
.facts li span:first-child { font: 500 11.5px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts li span:last-child { color: var(--ink); font-weight: 600; }

/* Parts marquee */
.marquee { background: var(--coral); color: #fff; overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; flex: none; }
.marquee li { padding: 16px 0; font: 800 18px var(--display); letter-spacing: -.005em; white-space: nowrap; }
.marquee li::after { content: "~"; margin: 0 22px; font-weight: 400; opacity: .7; }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; padding-top: 34px; }
.road::before { content: ""; position: absolute; left: 14px; right: 14px; top: 12px; border-top: 2.5px dashed var(--line-2); }
.road > li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 24px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.road .dot { position: absolute; top: -29px; left: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--line-2); }
.road .done .dot { background: var(--ink); border-color: var(--ink); }
.road .now .dot { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 6px rgba(215,38,61,.22); }
.road .now { outline: 2.5px solid var(--coral); outline-offset: -2.5px; }
.road .when { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.road .v { font: 800 46px/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.road .later .v { color: var(--blue); }
.road h3 { font-size: 18.5px; }
.road p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.road .thumb { margin-top: 4px; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.road .thumb img { width: 100%; height: 100%; object-fit: cover; }
.why { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px 30px; background: var(--white); border: 2px dashed var(--red-pen); border-radius: 22px; }
.why .label { color: var(--signal) !important; }
.why p { color: var(--ink); font-size: 18.5px; max-width: 72ch; }

/* Try it */
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.try-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.try-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,46,68,.05), 0 24px 44px rgba(13,46,68,.14); }
.try-card .vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.try-card .vis img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.try-card .vis svg { width: 100%; height: 100%; }
.try-card .body { padding: 22px 26px 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.try-card p { font-size: 16px; color: var(--muted); }
.try-card .go { margin-top: 6px; font: 700 16px var(--body); color: var(--blue); }
.badge-live { position: absolute; left: 14px; bottom: 14px; z-index: 2; }

/* Partners preview (sand band) */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.talks { display: grid; gap: 12px; margin-top: 30px; }
.talk { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.talk strong { display: block; color: var(--ink); font-weight: 700; }
.talk span { font-size: 15px; color: var(--muted); }
.tracks { border-top: 1.5px solid var(--ink); }
.tracks li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px dashed #D9C7AE; }
.tracks .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); font: 800 16px var(--display); color: var(--ink); box-shadow: var(--shadow); }
.tracks h3 { font-size: 19px; }
.tracks p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* Team preview */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.member { display: grid; grid-template-columns: 180px 1fr; align-items: stretch; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .2s; }
.member:hover { transform: translateY(-3px); }
.member .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sky); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.member .role { font: 500 11.5px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.member p { font-size: 15.5px; color: var(--muted); }
.member .go { margin-top: auto; font: 700 15px var(--body); color: var(--blue); }

/* CTA band */
.cta-band { background: var(--deep); color: #DCE8EE; padding: 96px 0; position: relative; isolation: isolate; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/contours.svg) 80% 50% / cover no-repeat; opacity: .18; }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.cta-band .kicker { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #DCE8EE; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #BFD0DA; font-size: 18.5px; margin-top: 18px; max-width: 46ch; }
.cta-mails { display: grid; gap: 12px; }
.cta-mails a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.cta-mails a:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.cta-mails strong { display: block; font-weight: 700; }
.cta-mails span { font: 500 14px var(--mono); word-break: break-all; }
.cta-band :focus-visible { outline-color: #fff; }

/* 8 ─ Shared components ───────────────────────────────────────────────────── */
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.yt.vertical { aspect-ratio: 9 / 16; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); color: #fff; text-align: left; }
.yt button:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yt button:hover img { transform: scale(1.03); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.35), 0 14px 30px rgba(0,0,0,.25); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.yt .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 44px 18px 16px; background: linear-gradient(0deg, rgba(13,46,68,.85), transparent); font: 700 15px var(--body); }
.yt .cap span:last-child { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; align-self: center; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.18); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; }
.panel h3 { overflow-wrap: anywhere; }
.note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; padding: 20px 24px; border: 2px dashed var(--red-pen); border-radius: 18px; background: var(--white); font-size: 16px; }
.note p { color: var(--ink-2); }

/* 9 ─ Page-specific ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 26px 22px 24px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--blue); font: 800 15px var(--display); }
.steps h3 { font: 800 25px/1.1 var(--display); letter-spacing: -.02em; margin: 16px 0 10px; }
.steps p { font-size: 16px; color: var(--muted); }
.steps .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.steps .tags span { font: 600 13px var(--body); padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }

.viewer { position: relative; height: min(70vh, 620px); border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #FFFFFF 0%, #E3EFF5 72%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: var(--coral); }
.viewer .hint { position: absolute; left: 18px; bottom: 16px; font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.viewer .views { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; }
.viewer .views button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; font: 700 14px var(--body); color: var(--ink-2); }
.viewer .views button:hover, .viewer .views button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

.sheet { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 28%; border-right: 1px solid var(--line); font: 500 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet td { color: var(--ink); font-weight: 700; }
.sheet td small { display: block; color: var(--muted); font-weight: 400; font-size: 15px; margin-top: 2px; }
.sheet td .chip { margin-left: 8px; vertical-align: 1px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters + .filters { margin-bottom: 30px; }
.filters button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; font: 700 14.5px var(--body); color: var(--ink-2); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.log-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.log-grid .log-card[hidden] { display: none; }
.log-count { font: 500 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-left: auto; }
.log-card .ph.blank, .ph-blank { display: grid; place-items: center; background: var(--bg); background-image: linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px); background-size: 24px 24px; }
.log-card .ph.blank span, .ph-blank span { font: 800 28px/1.05 var(--display); color: var(--line-2); text-align: center; padding: 0 16px; }
.log-card.failed .ph.blank span { color: var(--red-pen); }
.ph-blank { min-height: 180px; border: 2px dashed var(--line-2); border-radius: 18px; }
.ph-blank span { font-size: 20px; color: var(--muted); }
.versions { display: grid; gap: 20px; }
.version { display: grid; grid-template-columns: 200px 1fr 1.1fr; gap: 44px; padding: 36px; background: var(--white); border-radius: 28px; box-shadow: var(--shadow); }
.version .v { font: 800 76px/1 var(--display); color: var(--ink); letter-spacing: -.04em; }
.version .tag { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.version h3 { font: 800 28px/1.08 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.version p + p { margin-top: 12px; }
.version .media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.version .media .yt.vertical { grid-row: span 2; }
.version .media .wide, .version .media .yt.wide { grid-column: 1 / -1; }
.version .media .yt.wide { aspect-ratio: 16 / 9; }
.version .media img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.broke { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.broke article { background: var(--white); border: 2px dashed var(--red-pen); border-radius: 24px; padding: 28px; }
.broke h3 { margin: 14px 0 10px; font-size: 22px; }
.broke p { font-size: 16.5px; color: var(--ink-2); }
.broke .fix { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 16px; color: var(--muted); }
.broke .fix b { color: var(--green); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; }
.mile { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.mile li { padding: 18px 18px 20px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.mile h3 { font-size: 17.5px; margin: 12px 0 6px; }
.mile p { font-size: 15px; color: var(--muted); line-height: 1.5; }

.track-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.track-cards article { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.track-cards h3 { font: 800 25px/1.1 var(--display); letter-spacing: -.02em; }
.track-cards ul { display: grid; gap: 9px; margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.track-cards li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 16px; color: var(--ink-2); }
.track-cards li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--coral); }
.track-cards .label { color: var(--blue); }
.logos { display: flex; flex-wrap: wrap; gap: 16px; }
.logos:empty { display: none; }
.logos a, .logos div { display: grid; place-items: center; width: 220px; height: 120px; padding: 22px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.logos img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .85; }

.founders { display: grid; gap: 22px; }
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 56px; padding: 36px; background: var(--white); border-radius: 28px; box-shadow: var(--shadow); }
.founder .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sky); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.founder .ph img { width: 100%; height: 100%; object-fit: cover; }
.founder h2 { font-size: clamp(36px, 3.8vw, 54px); }
.founder .role { margin-top: 12px; color: var(--blue); }
.founder .bio { margin-top: 24px; display: grid; gap: 14px; max-width: 64ch; }
.founder .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.founder .tags span { font: 600 14px var(--body); padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.founder .links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.founder .links a { font: 700 15.5px var(--body); color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--sky); padding-bottom: 2px; }
.founder .links a:hover { border-color: var(--blue); }
.thanks { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.thanks img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.thanks blockquote { margin: 18px 0 0; font: 800 clamp(28px, 3vw, 44px)/1.08 var(--display); letter-spacing: -.025em; color: var(--ink); }
.thanks p { margin-top: 18px; color: var(--muted); }

.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mail-grid > * { min-width: 0; }
.mail-card.wide { grid-column: 1 / -1; }
.mail-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s; }
.mail-card:hover { transform: translateY(-3px); }
.mail-card strong { font: 800 30px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.mail-card > span:not(.label) { font: 500 16px var(--mono); color: var(--blue); word-break: break-all; }
.mail-card small { font-size: 15px; color: var(--muted); }
.faq { max-width: 900px; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font: 700 19px var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--sky); color: var(--blue); font: 700 20px var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 72ch; }
.faq a { color: var(--blue); font-weight: 600; }

/* 10 ─ Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--deep); color: #BFD0DA; padding: 72px 0 32px; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer h2 { font: 700 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: #BFD0DA; text-decoration: none; overflow-wrap: anywhere; }
.footer li a { display: inline-block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer :focus-visible { outline-color: #fff; }
.foot-about p { margin-top: 16px; max-width: 36ch; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font: 500 12.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* 11 ─ Motion (progressive, never for reduced motion) ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 50s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .badge .ring { animation: spin 24s linear infinite; }
  .road .now .dot { animation: ping 2.4s ease-out infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise both cubic-bezier(.2,.7,.2,1); animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal-clip { animation: unclip both linear; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .bubble.a { animation: float-a both linear; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .bubble.b { animation: float-b both linear; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(215,38,61,.5); } 100% { box-shadow: 0 0 0 16px rgba(215,38,61,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes unclip { from { clip-path: inset(6% 6% 6% 6% round 24px); } to { clip-path: inset(0 0 0 0 round 24px); } }
@keyframes float-a { to { transform: translateY(-40px) rotate(-6deg); } }
@keyframes float-b { to { transform: translateY(30px) rotate(5deg); } }

/* 12 ─ Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-list { gap: 20px; }
  .boat-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .board-layout { grid-template-columns: 1fr; }
  .board-layout > .annotated { position: static; }
  .board-key { margin-top: 28px; }
  .board-key .legend { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .log-grid { grid-template-columns: repeat(3, 1fr); }
  .figures { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  :root { --sec: 96px; --gutter: 32px; }
  .burger { display: grid; order: 2; margin-left: auto; }   /* after the (hidden) link list, so it sits at the right edge */
  .nav.open, .nav.solid { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.solid { background: rgba(255, 255, 255, .98); }
  .nav.open { background: var(--white); }
  .nav-static { display: none; }
  .nav-list { display: none; position: fixed; inset: var(--nav-h) 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; background: var(--white); overflow-y: auto; }
  .nav.open .nav-list { display: flex; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a:not(.btn), .dd-btn { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 18px; color: var(--ink); }
  .nav-list > li > a:not(.btn) { justify-content: flex-start; }
  .dd { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; background: none; }
  .nav-cta { margin: 20px 0 0; border-bottom: 0 !important; }
  .nav-cta .btn { width: 100%; min-height: 54px; }
  .head, .boat-grid, .field-grid, .partners-grid, .cta-band .wrap, .statement-foot, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; }
  .hero-visual { width: min(100%, 520px); }
  .page-head .bg { position: relative; right: auto; top: auto; bottom: auto; width: 100%; max-width: 420px; height: 300px; margin: 32px 0 0; z-index: 0; }
  .page-head > .wrap > *:not(.subnav), .subnav { max-width: none; }
  .road { grid-template-columns: 1fr 1fr; }
  .road::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .try-grid, .team-grid, .track-cards, .broke, .mail-grid { grid-template-columns: 1fr; }
  .version { grid-template-columns: 1fr 1fr; }
  .version .tag { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .founder { grid-template-columns: 240px 1fr; gap: 36px; }
  .thanks { grid-template-columns: 1fr; }
  .boards-row { grid-template-columns: 1fr 1fr; margin-top: 72px; }
  .boards-copy { grid-column: 1 / -1; padding-right: 0; }
  .log-grid { grid-template-columns: repeat(2, 1fr); }
  .mile { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --sec: 76px; --gutter: 18px; --nav-h: 68px; }
  .brand img { height: 38px; }
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .bubble.a { width: 104px; height: 104px; top: 26px; }
  .bubble.b { width: 86px; height: 86px; left: 6px; bottom: 30px; }
  .badge { width: 112px; height: 112px; }
  .place { right: 14px; bottom: 12px; font-size: 13.5px; }
  .hud > div { flex: 1 1 40%; }
  .hud > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hud dd { font-size: 22px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .road, .steps, .mile { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(odd) { border-right: 0; }
  .specs > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .member { grid-template-columns: 120px 1fr; }
  .member .body { padding: 16px; }
  .version { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .founder { grid-template-columns: 1fr; padding: 22px; }
  .founder .ph { max-width: 300px; }
  .log-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .log-card .meta { padding: 0 12px 14px; }
  .log-card .row { margin: 0 -12px; padding: 8px 12px; flex-wrap: wrap; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  .why, .note { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .pin button { width: 26px; height: 26px; font-size: 11.5px; }
  .board-key .legend { grid-template-columns: 1fr; }
  .boards-row { gap: 12px; margin-top: 56px; }
  .board-card picture { padding: 14px 12px 4px; }
  .board-card figcaption { padding: 12px 14px 14px; }
  .board-card strong { font-size: 16px; }
  .sheet th { width: 38%; padding: 12px 12px; }
  .sheet td { padding: 12px 14px; }
  .cta-band { padding: 72px 0; }
}
@media (max-width: 420px) {
  .log-grid { grid-template-columns: 1fr; }
}

/* Partners: what we need (funding, mentorship, fabrication) */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.need { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.need.featured { outline: 2.5px solid var(--coral); outline-offset: -2.5px; }
.need .tb { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 9px 22px; border-bottom: 1px solid var(--line); font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.need .in { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 26px 26px 28px; }
.need .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #FDE3E6; color: var(--signal); }
.need .ic svg { width: 28px; height: 28px; }
.need h3 { font: 800 28px/1.08 var(--display); letter-spacing: -.02em; }
.need p { color: var(--ink-2); font-size: 17px; }
.need ul { display: grid; gap: 9px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.need li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 16px; color: var(--ink-2); }
.need li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--coral); }
.need .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1020px) { .needs { grid-template-columns: 1fr; } }

/* Layout pass: phone and tablet fixes */
.nw { white-space: nowrap; }
.road > li > .chip { margin-top: auto; }
.why { align-items: baseline; }
.founder .ph { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-head .lead { margin-top: 18px; font-size: 18px; }
@media (max-width: 1020px) {
  .road { padding-top: 0; }
  .road .dot { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  /* page heads: words first, then the picture, inside the gutters */
  .page-head { display: flex; flex-direction: column; }
  .page-head .bg { order: 1; align-self: flex-start; width: min(calc(100% - 2 * var(--gutter)), 520px); max-width: none; height: clamp(220px, 56vw, 320px); margin: 36px var(--gutter) 0; }
}
@media (max-width: 680px) {
  .member .ph { aspect-ratio: auto; }
  .talk { grid-template-columns: 1fr; gap: 8px; }
  .talk > .chip { justify-self: start; }
  .founder .ph { position: static; }
  /* spec sheet: label above value */
  .sheet, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: auto; }
  .sheet tr { border-bottom: 1px solid var(--line); }
  .sheet tr:last-child { border-bottom: 0; }
  .sheet th, .sheet td { border: 0; }
  .sheet th { padding: 13px 16px 0; line-height: 1.6; }
  .sheet td { padding: 3px 16px 14px; }
}
@media (max-width: 560px) {
  /* build log: compact list cards (photo left, words right) */
  .log-grid { grid-template-columns: 1fr; gap: 10px; }
  .log-grid .log-card { flex-direction: row; }
  .log-grid .log-card .ph { flex: none; width: 36%; aspect-ratio: auto; min-height: 140px; }
  .log-grid .log-card .ph > picture { position: absolute; inset: 0; display: block; }
  .log-grid .log-card .ph img { height: 100%; }
  .log-grid .log-card .ph.blank span { font-size: 17px; padding: 0 8px; }
  .log-grid .log-card .meta { flex: 1; min-width: 0; gap: 6px; padding: 12px 14px 14px; }
  .log-grid .log-card .row { margin: 0 0 2px; padding: 0; border: 0; gap: 4px 8px; }
  .log-grid .log-card h3 { font-size: 16.5px; }
  .log-grid .log-card p { font-size: 14px; }
  .log-grid .log-card.failed .ph::after { right: 6px; top: 6px; padding: 2px 6px; border-width: 2px; font-size: 10px; letter-spacing: .1em; }
}
/* narrow video tiles (e.g. the vertical V1 short in a version card): compact caption, smaller play button */
.yt { container-type: inline-size; }
@container (max-width: 260px) {
  .yt .cap { padding: 28px 12px 12px; font-size: 14px; }
  .yt .cap span:last-child { display: none; }
  .yt .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
}

/* Our own videos (data-video): a poster button, then a <video> on top of it */
[data-video] video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
[data-video].playing .play, [data-video].playing .cap { display: none; }
[data-video].playing > button { pointer-events: none; }
.ph[data-video] > button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); }
.ph[data-video] img { width: 100%; height: 100%; object-fit: cover; }
.ph[data-video] .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,255,255,.35), 0 10px 24px rgba(13,46,68,.35); transition: transform .2s; }
.ph[data-video] > button:hover .play { transform: scale(1.06); }
.ph[data-video] .play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.ph[data-video] > button:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.yt.short { aspect-ratio: 4 / 5; }
/* Team page: the room we built V1 in */
.workshop { margin: 36px 0 0; }
.workshop img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 58%; border-radius: var(--r); box-shadow: var(--shadow); }
.workshop figcaption { margin-top: 14px; }
@media (max-width: 680px) { .workshop img { aspect-ratio: 4 / 3; } }

/* Page-head photos: the organic blob, sized to the photo's own proportions (--ar on the header) so the picture fits it */
.page-head { min-height: calc(var(--nav-h) + 56px + min(38vw, 560px) / var(--ar, 1.5) + 56px); }
.page-head .bg { top: calc(50% + var(--nav-h) / 2); bottom: auto; translate: 0 -50%; width: min(38vw, 560px); height: auto; aspect-ratio: var(--ar, 1.5); }
.page-head .subnav { max-width: min(640px, 56%); }
@media (max-width: 1020px) {
  .page-head { min-height: 0; }
  .page-head .bg { position: relative; top: auto; translate: none; width: min(calc(100% - 2 * var(--gutter)), 600px); height: auto; aspect-ratio: var(--ar, 1.5); }
  .page-head .subnav { max-width: none; }
}
/* A portrait head photo (the Updates page): a narrower blob, so the header doesn't get too tall */
.page-head.portrait { min-height: calc(var(--nav-h) + 56px + min(30vw, 420px) / var(--ar, 1.5) + 56px); }
.page-head.portrait .bg { width: min(30vw, 420px); }
@media (max-width: 1020px) {
  .page-head.portrait { min-height: 0; }
  .page-head.portrait .bg { width: min(calc(100% - 2 * var(--gutter)), 360px); }
}
/* hero stats: two by two while the hero is still two columns but narrow */
@media (min-width: 1021px) and (max-width: 1180px) {
  .hud > div { flex: 1 1 40%; }
  .hud > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Team members without a headshot yet: initials fill the photo slot */
.ph .initials { display: grid; place-items: center; width: 100%; height: 100%; font: 800 clamp(34px, 4.6vw, 60px)/1 var(--display); letter-spacing: -.02em; color: var(--blue); }
/* Team page: the rest of the team, below the founders */
.crew-sec { padding-top: 0; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mate { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; padding: 28px; background: var(--white); border-radius: 28px; box-shadow: var(--shadow); }
.mate .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sky); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.mate .ph img { width: 100%; height: 100%; object-fit: cover; }
.mate h3 { margin-top: 12px; font: 800 clamp(30px, 2.8vw, 40px)/1.05 var(--display); letter-spacing: -.025em; }
.mate .role { margin-top: 10px; color: var(--blue); }
.mate p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 1020px) { .crew { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .mate { grid-template-columns: 110px 1fr; gap: 18px; padding: 18px; } }

/* Build log: compact grid, first 10 entries until "Show all" (phones keep the list view) */
.log-more { display: flex; justify-content: center; margin-top: 26px; }
.log-more .btn[hidden] { display: none; }
@media (min-width: 561px) {
  .log-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .log-grid .log-card .ph { aspect-ratio: 4 / 3; }
  .log-grid .log-card .ph.blank span { font-size: 22px; }
  .log-grid .log-card .meta { gap: 6px; padding: 0 14px 14px; }
  .log-grid .log-card .row { margin: 0 -14px; padding: 8px 14px; font-size: 10.5px; }
  .log-grid .log-card h3 { font-size: 16px; }
  .log-grid .log-card p { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .log-grid .log-card.failed .ph::after { right: 8px; top: 8px; padding: 2px 7px; font-size: 11px; }
}
@media (min-width: 561px) and (max-width: 1180px) { .log-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 561px) and (max-width: 1020px) { .log-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 561px) and (max-width: 680px) { .log-grid { grid-template-columns: 1fr 1fr; } }

/* Weekly updates page (rendered from UPDATES.md) */
.updates { display: grid; gap: 20px; max-width: 980px; }
.week { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 30px 34px; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.week-date h2 { margin-top: 6px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; }
.week-body { display: grid; gap: 12px; font-size: 17px; color: var(--ink-2); }
.week-body ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.week-body li { position: relative; padding-left: 20px; }
.week-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.week-body li > strong:first-child { color: var(--blue); }
.week-body h3 { font-size: 19px; margin-top: 6px; }
.week-body img { width: 100%; height: auto; border-radius: 16px; margin-top: 4px; }
.week-body a, .updates .lead a { color: var(--blue); font-weight: 600; }
@media (max-width: 680px) { .week { grid-template-columns: 1fr; gap: 12px; padding: 22px; } }

/* A week with a write-up: the whole card opens week.html; its first photo sits on the right */
.week.has-more { position: relative; transition: box-shadow .2s; }
.week.has-more:hover { box-shadow: var(--shadow-lg); }
.week.has-more:has(.week-more:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.week.has-more:has(.week-thumb) { grid-template-columns: 200px 1fr 220px; }
.week-body .week-more { justify-self: start; margin-top: 2px; text-decoration: none; }
.week-more::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.week-more:focus-visible { outline: none; }
.week.has-more:hover .week-more { text-decoration: underline; }
.week-body a:not(.week-more) { position: relative; z-index: 1; }
.week-thumb { align-self: start; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--sky); }
.week-thumb picture, .week-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1020px) { .week.has-more:has(.week-thumb) { grid-template-columns: 170px 1fr; } .week-thumb { grid-column: 1 / -1; aspect-ratio: 16 / 7; } }
@media (max-width: 680px) { .week.has-more:has(.week-thumb) { grid-template-columns: 1fr; } .week-thumb { order: 1; } .week-body { order: 2; } }

/* Week page (week.html): the short version, the write-up with its photo galleries, older / newer */
.wk-head h1 { font-size: clamp(38px, 4.8vw, 66px); max-width: 15ch; }
.page-head .wk-back { display: flex; width: fit-content; margin-bottom: 18px; font-weight: 700; color: var(--blue); text-decoration: none; }
.page-head .ph-head { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.page-head .ph-head:focus-visible { outline: 3px solid var(--blue); outline-offset: -6px; }
.page-head .wk-back:hover { text-decoration: underline; }
.wk { display: grid; gap: 44px; max-width: 900px; }
.wk-short { display: grid; gap: 12px; padding: 26px 30px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.wk-none { color: var(--muted); }
.wk-body { display: grid; gap: 18px; font-size: 18px; color: var(--ink-2); }
.wk-body:empty { display: none; }
.wk-body h2 { margin-top: 22px; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }
.wk-body h2:first-child { margin-top: 0; }
.wk-body h3 { margin-top: 8px; }
.wk-body ul, .wk-body ol { display: grid; gap: 10px; }
.wk-body ul li { position: relative; padding-left: 20px; }
.wk-body ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.wk-body ol { list-style: decimal; padding-left: 1.4em; }
.wk-body a { color: var(--blue); font-weight: 600; }
.wk-body strong { color: var(--ink); }
.gallery { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0; }
.gallery figure { flex: var(--ar, 1.5) 1 calc(var(--ar, 1.5) * 230px); min-width: 0; display: grid; gap: 8px; align-content: start; }
.gallery .ph { display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); cursor: zoom-in; }
.gallery.one figure { max-width: calc(var(--ar, 1.5) * 540px); }     /* a lone tall photo doesn't fill the whole column */
.gallery .ph picture { display: block; }
.gallery .ph img { display: block; width: 100%; aspect-ratio: var(--ar, 1.5); object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery .ph:hover img { transform: scale(1.025); }
.gallery .ph:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); }
.wk-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.wk-nav a.wk-older, .wk-nav a.wk-newer { display: grid; gap: 4px; padding: 16px 20px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.wk-nav a.wk-newer { text-align: right; }
.wk-nav a.wk-older:hover, .wk-nav a.wk-newer:hover { box-shadow: var(--shadow-lg); }
.wk-nav strong { font: 700 18px/1.25 var(--display); }
@media (max-width: 680px) {
  .wk-short { padding: 22px; }
  .wk-nav { grid-template-columns: 1fr 1fr; }
  .wk-nav .wk-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Full-size photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 64px 84px 40px; border: 0; background: rgba(9, 30, 45, .95); color: #fff; }
.lightbox[open] { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.lightbox::backdrop { background: rgba(9, 30, 45, .6); }
.lightbox figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; align-content: center; width: 100%; height: 100%; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { max-width: 70ch; font-size: 16px; line-height: 1.5; color: var(--sky); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: 400 30px/1 var(--body); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 28px; left: 26px; font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--line-2); }
@media (max-width: 680px) {
  .lightbox { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
}

/* Boat page: the V3 boat in 3D (#explore, boat-explorer.js) */
.bx { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.bx [hidden] { display: none !important; }
.bx-viewer { display: flex; flex-direction: column; min-width: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.bx-stage { position: relative; aspect-ratio: 16 / 10.5; max-height: 70vh; min-height: 340px; background-color: var(--white);
  background-image: radial-gradient(ellipse at 50% 46%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(var(--grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px; }
.bx-stage picture, .bx-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bx-poster { width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 7% 5%; transition: opacity .4s; }
.bx-stage.ready .bx-poster { opacity: 0; }
.bx-stage canvas { display: block; cursor: grab; touch-action: none; }
.bx-stage canvas:active { cursor: grabbing; }
.bx-views { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 32px); }
.bx-views button, .bx-tool, .bx-seg button { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; font: 700 13.5px/1.2 var(--body); color: var(--ink-2); }
.bx-views button:hover, .bx-views button[aria-pressed="true"], .bx-tool:hover, .bx-tool[aria-pressed="true"], .bx-seg button:hover { border-color: var(--ink); color: var(--ink); }
.bx-seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-readout { position: absolute; right: 18px; top: 22px; pointer-events: none; text-align: right; }
.bx-readout b { display: block; font: 600 13px/1.3 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.bx-status { position: absolute; left: 0; right: 0; bottom: 18px; padding: 0 24px; text-align: center; pointer-events: none; font: 500 12.5px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bx-status.error { color: var(--signal); text-transform: none; letter-spacing: 0; font: 600 16px/1.5 var(--body); }
.bx-tip { position: absolute; z-index: 2; pointer-events: none; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13px/1.2 var(--body); white-space: nowrap; transform: translate(14px, -130%); }
.bx-controls { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bx-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 11px 16px; min-width: 0; }
.bx-ctl + .bx-ctl { border-top: 1px solid var(--line); }
.bx-ctl > .label { width: 7.4em; flex: none; color: var(--ink); }
.bx-slide { display: flex; align-items: center; gap: 12px; flex: 1 1 340px; min-width: 0; }
.bx-slide input[type=range] { flex: 1; min-width: 90px; accent-color: var(--coral); }
.bx-slide output { font: 500 12.5px var(--mono); color: var(--ink-2); min-width: 15ch; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bx-tools, .bx-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-seg button { padding: 6px 12px; }
.bx-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bx-parts { background: var(--white); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.bx-parts header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bx-parts header .bx-tool { padding: 5px 11px; font-size: 13px; }
.bx-group { padding: 6px 0 4px; border-bottom: 1px solid var(--line); }
.bx-group:last-child { border-bottom: 0; }
.bx-group > .label { display: flex; justify-content: space-between; padding: 6px 16px 2px; font-size: 11.5px; }
.bx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.bx-row[aria-current="true"] { background: var(--sky); }
.bx-pick { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; background: none; border: 0; cursor: pointer; text-align: left; min-width: 0; }
.bx-pick:hover .bx-nm, .bx-row[aria-current="true"] .bx-nm { color: var(--blue); }
.bx-sw { width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 1px solid rgba(13, 46, 68, .25); }
.bx-nm { font: 700 15px/1.3 var(--body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-dm { font: 500 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-eye { width: 40px; height: 34px; margin-right: 8px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--ink-2); }
.bx-eye:hover { background: var(--bg); color: var(--ink); }
.bx-eye svg { width: 20px; height: 20px; }
.bx-eye .slash { display: none; }
.bx-row.off .bx-eye .slash { display: inline; }
.bx-row.off .bx-nm, .bx-row.off .bx-dm { color: var(--line-2); text-decoration: line-through; }
.bx-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(18px, 2vw, 26px); background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.bx-top { display: flex; flex-direction: column; gap: 8px; }
.bx-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.bx-card h3 { font: 800 clamp(24px, 2.2vw, 30px)/1.08 var(--display); letter-spacing: -.02em; }
.bx-card h4 { margin: 0; font: 700 15px/1.3 var(--body); color: var(--ink); }
.bx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.bx-facts div { min-width: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.bx-facts div:nth-child(2n) { border-right: 0; }
.bx-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.bx-facts dt { font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bx-facts dd { margin: 0; font: 700 16px/1.35 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
.bx-why { display: flex; flex-direction: column; gap: 9px; }
.bx-why li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.55; }
.bx-why li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--coral); }
.bx-history { display: flex; flex-direction: column; gap: 8px; }
.bx-history li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.5; }
.bx-history .v { font: 800 15px/1.5 var(--display); color: var(--blue); }
.bx-history .now .v { color: var(--coral); }
.bx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bx-hint { font-size: 15.5px; }
.bx-note { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 80ch; }
@media (min-width: 1021px) { .bx-viewer { position: sticky; top: calc(var(--nav-h) + 24px); } }
@media (max-width: 1020px) {
  .bx { grid-template-columns: minmax(0, 1fr); }
  .bx-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 680px) {
  .bx-side { display: flex; }
  .bx-viewer { border-radius: 22px; }
  .bx-stage { aspect-ratio: 1 / 1; min-height: 0; }
  .bx-readout, .bx-dm { display: none; }
  .bx-ctl > .label { width: auto; }
}
