/* LIFT · a farewell spec sheet for Oscar
   Drafting paper, graphite, one bold accent of international orange. */

:root {
  --paper: #F5F3EE;
  --paper-2: #EDEAE2;
  --card: #FFFDF8;
  --grid: #D9DEE3;
  --graphite: #23262B;
  --ink-2: #464C54;
  --ink-3: #646A73;
  --rule: rgba(35, 38, 43, .22);
  --orange: #FF5A1F;
  --orange-ink: #B4380A;
  --sky: #5BA4D6;
  --blue: #14365C;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(16px, 5vw, 56px);
  --maxw: 1200px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--graphite);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(217, 222, 227, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 222, 227, .5) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on;
}
@media (min-width: 900px) { body { font-size: 18px; } }

img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "zero" on; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--graphite); color: var(--paper); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- chrome */
.chrome {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
@media (min-width: 1100px) { .chrome { padding: 22px 26px 0; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 12px;
  background: rgba(245, 243, 238, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(35, 38, 43, .12);
  transition: transform .15s var(--ease-out), box-shadow .15s;
}
.pill:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(35, 38, 43, .12); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill-k { color: var(--ink-3); }
.sheet-count { font-variant-numeric: tabular-nums; }
.sheet-count .of { color: var(--ink-3); margin: 0 1px; }
.sheet-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 1px solid var(--rule); padding-left: 8px; }
.chev { width: 12px !important; height: 12px !important; transition: transform .2s; }
.sheet-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.sheet-nav { position: relative; }
.sheet-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--card); border: 1px solid var(--graphite); box-shadow: 4px 4px 0 rgba(35, 38, 43, .12);
  padding: 10px 0 8px;
}
.menu-title { margin: 0 14px 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sheet-menu ol { list-style: none; margin: 0; padding: 0; }
.sheet-menu a {
  display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: baseline;
  padding: 9px 14px; text-decoration: none; font-weight: 500;
}
.sheet-menu a:hover, .sheet-menu a:focus-visible { background: var(--paper-2); }
.sheet-menu a .n { font: 600 12px var(--mono); color: var(--ink-3); }
.sheet-menu a[aria-current="true"] .n { color: var(--orange-ink); }
.sheet-menu a.is-letter { color: var(--orange-ink); font-weight: 600; }

.chrome-right { display: flex; gap: 8px; align-items: flex-start; }
.letter-pill { background: var(--orange); text-decoration: none; color: var(--graphite); transition: transform .15s var(--ease-out), box-shadow .15s, opacity .3s; }
.letter-pill svg { stroke-width: 2; }
.letter-pill.is-here { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.sound-btn .waves, .sound-btn .cross { transition: opacity .2s; }
.sound-btn .cross { opacity: 0; }
.sound-btn[aria-pressed="false"] .waves { opacity: 0; }
.sound-btn[aria-pressed="false"] .cross { opacity: 1; }
@media (max-width: 420px) { .sound-label, .lp-label { display: none; } .sheet-name { max-width: 30vw; } .letter-pill, .sound-btn { padding-inline: 10px; } }

/* drafting frame on wide screens */
.frame { display: none; }
@media (min-width: 1100px) {
  .frame {
    display: block; position: fixed; inset: 10px; z-index: 30; pointer-events: none;
    border: 1px solid rgba(35, 38, 43, .55);
    outline: 1px solid rgba(35, 38, 43, .18); outline-offset: 4px;
  }
  .frame::before, .frame::after { /* centring marks */
    content: ""; position: absolute; background: rgba(35, 38, 43, .55);
  }
  .frame::before { left: 50%; top: -5px; width: 1px; height: 14px; box-shadow: 0 calc(100vh - 25px) 0 rgba(35, 38, 43, .55); }
  .frame::after { top: 50%; left: -5px; height: 1px; width: 14px; box-shadow: calc(100vw - 25px) 0 0 rgba(35, 38, 43, .55); }
  .frame-zones { position: absolute; display: flex; font: 500 10px/1 var(--mono); color: var(--ink-3); }
  .frame-zones span { background: var(--paper); padding: 1px 3px; }
  .frame-zones-x { left: 0; right: 0; bottom: 3px; justify-content: space-around; }
  .frame-zones-y { top: 0; bottom: 0; left: 3px; flex-direction: column; justify-content: space-around; }
  .frame-xy { position: absolute; right: 12px; bottom: 6px; margin: 0; font: 500 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .05em; background: var(--paper); padding: 2px 4px; }
}

/* ---------------------------------------------------------------- sheets */
.sheet { position: relative; padding: 76px 0 64px; }
.sheet-inner { position: relative; width: min(var(--maxw), 100% - var(--gut) * 2); margin-inline: auto; }
.sheet + .sheet::before {
  /* a cut line between sheets, with a scissor-free drafting tick at each end */
  content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut);
  border-top: 1px dashed rgba(35, 38, 43, .35);
}
@media (min-width: 900px) { .sheet { padding: 110px 0 96px; } }

.sheet-head { margin-bottom: 28px; max-width: 760px; }
.sheet-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sheet-num { display: inline-flex; gap: 6px; border: 1px solid var(--graphite); padding: 4px 8px; color: var(--graphite); background: var(--paper); }
.sheet-num b { color: var(--orange-ink); }
.sheet-kind::before { content: "/"; margin-right: 10px; color: var(--rule); }
.sheet-head h2 {
  margin: 0; font-size: clamp(38px, 10vw, 76px); line-height: .95; font-weight: 600; letter-spacing: -.035em;
}
.sheet-lede { margin: 14px 0 0; color: var(--ink-2); max-width: 54ch; font-size: 1.04em; }

/* ---------------------------------------------------------------- title sheet */
.sheet-title { padding-top: 78px; }
@media (min-width: 900px) { .sheet-title { padding-top: 110px; } }
.doc-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.doc-kicker .sep { color: var(--rule); }
.doc-kicker .dwg { color: var(--graphite); }

.hero-grid { display: grid; gap: 22px; }
@media (max-width: 979px) {
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-words { display: contents; }
  .name-block { order: 1; } .phonetic { order: 2; } .hero-drawing { order: 3; margin: 6px 0 -6px; }
  .lede { order: 4; margin-top: 4px; } .from { order: 5; } .cta { order: 6; }
}

@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; } }

.name-block { position: relative; padding-top: 30px; width: max-content; max-width: 100%; }
.name {
  margin: 0; font-weight: 700; font-size: clamp(88px, 26.5vw, 232px); line-height: .8; letter-spacing: -.055em;
  display: flex; user-select: none; -webkit-user-select: none;
  margin-left: -.04em;
}
.name .ch {
  display: inline-block; position: relative; cursor: pointer;
  transition: transform .5s var(--ease-spring), color .2s;
}
.name .ch.is-hit { color: var(--orange); }
.js .name .ch { clip-path: inset(0 100% 0 0); }
.js .is-in .name .ch { clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease-out), transform .5s var(--ease-spring), color .2s; transition-delay: calc(var(--i) * 90ms + 150ms), 0s, 0s; }
.name .ch:last-child::after {
  /* the pen that plots the letters */
  content: ""; position: absolute; right: -.08em; bottom: .06em; width: .085em; height: .085em; border-radius: 50%;
  background: var(--orange);
}
.js .name .ch:last-child::after { opacity: 0; }
.js .is-in .name .ch:last-child::after { opacity: 1; transition: opacity .3s 750ms; }

.dim {
  position: absolute; top: 0; left: 0; right: 0; height: 22px;
  display: flex; justify-content: center; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.dim-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--graphite);
}
.dim-line::before, .dim-line::after {
  content: ""; position: absolute; top: -4px; width: 0; height: 0; border: 4.5px solid transparent;
}
.dim-line::before { left: 0; border-right: 9px solid var(--graphite); border-left: 0; }
.dim-line::after { right: 0; border-left: 9px solid var(--graphite); border-right: 0; }
.dim::before, .dim::after { /* extension lines */
  content: ""; position: absolute; top: 0; height: 30px; width: 1px; background: rgba(35, 38, 43, .55);
}
.dim::before { left: 0; } .dim::after { right: 0; }
.dim-text {
  position: relative; background: var(--paper); padding: 0 8px;
  font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.dim:hover .dim-text, .dim[aria-expanded="true"] .dim-text { color: var(--orange-ink); }
.js .dim-name { opacity: 0; transform: scaleX(.2); transition: opacity .4s 700ms, transform .6s 700ms var(--ease-out); }
.js .is-in .dim-name { opacity: 1; transform: none; }

.phonetic { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; }
.phonetic li { display: flex; align-items: center; }
.phonetic li + li::before { content: "·"; color: var(--ink-3); margin: 0 6px; }
.phonetic button {
  background: none; border: 0; padding: 6px 2px; cursor: pointer; letter-spacing: .08em; text-transform: uppercase;
  font: 500 12.5px/1 var(--mono); color: var(--ink-2);
  border-bottom: 1px dotted transparent;
}
.phonetic button b { color: var(--graphite); font-weight: 700; }
.phonetic button:hover, .phonetic button.is-on { color: var(--orange-ink); border-bottom-color: currentColor; }
.phonetic button.is-on b { color: var(--orange-ink); }

.lede { font-size: 1.12em; line-height: 1.5; margin: 22px 0 0; max-width: 34em; }
.lede strong { font-weight: 700; }
.from { margin: 14px 0 0; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 18px;
  font: 600 16px/1.1 var(--font); letter-spacing: -.005em; text-decoration: none;
  border: 1.5px solid var(--graphite); border-radius: 2px; background: var(--paper); cursor: pointer;
  box-shadow: 3px 3px 0 var(--graphite);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--graphite); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--graphite); }
.btn-primary { background: var(--orange); color: var(--graphite); }
.btn-primary svg { stroke-width: 2; }
.btn-link { border: 0; box-shadow: none; background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; padding-inline: 8px; }
.btn-link:hover, .btn-link:active { transform: none; box-shadow: none; color: var(--orange-ink); }

.hero-drawing { position: relative; margin: 0; }
.hero-svg { width: 100%; height: auto; overflow: visible; }
.hero-hit { position: absolute; left: 15%; top: 10%; width: 70%; height: 66%; background: none; border: 0; cursor: pointer; border-radius: 50%; }
.hero-drawing figcaption { margin-top: 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.narrow-only { display: none; }
.link-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--orange-ink); text-decoration: underline dotted; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .lede { font-size: 17px; margin-top: 10px; }
  .from { margin-top: 10px; }
  .cta { flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
  .cta .btn { padding-inline: 14px; font-size: 15.5px; min-height: 48px; }
  .wide-only { display: none; }
  .narrow-only { display: inline !important; }
  .hero-drawing figcaption { margin-top: 0; font-size: 10.5px; }
  .hero-insets { display: none; }
}

/* svg drawing styles (shared) */
.pp-face { stroke: var(--graphite); stroke-width: 1.4; stroke-linejoin: round; }
.pp-shadow { fill: var(--graphite); }
.pp-crease { stroke: var(--graphite); stroke-width: .8; opacity: .55; }
.pp-crease.valley { stroke-dasharray: 7 4; }
.pp-crease.mountain { stroke-dasharray: 10 3 2 3; }
.dwg-line { stroke: var(--graphite); stroke-width: 1; fill: none; }
.dwg-thin { stroke: var(--graphite); stroke-width: .75; fill: none; opacity: .6; }
.dwg-chain { stroke: var(--graphite); stroke-width: .8; fill: none; stroke-dasharray: 12 3 2 3; opacity: .55; }
.dwg-path { stroke: var(--orange); stroke-width: 1.4; fill: none; stroke-dasharray: 5 5; }
.dwg-arrow { fill: var(--graphite); }
.dwg-text { font: 600 11px var(--mono); fill: var(--graphite); letter-spacing: .08em; text-transform: uppercase; }
.dwg-text.small { font-size: 10px; font-weight: 500; fill: var(--ink-3); }
.dwg-label-bg { fill: var(--paper); }
.balloon circle { fill: var(--paper); stroke: var(--graphite); stroke-width: 1; }
.balloon text { font: 700 11px var(--mono); fill: var(--graphite); text-anchor: middle; dominant-baseline: central; }
.balloon { cursor: pointer; }
.balloon:hover circle, .balloon:focus-visible circle { stroke: var(--orange); fill: #fff; }

/* title block */
.title-block {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px solid var(--graphite); background: var(--card);
  box-shadow: 4px 4px 0 rgba(35, 38, 43, .1);
}
.tb { padding: 8px 10px 9px; border-right: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); min-width: 0; }
.tb-k { display: block; font: 600 9.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.tb-v { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.tb-v.mono { font-size: 13.5px; }
.tb-title { grid-column: 1 / -1; }
.tb-title .tb-v { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tb-wide { grid-column: 1 / -1; }
.tb-proj { display: flex; align-items: center; gap: 10px; }
.tb-proj svg { width: 46px; height: 22px; fill: none; stroke: var(--graphite); stroke-width: 1.2; flex: none; }
.tb-flag { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.tb-flag svg { width: 26px; height: 26px; flex: none; border: 1px solid var(--graphite); }
@media (min-width: 700px) {
  .title-block { grid-template-columns: 2.2fr 1fr 1fr 1fr; }
  .tb-title { grid-column: span 2; }
  .tb-wide { grid-column: auto; }
}
@media (max-width: 699px) {
  .title-block .tb:nth-child(odd) { border-right: 0; }
  .title-block .tb:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 700px) {
  .title-block .tb.r-end { border-right: 0; }
  .title-block .tb:nth-last-child(-n+4) { border-bottom: 0; }
}

/* ---------------------------------------------------------------- tunnel */
.tunnel { display: grid; gap: 18px; }
@media (min-width: 980px) { .tunnel { grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; } }

.tunnel-stage {
  position: relative; border: 1.5px solid var(--graphite); background: #FBFAF6;
  aspect-ratio: 1 / 1.04; overflow: hidden;
  box-shadow: 4px 4px 0 rgba(35, 38, 43, .12);
}
@media (min-width: 560px) { .tunnel-stage { aspect-ratio: 16 / 11; } }
@media (min-width: 980px) { .tunnel-stage { aspect-ratio: auto; height: min(600px, 72vh); } }
.tunnel-bg, .tunnel-bg > div { position: absolute; inset: 0; }
.bg-sky {
  background:
    linear-gradient(180deg, rgba(91, 164, 214, .2), rgba(91, 164, 214, .04) 75%),
    linear-gradient(rgba(35, 38, 43, .06) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(35, 38, 43, .06) 1px, transparent 1px) 0 0 / 24px 100%;
}
.bg-water {
  opacity: 0; transition: opacity 1s ease;
  background:
    radial-gradient(120% 90% at 30% 40%, rgba(91, 164, 214, .26), rgba(20, 54, 92, .16)),
    linear-gradient(rgba(20, 54, 92, .06) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(20, 54, 92, .06) 1px, transparent 1px) 0 0 / 24px 100%;
}
.tunnel-stage[data-mode="sail"] .bg-water { opacity: 1; }
.tunnel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.tunnel-canvas.is-dragging { cursor: grabbing; }
.tunnel-canvas:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }

.tunnel-hud { position: absolute; inset: 0; pointer-events: none; }
.tunnel-hud p { margin: 0; position: absolute; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hud-tl { left: 14px; top: 10px; color: var(--ink-3); }
@media (max-width: 559px) { .hud-tl .hud-k { display: none; } .hud-tl, .hud-wind { font-size: 10px !important; } }
.hud-tl .hud-k { color: var(--graphite); }
.hud-wind { right: 12px; top: 10px; display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.hud-wind svg { width: 34px; height: 10px; fill: none; stroke: var(--graphite); stroke-width: 1.3; }
.lamp {
  left: 12px; bottom: 10px; display: flex; align-items: center; gap: 7px;
  padding: 6px 9px; border: 1px solid var(--graphite); background: rgba(255, 253, 248, .9);
  font-size: 11px !important; color: var(--graphite);
}
.lamp-dot { width: 9px; height: 9px; border-radius: 50%; background: #7DBE8E; box-shadow: 0 0 0 2px rgba(125, 190, 142, .25); }
.lamp[data-state="up"] { background: var(--orange); border-color: var(--graphite); }
.lamp[data-state="up"] .lamp-dot { background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.lamp[data-state="stall"] {
  background: repeating-linear-gradient(-45deg, var(--orange) 0 7px, #FFD7C7 7px 14px);
  animation: lamp-flash .8s steps(2, jump-none) infinite;
}
.lamp[data-state="stall"] .lamp-dot { background: var(--graphite); box-shadow: none; }
.lamp[data-state="stall"] span:last-child { background: var(--card); padding: 1px 4px; }
.lamp[data-state="low"] .lamp-dot { background: #E2B33C; box-shadow: 0 0 0 2px rgba(226, 179, 60, .25); }
.lamp[data-state="off"] .lamp-dot { background: #B9BDC2; box-shadow: none; }
@keyframes lamp-flash { 50% { filter: brightness(1.12) saturate(.85); } }

.tunnel-caption {
  position: absolute; right: 12px; bottom: 10px; max-width: 46%; margin: 0;
  font-size: 10.5px; line-height: 1.4; letter-spacing: .02em; color: var(--ink-2); text-align: right;
  background: rgba(251, 250, 246, .82); padding: 4px 6px;
}
.dot-key { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 6px; vertical-align: 1px; }
@media (max-width: 559px) {
  .tunnel-caption { position: static; max-width: none; text-align: left; background: none; padding: 8px 0 0; }
  .tunnel-stage { overflow: visible; }
  .tunnel-stage .tunnel-caption { position: absolute; top: 100%; left: 0; right: 0; }
  .tunnel { row-gap: 52px; }
}

.tunnel-panel { display: grid; gap: 16px; min-width: 0; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--graphite); background: var(--card); padding: 3px; }
.seg-btn {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 16px;
  transition: color .3s;
}
.seg-btn svg { width: 32px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.seg-btn[data-mode="wing"] svg path { fill: rgba(35, 38, 43, .12); }
.seg-btn[aria-checked="true"] { color: var(--graphite); }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--orange); transition: transform .45s var(--ease-spring);
}
.seg[data-mode="sail"] .seg-thumb { transform: translateX(100%); }

.readouts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1.5px solid var(--graphite); background: var(--card); }
.ro { padding: 10px 12px 11px; border-bottom: 1px solid var(--rule); }
.ro:nth-child(odd) { border-right: 1px solid var(--rule); }
.ro:nth-last-child(-n+2) { border-bottom: 0; }
.ro dt { font: 600 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--graphite); }
.ro-sub { display: block; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; text-transform: none; font-size: 10.5px; margin-top: 2px; }
.ro dd { margin: 6px 0 0; font: 600 26px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ro dd.is-hot { color: var(--orange-ink); }

.meter-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.meter-bar { position: relative; height: 14px; border: 1.5px solid var(--graphite); background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(35, 38, 43, .18) calc(10% - 1px) 10%), var(--card); }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--graphite); transition: width .12s linear, background .3s; }
.meter.is-up .meter-fill { background: var(--orange); }
.meter-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--orange); left: 66.7%; }
.meter-mark::after { content: "W"; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font: 700 10px var(--mono); color: var(--orange-ink); }
.meter[data-mark="Best"] .meter-mark::after { content: "Best"; }
.meter-note { margin: 7px 0 0; font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }

.ctl label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 15px; }
.ctl output { font: 600 14px var(--mono); font-variant-numeric: tabular-nums; }
.ctl-ends { display: flex; justify-content: space-between; margin: 2px 0 0; font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 2px 0 0; background: transparent; cursor: pointer;
  touch-action: manipulation;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--graphite);
  background-image: repeating-linear-gradient(90deg, var(--graphite) 0 1px, transparent 1px 10%);
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--graphite); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--graphite);
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--graphite); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--graphite), 0 0 0 5px rgba(255, 90, 31, .35); }

.tunnel-log { margin: 0; padding: 9px 11px; background: var(--graphite); color: #E8E6E0; font-size: 12.5px; line-height: 1.4; min-height: 40px; }
.tunnel-log b { color: #FF8A5C; font-weight: 600; }

.maths { border: 1.5px solid var(--graphite); background: var(--card); }
.maths summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  padding: 12px 14px; font-weight: 600;
}
.maths summary::-webkit-details-marker { display: none; }
.maths summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.maths[open] summary svg { transform: rotate(180deg); }
.maths-body { padding: 0 14px 14px; font-size: 14px; line-height: 1.5; }
.maths-body p { margin: 10px 0 0; }
.maths-body .eq { display: block; font: 500 13px/1.5 var(--mono); padding: 6px 8px; background: var(--paper); border-left: 2px solid var(--orange); margin-top: 6px; overflow-wrap: anywhere; }
.maths-body .eq b { color: var(--orange-ink); font-weight: 600; }
.maths-body .k { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 12px; }

/* ---------------------------------------------------------------- specs */
.spec-wrap { border: 1.5px solid var(--graphite); background: var(--card); box-shadow: 4px 4px 0 rgba(35, 38, 43, .1); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table thead th {
  text-align: left; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding: 10px 14px; border-bottom: 1.5px solid var(--graphite); background: var(--paper);
}
.spec-row { cursor: pointer; }
.spec-row td { padding: 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-row:hover td { background: rgba(255, 90, 31, .04); }
.spec-no { width: 56px; }
.spec-no span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--graphite);
  font: 700 11px var(--mono);
}
.spec-param { font-weight: 700; font-size: 1.05em; white-space: nowrap; }
.spec-param button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.spec-param button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.spec-param .plus { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--graphite); stroke-width: 1.6; transition: transform .25s; }
.spec-row.is-open .plus { transform: rotate(45deg); }
.spec-value { color: var(--graphite); }
.spec-tol { display: inline-block; margin-left: 6px; font: 600 12px var(--mono); color: var(--ink-3); }
.spec-result { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.spec-stamp { width: 86px; text-align: right; }
.stamp {
  display: inline-block; font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--orange-ink);
  border: 2px solid var(--orange); padding: 5px 7px 4px; transform: rotate(-6deg); border-radius: 2px;
  opacity: 0;
}
.stamp.is-down { animation: stamp .42s var(--ease-out) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.1); } 70% { opacity: 1; transform: rotate(-5deg) scale(.94); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
.spec-src td { padding: 0 14px; border-bottom: 1px solid var(--rule); }
.spec-src .src-in { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.spec-src .src-in > div { min-height: 0; }
.spec-src.is-open .src-in { grid-template-rows: 1fr; }
.spec-src blockquote { margin: 0 0 14px; padding: 8px 0 0 14px; border-left: 2px solid var(--orange); font-size: .98em; color: var(--ink-2); }
.spec-src cite { display: block; font: 600 10.5px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.spec-row:last-of-type td, .spec-src:last-child td { border-bottom: 0; }
@media (max-width: 719px) {
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody { display: block; }
  .spec-row { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "no param stamp" "no value value" "no result result"; padding: 14px 12px 12px; border-bottom: 1px solid var(--rule); }
  .spec-row td { display: block; padding: 0; border: 0; }
  .spec-row td.spec-no { grid-area: no; width: auto; }
  .spec-row td.spec-param { grid-area: param; white-space: normal; align-self: center; }
  .spec-row td.spec-value { grid-area: value; margin-top: 6px; }
  .spec-row td.spec-result { grid-area: result; margin-top: 4px; font-size: 13px; }
  .spec-row td.spec-stamp { grid-area: stamp; width: auto; align-self: center; }
  .spec-src { display: block; border-bottom: 1px solid var(--rule); }
  .spec-src td { display: block; padding: 0 12px 0 52px; border: 0; }
  .spec-src:not(.is-open) { border-bottom: 0; }
}
.margin-eq { display: none; }
@media (min-width: 1240px) {
  .margin-eq { display: block; position: absolute; right: -6px; top: 40px; writing-mode: vertical-rl; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; margin: 0; }
}

/* ---------------------------------------------------------------- build log */
.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1.5px; background: var(--graphite); }
.log-item { position: relative; padding: 0 0 46px 40px; }
.log-item::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--graphite);
}
.log-item.is-major::before { background: var(--orange); }
.log-item.is-next::before { border-style: dashed; }
.log-item.is-next { padding-bottom: 8px; }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.ver { font-weight: 700; color: var(--graphite); background: var(--card); border: 1px solid var(--graphite); padding: 3px 7px; letter-spacing: .02em; }
.is-major .ver { background: var(--graphite); color: var(--paper); }
.is-next .ver { border-style: dashed; }
.hash { color: var(--ink-3); }
.log-title { margin: 10px 0 0; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.log-note { margin: 6px 0 0; color: var(--ink-2); max-width: 40ch; }
.log-item.is-next .log-title { color: var(--ink-2); }

.print {
  position: relative; margin: 30px 0 0; padding: 0; width: min(100%, 420px);
}
.print-btn { display: block; width: 100%; padding: 10px 10px 12px; border: 0; background: #fff; cursor: zoom-in; box-shadow: 0 1px 0 rgba(35, 38, 43, .15), 0 14px 28px -16px rgba(35, 38, 43, .45); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease-spring); }
.print-btn:hover { transform: rotate(0deg) scale(1.01); }
.print img { width: 100%; height: auto; background: var(--paper-2); }
.print-cap { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-2); text-align: left; letter-spacing: .02em; }
.print-cap .detail { font-weight: 700; color: var(--graphite); white-space: nowrap; }
.tape { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(240, 226, 170, .82); box-shadow: inset 0 0 0 1px rgba(150, 130, 60, .2); z-index: 2; pointer-events: none; }
.tape.tl { left: -8px; top: -8px; } .tape.tr { right: -8px; top: -8px; } .tape.bl { left: -8px; bottom: -8px; } .tape.br { right: -8px; bottom: -8px; }
.print-dim { position: absolute; left: 0; right: 0; top: -22px; height: 14px; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.print-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(35, 38, 43, .6); }
.print-dim span { position: relative; background: var(--paper); padding: 0 6px; font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.print-dim i { position: absolute; top: 50%; width: 0; height: 0; border: 3.5px solid transparent; margin-top: -3.5px; }
.print-dim i:first-child { left: 0; border-right: 7px solid var(--graphite); border-left: 0; }
.print-dim i:last-child { right: 0; border-left: 7px solid var(--graphite); border-right: 0; }
@media (min-width: 900px) {
  .log::before { left: 171px; }
  .log-item { display: grid; grid-template-columns: 140px 1fr; column-gap: 72px; padding: 0 0 70px 0; }
  .log-item::before { left: 164px; }
  .log-meta { flex-direction: column; align-items: flex-end; text-align: right; grid-row: 1 / span 3; padding-top: 2px; }
  .log-title { margin-top: 0; }
  .log-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px; align-items: start; }
  .log-body.no-print { grid-template-columns: 1fr; }
  .log-body { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px; }
  .print { margin-top: 26px; width: 100%; max-width: 460px; }
  .print.is-portrait { max-width: 330px; }
}

/* ---------------------------------------------------------------- BOM */
.bom-wrap { border: 1.5px solid var(--graphite); background: var(--card); box-shadow: 4px 4px 0 rgba(35, 38, 43, .1); }
.bom-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bom-table th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1.5px solid var(--graphite); background: var(--paper); }
.bom-table td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bom-table tr:last-child td { border-bottom: 0; }
.bom-table .num { font: 600 13px var(--mono); color: var(--ink-3); width: 54px; }
.bom-table .qty { font: 700 14px var(--mono); width: 50px; }
.bom-table .desc { font-weight: 600; }
.bom-table .desc small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.bom-table .yr, .bom-table .pn { font: 500 13px var(--mono); color: var(--ink-2); white-space: nowrap; }
.bom-row { opacity: 1; }
@media (max-width: 639px) {
  .bom-table thead { display: none; }
  .bom-table, .bom-table tbody, .bom-table tr { display: block; }
  .bom-table tr { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "num desc qty" "num meta meta"; padding: 12px; border-bottom: 1px solid var(--rule); }
  .bom-table tr:last-child { border-bottom: 0; }
  .bom-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .bom-table .num { grid-area: num; }
  .bom-table .desc { grid-area: desc; }
  .bom-table .qty { grid-area: qty; }
  .bom-table .qty::before { content: "× "; color: var(--ink-3); font-weight: 500; }
  .bom-table .yr { grid-area: meta; margin-top: 4px; }
  .bom-table .pn { display: none; }
}

/* ---------------------------------------------------------------- flight plan */
.plan { position: relative; }
.plan-svg { width: 100%; height: auto; overflow: visible; }
.plan-svg .route-bg { stroke: rgba(35, 38, 43, .2); stroke-width: 1.2; fill: none; stroke-dasharray: 3 6; }
.plan-svg .route { stroke: var(--orange); stroke-width: 2.6; fill: none; stroke-linecap: round; }
.plan-svg .wpt { fill: var(--paper); stroke: var(--graphite); stroke-width: 1.5; }
.plan-svg .wpt.done { fill: var(--graphite); }
.plan-svg .wpt-code { font: 700 13px var(--mono); fill: var(--graphite); letter-spacing: .06em; }
.plan-svg .wpt-label { font: 600 16px var(--font); fill: var(--graphite); }
.plan-svg .wpt-note { font: 400 13px var(--font); fill: var(--ink-2); }
.plan-svg .alt { font: 500 10px var(--mono); fill: var(--ink-3); letter-spacing: .08em; }
.plan-svg .axis { stroke: var(--graphite); stroke-width: 1; fill: none; }
.plan-svg .tick { stroke: rgba(35, 38, 43, .4); stroke-width: 1; }
.plan-list { margin: 0; padding: 0; list-style: none; }
.js .plan-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plan-list li { margin: 0 0 10px; }

/* ---------------------------------------------------------------- letter */
.sheet-letter { padding-bottom: 90px; }
.letter-zone { position: relative; max-width: 680px; margin: 0 auto; }
.letter-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1.1; margin: 0 auto;
}
@media (min-width: 700px) { .letter-stage { aspect-ratio: 1 / .82; } }
.landing { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); opacity: .55; }
.landing svg { width: 100%; height: auto; fill: none; stroke: var(--graphite); stroke-width: .8; stroke-dasharray: 3 3; }
.letter-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.letter-svg .trail { stroke: var(--orange); stroke-width: 1.4; fill: none; stroke-dasharray: 5 6; stroke-linecap: round; }
.letter-svg .holding { stroke: rgba(35, 38, 43, .45); stroke-width: 1; fill: none; stroke-dasharray: 2 5; }
.stage-label {
  position: absolute; left: 0; right: 0; bottom: 4%; margin: 0; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  transition: opacity .4s; opacity: 0;
}
.stage-label.is-on { opacity: 1; }
.stage-hit { position: absolute; left: 20%; right: 20%; top: 18%; bottom: 18%; background: none; border: 0; cursor: pointer; }
.stage-hit[hidden] { display: none; }
.letter-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin-top: 10px; transition: opacity .3s; }
.letter-zone.is-open .letter-stage, .letter-zone.is-open .letter-actions { display: none; }
.letter-zone.is-unfolding .letter-actions, .letter-zone.is-unfolding .stage-label { opacity: 0; pointer-events: none; }

.letter-card {
  position: relative; background: var(--card); color: var(--graphite);
  padding: 22px 22px 34px;
  box-shadow: 0 1px 0 rgba(35, 38, 43, .08), 0 24px 48px -24px rgba(35, 38, 43, .45), 0 0 0 1px rgba(35, 38, 43, .12);
  outline: none;
}
@media (min-width: 700px) { .letter-card { padding: 34px 54px 52px; } }
.letter-card.is-arriving { animation: card-in .5s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
.letter-creases { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.letter-creases line { stroke: rgba(35, 38, 43, .075); stroke-width: 1; }
.letter-creases .shade { fill: rgba(35, 38, 43, .016); }
.memo-head {
  position: relative; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 1.5px solid var(--graphite); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.memo-head b { color: var(--graphite); font-weight: 700; }
.memo-head span:first-child { color: var(--orange-ink); font-weight: 700; }
.letter-body { position: relative; }
.letter-body .greet { font-size: clamp(26px, 6.8vw, 34px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 16px; line-height: 1.15; }
.letter-body p { font-size: 18.5px; line-height: 1.68; margin: 0 0 1em; max-width: 62ch; hanging-punctuation: first; }
@media (min-width: 700px) { .letter-body p { font-size: 19.5px; } }
.letter-body .signoff { margin: 28px 0 0; }
.letter-body .sig { display: block; position: relative; width: max-content; font-size: 40px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-top: 4px; }
.letter-body .sig svg { position: absolute; left: -4px; right: -10px; bottom: -10px; width: calc(100% + 18px); height: 16px; overflow: visible; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; }
.letter-body .sig path { stroke-dasharray: 220; stroke-dashoffset: 220; }
.is-revealed .letter-body .sig path { transition: stroke-dashoffset 1s .5s var(--ease-out); stroke-dashoffset: 0; }
.js .letter-card .letter-body > * { opacity: 0; transform: translateY(8px); }
.js .letter-card.is-revealed .letter-body > * { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.letter-attach { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.letter-attach button { border: 0; padding: 6px; background: #fff; box-shadow: 0 8px 18px -10px rgba(35, 38, 43, .4); cursor: zoom-in; }
.letter-attach img { width: 120px; height: auto; }
.approved {
  position: absolute; right: 18px; bottom: 16px; margin: 0;
  transform: rotate(-8deg); opacity: 0;
}
.approved span { display: inline-block; border: 2px solid var(--orange); outline: 1px solid var(--orange); outline-offset: 2px; padding: 5px 9px 4px; color: var(--orange-ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 253, 248, .85); }
.is-revealed .approved { animation: stamp .45s 1.6s var(--ease-out) forwards; }

.letter-pending { text-align: center; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; padding: 56px 0 calc(60px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--graphite); background: rgba(237, 234, 226, .7); }
.foot .sheet-inner { display: grid; gap: 30px; }
@media (min-width: 900px) { .foot .sheet-inner { grid-template-columns: 1.2fr 1fr; } .foot-end { grid-column: 1 / -1; } }
.notes h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.notes ol { margin: 0; padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.notes li { margin-bottom: 6px; }
.notes li::marker { font: 600 12px var(--mono); color: var(--graphite); }
.rev-table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--graphite); background: var(--card); font-size: 14px; }
.rev-table caption { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.rev-table th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1.5px solid var(--graphite); }
.rev-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.rev-table td:first-child { font: 700 13px var(--mono); }
.rev-table td:last-child { font: 500 12.5px var(--mono); color: var(--ink-2); white-space: nowrap; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.end { margin: 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.launch { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px 8px 10px; border: 1.5px solid var(--graphite); background: var(--card); cursor: pointer; font-weight: 600; box-shadow: 3px 3px 0 var(--graphite); }
.launch svg { width: 40px; height: 26px; fill: #fff; stroke: var(--graphite); stroke-width: 1.6; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.launch:hover svg { transform: translate(3px, -3px) rotate(-6deg); }
.launch.is-flying svg { animation: launch 1s var(--ease-out) forwards; }
@keyframes launch { 30% { transform: translate(-6px, 4px) rotate(4deg); } 100% { transform: translate(260px, -420px) rotate(-30deg) scale(.6); opacity: 0; } }

/* ---------------------------------------------------------------- notes / callouts */
.note-pop {
  position: absolute; z-index: 60; max-width: min(300px, calc(100vw - 24px));
  background: var(--graphite); color: #F1EFEA; padding: 10px 12px; font-size: 14px; line-height: 1.45;
  box-shadow: 4px 4px 0 rgba(255, 90, 31, .9);
  animation: pop .22s var(--ease-out);
}
.note-pop p { margin: 0; }
.note-pop::before { content: ""; position: absolute; left: var(--ax, 20px); width: 10px; height: 10px; background: var(--graphite); transform: rotate(45deg); }
.note-pop[data-side="below"]::before { top: -5px; }
.note-pop[data-side="above"]::before { bottom: -5px; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* ---------------------------------------------------------------- lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(24, 26, 29, .94); color: #EEE; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(24, 26, 29, .6); }
.lightbox figure { margin: 0; padding: 64px 14px 24px; display: grid; justify-items: center; gap: 12px; max-height: 100dvh; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100dvh - 140px); width: auto; height: auto; box-shadow: 0 0 0 8px #fff; background: #333; }
.lightbox figcaption { font-size: 12.5px; letter-spacing: .05em; text-align: center; color: #D8D6D0; max-width: 60ch; }
.lb-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; color: var(--graphite); }
.lb-close svg { width: 12px !important; height: 12px !important; }

/* ---------------------------------------------------------------- reveal on scroll */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .js .rv { transform: none; }
  .js .name .ch { clip-path: none; }
  .lamp[data-state="stall"] { animation: none; }
  .tunnel-caption { display: none; }
}
