/* Synthetic Skies / Carbon Dome
   One stylesheet, no build step. Sections are in page order.
   Palette: black and dark grays, light gray text, one dark-yellow accent
   taken from the gold markings on the aircraft renders. */

/* ---------- Fonts (self-hosted IBM Plex, SIL Open Font License) ---------- */
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #0f1011;          /* page */
  --bg-deep: #070808;     /* the one deeper section */
  --panel: #18191b;       /* raised surfaces */
  --plate: #2c2d2e;       /* backdrop for the aircraft cut-outs */
  --line: #2a2c2e;        /* hairlines */
  --line-strong: #44474a;
  --text: #dddcd6;        /* main text */
  --text-2: #a4a7a7;      /* secondary */
  --text-3: #80848a;      /* muted */
  --gold: #c9982e;        /* the one accent */
  --gold-bright: #e6b84a; /* glow and small highlights only */
  --paper: #e8e8e3;       /* the one light section */
  --ink: #1c1e21;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 8px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5.2vw + 0.6rem, 4.6rem); line-height: 1.04; letter-spacing: -0.024em; }
h2 { font-size: clamp(1.85rem, 2.6vw + 0.8rem, 2.9rem); line-height: 1.1; }
h3 { font: 500 1.0625rem/1.35 var(--sans); letter-spacing: 0; }

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

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.wrap--wide { max-width: calc(1400px + 2 * var(--gutter)); }

.lead { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.note { font-size: 0.875rem; line-height: 1.55; color: var(--text-3); max-width: 60ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: 68ch; color: var(--text-2); }
.prose p:first-child { color: var(--text); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  background: var(--text); color: #101112;
  border: 1px solid var(--text); border-radius: var(--radius);
  font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }

.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--gold-bright); text-decoration-thickness: 2px; }

.ctl {
  min-height: 40px; padding: 0 14px; background: transparent; color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.9375rem;
  transition: color .15s, border-color .15s;
}
.ctl:hover { color: var(--text); border-color: var(--text-3); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.seg__btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 5px; background: transparent; color: var(--text-2); font-size: 0.9375rem; transition: background-color .15s, color .15s; }
.seg__btn:hover { color: var(--text); }
.seg__btn[aria-pressed="true"] { background: var(--text); color: #101112; font-weight: 500; }

/* HUD corner brackets on figure plates */
.hud-frame { position: relative; }
.hud-frame::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; z-index: 2;
  --c: var(--gold);
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 1px,
    linear-gradient(var(--c), var(--c)) left top / 1px 16px,
    linear-gradient(var(--c), var(--c)) right top / 16px 1px,
    linear-gradient(var(--c), var(--c)) right top / 1px 16px,
    linear-gradient(var(--c), var(--c)) left bottom / 16px 1px,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 16px,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 1px,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 16px;
  background-repeat: no-repeat; opacity: .8;
}

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.header.is-scrolled, .header.is-open { background: rgba(15, 16, 17, .92); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand__mark, .brand__name { flex: none; white-space: nowrap; }
.brand__mark { width: 30px; height: 24px; fill: #fcc200; stroke: none; }
.brand__name { font: 400 1.1875rem/1 "Shree Devanagari 714", var(--sans); letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; }
.nav__list a { position: relative; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: 0.9375rem; transition: color .15s; }
.nav__list a:hover { color: var(--text); }
.nav__list a[aria-current="true"] { color: var(--text); }
.nav__list a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); }

.menu-btn { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); font-size: 0.9375rem; }
.menu-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .header.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .nav { display: none; }
  .js .header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current="true"]::after { display: none; }
  .nav .btn { margin-top: 20px; min-height: 46px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 940px); display: flex; overflow: hidden; background: #111; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -3; }
.hero__media img { object-fit: cover; object-position: 80% 46%; filter: brightness(1.5) contrast(1.04); }
.hero__shade { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to bottom, rgba(15,16,17,.7) 0, rgba(15,16,17,0) 20%, rgba(15,16,17,0) 56%, rgba(15,16,17,.86) 78%, var(--bg) 96%),
    linear-gradient(to right, var(--bg) 0, rgba(15,16,17,.9) 26%, rgba(15,16,17,.45) 48%, rgba(15,16,17,0) 66%);
}
.hero__hud { position: absolute; z-index: -1; inset: calc(var(--header-h) + 8px) var(--gutter) 24px; width: calc(100% - 2 * var(--gutter)); height: calc(100% - var(--header-h) - 32px); fill: none; stroke: var(--gold); stroke-width: 1; opacity: .55; pointer-events: none; max-width: none; }

.hero__inner { display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 72px); padding-bottom: 56px; }
.hero__copy { max-width: 700px; margin-block: auto; padding-block: 24px 56px; }
.hero__kicker { margin-bottom: 20px; font: 500 1rem/1 var(--sans); color: var(--gold); letter-spacing: 0.01em; }
.hero__lead { margin-top: 26px; max-width: 62ch; font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); line-height: 1.55; color: #c3c5c2; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); max-width: 860px; }
.facts__item { padding: 18px 24px 0 0; }
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.facts dt { font-size: 0.875rem; color: var(--text-2); }
.facts dd { margin-top: 6px; font: 400 clamp(1.25rem, 1.4vw + 0.8rem, 1.75rem)/1.2 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero__note { margin-top: 18px; font-size: 0.8125rem; color: var(--text-3); }

@media (max-width: 1100px) {
  .hero__shade { background:
    linear-gradient(to bottom, rgba(15,16,17,.7) 0, rgba(15,16,17,0) 20%, rgba(15,16,17,0) 56%, rgba(15,16,17,.86) 78%, var(--bg) 96%),
    linear-gradient(to right, var(--bg) 0, rgba(15,16,17,.9) 40%, rgba(15,16,17,.6) 70%, rgba(15,16,17,.3) 100%); }
}
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero__media img { object-position: 70% 100%; }
  .hero__shade { background: linear-gradient(to bottom, rgba(15,16,17,.92) 0, rgba(15,16,17,.86) 44%, rgba(15,16,17,.2) 66%, rgba(15,16,17,.3) 76%, var(--bg) 100%); }
  .hero__inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
  .hero__copy { padding-bottom: 190px; }
  .hero__hud { display: none; }
  .facts { grid-template-columns: 1fr; border-top: 0; }
  .facts__item, .facts__item + .facts__item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .facts dd { margin-top: 0; text-align: right; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.section--deep { background: var(--bg-deep); }
.section__intro { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__intro .lead { margin-top: 18px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split__head .lead { margin-top: 18px; }
@media (min-width: 861px) { .split__head { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Comparison table */
.compare { margin-top: 2.2em !important; border-top: 1px solid var(--line-strong); font-size: 0.9688rem; }
.compare__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.compare__row--head { color: var(--text-3); font-size: 0.875rem; }
.compare__row [role="rowheader"] { color: var(--text-2); }
.compare__row [role="cell"]:nth-child(2) { color: var(--text-3); }
.compare__row [role="cell"]:nth-child(3) { color: var(--text); }
.compare__row--head [role="columnheader"]:nth-child(3) { color: var(--gold); }
@media (max-width: 520px) { .compare__row { grid-template-columns: 1fr 1fr; } .compare__row [role="rowheader"] { grid-column: 1 / -1; font-size: 0.875rem; } .compare__row--head [role="columnheader"]:first-child { display: none; } }

/* Definition lists: label left, plain answer right */
.deflist { border-top: 1px solid var(--line-strong); }
.deflist__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 500; color: var(--text); }
.deflist dd { color: var(--text-2); max-width: 58ch; }
.deflist--tight { margin-top: 2.2em !important; }
@media (max-width: 560px) { .deflist__row { grid-template-columns: 1fr; } }

/* ---------- Cost exchange ---------- */
.eyebrow { margin-bottom: 16px; font: 500 0.9375rem/1 var(--sans); color: var(--gold); letter-spacing: 0.01em; }
.xc { --threat: #d0573c; --threat-text: #e8836a; }
.xc__controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; margin-bottom: clamp(36px, 4vw, 52px); padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.xc__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.xc__label { display: block; font-size: 0.9375rem; color: var(--text-2); }
.xc__field > .xc__label { margin-bottom: 10px; }
.xc__out { font: 400 2.25rem/1 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; }
.xc__hint { margin-top: 10px; font-size: 0.8438rem; line-height: 1.5; color: var(--text-3); }

.xc__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin-top: 10px; background: transparent; cursor: pointer; }
.xc__range:focus-visible { outline: none; }
.xc__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--gold) var(--fill, 50%), var(--line-strong) var(--fill, 50%)); }
.xc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); box-shadow: 0 0 0 5px rgba(201,152,46,.16); }
.xc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-bright); }
.xc__range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.xc__range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
.xc__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); }

.xc__attack { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.xc__attack > div { min-width: 0; }
.xc__big { margin-top: 6px; font: 400 clamp(2.5rem, 3vw + 1.2rem, 3.75rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.xc__headline { color: var(--text-2); max-width: 40ch; font-size: 1.0625rem; }
.xc__headline strong { color: var(--threat-text); font-weight: 500; }

.xrow { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 15rem); gap: 8px 22px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.xrow__name { font-weight: 500; font-size: 0.9688rem; line-height: 1.3; color: var(--text); }
.xrow__name span { display: block; margin-top: 3px; font-weight: 400; font-size: 0.8125rem; color: var(--text-3); }
.xrow__bar { position: relative; height: 12px; background: rgba(255,255,255,.035); border-radius: 2px; }
.xrow__fill, .xrow__span { position: absolute; top: 0; bottom: 0; border-radius: 2px; transition: width .45s var(--ease), left .45s var(--ease); }
.xrow__fill { left: 0; width: var(--lo, 0%); background: #6b7076; }
.xrow__span { left: var(--lo, 0%); width: calc(var(--hi, 0%) - var(--lo, 0%)); background: repeating-linear-gradient(135deg, rgba(160,165,170,.55) 0 3px, transparent 3px 6px); }
.xrow--us .xrow__fill { background: var(--gold); box-shadow: 0 0 12px rgba(230,184,74,.35); }
.xrow--us .xrow__span { background: repeating-linear-gradient(135deg, rgba(230,184,74,.7) 0 3px, transparent 3px 6px); }
.xrow__mark { position: absolute; top: -9px; bottom: -9px; left: var(--atk, 0%); width: 2px; margin-left: -1px; background: var(--threat); transition: left .45s var(--ease); }
.xrow__val { text-align: right; }
.xrow__spend { display: block; font: 400 1.3125rem/1.15 var(--serif); color: var(--text); font-variant-numeric: tabular-nums; }
.xrow__ratio { display: block; margin-top: 3px; font-size: 0.8125rem; line-height: 1.35; color: var(--threat-text); }
.xrow__ratio.is-good { color: var(--gold-bright); }
.xrow__ratio.is-mixed { color: var(--text-2); }
.xrow--us { background: linear-gradient(to right, rgba(201,152,46,.07), transparent 70%); }
.xrow--us .xrow__name { color: var(--gold-bright); }

.xc__axis { position: relative; height: 26px; margin-left: calc(15rem + 22px); margin-right: calc(15rem + 22px); font-size: 0.75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.xc__axis span { position: absolute; top: 8px; left: calc(var(--p) * 100%); transform: translateX(-50%); white-space: nowrap; }
.xc__axis span:first-child { transform: none; }
.xc__axis span:last-child { transform: translateX(-100%); }
.xc__legend { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.8125rem; color: var(--text-3); }
.xc__key--line { flex: none; width: 2px; height: 16px; background: var(--threat); }

.xc__after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(44px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.xc__reach h3 { font: 400 1.5rem/1.25 var(--serif); letter-spacing: -0.01em; }
.xc__reach p { margin-top: 12px; color: var(--text-2); max-width: 60ch; }
.xc__notes p { font-size: 0.875rem; line-height: 1.6; color: var(--text-3); }
.xc__sources { margin-top: 16px; font-size: 0.8438rem; line-height: 1.55; color: var(--text-3); }
.xc__sources summary { cursor: pointer; color: var(--text-2); }
.xc__sources ul { margin-top: 6px; }
.xc__sources li { margin-top: 8px; }
.xc__sources .link { color: var(--text-2); text-underline-offset: 3px; }

@media (max-width: 960px) { .xc__after { grid-template-columns: 1fr; } .xc__controls { grid-template-columns: 1fr 1fr; } .xc__field--wide { grid-column: 1 / -1; } }
@media (max-width: 560px) { .xc__controls { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .xrow { grid-template-columns: minmax(0, 1fr) auto; }
  .xrow__bar { grid-column: 1 / -1; grid-row: 2; }
  .xc__axis { margin-inline: 0; }
  .xc__axis span:nth-child(even) { display: none; }
  .xc__controls { padding: 20px; }
}

/* ---------- Signature element: mission sequence ---------- */
.seq__pin { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.seq__stage { position: relative; }
.seq-svg { width: 100%; height: auto; aspect-ratio: 1000 / 600; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 100%, #141516 0, var(--bg-deep) 70%); }
.seq__caption { margin-top: 10px; font-size: 0.8125rem; color: var(--text-3); }

.seq-svg * { vector-effect: non-scaling-stroke; }
.seq-t { font: 400 18px var(--sans); fill: var(--text-2); }
.seq-t--minor { font-size: 16px; fill: var(--text-3); }
.seq-t--zone { font-size: 17px; fill: var(--text-3); letter-spacing: .02em; }
.seq-t--hud { font-weight: 500; fill: var(--gold-bright); }
.seq-t--dim { font-weight: 400; fill: var(--text-2); font-size: 16px; }

.seq-hatch { stroke: #fff; stroke-opacity: .05; stroke-width: 1; }
.seq-ground { stroke: var(--line-strong); stroke-width: 1.2; }
.seq-alt line { stroke: var(--line-strong); stroke-width: 1; }
.seq-altline { stroke: #fff; stroke-opacity: .07; stroke-width: 1; stroke-dasharray: 2 8; }

.seq-dome { fill: none; stroke-width: 1.2; }
.seq-dome--outer { stroke: var(--gold); stroke-opacity: .7; }
.seq-dome--inner { stroke: var(--text-3); stroke-opacity: .55; }
.js .seq-dome { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .seq.is-revealed .seq-dome { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.js .seq.is-revealed .seq-dome--inner { transition-delay: .35s; }

.seq-city path { fill: none; stroke: var(--text-3); stroke-width: 1.1; stroke-linejoin: round; }
.seq-c2__room { fill: #0d0e0f; stroke: var(--text-3); stroke-width: 1.1; }
.seq-c2__desk, .seq-c2__mast { fill: none; stroke: var(--text-3); stroke-width: 1.1; }
.seq-c2__op { fill: var(--text-3); transition: fill .3s; }

.seq-orbit { fill: none; stroke: #fff; stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 3 5; }
.seq-ship__body path { fill: #0b0c0d; stroke: var(--text); stroke-width: 1.3; stroke-linejoin: round; }
.seq-cone { fill: var(--gold); fill-opacity: .09; stroke: var(--gold); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 2 6; opacity: 0; transition: opacity .6s; }

.seq-link { stroke: var(--text-3); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 2 6; transition: stroke .3s, stroke-opacity .3s; }
.seq-track { stroke: var(--text-2); stroke-opacity: 0; stroke-width: 1; stroke-dasharray: 5 7; transition: stroke-opacity .5s; }

.seq-threat { opacity: 0; transition: opacity .5s; }
.seq-threat__body { fill: #0b0c0d; stroke: #f1f0ea; stroke-width: 1.4; stroke-linejoin: round; }
.seq-reticle { fill: none; stroke: var(--gold-bright); stroke-width: 1.4; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 0 5px rgba(230,184,74,.6)); }
.seq-ping { fill: none; stroke: var(--gold-bright); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.seq-label-contact, .seq-label-track { opacity: 0; transition: opacity .35s; }

.seq-assign { stroke: var(--gold-bright); stroke-width: 1.2; stroke-dasharray: 6 6; opacity: 0; transition: opacity .35s; }
.seq-trail { fill: none; stroke: var(--gold-bright); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 5px rgba(230,184,74,.55)); }
.seq-icpt { opacity: 0; }
.seq-icpt path { fill: none; stroke: var(--gold-bright); stroke-width: 1.6; stroke-linecap: round; }

.seq-hit { opacity: 0; transition: opacity .3s; }
.seq-hit__ring { fill: none; stroke: var(--gold-bright); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; }
.seq-hit__x { fill: none; stroke: #f1f0ea; stroke-width: 1.5; stroke-linecap: round; }

/* step states */
.seq-svg:not([data-step="1"]) .seq-cone { opacity: .55; }
.seq-svg[data-step="2"] .seq-cone { opacity: 1; }
.seq-svg:not([data-step="1"]) .seq-threat { opacity: 1; }
.seq-svg:not([data-step="1"]) .seq-track { stroke-opacity: .3; }
.seq-svg[data-step="2"] .seq-label-contact { opacity: 1; }
.seq-svg[data-step="2"] .seq-ping { animation: seq-ping 1.8s ease-out infinite; }
.seq-svg[data-step="3"] .seq-reticle, .seq-svg[data-step="4"] .seq-reticle, .seq-svg[data-step="5"] .seq-reticle,
.seq-svg[data-step="3"] .seq-label-track, .seq-svg[data-step="4"] .seq-label-track, .seq-svg[data-step="5"] .seq-label-track { opacity: 1; }
.seq-svg[data-step="3"] .seq-link, .seq-svg[data-step="4"] #seq-link-b { stroke: var(--gold-bright); stroke-opacity: .9; animation: seq-dash 1s linear infinite; }
.seq-svg[data-step="4"] .seq-c2__op--lead { fill: var(--gold-bright); }
.seq-svg[data-step="4"] .seq-assign { opacity: .9; }
.seq-svg[data-step="5"] .seq-trail, .seq-svg[data-step="5"] .seq-icpt { opacity: 1; }
.seq-svg.is-hit .seq-threat, .seq-svg.is-hit .seq-icpt { opacity: 0; }
.seq-svg.is-hit .seq-hit { opacity: 1; }
.seq-svg.is-hit .seq-hit__ring { animation: seq-burst 1.2s ease-out 1 both; }
.seq-svg.is-hit .seq-hit__ring--2 { animation-delay: .25s; }

@keyframes seq-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes seq-dash { to { stroke-dashoffset: -16; } }
@keyframes seq-burst { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }

/* steps list */
.seq__steps { border-top: 1px solid var(--line-strong); counter-reset: none; }
.seq__step { border-bottom: 1px solid var(--line); }
.seq__tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0; background: none; border: 0; text-align: left; color: var(--text-2); font: 400 1.25rem/1.2 var(--serif); letter-spacing: -0.01em; transition: color .15s; }
.seq__tab:hover { color: var(--text); }
.seq__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; font: 500 0.8125rem/1 var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; transition: border-color .2s, color .2s, box-shadow .2s; }
.seq__text { padding: 0 0 20px 40px; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.seq__step.is-active .seq__tab { color: var(--text); }
.seq__step.is-active .seq__num { border-color: var(--gold); color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(201,152,46,.14); }
.js .seq__step:not(.is-active) .seq__text { display: none; }
.seq__controls { display: none; margin-top: 22px; flex-wrap: wrap; gap: 10px; }
.js .seq__controls { display: flex; }

@media (max-width: 960px) { .seq__pin { grid-template-columns: 1fr; } }

/* Scroll-driven mode (desktop, set by script): the diagram pins to the screen
   and each step advances as the visitor scrolls. */
.seq__progress, .seq__hint { display: none; }
.seq--scroll { height: calc(100vh - var(--header-h) + 5 * 62vh); }
.seq--scroll .seq__pin { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: center; }
.seq--scroll .seq__stage { display: grid; justify-items: center; }
.seq--scroll .seq-svg { width: min(100%, calc((100vh - var(--header-h) - 110px) * 1.6667)); }
.seq--scroll .seq__caption { justify-self: start; }
.seq--scroll [data-seq-play] { display: none; }
.seq--scroll .seq__progress { display: block; position: relative; height: 2px; margin-top: 22px; background: var(--line); border-radius: 1px; overflow: hidden; }
.seq__progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
.seq--scroll .seq__hint { display: block; margin-top: 10px; font-size: 0.8125rem; color: var(--text-3); }
@media (max-width: 640px) {
  .seq-svg { aspect-ratio: 1 / .92; }
  .seq-t { font-size: 24px; }
  .seq-t--minor, .seq-t--dim, .seq-alt { display: none; }
  .seq-t--zone { font-size: 22px; }
}

/* ---------- Mothership viewer ---------- */
.viewer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.viewer__stage { display: grid; gap: 16px; justify-items: start; }
.viewer__plate { position: relative; width: 100%; aspect-ratio: 12 / 8; background: var(--plate); border-radius: var(--radius); overflow: hidden; }
.viewer__grid { position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 8); background-position: -0.5px -0.5px; transition: background-size .7s var(--ease); }
.viewer__craft { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .7s var(--ease); }
.viewer[data-variant="small"] .viewer__craft { transform: scale(.762); }
.viewer[data-variant="small"] .viewer__grid { background-size: calc(100% / 6) calc(100% / 4); }
.viewer__img { width: 90.8%; }
.viewer__img[data-view-img="side"] { width: 60.1%; }
.viewer__scale { position: absolute; left: 34px; top: 26px; z-index: 3; display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; }

.viewer__toggles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.viewer__title { margin-bottom: 14px; font: 400 1.375rem/1.25 var(--serif); letter-spacing: -0.01em; }
.specs { border-top: 1px solid var(--line-strong); }
.specs__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--text-2); }
.specs dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.specs dd small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-3); }
.viewer__specs .note { margin-top: 18px; }
@media (max-width: 900px) { .viewer { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .viewer__scale { left: 28px; top: 22px; font-size: 0.75rem; } }

/* ---------- Hotspot explorer ---------- */
.hot { --pin: var(--gold-bright); --pin-ink: #101112; --cap-bg: rgba(15,16,17,.86); --cap-line: var(--line-strong); --hot-text: var(--text); --hot-text-2: var(--text-2); --hot-line: var(--line); --hot-line-strong: var(--line-strong); }
.hot__canvas { position: relative; border-radius: var(--radius); overflow: hidden; }
.hot--dark .hot__canvas { background: #4c5767; }
.hot__img { width: 100%; }

.pin { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; border-radius: 50%; z-index: 3; }
.pin::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--pin-ink); border: 2px solid var(--pin); transition: transform .2s var(--ease), background-color .2s; }
.pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid var(--pin); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease); }
.pin:hover::before { transform: scale(1.25); }
.pin[aria-pressed="true"]::before { background: var(--pin); }
.pin[aria-pressed="true"]::after { opacity: .9; transform: scale(1); }

.hot__caption { position: absolute; left: 22px; top: 22px; z-index: 4; width: min(360px, 42%); padding: 16px 18px 18px; background: var(--cap-bg); border: 1px solid var(--cap-line); border-radius: var(--radius); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hot__caption h3 { color: var(--hot-text); }
.hot__caption p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--hot-text-2); }

.hot__list { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--hot-line-strong); }
.hot__item { border-bottom: 1px solid var(--hot-line); }
.hot__tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0; background: none; border: 0; text-align: left; color: var(--hot-text-2); transition: color .15s; }
.hot__tab::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .15s, border-color .15s; }
.hot__tab:hover { color: var(--hot-text); }
.hot__item.is-active .hot__tab { color: var(--hot-text); font-weight: 500; }
.hot__item.is-active .hot__tab::before { background: var(--pin); border-color: var(--pin); }
.hot__text { padding: 0 0 16px 21px; color: var(--hot-text-2); font-size: 0.9688rem; max-width: 56ch; }
.js .hot__text { display: none; }

@media (max-width: 760px) {
  .hot__caption { position: static; width: auto; margin-top: 12px; backdrop-filter: none; }
  .hot__list { grid-template-columns: 1fr; }
  .pin { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .pin::before { inset: 11px; }
  .pin::after { inset: 5px; }
}

/* ---------- The single light section ---------- */
.section--paper { background: var(--paper); color: var(--ink); border-top: 0;
  --text: #1c1e21; --text-2: #50565c; --text-3: #6a7076; --line: #cfd0ca; --line-strong: #a9aba5; }
.section--paper + .section { border-top: 0; }
.section--paper :focus-visible { outline-color: #1c1e21; }
.section--paper .hot { --pin: #1c1e21; --pin-ink: #f4f4f0; --cap-bg: rgba(244,244,240,.9); --cap-line: #c4c5bf; }
.section--paper .hot__canvas { overflow: visible; }
.hot__img--blend { mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%); mask-composite: intersect; }
.section--paper .pin[aria-pressed="true"]::before { background: var(--gold); border-color: #1c1e21; }

.ustol { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.ustol__figure { margin-top: clamp(32px, 5vw, 64px); }
.ustol__figure figcaption { margin-top: 6px; font-size: 0.875rem; color: var(--text-3); }

/* ---------- Mission cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; padding: 26px 24px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background-color .2s; }
.card:hover { border-color: var(--line-strong); background: #1b1c1e; }
.card__icon { width: 32px; height: 32px; margin-bottom: 22px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.125rem; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 0.9688rem; line-height: 1.55; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Principles ---------- */
.principles { border-top: 1px solid var(--line-strong); }
.principles li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.principles h3 { font: 400 1.375rem/1.25 var(--serif); letter-spacing: -0.01em; }
.principles p { margin-top: 8px; color: var(--text-2); max-width: 60ch; }

/* ---------- Founder ---------- */
.founder { margin-top: 2em !important; padding: 26px 28px 28px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius); }
.founder__role, .prose .founder .founder__role { font: 500 0.875rem/1 var(--sans); color: var(--gold); letter-spacing: 0.01em; }
.prose .founder p { color: var(--text-2); }
.founder__years { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; }
.prose .founder .founder__years { color: var(--text); }
.founder__num { font: 400 clamp(3rem, 4vw + 1rem, 4.25rem)/0.9 var(--serif); letter-spacing: -0.03em; color: var(--text); }
.founder__years span:last-child { font: 400 1.25rem/1.3 var(--serif); max-width: 22ch; }
.founder__bio { margin-top: 16px; }
.founder__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.founder__tags li { padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.8125rem; color: var(--text-2); }

/* ---------- Contact form ---------- */
.contact__direct { margin-top: 20px; color: var(--text-2); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.9375rem; color: var(--text-2); }
.field__opt { color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); transition: border-color .15s, background-color .15s; }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a4a7a7' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #e6b84a; }
.field__error { margin-top: 7px; font-size: 0.875rem; color: var(--gold-bright); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__hint { font-size: 0.875rem; color: var(--text-3); max-width: 44ch; }
.form__status { padding: 14px 16px; border: 1px solid var(--line-strong); border-left: 2px solid var(--gold); border-radius: var(--radius); color: var(--text); font-size: 0.9688rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding-block: 36px 44px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text-3); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand .brand__mark { width: 26px; height: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--text-2); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer__note { margin-top: 18px; max-width: 78ch; }

/* ---------- Plain document pages (privacy, terms, 404) ---------- */
.doc { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(72px, 9vw, 120px); min-height: 70vh; }
.doc__body { max-width: 720px; }
.doc__body h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem); margin-bottom: 14px; }
.doc__body h2 { font-size: 1.5rem; margin-top: 2.2em; margin-bottom: .5em; }
.doc__body p, .doc__body li { color: var(--text-2); max-width: 68ch; }
.doc__body p + p { margin-top: 1em; }
.doc__body ul { list-style: disc; padding-left: 1.2em; margin-top: .6em; }
.doc__body li + li { margin-top: .35em; }
.doc__meta { color: var(--text-3); font-size: 0.9375rem; }
.doc__actions { margin-top: 36px; }
.header--solid { background: rgba(15, 16, 17, .92); border-bottom-color: var(--line); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .seq-svg[data-step="2"] .seq-ping { animation: none; opacity: .8; }
  .seq-svg.is-hit .seq-hit__ring { animation: none; opacity: .7; transform: scale(1.8); }
  .seq-svg.is-hit .seq-hit__ring--2 { transform: scale(2.8); opacity: .35; }
}

@media print {
  .header, .hero__hud, .seq__controls, .menu-btn { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Film: screening-room section (from carbon-dome-film-section-v2) ----------
   The frame widens from the page width to full bleed as it reaches the middle of the
   screen, and a soft glow sampled from the video's own frames spills around it. */
.film { --fm-gold: #d8b45c; --fm-gold2: #f1d48a; --fm-w0: min(var(--wrap), 100% - 2 * var(--gutter));
  position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); background: #07080a; }
.film__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.film__head p { margin-top: 12px; color: var(--text-2); max-width: 46ch; }
.film__head .film__meta { margin: 0; color: var(--text-3); font-size: 0.875rem; white-space: nowrap; }
.film__stage { position: relative; --p: 0; }
.film__glow { position: absolute; left: 50%; top: 50%; z-index: -1; width: calc((var(--fm-w0) + (100% - var(--fm-w0)) * var(--p)) * 1.1); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); filter: blur(70px) saturate(1.5); opacity: .5; pointer-events: none; transition: opacity .8s; }
.film__screen { position: relative; margin: 0 auto; width: calc(var(--fm-w0) + (100% - var(--fm-w0)) * var(--p)); aspect-ratio: 16 / 9; border-radius: calc(14px * (1 - var(--p))); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(216,180,92,calc(.28 * (1 - var(--p)))), 0 40px 120px -40px #000; }
.film__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.film__loop { transition: opacity .6s; }
.film__screen.is-playing .film__loop { opacity: 0; }
.film__cover { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(34% 30% at 50% 50%, rgba(4,5,7,.72), rgba(4,5,7,.25) 70%, rgba(4,5,7,.5)); transition: opacity .5s; }
.film__screen.is-started .film__cover { opacity: 0; pointer-events: none; }
.film__play { display: flex; align-items: center; gap: 18px; padding: 12px; background: none; border: 0; color: var(--text); font: inherit; text-shadow: 0 1px 12px #000; cursor: pointer; }
.film__ring { display: grid; place-items: center; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(241,212,138,.7); background: rgba(7,8,10,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 0 rgba(216,180,92,.45); animation: fm-pulse 2.8s ease-out infinite; }
.film__ring svg { width: 34%; height: 34%; margin-left: 8%; fill: var(--fm-gold2); }
.film__lbl { display: block; text-align: left; }
.film__lbl b { display: block; font: 400 clamp(20px, 2.4vw, 28px)/1.1 var(--serif); }
.film__lbl span { display: block; margin-top: 4px; color: var(--text-2); font-size: 0.875rem; }
@keyframes fm-pulse { 0% { box-shadow: 0 0 0 0 rgba(216,180,92,.4); } 100% { box-shadow: 0 0 0 28px rgba(216,180,92,0); } }
.film__ui { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: 28px 18px 12px; background: linear-gradient(transparent, rgba(0,0,0,.78)); opacity: 0; transition: opacity .35s; }
.film__screen.is-started .film__ui { opacity: 1; }
.film__screen.is-idle .film__ui { opacity: 0; }
.film__screen.is-idle { cursor: none; }
.film__bar { position: relative; display: flex; align-items: center; height: 28px; cursor: pointer; touch-action: none; }
.film__track { position: relative; width: 100%; height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; transition: height .15s; }
.film__bar:hover .film__track, .film__bar.is-drag .film__track { height: 6px; }
.film__fill, .film__buf { position: absolute; inset: 0 auto 0 0; border-radius: 2px; }
.film__fill { background: var(--fm-gold); }
.film__buf { background: rgba(255,255,255,.18); }
.film__tick { position: absolute; top: -2px; bottom: -2px; width: 2px; background: rgba(7,8,10,.9); }
.film__knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--fm-gold2); transform: scale(0); transition: transform .15s; }
.film__bar:hover .film__knob, .film__bar.is-drag .film__knob { transform: scale(1); }
.film__peek { position: absolute; bottom: 34px; width: 192px; transform: translateX(-50%); text-align: center; opacity: 0; pointer-events: none; transition: opacity .15s; }
.film__bar:hover .film__peek, .film__bar.is-drag .film__peek { opacity: 1; }
.film__peek i { display: block; width: 192px; height: 108px; border-radius: 6px; background: #000 no-repeat; background-size: 1920px 432px; box-shadow: 0 0 0 1px rgba(241,212,138,.5), 0 10px 30px #000; }
.film__peek small { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--text); text-shadow: 0 1px 4px #000; white-space: nowrap; }
.film__row { display: flex; align-items: center; gap: 6px; }
.film__sp { flex: 1; }
.film__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.film__btn svg { width: 22px; height: 22px; fill: currentColor; }
.film__btn:hover { color: var(--fm-gold2); }
.film__btn:focus-visible, .film__play:focus-visible, .film__bar:focus-visible { outline: 2px solid var(--fm-gold2); outline-offset: 2px; }
.film__time { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.film__now { overflow: hidden; font-size: 0.875rem; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.film__end { position: absolute; inset: 0; display: none; place-items: center; background: rgba(7,8,10,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.film__screen.is-ended .film__end { display: grid; }
.film__end div { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 16px; }
.film__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid rgba(241,212,138,.7); border-radius: 999px; background: none; color: var(--text); font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; }
.film__cta--solid { background: var(--fm-gold); border-color: var(--fm-gold); color: #120f08; }
@media (max-width: 600px) {
  .film { --fm-w0: 100%; }
  .film__screen { border-radius: 0; }
  .film__peek, .film__now { display: none; }
  .film__lbl b { font-size: 19px; }
  .film__lbl span { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .film__screen { width: var(--fm-w0); }
  .film__ring { animation: none; }
  .film__glow { display: none; }
}
