/* Kestrel One · "Calibration Sheet" art direction
   Bone stock, slate ink, graphite hairlines. Rust is the calibration mark: used sparingly. */
:root {
  --slate: #1E2226;
  --slate-2: #262b30;
  --bone: #EDE6DA;
  --paper: #F3EEE6;
  --rust: #C4552D;
  --ember: #E07A4F;
  --graphite: #5B636B;
  --hair: rgba(91, 99, 107, .32);
  --hair-2: rgba(91, 99, 107, .16);
  --ink: var(--slate);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --navh: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--navh); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12 0 0 0 0 .13 0 0 0 0 .15 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
em { font-style: italic; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: var(--bone); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.cal { display: inline-block; width: 8px; height: 8px; background: var(--rust); margin-right: 10px; vertical-align: 1px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--slate); --fg: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: 2px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s;
  position: relative;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 -2px rgba(30,34,38,.18); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-rust { --bg: var(--rust); --fg: #fff8ef; }
.btn-rust:hover { --bg: #b44a24; }
.btn-line { --bg: transparent; --fg: var(--slate); border-color: var(--slate); }
.btn-line:hover { --bg: var(--slate); --fg: var(--bone); }
.btn-bone { --bg: var(--bone); --fg: var(--slate); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; min-height: 56px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--navh);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad);
  background: rgba(237, 230, 218, .78);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--hair-2);
  transition: background .3s, color .3s, border-color .3s;
}
.nav.on-dark { background: rgba(30, 34, 38, .82); color: var(--bone); border-color: rgba(237,230,218,.12); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark { font: 700 15px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .26em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .25s; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-end { display: flex; align-items: center; gap: 18px; }
.nav-sheet { color: var(--graphite); font-size: 11px; }
.nav.on-dark .nav-sheet { color: rgba(237,230,218,.6); }
.nav-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--hair); background: transparent; border-radius: 2px; position: relative; }
.nav-menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .25s; }
.nav-menu span:first-child { top: 15px; } .nav-menu span:last-child { top: 23px; }
.nav-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 480vh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    linear-gradient(var(--hair-2) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, var(--hair-2) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(ellipse at 62% 55%, #f5f0e8 0%, var(--bone) 60%);
}
.hero-sticky::after { /* soften the grid toward the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 60% 55%, transparent 30%, rgba(237,230,218,.85) 85%);
}
#kb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; touch-action: pan-y; }
.kb-fallback { position: absolute; inset: 0; z-index: 1; display: none; }
.kb-fallback.show { display: grid; place-items: center; padding: 120px 8vw 80px 44vw; }
.kb-fallback svg { width: 100%; filter: drop-shadow(0 30px 30px rgba(30,34,38,.2)); }
.sheet-frame { position: absolute; inset: calc(var(--navh) + 14px) 18px 18px; z-index: 2; pointer-events: none; border: 1px solid var(--hair-2); }
.reg { position: absolute; width: 18px; height: 18px; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--graphite); }
.reg::before { left: 8px; top: 0; width: 1px; height: 18px; }
.reg::after { top: 8px; left: 0; height: 1px; width: 18px; }
.reg-tl { left: -9px; top: -9px; } .reg-tr { right: -9px; top: -9px; } .reg-bl { left: -9px; bottom: -9px; } .reg-br { right: -9px; bottom: -9px; }

.hero-copy {
  position: absolute; z-index: 3;
  left: calc(var(--pad) + 8px); top: calc(var(--navh) + 9vh);
  width: min(520px, 40vw);
}
.eyebrow { color: var(--graphite); margin-bottom: 22px; display: flex; align-items: center; }
.hero-title {
  font: 400 clamp(64px, 9.4vw, 152px)/.86 var(--serif);
  letter-spacing: -.02em;
  margin-left: -.04em;
}
.hero-title em { color: var(--rust); }
.hero-tag { font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--serif); font-style: italic; margin-top: 18px; }
.hero-sub { margin-top: 18px; max-width: 420px; color: #3b4148; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.finish-pick { display: flex; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.finish-lbl { color: var(--graphite); margin-right: 8px; font-size: 11px; }
.sw {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px 0 8px;
  background: transparent; border: 1px solid var(--hair); border-radius: 2px;
  font-size: 14px; transition: border-color .2s, background .2s;
}
.sw i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -4px 6px rgba(0,0,0,.15); }
.sw-dusk i { background: #2d3237; } .sw-bone i { background: #ddd5c7; } .sw-signal i { background: var(--rust); }
.sw[aria-checked="true"] { border-color: var(--slate); background: rgba(255,255,255,.35); }
.sw:hover { border-color: var(--slate); }

.hero-cap {
  position: absolute; z-index: 3; left: calc(var(--pad) + 8px); top: calc(var(--navh) + 9vh);
  width: min(400px, 34vw); opacity: 0; visibility: hidden;
}
.hero-cap h2 { font: 400 clamp(40px, 5vw, 76px)/.95 var(--serif); letter-spacing: -.01em; }
.hero-cap h2 em { color: var(--rust); }
.hero-cap p:last-child { margin-top: 18px; color: #3b4148; max-width: 330px; }
.hero-cap-c { top: auto; bottom: 12vh; }

.hero-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; visibility: hidden; }
.leaders { position: absolute; inset: 0; overflow: visible; }
.leaders line { stroke: var(--slate); stroke-width: 1; stroke-dasharray: 3 3; }
.leaders circle { fill: var(--bone); stroke: var(--rust); stroke-width: 1.5; }
.lbl { position: absolute; left: 0; top: 0; display: flex; gap: 12px; align-items: flex-start; white-space: nowrap; will-change: transform; }
.lbl-n { font: 500 11px/1 var(--mono); color: var(--bone); background: var(--slate); padding: 5px 6px; margin-top: 2px; }
.lbl b { display: block; font: 400 26px/1 var(--serif); }
.lbl small { display: block; margin-top: 5px; font: 400 11px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); }

.hero-ruler { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%); width: min(420px, 40vw); opacity: 0; transition: opacity .3s; }
.hero-ruler.show { opacity: 1; }
.ruler-track { height: 9px; position: relative;
  background: repeating-linear-gradient(to right, var(--graphite) 0 1px, transparent 1px 10%) bottom / 100% 6px no-repeat,
              repeating-linear-gradient(to right, var(--hair) 0 1px, transparent 1px 2.5%) bottom / 100% 3px no-repeat;
  border-bottom: 1px solid var(--graphite); }
.ruler-fill { position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--rust); }
.hero-ruler ol { list-style: none; margin: 10px 0 0; padding: 0; position: relative; height: 14px; font-size: 10px; color: var(--graphite); }
.hero-ruler li { position: absolute; top: 0; transform: translateX(-50%); transition: color .3s; white-space: nowrap; }
.hero-ruler li:first-child { transform: none; } .hero-ruler li:last-child { transform: translateX(-100%); }
.hero-ruler li.on { color: var(--slate); }
.hero-ruler li.on::before { content: "▴ "; color: var(--rust); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); color: var(--graphite); display: flex; align-items: center; gap: 12px; font-size: 11px; }
.cue-line { width: 1px; height: 36px; background: linear-gradient(var(--graphite), transparent); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--rust); animation: cue 1.8s infinite; }
@keyframes cue { to { top: 40px; } }
.titleblock { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: flex; font-size: 10px; color: var(--graphite); background: rgba(237,230,218,.7); }
.titleblock span { padding: 7px 12px; border-left: 1px solid var(--hair-2); border-top: 1px solid var(--hair-2); }

/* ---------- intro band ---------- */
.intro { position: relative; background: var(--bone); padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--hair-2); }
.intro-grid { display: grid; grid-template-columns: 180px 1fr; gap: 20px 40px; }
.sheet-no { color: var(--graphite); font-size: 11px; }
.intro-text { font: 400 clamp(30px, 3.7vw, 56px)/1.08 var(--serif); letter-spacing: -.005em; max-width: 1000px; }
.intro-text em { color: var(--rust); }
.intro-stats { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: 50px 0 0; border-top: 1px solid var(--slate); }
.intro-stats div { padding: 18px 16px 0 0; border-right: 1px solid var(--hair-2); margin-right: 16px; }
.intro-stats div:last-child { border-right: 0; }
.intro-stats dt { color: var(--graphite); font-size: 11px; }
.intro-stats dd { margin: 8px 0 0; font: 400 clamp(44px, 5vw, 72px)/1 var(--serif); }
.intro-stats dd span { font: 400 14px var(--mono); color: var(--graphite); margin-left: 6px; text-transform: uppercase; }

/* ---------- sheets ---------- */
.sheet { position: relative; padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--hair); }
.sheet-head { display: grid; grid-template-columns: 180px 1fr; gap: 16px 40px; margin-bottom: clamp(40px, 6vw, 72px); }
.sheet-head .sheet-no { padding-top: 16px; }
.sheet-title { font: 400 clamp(46px, 6.4vw, 96px)/.95 var(--serif); letter-spacing: -.015em; }
.sheet-title em { color: var(--rust); }
.sheet-lede { grid-column: 2; max-width: 560px; color: #3b4148; font-size: 18px; }

/* ---------- details ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--slate); border-left: 1px solid var(--hair); }
.detail { padding: 22px 26px 34px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); position: relative; background: transparent; transition: background .3s; }
.detail:hover { background: rgba(255,255,255,.28); }
.detail-no { color: var(--graphite); font-size: 10.5px; }
.detail-fig { margin: 18px 0 22px; aspect-ratio: 320 / 170; position: relative; }
.detail h3 { font: 400 30px/1.05 var(--serif); margin-bottom: 10px; }
.detail p:not(.mono) { color: #3b4148; font-size: 16px; }
.draw { width: 100%; height: 100%; overflow: visible; }
.draw .t, .draw text { font: 500 9.5px var(--mono); letter-spacing: .05em; fill: var(--graphite); text-transform: uppercase; }
.draw .rust { fill: var(--rust); }
.draw .hatch { stroke: var(--graphite); stroke-width: .8; opacity: .55; }
.draw .solid { stroke: var(--slate); stroke-width: 1.2; }
.draw .solid-l { fill: rgba(30,34,38,.06); stroke: var(--slate); stroke-width: 1.2; }
.draw .gasket { fill: var(--slate); }
.draw .plate { fill: #bfb08a; stroke: var(--slate); stroke-width: 1; }
.draw .flex { transform-origin: 170px 76px; animation: flex 2.6s ease-in-out infinite; }
@keyframes flex { 0%, 55%, 100% { transform: scaleY(1); } 65% { transform: translateY(2.5px) scaleY(1.15); } 75% { transform: scaleY(1); } }
.draw .dim, .draw .base { stroke: var(--graphite); stroke-width: 1; fill: none; }
.draw .lead { stroke: var(--rust); fill: none; stroke-width: 1; }
.draw .dim-arc { stroke: var(--rust); stroke-dasharray: 4 4; fill: none; stroke-width: 1.2; }
.draw .caps path { fill: var(--slate); stroke: var(--slate); stroke-width: 1; stroke-linejoin: round; }
.draw .caps path:nth-child(2) { fill: #2c3237; } .draw .caps path:nth-child(3) { fill: #353c42; } .draw .caps path:nth-child(4) { fill: #3e454c; }
.draw .wire { stroke: var(--slate); stroke-width: 1.6; fill: none; }
.draw .wire.dash { stroke-dasharray: 2 4; }
.draw .wave { stroke: var(--rust); stroke-width: 1.4; fill: none; }
.draw .grid line { stroke: var(--hair-2); }
.draw .grid text { font-size: 8.5px; }
.fc { position: relative; height: 100%; }
.fc svg { cursor: crosshair; touch-action: pan-y; }
.fc-line { fill: none; stroke: var(--rust); stroke-width: 2; stroke-linejoin: round; }
.fc-x { stroke: var(--slate); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.fc-dot { fill: var(--bone); stroke: var(--rust); stroke-width: 2; opacity: 0; }
.fc.hover .fc-x, .fc.hover .fc-dot { opacity: 1; }
.fc-tip { position: absolute; top: -6px; right: 0; background: var(--slate); color: var(--bone); padding: 5px 8px; font-size: 10.5px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.fc.hover .fc-tip { opacity: 1; }
.bars { display: flex; flex-direction: column; justify-content: center; gap: 22px; height: 100%; }
.bar-row { display: grid; grid-template-columns: 86px 1fr 60px; align-items: center; gap: 12px; outline-offset: 6px; }
.bar-row span { font-size: 10.5px; color: var(--graphite); }
.bar-row b { font: 500 13px var(--mono); text-align: right; }
.bar { height: 22px; border-left: 1px solid var(--slate); position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--hair-2) calc(10% - 1px) 10%); }
.bar i { position: absolute; left: 0; top: 3px; bottom: 3px; width: calc(var(--v) * 100%); background: var(--slate); border-radius: 0 4px 4px 0; transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bar-row:nth-child(2) .bar i { background: var(--rust); }
.in .bar i { transform: scaleX(1); }
.bar-row:hover b, .bar-row:focus b { color: var(--rust); }
.bar-note { color: var(--graphite); font-size: 10.5px; padding-left: 98px; }
.code-fig { display: flex; }
.code { margin: 0; width: 100%; background: var(--slate); color: #cfc8bc; padding: 16px 18px; font-size: 11.5px; line-height: 1.6; letter-spacing: 0; text-transform: none; overflow: auto; border-radius: 2px; }
.code .c { color: #858d95; } .code .k { color: var(--ember); } .code .r { color: var(--bone); background: rgba(196,85,45,.35); }

/* ---------- sound ---------- */
.sound { background: var(--slate); color: var(--bone); border-top: 0;
  background-image: linear-gradient(rgba(237,230,218,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(237,230,218,.035) 1px, transparent 1px);
  background-size: 48px 48px; }
.sound .sheet-no, .sound .sheet-lede { color: rgba(237,230,218,.66); }
.sound .sheet-title em { color: var(--ember); }
.rig { border: 1px solid rgba(237,230,218,.18); background: rgba(0,0,0,.14); }
.rig-top { display: flex; justify-content: space-between; align-items: stretch; flex-wrap: wrap; gap: 0; border-bottom: 1px solid rgba(237,230,218,.18); }
.seg { display: flex; flex-wrap: wrap; }
.seg button { background: transparent; border: 0; border-right: 1px solid rgba(237,230,218,.18); padding: 14px 22px; text-align: left; min-height: 64px; color: rgba(237,230,218,.7); transition: background .2s, color .2s; }
.seg button b { display: block; font: 400 22px/1.1 var(--serif); }
.seg button span { display: block; font-size: 10px; line-height: 1.35; margin-top: 3px; color: rgba(237,230,218,.5); }
.seg button[aria-checked="true"] { background: var(--bone); color: var(--slate); }
.seg button[aria-checked="true"] span { color: var(--graphite); }
.seg button:hover:not([aria-checked="true"]) { background: rgba(237,230,218,.07); color: var(--bone); }
.sound-toggle { display: flex; align-items: center; gap: 10px; padding: 0 22px; background: transparent; border: 0; border-left: 1px solid rgba(237,230,218,.18); color: var(--bone); font-size: 11px; min-height: 64px; }
.sound-toggle .on { display: none; } .sound-toggle[aria-pressed="true"] .on { display: block; } .sound-toggle[aria-pressed="true"] .off { display: none; }
.sound-toggle[aria-pressed="false"] { color: var(--ember); }
.sound-toggle[aria-pressed="false"] svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.15); } }
.rig-mid { display: grid; grid-template-columns: 1fr 300px; border-bottom: 1px solid rgba(237,230,218,.18); }
.scope { position: relative; height: 170px; border-right: 1px solid rgba(237,230,218,.18); }
.scope canvas { width: 100%; height: 100%; }
.scope-lbl { position: absolute; left: 14px; top: 12px; font-size: 10px; color: rgba(237,230,218,.45); }
.readouts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.readouts div { padding: 16px 18px; border-bottom: 1px solid rgba(237,230,218,.1); border-right: 1px solid rgba(237,230,218,.1); }
.readouts div:nth-child(2n) { border-right: 0; }
.readouts div:nth-child(n+3) { border-bottom: 0; }
.readouts dt { font-size: 10px; color: rgba(237,230,218,.5); }
.readouts dd { margin: 8px 0 0; font: 400 26px/1 var(--serif); text-transform: none; letter-spacing: 0; color: var(--bone); }
.readouts dd small { font: 400 10px var(--mono); color: rgba(237,230,218,.5); }
#rChar { font-size: 20px; }
.prompt { position: relative; padding: 26px 26px 20px; border-bottom: 1px solid rgba(237,230,218,.18); cursor: text; outline: none; }
.prompt.focus { background: rgba(237,230,218,.04); }
.prompt-text { font: 400 clamp(22px, 2.6vw, 36px)/1.25 var(--serif); color: rgba(237,230,218,.3); min-height: 1.25em; word-break: break-word; }
.prompt-text .done { color: var(--bone); }
.prompt-text .miss { color: var(--ember); text-decoration: underline; text-decoration-thickness: 1px; }
.prompt-text .caret { display: inline-block; width: 2px; height: .9em; background: var(--ember); vertical-align: -.08em; margin: 0 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-hint { margin-top: 12px; color: rgba(237,230,218,.45); font-size: 10.5px; }
.sr-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.plan-scroll { overflow-x: auto; padding: 26px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.plan-sound { min-width: 620px; }
.fine { color: rgba(237,230,218,.4); font-size: 10px; padding: 0 26px 18px; }

/* plan view keyboard */
.plan svg { width: 100%; height: auto; }
.plan text { font-family: var(--sans); font-weight: 500; pointer-events: none; }
.pv-case { fill: var(--case, #2d3237); transition: fill .4s; }
.pv-well { fill: rgba(0,0,0,.28); }
.pv-key > rect:first-child { fill: #1c2024; }
.pv-key .pv-top { fill: #262b30; transition: fill .25s, transform .08s; }
.pv-mod .pv-top { fill: #353c42; }
.pv-accent > rect:first-child { fill: #9c4222; } .pv-accent .pv-top { fill: var(--rust); }
.pv-key text { fill: var(--bone); }
.pv-knob circle { fill: #3a4046; } .pv-knob .pv-knob-in { fill: #444b52; } .pv-knob line { stroke: var(--bone); stroke-width: 2; }
.plan-sound .pv-key { cursor: pointer; }
.plan-sound .pv-key.down .pv-top { fill: var(--ember); transform: translateY(2px); }
.plan-sound .pv-key.heat .pv-top { fill: #5a3a2c; }
.plan-sound .pv-key.heat.down .pv-top { fill: var(--ember); }
.plan[data-finish="bone"] { --case: #d8d0c2; }
.plan[data-finish="signal"] { --case: #b04a26; }
.plan[data-finish="dusk"] { --case: #2d3237; }

/* ---------- specs ---------- */
.specs-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.dimdraw { margin: 0; position: sticky; top: calc(var(--navh) + 30px); }
.dim-top svg { width: 100%; height: auto; overflow: visible; }
.dim-top .t { font: 500 11px var(--mono); fill: var(--graphite); letter-spacing: .05em; }
.dim-top .dim { stroke: var(--graphite); stroke-width: 1; fill: none; }
.dim-top .pv-case { fill: none; stroke: var(--slate); stroke-width: 1.5; }
.dim-top .pv-well { fill: none; stroke: var(--hair); }
.dim-top .pv-key > rect:first-child { fill: none; stroke: var(--slate); stroke-width: .8; }
.dim-top .pv-top { fill: none; stroke: var(--hair); }
.dim-top .pv-accent > rect:first-child { stroke: var(--rust); }
.dim-top .pv-key text { fill: var(--graphite); }
.dim-top .pv-knob circle { fill: none; stroke: var(--slate); } .dim-top .pv-knob line { stroke: var(--rust); }
.dim-side { margin-top: 26px; width: 100%; height: auto; overflow: visible; }
.dim-side .t, .dim-side text { font: 500 11px var(--mono); fill: var(--graphite); letter-spacing: .05em; text-transform: uppercase; }
.dim-side .rust { fill: var(--rust); }
.dim-side .solid-l { fill: rgba(30,34,38,.07); stroke: var(--slate); stroke-width: 1.5; }
.dim-side .dim { stroke: var(--graphite); stroke-width: 1; fill: none; }
.dim-side .dim-arc { stroke: var(--rust); fill: none; stroke-width: 1.5; }
.dimdraw figcaption { margin-top: 18px; color: var(--graphite); font-size: 10.5px; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 34px; }
.spec caption { text-align: left; font-size: 11px; color: var(--rust); padding-bottom: 10px; border-bottom: 1px solid var(--slate); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.spec th { width: 34%; font: 500 11.5px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); padding-right: 16px; padding-top: 15px; }
.spec td { font-size: 16px; }
.spec tr { transition: background .2s; }
.spec tr:hover { background: rgba(255,255,255,.3); }

/* ---------- order ---------- */
.order { background: var(--paper); }
.orderform { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.order-preview { position: sticky; top: calc(var(--navh) + 30px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--hair);
  background: linear-gradient(var(--hair-2) 1px, transparent 1px) 0 0 / 100% 24px, linear-gradient(90deg, var(--hair-2) 1px, transparent 1px) 0 0 / 24px 100%, var(--bone); }
.plan-order svg { filter: drop-shadow(0 22px 22px rgba(30,34,38,.22)); transform: perspective(1200px) rotateX(18deg); transition: transform .6s; }
.order-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 30px; font-size: 11px; color: var(--graphite); border-top: 1px solid var(--hair); padding-top: 12px; }
.order-meta span:first-child { color: var(--slate); }
.stamp { position: absolute; right: 20px; top: 18px; border: 1.5px solid var(--rust); color: var(--rust); padding: 6px 10px; transform: rotate(-4deg) scale(.9); opacity: 0; transition: opacity .3s, transform .3s; text-align: center; font-size: 10px; }
.stamp b { display: block; font-weight: 500; font-size: 12px; margin-top: 2px; }
.stamp.show { opacity: 1; transform: rotate(-4deg) scale(1); }
fieldset { border: 0; margin: 0 0 30px; padding: 0; }
legend { font-size: 11px; color: var(--graphite); margin-bottom: 12px; padding: 0; }
.ed { display: block; position: relative; cursor: pointer; margin-bottom: 10px; }
.ed input, .fin input, .addon input { position: absolute; opacity: 0; pointer-events: none; }
.ed-body { display: block; border: 1px solid var(--hair); padding: 18px 20px 18px 48px; position: relative; transition: border-color .2s, background .2s; background: rgba(255,255,255,.2); }
.ed-body::before { content: ""; position: absolute; left: 18px; top: 22px; width: 16px; height: 16px; border: 1px solid var(--slate); border-radius: 50%; }
.ed input:checked + .ed-body { border-color: var(--slate); background: rgba(255,255,255,.55); box-shadow: inset 3px 0 0 var(--rust); }
.ed input:checked + .ed-body::before { background: radial-gradient(circle, var(--rust) 45%, transparent 50%); }
.ed input:focus-visible + .ed-body { outline: 2px solid var(--rust); outline-offset: 2px; }
.ed-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ed-top b { font: 400 26px/1.1 var(--serif); }
.price { font: 500 16px var(--mono); }
.ed-desc { display: block; margin-top: 4px; color: #4a5057; font-size: 15px; }
.finish-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fin { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--hair); padding: 10px 16px 10px 10px; cursor: pointer; min-height: 48px; background: rgba(255,255,255,.2); transition: border-color .2s; }
.fin:has(input:checked) { border-color: var(--slate); background: rgba(255,255,255,.55); }
.fin:has(input:focus-visible) { outline: 2px solid var(--rust); outline-offset: 2px; }
.chip { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -5px 8px rgba(0,0,0,.18); }
.chip-dusk { background: #2d3237; } .chip-bone { background: #ddd5c7; } .chip-signal { background: var(--rust); }
.addon { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--hair); padding: 16px 18px; cursor: pointer; font-size: 15px; background: rgba(255,255,255,.2); }
.addon .box { width: 20px; height: 20px; border: 1px solid var(--slate); position: relative; }
.addon input:checked ~ .box { background: var(--slate); }
.addon input:checked ~ .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bone); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.addon:has(input:checked) { border-color: var(--slate); }
.addon:has(input:focus-visible) { outline: 2px solid var(--rust); outline-offset: 2px; }
.addon b { font-weight: 600; }
.receipt { border-top: 1px solid var(--slate); margin: 6px 0 20px; font-size: 12px; }
.receipt > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--hair); }
.receipt .total { border-bottom: 1px solid var(--slate); font-size: 14px; font-weight: 500; color: var(--slate); padding: 14px 0; }
.receipt .total span:last-child { font: 400 30px/1 var(--serif); letter-spacing: 0; }
.order-note { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--graphite); }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 10.5px; color: var(--graphite); }
.assure li::before { content: "✓ "; color: var(--rust); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px clamp(30px, 6vw, 90px); }
.faq .sheet-head { display: block; }
.faq .sheet-head .sheet-no { padding: 0 0 18px; }
.faq .sheet-lede { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--slate); }
details { border-bottom: 1px solid var(--hair); }
summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 400 24px/1.2 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--slate), var(--slate)) center / 14px 1.5px no-repeat, linear-gradient(var(--slate), var(--slate)) center / 1.5px 14px no-repeat; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--rust), var(--rust)) center / 14px 1.5px no-repeat, linear-gradient(var(--rust), var(--rust)) center / 1.5px 14px no-repeat; }
summary:hover { color: var(--rust); }
details p { padding: 0 44px 24px 0; color: #3b4148; max-width: 620px; }

/* ---------- footer ---------- */
.footer { background: var(--slate); color: var(--bone); padding: 80px 0 30px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(237,230,218,.14); }
.foot-logo { height: 46px; width: auto; background: var(--bone); padding: 6px 14px 6px 6px; border-radius: 12px; }
.foot-tag { font: 400 italic 34px/1.1 var(--serif); margin-top: 20px; }
.notify { width: min(460px, 100%); }
.notify label { display: block; font-size: 10.5px; color: rgba(237,230,218,.6); margin-bottom: 10px; }
.notify-row { display: flex; border: 1px solid rgba(237,230,218,.3); }
.notify input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 16px; color: var(--bone); font: 400 16px var(--sans); min-height: 50px; }
.notify input::placeholder { color: rgba(237,230,218,.4); }
.notify input:focus { outline: none; }
.notify-row:focus-within { border-color: var(--ember); }
.notify .btn { border-radius: 0; min-height: 50px; }
.notify-msg { margin-top: 10px; font-size: 10.5px; color: var(--ember); min-height: 1.4em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 44px 0; }
.foot-cols h4 { font-size: 10.5px; color: rgba(237,230,218,.5); margin-bottom: 16px; }
.foot-cols a, .foot-cols span { display: block; text-decoration: none; padding: 5px 0; color: rgba(237,230,218,.88); font-size: 15px; }
.foot-cols a:hover { color: var(--ember); }
.tb { display: grid; grid-template-columns: 2fr repeat(5, 1fr); border: 1px solid rgba(237,230,218,.3); font-size: 11px; }
.tb-cell { padding: 12px 14px; border-right: 1px solid rgba(237,230,218,.2); }
.tb-cell:last-child { border-right: 0; }
.tb small { display: block; font-size: 9px; color: rgba(237,230,218,.45); margin-bottom: 6px; }
.legal { margin-top: 20px; color: rgba(237,230,218,.4); font-size: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--slate); color: var(--bone); padding: 14px 18px; z-index: 90; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; max-width: calc(100vw - 32px); font-size: 11px; border-left: 3px solid var(--rust); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .draw .flex { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .rig-mid { grid-template-columns: 1fr; }
  .scope { border-right: 0; border-bottom: 1px solid rgba(237,230,218,.18); }
  .readouts { grid-template-columns: repeat(4, 1fr); }
  .readouts div { border-bottom: 0; }
  .readouts div:nth-child(2n) { border-right: 1px solid rgba(237,230,218,.1); }
  .nav-links { gap: 20px; }
  .nav-sheet { display: none; }
}
@media (max-width: 900px) {
  .specs-grid, .orderform, .faq-grid { grid-template-columns: 1fr; }
  .dimdraw, .order-preview { position: relative; top: 0; }
}
@media (max-width: 760px) {
  :root { --navh: 58px; }
  body { font-size: 16px; }
  .nav-menu { display: block; }
  .nav-links { position: absolute; top: var(--navh); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bone); color: var(--slate); border-bottom: 1px solid var(--hair); padding: 8px var(--pad) 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--hair-2); font-size: 18px; }
  .nav-links a::after { display: none; }
  .nav-end { gap: 10px; }
  .hide-s { display: none; }
  .hero { height: 420vh; }
  .hero-sticky { background-size: 100% 32px, 32px 100%, auto; }
  .sheet-frame { inset: calc(var(--navh) + 8px) 8px 8px; }
  .hero-copy { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--navh) + 26px); bottom: 24px; }
  .eyebrow { margin-bottom: 12px; font-size: 10.5px; }
  .hero-title { font-size: clamp(60px, 19vw, 92px); }
  .hero-tag { font-size: 24px; margin-top: 10px; }
  .hero-sub { position: absolute; left: 0; right: 0; bottom: 126px; margin: 0; font-size: 15px; max-width: none; text-align: center; padding: 0 6px; }
  .hero-cta { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
  .finish-pick { position: absolute; left: 0; right: 0; bottom: 62px; margin: 0; justify-content: center; }
  .finish-lbl { display: none; }
  .scroll-cue { display: none; }
  .hero-ruler { display: none; }
  .titleblock { display: none; }
  .hero-cap { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--navh) + 24px); }
  .hero-cap h2 { font-size: 40px; }
  .hero-cap p:last-child { display: none; }
  .hero-cap-c { top: calc(var(--navh) + 24px); bottom: auto; }
  .lbl { gap: 0; align-items: center; }
  .lbl > div { background: rgba(237,230,218,.86); padding: 2px 8px 3px; }
  .lbl-n { font-size: 10px; padding: 4px 5px; margin: 0; }
  .lbl b { font-size: 20px; }
  .lbl small { display: none; }
  .intro-grid, .sheet-head { grid-template-columns: 1fr; }
  .sheet-lede, .intro-stats { grid-column: 1; }
  .sheet-head .sheet-no { padding-top: 0; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); }
  .intro-stats div { padding-bottom: 18px; }
  .intro-stats div:nth-child(2) { border-right: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail { padding: 20px 18px 30px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 12px 12px; min-width: 0; border-bottom: 1px solid rgba(237,230,218,.18); }
  .seg button b { font-size: 18px; }
  .seg button span { font-size: 8.5px; letter-spacing: .03em; }
  .sound-toggle { width: 100%; border-left: 0; min-height: 50px; justify-content: center; }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  .readouts div:nth-child(-n+2) { border-bottom: 1px solid rgba(237,230,218,.1); }
  .readouts div:nth-child(2n) { border-right: 0; }
  .scope { height: 120px; }
  .prompt, .plan-scroll { padding: 20px 16px; }
  .fine { padding: 0 16px 16px; }
  .spec th { width: 38%; font-size: 10.5px; }
  .spec td { font-size: 15px; }
  summary { font-size: 21px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols div:last-child { grid-column: 1 / -1; }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-bottom: 1px solid rgba(237,230,218,.2); }
  .tb-wide { grid-column: 1 / -1; }
  .tb-cell:nth-child(odd):not(.tb-wide) { border-right: 0; }
  .bar-row { grid-template-columns: 70px 1fr 54px; }
  .bar-note { padding-left: 0; }
}
