:root {
  --ink: #eceef0;
  --ink-2: #b9c0c7;
  --ink-3: #7f8892;
  --graphite: 20, 22, 25;
  --panel: rgba(var(--graphite), 0.58);
  --panel-solid: rgb(var(--graphite));
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --steel: #c9ced4;
  --lox: #9fd3ff;
  --methane: #ffc58a;
  --flame: #ffae66;
  --live: #ff6a4a;
  --r-panel: 14px;
  --r-btn: 9px;
  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gut: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d0f12; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: 14px; line-height: 1.45; font-feature-settings: 'tnum' 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--lox); outline-offset: 2px; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.ui { position: fixed; z-index: 5; }
.panel {
  background: var(--panel);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 40px rgba(0, 0, 0, 0.25);
}
[hidden] { display: none !important; }

/* wordmark: wide, livery-like */
.wordmark {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 0.9;
}

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 60%, #171a1e 0%, #0b0c0e 70%); transition: opacity 0.9s ease, visibility 0.9s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(420px, 80vw); }
#loader .wordmark { font-size: 44px; color: var(--steel); }
#loader .bar { margin-top: 26px; height: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--steel), #fff); transition: width 0.4s ease; }
#loader-msg { margin-top: 12px; color: var(--ink-3); font-size: 13px; }

/* ---------- brand ---------- */
#brand { top: calc(var(--gut) + env(safe-area-inset-top)); left: calc(var(--gut) + env(safe-area-inset-left)); display: flex; align-items: baseline; gap: 16px; pointer-events: auto; transition: opacity 0.6s; }
#brand .wordmark { font-size: 20px; color: var(--ink); padding: 0; }
#brand .place { display: flex; gap: 8px; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
#brand .place .tz { color: var(--ink-3); }
body.mode-model #brand { opacity: 0; pointer-events: none; }

/* ---------- intro ---------- */
#intro { left: calc(var(--gut) * 2.2); bottom: calc(var(--gut) * 2.6 + env(safe-area-inset-bottom)); max-width: 560px; transition: opacity 0.8s, transform 0.8s; }
#intro .big { font-size: clamp(56px, 9vw, 128px); margin: 0 0 18px -4px; color: #f3f4f5; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
#intro .lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
#intro .hint { margin: 18px 0 0; color: var(--ink-3); font-size: 13px; }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body:not(.mode-model) #intro { opacity: 0; transform: translateY(16px); pointer-events: none; }
body.loading #intro { opacity: 0; }

.btn { height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; transition: background 0.2s, border-color 0.2s, transform 0.1s; }
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #111316; border-color: var(--ink); }
.btn.primary:hover { background: #fff; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.ghost { background: transparent; }

/* ---------- mode rail ---------- */
#modes { left: calc(var(--gut) + env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; padding: 6px; gap: 2px; transition: opacity 0.5s; }
#modes button, #tools button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 10px; border-radius: var(--r-btn); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
#modes button:hover, #tools button:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
#modes button.on { background: rgba(255, 255, 255, 0.13); color: #fff; }
#modes svg, #tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.mode-model #modes, body.mode-dive #modes, body.loading #modes { opacity: 0; pointer-events: none; }

/* ---------- tools ---------- */
#tools { right: calc(var(--gut) + env(safe-area-inset-right)); top: calc(var(--gut) + env(safe-area-inset-top)); display: flex; padding: 5px; gap: 2px; transition: opacity 0.5s; }
#tools button[aria-pressed='true'] { color: #fff; background: rgba(159, 211, 255, 0.16); }
#tools button[aria-pressed='true'] svg { stroke: var(--lox); }
body.mode-dive #tools, body.loading #tools { opacity: 0; pointer-events: none; }
body.mode-model #t-views { display: none; }

/* ---------- area switch: build site / launch site ---------- */
#areas { left: 50%; top: calc(var(--gut) + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; padding: 5px; gap: 2px; transition: opacity 0.5s; }
#areas button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: var(--r-btn); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
#areas button:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
#areas button.on { background: rgba(255, 255, 255, 0.13); color: #fff; }
#areas svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body:not(.mode-model):not(.mode-explore) #areas, body.loading #areas { opacity: 0; pointer-events: none; }
@media (max-width: 1400px) {
  #areas { top: calc(var(--gut) + 58px + env(safe-area-inset-top)); }
}
@media (min-width: 1160px) and (max-width: 1400px) {
  body.mode-model #areas { top: calc(var(--gut) + env(safe-area-inset-top)); }
}

#pop { right: calc(var(--gut) + env(safe-area-inset-right)); top: calc(var(--gut) + 62px + env(safe-area-inset-top)); width: 260px; padding: 8px; max-height: 70vh; overflow: auto; }
#pop h3 { margin: 6px 8px 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.02em; }
#pop button.item { display: flex; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); gap: 10px; justify-content: space-between; }
#pop button.item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
#pop button.item small { color: var(--ink-3); }
#pop button.item.on { color: #fff; background: rgba(255, 255, 255, 0.1); }
#pop .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- time-of-day bar ---------- */
#timebar { left: 50%; bottom: calc(var(--gut) + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 16px; width: min(520px, calc(100vw - 2 * var(--gut))); }
#timebar label { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
#timebar output { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 44px; text-align: right; }
input[type='range'] { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; }
input[type='range']::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #233046, #8db3d6 25%, #f5d7a6 50%, #8db3d6 75%, #233046); }
input[type='range']::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #233046, #8db3d6 25%, #f5d7a6 50%, #8db3d6 75%, #233046); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- launch timeline ---------- */
#timeline { left: calc(var(--gut) + env(safe-area-inset-left)); right: calc(var(--gut) + env(safe-area-inset-right)); bottom: calc(var(--gut) + env(safe-area-inset-bottom)); padding: 10px 14px; }
.tl-row { display: flex; align-items: center; gap: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #111; flex: none; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.icon-btn .i-play { display: none; }
.icon-btn.paused .i-play { display: block; stroke: none; }
.icon-btn.paused .i-pause { display: none; }
.tl-clock { min-width: 128px; }
#tl-t { font-size: 22px; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; line-height: 1.1; }
#tl-phase { color: var(--ink-3); font-size: 12px; }
#tl-track { position: relative; flex: 1; height: 44px; cursor: pointer; touch-action: none; }
#tl-track::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
#tl-fill { position: absolute; left: 0; top: 13px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--lox), #fff 70%, var(--flame)); width: 0; }
#tl-head { position: absolute; top: 7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14); left: 0; }
#tl-chapters { position: absolute; inset: 0; }
#tl-chapters .ch { position: absolute; top: 0; height: 100%; border-left: 1px solid rgba(255, 255, 255, 0.18); padding: 24px 0 0 6px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
#tl-chapters .ch.on { color: var(--ink); }
#tl-chapters .ch:hover { color: #fff; }
.tl-speed button, .tl-camtoggle { height: 34px; min-width: 46px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line-2); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tl-camtoggle[aria-pressed='true'] { color: #fff; border-color: rgba(159, 211, 255, 0.5); background: rgba(159, 211, 255, 0.12); }

/* ---------- telemetry ---------- */
#telemetry { right: calc(var(--gut) + env(safe-area-inset-right)); top: calc(var(--gut) + 70px + env(safe-area-inset-top)); width: 292px; padding: 14px 16px 12px; font-variant-numeric: tabular-nums; }
.tm-head { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-bottom: 10px; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.tm-grid label, .tm-block label { display: block; font-size: 11px; color: var(--ink-3); }
.tm-grid b { font-size: 21px; font-weight: 700; font-stretch: 105%; }
.tm-grid small { color: var(--ink-3); margin-left: 3px; font-size: 11px; }
.tm-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.tm-block svg { width: 74px; height: 74px; display: block; margin: 6px 0 8px; }
.tm-block svg circle { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; transition: fill 0.12s; }
.tm-block svg circle.lit { fill: #fff3e0; stroke: var(--flame); filter: drop-shadow(0 0 2px var(--flame)); }
.prop { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.prop span { width: 26px; }
.prop i { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--lox) var(--v, 0%), rgba(255, 255, 255, 0.1) var(--v, 0%)); }
.prop.ch4 i { background: linear-gradient(90deg, var(--methane) var(--v, 0%), rgba(255, 255, 255, 0.1) var(--v, 0%)); }
#tm-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; }

/* ---------- info card ---------- */
#card { right: calc(var(--gut) + env(safe-area-inset-right)); bottom: calc(var(--gut) + 74px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 2 * var(--gut))); padding: 18px 18px 16px; }
body.mode-launch #card { bottom: calc(var(--gut) + 88px); }
.card-close { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; font-size: 22px; color: var(--ink-3); border-radius: 8px; }
.card-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.card-kicker { color: var(--ink-3); font-size: 12px; }
#card h2 { margin: 2px 0 8px; font-size: 22px; font-stretch: 110%; font-weight: 700; line-height: 1.15; }
#card p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.5; }
#card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
#card dt { color: var(--ink-3); }
#card dd { margin: 0; }
.card-actions { display: flex; gap: 8px; }

/* ---------- tour caption ---------- */
#tour-cap { left: 50%; bottom: calc(var(--gut) + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(620px, calc(100vw - 2 * var(--gut))); padding: 18px 22px 16px; background: rgba(var(--graphite), 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--r-panel); }
.tour-step { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
#tour-cap h2 { margin: 2px 0 6px; font-size: 24px; font-stretch: 112%; font-weight: 700; }
#tour-cap p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.5; max-width: 62ch; }
.tour-nav { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- labels ---------- */
#labels { inset: 0; pointer-events: none; z-index: 4; }
.lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: opacity 0.25s; will-change: transform; }
.lbl .pill { padding: 4px 10px 5px; border-radius: 999px; background: rgba(var(--graphite), 0.7); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.lbl .stem { width: 1px; height: 18px; background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1)); }
.lbl .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.lbl:hover .pill { background: #fff; color: #111; }
.lbl.inner .pill { border-color: rgba(159, 211, 255, 0.45); }
.lbl.inner .dot { background: var(--lox); }

/* ---------- drone HUD ---------- */
#drone-hud { inset: 0; pointer-events: none; }
.dh-reticle { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; }
.dh-reticle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #fff; border-radius: 50%; }
.dh-read { position: absolute; left: 50%; bottom: calc(var(--gut) + 8px); transform: translateX(-50%); display: flex; gap: 22px; padding: 10px 18px; border-radius: 999px; background: rgba(var(--graphite), 0.55); backdrop-filter: blur(10px); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dh-read b { color: var(--ink); font-size: 15px; font-weight: 700; margin: 0 2px; }
.dh-help { position: absolute; left: 50%; top: calc(var(--gut) + 64px); transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; background: rgba(var(--graphite), 0.55); color: var(--ink-2); font-size: 13px; transition: opacity 0.6s; text-align: center; max-width: 90vw; }
.dh-sticks { display: none; }
.dh-sticks .stick { position: absolute; bottom: 90px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.15); pointer-events: auto; touch-action: none; }
.dh-sticks .stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
#stick-l { left: 28px; }
#stick-r { right: 28px; }
body.touch .dh-sticks { display: block; }

/* ---------- recording + toast ---------- */
#rec { left: 50%; top: calc(var(--gut) + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(var(--graphite), 0.7); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
#rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
#toast { left: 50%; top: calc(var(--gut) + 56px); transform: translate(-50%, -8px); padding: 10px 16px; border-radius: 10px; background: rgba(var(--graphite), 0.85); border: 1px solid var(--line); opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; font-size: 13px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1400px) {
  #toast { top: calc(var(--gut) + 112px + env(safe-area-inset-top)); }
}

#credit { right: calc(var(--gut) + env(safe-area-inset-right)); bottom: calc(var(--gut) * 0.6 + env(safe-area-inset-bottom)); font-size: 11px; color: rgba(255, 255, 255, 0.38); pointer-events: none; }
#credit a { color: inherit; text-decoration: none; pointer-events: auto; transition: color 0.2s; }
#credit a:hover { color: #fff; }
body:not(.mode-model):not(.mode-explore) #credit { display: none; }
body.mode-explore #credit { color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
body.mode-explore #credit .cr-note { display: none; }
body.mode-explore #credit a { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }

/* ---------- cinematic intro ---------- */
body.mode-intro .ui:not(#film) { opacity: 0 !important; pointer-events: none !important; }
#film { inset: 0; z-index: 8; pointer-events: none; --bar: min(11vh, max(0px, calc((100vh - 100vw / 2.39) / 2))); }
#film-fade { position: absolute; inset: 0; background: #000; opacity: 1; }
#film-veil { position: fixed; inset: 0; z-index: 9; background: #000; pointer-events: none; transition: opacity 1.2s ease; }
.film-bar { position: absolute; left: 0; right: 0; height: var(--bar); background: #000; }
.film-bar.top { top: 0; }
.film-bar.bottom { bottom: 0; }
.film-progress { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, 0.08); }
.film-progress i { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.55); }
#film-skip { position: absolute; right: calc(4vw + env(safe-area-inset-right)); bottom: max(14px, calc(var(--bar) / 2 - 17px)); height: 34px; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.35); color: var(--ink-2); font-size: 13px; font-weight: 500; pointer-events: auto; transition: color 0.2s, border-color 0.2s; }
#film-skip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
#film-skip kbd { font: inherit; font-size: 11px; color: var(--ink-3); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 5px; padding: 1px 6px; }
body.touch #film-skip kbd { display: none; }

.film-card { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; opacity: 0; transition: opacity 1.4s ease; }
.film-card .wordmark { font-size: clamp(56px, 11vw, 170px); color: #f4f5f6; letter-spacing: 0.02em; transition: letter-spacing 5s cubic-bezier(0.2, 0.7, 0.2, 1); text-shadow: 0 4px 60px rgba(0, 0, 0, 0.45); }
.film-card p { margin: 22px 0 0; font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(236, 238, 240, 0.78); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.film-card.on { opacity: 1; }
.film-card.on .wordmark { letter-spacing: 0.1em; }

#film-cap { position: absolute; left: calc(6vw + env(safe-area-inset-left)); bottom: calc(var(--bar) + 5vh); max-width: min(560px, 86vw); opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
#film-cap.on { opacity: 1; transform: none; }
.fc-kicker { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(236, 238, 240, 0.72); white-space: pre; }
.fc-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.fc-title { margin-top: 10px; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.95; font-size: clamp(26px, 3.8vw, 56px); color: #fff; }
.fc-sub { margin: 12px 0 0; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.45; color: rgba(236, 238, 240, 0.86); max-width: 42ch; }

.film-call { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.film-call i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 14px rgba(255, 255, 255, 0.6); transform: scale(0); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.film-call b { position: absolute; left: 0; bottom: 6px; width: 1px; height: 54px; background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35)); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s 0.15s ease; }
.film-call span { position: absolute; left: -1px; bottom: 60px; padding: 0 0 6px 10px; border-left: 1px solid rgba(255, 255, 255, 0.35); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(6px); transition: opacity 0.45s 0.4s, transform 0.6s 0.4s; }
.film-call.on i { transform: scale(1); }
.film-call.on b { transform: scaleY(1); }
.film-call.on span { opacity: 1; transform: none; }
@media (max-width: 760px) {
  #film-cap { left: var(--gut); right: var(--gut); }
  .film-call span { font-size: 10px; }
}

.intro-actions .btn svg { width: 14px; height: 14px; fill: currentColor; margin: 0 8px -2px -4px; }

/* hide UI chrome while capturing a clean frame */
body.clean .ui:not(#rec) { opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 760px) {
  :root { --gut: 12px; }
  #modes { top: auto; bottom: calc(var(--gut) + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); flex-direction: row; }
  #modes button span, #tools button span { display: none; }
  #modes button { padding: 0 11px; }
  #timebar { bottom: calc(var(--gut) + 64px + env(safe-area-inset-bottom)); }
  #timeline { bottom: calc(var(--gut) + 64px + env(safe-area-inset-bottom)); padding: 8px 10px; }
  .tl-row { flex-wrap: wrap; gap: 6px 12px; }
  #tl-track { order: 5; flex: 1 1 100%; height: 30px; }
  #tl-track::before, #tl-fill { top: 13px; }
  .tl-speed { display: none; }
  .tl-camtoggle { margin-left: auto; }
  .tl-clock { min-width: 96px; }
  #tl-t { font-size: 17px; }
  #tl-chapters .ch { font-size: 0; padding: 0; }
  #credit { display: none; }
  #telemetry { top: auto; bottom: calc(var(--gut) + 140px); right: var(--gut); width: 210px; padding: 10px 12px; }
  .tm-stage, #tm-note { display: none; }
  .tm-grid b { font-size: 16px; }
  #intro { left: var(--gut); right: var(--gut); bottom: calc(var(--gut) * 3); }
  #intro .lede { font-size: 16px; }
  #card { bottom: calc(var(--gut) + 64px); }
  #brand .place span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
