/* KERTE — one stylesheet, hand written, no framework.
   Dark is the default because the photography is dawn; light is declared in
   full rather than patched in by a media query. */

:root {
  --deep:        #070d10;
  --hull:        #0d1a1f;
  --hull-2:      #122630;
  --line:        #1d3541;   /* decorative rules */
  --line-strong: #417490;   /* boundaries of real controls: 3.5:1 on --hull */
  --petrol:      #0e4a58;
  --petrol-lift: #34a3bb;
  --sand:        #c9bda7;
  --sand-dim:    #8b8474;
  --paper:       #f2ede3;
  --ink:         #0a1114;
  --dawn:        #e8964a;
  --rust:        #c5592d;

  --bg: var(--deep);
  --fg: var(--sand);
  --fg-strong: #eee7d9;
  --fg-dim: var(--sand-dim);
  --panel: var(--hull);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--dawn);
  --link: var(--petrol-lift);

  --sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --gut: clamp(1.15rem, 3.4vw, 2.6rem);
  --page: min(1520px, 100% - var(--gut) * 2);
  --text: min(70ch, 100%);
  --rhythm: clamp(4.5rem, 11vh, 9rem);

  --step--1: clamp(.775rem, .74rem + .18vw, .875rem);
  --step-0:  clamp(.98rem, .93rem + .24vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.28rem + 1.1vw, 2.25rem);
  --step-3:  clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.6rem, 1.5rem + 5vw, 6.4rem);
  --step-5:  clamp(3.2rem, 1.3rem + 8.4vw, 9.5rem);

  color-scheme: dark;
}

[data-theme="light"], .light {
  --bg: var(--paper);
  --fg: #33403f;
  --fg-strong: var(--ink);
  --fg-dim: #566260;
  --panel: #e6dfd1;
  --rule: #c9c0ae;
  --rule-strong: #7b8a86;
  --link: #0b5d70;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.62 var(--sans);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.022em;
  color: var(--fg-strong);
  margin: 0;
  font-stretch: 96%;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.012em; }
p { margin: 0 0 1.05em; max-width: var(--text); text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--fg-strong); }
img, svg, video { display: block; max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: #14100a; padding: .7rem 1.1rem;
  font: 600 var(--step--1)/1 var(--mono);
}
.skip:focus { left: .6rem; top: .6rem; }

/* ---------- measure: every number that means something ---------- */
.m, .num, td.num, .fig__n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
  letter-spacing: -.02em;
}
.unit { color: var(--fg-dim); font-size: .78em; margin-left: .22em; letter-spacing: 0; }

.eyebrow {
  font: 500 var(--step--1)/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1.4rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.eyebrow__k { color: var(--accent); }

/* ---------- layout ---------- */
.wrap { width: var(--page); margin-inline: auto; }
.section { padding-block: var(--rhythm); }
.section--tight { padding-block: calc(var(--rhythm) * .55); }
.section + .section { border-top: 1px solid var(--rule); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--fg-strong); max-width: 46ch; }

.cols { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); }
@media (min-width: 62rem) {
  .cols--2 { grid-template-columns: repeat(2, 1fr); }
  .cols--3 { grid-template-columns: repeat(3, 1fr); }
  .cols--4 { grid-template-columns: repeat(4, 1fr); }
  .cols--side { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
  .cols--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
}
@media (min-width: 46rem) and (max-width: 61.99rem) {
  .cols--3, .cols--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.masthead__in {
  width: var(--page); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  min-height: 4.1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .62rem;
  font: 600 1.14rem/1 var(--sans); font-stretch: 88%;
  letter-spacing: .20em; text-transform: uppercase;
  color: var(--fg-strong); text-decoration: none; flex: none;
}
.logo svg { width: 1.55rem; height: 1.55rem; flex: none; }
.logo:hover { color: var(--accent); }
.nav { display: flex; gap: clamp(.7rem, 1.6vw, 1.5rem); flex-wrap: wrap; align-items: center; }
.nav a {
  font: 500 var(--step--1)/1 var(--sans);
  color: var(--fg); text-decoration: none; padding: .45rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--fg-strong); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--fg-strong); border-bottom-color: var(--accent); }
.masthead__end { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.masthead__end .m { font-size: var(--step--1); color: var(--fg-dim); }
@media (max-width: 61.99rem) {
  .nav { display: none; width: 100%; order: 3; padding-bottom: 1rem; }
  .nav--open { display: flex; }
  .navtoggle { margin-left: auto; }
  .masthead__in { flex-wrap: wrap; }
  .masthead__end { display: none; }
}
/* .btn sets display:inline-flex further down the file, so this needs to be
   specific enough to win rather than relying on source order */
@media (min-width: 62rem) { .masthead .navtoggle { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 500 var(--step--1)/1 var(--mono); letter-spacing: .06em;
  padding: .68rem 1.05rem; border: 1px solid var(--rule-strong); background: none;
  color: var(--fg-strong); text-decoration: none; cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.btn:hover { border-color: var(--accent); color: var(--fg-strong); background: color-mix(in oklab, var(--accent) 12%, transparent); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #16110a; }
.btn--solid:hover { background: #f2a75f; color: #16110a; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92svh, 62rem); display: grid; align-items: end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The headline sits over the brightest part of a dawn sky. Two scrims: a
   vertical one that darkens the top and bottom, and a horizontal one under the
   text column, which is the only place the contrast actually has to hold. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg,
      color-mix(in oklab, var(--deep) 88%, transparent) 0%,
      color-mix(in oklab, var(--deep) 70%, transparent) 34%,
      color-mix(in oklab, var(--deep) 18%, transparent) 62%,
      transparent 82%),
    linear-gradient(184deg,
      color-mix(in oklab, var(--deep) 72%, transparent) 0%,
      color-mix(in oklab, var(--deep) 20%, transparent) 26%,
      color-mix(in oklab, var(--deep) 30%, transparent) 58%,
      color-mix(in oklab, var(--deep) 90%, transparent) 96%);
}
@media (max-width: 46rem) {
  .hero::after {
    background: linear-gradient(184deg,
      color-mix(in oklab, var(--deep) 80%, transparent) 0%,
      color-mix(in oklab, var(--deep) 55%, transparent) 40%,
      color-mix(in oklab, var(--deep) 92%, transparent) 100%);
  }
}
.hero__in { position: relative; z-index: 2; width: var(--page); margin-inline: auto; padding-block: clamp(2.5rem, 8vh, 6rem); }
.hero h1 { font-size: var(--step-5); font-stretch: 90%; letter-spacing: -.035em; max-width: 16ch; }
.hero__sub { font-size: var(--step-1); max-width: 42ch; margin-top: 1.4rem; color: var(--fg-strong); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.hero__meta > .stat { flex: 1 1 9rem; }

/* ---------- figures ---------- */
.fig { margin: 0; }
.fig img { width: 100%; }
.fig figcaption, .cap {
  font: 400 var(--step--1)/1.5 var(--mono);
  color: var(--fg-dim); margin-top: .85rem; max-width: 56ch;
}
.fig--full img { aspect-ratio: 16/9; object-fit: cover; }

.stat { border-top: 1px solid var(--rule); padding-top: .85rem; }
.stat__n { font: 500 var(--step-2)/1 var(--mono); color: var(--fg-strong); letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: block; }
.stat__l { font: 400 var(--step--1)/1.45 var(--sans); color: var(--fg-dim); margin-top: .45rem; display: block; max-width: 26ch; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th, .table td { text-align: left; padding: .78rem .9rem .78rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.table th { font: 500 var(--step--1)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); padding-bottom: .6rem; }
/* A right-aligned column with no padding on either side runs straight into its
   neighbour — "BEARING" and "ENGLISH" become "BEARINGENGLISH". */
.table td.num, .table th.num { text-align: right; padding-left: 1.4rem; padding-right: .9rem; }
.table tr > :last-child { padding-right: 0; }
.table tbody tr:hover { background: color-mix(in oklab, var(--panel) 60%, transparent); }
.scroller { overflow-x: auto; overscroll-behavior-x: contain; }
.scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a shadow on the right edge while there is more table to the right */
.scroller { background:
  linear-gradient(90deg, var(--bg) 30%, transparent) left / 28px 100% no-repeat,
  linear-gradient(270deg, var(--bg) 30%, transparent) right / 28px 100% no-repeat,
  radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.45), transparent) left / 14px 100% no-repeat,
  radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.45), transparent) right / 14px 100% no-repeat;
  background-attachment: local, local, scroll, scroll; }

/* anchors must clear the sticky masthead */
:target, [id] { scroll-margin-top: 5.5rem; }

.card { border: 1px solid var(--rule); padding: clamp(1.2rem, 2.6vw, 1.9rem); background: color-mix(in oklab, var(--panel) 55%, transparent); }
.card h3 { margin-bottom: .55rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .2s, transform .2s; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--link:hover { transform: none; } }

/* ---------- the load scrubber ---------- */
.load { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }
/* the scroll-linked section needs room to scroll through; less of it on a phone,
   where 220vh of swiping to move one slider is a chore rather than an effect */
.load-scroll { min-height: 220vh; }
.load-scroll > .wrap { position: sticky; top: 5rem; }
@media (max-width: 46rem) { .load-scroll { min-height: 150vh; } }
@media (prefers-reduced-motion: reduce) {
  .load-scroll { min-height: 0; }
  .load-scroll > .wrap { position: static; }
}
@media (min-width: 68rem) { .load { grid-template-columns: minmax(0, 1.6fr) minmax(0, 22rem); align-items: start; } }
.load__stage { position: relative; background: var(--hull); border: 1px solid var(--rule); overflow: hidden; }
.load__stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.load__stage--near img { aspect-ratio: 1100 / 760; }
.load__frames { position: relative; }
.load__stage img + img { position: absolute; inset: 0; }
.load__frames img { opacity: 0; }
.load__frames img.on { opacity: 1; }
.load__readout { display: grid; gap: 1.1rem; }
.load__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .55rem; }
.load__row dt { font: 500 var(--step--1)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.load__row dd { margin: 0; font: 500 var(--step-1)/1 var(--mono); color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.load__row--live dd { color: var(--accent); }

input[type="range"] { width: 100%; accent-color: var(--dawn); height: 2.2rem; cursor: ew-resize; }
.slider__labels { display: flex; justify-content: space-between; font: 400 var(--step--1)/1 var(--mono); color: var(--fg-dim); margin-top: -.3rem; }

.marks { width: 100%; height: auto; max-width: 22rem; }
.marks text { font: 500 9px var(--mono); fill: var(--fg-dim); }
.marks .lbl-on { fill: var(--accent); }
.marks .rule { stroke: var(--fg-dim); stroke-width: 1.4; }
.marks .disc { stroke: var(--fg-strong); stroke-width: 1.6; fill: none; }
/* partial opacity so a submerged mark is still legible under the water */
.marks .water { fill: color-mix(in oklab, var(--petrol) 74%, transparent); opacity: .78; }
.marks .waterline { stroke: var(--petrol-lift); stroke-width: 2; }
.marks text { transition: fill .2s ease; }
.marks .hull { fill: var(--hull-2); }

/* ---------- compass ---------- */
.rose { width: 100%; height: auto; }
.rose .spoke { stroke: var(--rule); stroke-width: .6; }
.rose .spoke--card { stroke: var(--fg-dim); stroke-width: 1.1; }
.rose .ring { fill: none; stroke: var(--rule); }
.rose .pip { fill: var(--petrol-lift); transition: r .18s, fill .18s; }
.rose .pip:hover, .rose .pip:focus { fill: var(--accent); }
.rose text { font: 500 10px var(--mono); fill: var(--fg-dim); letter-spacing: .06em; }
.rose .wind { fill: var(--fg-strong); font-size: 11px; }

/* ---------- reveal ---------- */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .48s ease, transform .48s cubic-bezier(.22,.7,.3,1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { transition: opacity .3s ease; transform: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: var(--rhythm) 3rem; font-size: var(--step--1); }
.foot .foot__h { font: 500 var(--step--1)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { color: var(--fg); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot__legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); color: var(--fg-dim); display: flex; flex-wrap: wrap; gap: .8rem 2rem; }

.check { font: 500 var(--step-2)/1 var(--mono); }
.check--ok { color: var(--petrol-lift); }
.check--bad { color: var(--rust); }
.field { display: grid; gap: .5rem; max-width: 28rem; }
.field label { font: 500 var(--step--1)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.field input {
  font: 500 var(--step-1)/1 var(--mono); letter-spacing: .12em;
  background: var(--panel); color: var(--fg-strong);
  border: 1px solid var(--rule-strong); padding: .8rem .9rem; text-transform: uppercase;
}
.field input:focus { border-color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- rose panel and selected pip ---------- */
.rose .pip.on { fill: var(--dawn); stroke: var(--dawn); stroke-width: 4; stroke-opacity: .28; }
.foot__list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.foot__list li {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: .5rem;
}
.foot__list strong { color: var(--fg-strong); font-weight: 600; }
.foot__list .m { margin-left: auto; color: var(--fg-dim); font-size: var(--step--1); }
[data-rose-panel] { min-height: 18rem; }

/* the load stage stays put until its frames are decoded, so the first drag is
   not a slideshow of half-loaded images */
.load__stage:not([data-ready]) { position: relative; }
.load__stage:not([data-ready])::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: load-bar 1.1s ease-in-out infinite;
}
@keyframes load-bar { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .load__stage:not([data-ready])::after { animation: none; opacity: .5; }
}


/* ---------- print ----------
   A schedule page gets printed. The light tokens exist for this, so the
   palette is not dead code: paper ground, ink text, and every link's target
   spelled out because a printed href is not clickable. */
@media print {
  :root {
    --bg: #ffffff; --fg: #16211f; --fg-strong: #000000; --fg-dim: #4a5654;
    --panel: #ffffff; --rule: #b9b3a6; --rule-strong: #6a655c;
    --accent: #7a4410; --link: #0b3f4c;
  }
  .masthead, .foot ul, .navtoggle, .skip, .hero__img, input[type="range"],
  .slider__labels, .load__frames, [data-rose-panel] { display: none !important; }
  body { background: #fff; color: #16211f; font-size: 10.5pt; }
  .hero { min-height: 0; }
  .hero::after { content: none; }
  .section { padding-block: 1.2rem; break-inside: avoid; }
  .rise { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after, a[href$=".html"]::after {
    content: " (" attr(href) ")"; font-family: var(--mono); font-size: .78em; color: #4a5654;
  }
  .table { font-size: 9pt; }
  .fig, .card, .table tr { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
}

/* Some frames carry more foreground apron than the subject needs. Cropping in
   the layout costs nothing; re-rendering costs three minutes a frame. */
.fig--crop img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 34%; }
/* portrait frames of something standing on the apron: the subject is in the top
   half and the rest is concrete, so crop to 5:4 biased upward */
.fig--tall img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 34%; }

/* A frame that was shot loose. object-fit can crop but cannot zoom, so the
   figure clips and the image is scaled inside it. The source is 1600 px wide,
   so at 1.55x there is still ~1030 px of real detail across a column that is
   rarely more than 560 px — no visible softening. */
.fig--zoom { overflow: hidden; aspect-ratio: 3 / 2; }
.fig--zoom img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.55); transform-origin: 44% 40%;
}

/* ---------- the cinematic hero ----------
   A long section whose inner panel is sticky: the page scrolls, the panel
   stays, and scroll position picks the frame. Everything is sized in svh so a
   phone's collapsing address bar does not resize the stage mid-scrub. */
.cine { position: relative; height: 420svh; }
@media (max-width: 46rem) { .cine { height: 320svh; } }
.cine__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--deep);
}
.cine__stage { position: absolute; inset: 0; background: var(--deep); }
.cine__stage > img, .seq__stage > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* once the canvas is live the poster is redundant, and leaving it under a
   translucent canvas is what produces a double image on the first paint */
.cine__stage > img.is-replaced, .seq__stage > img.is-replaced { display: none; }
.seqcanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(96deg,
      color-mix(in oklab, var(--deep) 90%, transparent) 0%,
      color-mix(in oklab, var(--deep) 66%, transparent) 30%,
      color-mix(in oklab, var(--deep) 8%, transparent) 60%, transparent 78%),
    linear-gradient(0deg,
      color-mix(in oklab, var(--deep) 92%, transparent) 0%,
      transparent 34%, transparent 62%,
      color-mix(in oklab, var(--deep) 58%, transparent) 100%);
}
.cine__hud {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding-block: clamp(4.6rem, 11svh, 8rem) clamp(1.4rem, 4svh, 2.6rem);
  pointer-events: none;
}
.cine__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) {
  .cine__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 20rem); }
}
.cine h1 {
  font-size: clamp(2.6rem, 1rem + 5.6vw, 6.4rem);
  font-stretch: 88%; letter-spacing: -.035em; line-height: .96;
}
.cine__sub {
  font-size: var(--step-1); max-width: 38ch; margin-top: 1.3rem; color: var(--fg-strong);
}
/* the beats: one line of copy per movement of the camera */
/* The beats sit over whatever the camera happens to be looking at, which is
   sometimes a bright crane. They get their own ground rather than relying on
   the veil, which has to stay light enough to show the picture. */
.cine__beats {
  position: relative; min-height: 11rem;
  background: color-mix(in oklab, var(--deep) 62%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid color-mix(in oklab, var(--line-strong) 55%, transparent);
  padding: 1.15rem 1.25rem;
}
/* Beats are stacked, so a slow symmetrical crossfade shows two paragraphs on
   top of each other. The outgoing one leaves quickly; the incoming one waits
   for it and then fades in. */
.cine__beat {
  position: absolute; inset: 1.15rem 1.25rem; opacity: 0; transform: translateY(8px);
  transition: opacity .12s ease, transform .12s ease;
  border-left: 2px solid var(--accent); padding-left: 1rem;
}
.cine__beat[data-on] {
  opacity: 1; transform: none;
  transition: opacity .3s ease .1s, transform .34s cubic-bezier(.22,.7,.3,1) .1s;
}
.cine__line { font-size: var(--step--1); line-height: 1.55; color: var(--fg-strong); max-width: 36ch; margin: 0; }
.cine__beats .eyebrow { margin-bottom: .7rem; }
.cine__foot { display: flex; align-items: center; gap: 1.2rem; }
@media (max-width: 61.99rem) {
  .cine__beats { display: none; }
  .cine__hud { padding-block: clamp(4.2rem, 9svh, 6rem) 1.2rem; }
}
.cine__hint {
  font: 500 var(--step--1)/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-dim); margin: 0; flex: none;
  transition: opacity .4s ease;
}
.cine__hint[hidden] { display: block !important; opacity: 0; }
.cine__bar { flex: 1; height: 2px; background: var(--rule); position: relative; }
.cine__bar span {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .cine { height: auto; }
  .cine__sticky { position: static; height: auto; aspect-ratio: 16 / 9; }
  .cine__beat { transition: none; }
}


/* ---------- scroll-scrubbed sequence ---------- */
.seq { height: var(--seq-tall, 260svh); position: relative; }
.seq__sticky {
  position: sticky; top: 5.2rem; overflow: hidden;
  border: 1px solid var(--rule); background: var(--hull);
}
/* a wide stage: the orbit is the hero of its section, not a thumbnail beside it */
.seq__stage { position: relative; aspect-ratio: var(--seq-ratio, 1100 / 760); background: var(--hull); }
@media (min-width: 62rem) { .seq__stage { aspect-ratio: 21 / 9; } }
.seq__bar { position: absolute; inset: auto 0 0 0; height: 2px; background: color-mix(in oklab, var(--deep) 60%, transparent); }
.seq__bar span { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--accent); z-index: 2; }
.seq__cap { margin-top: .9rem; }
@media (prefers-reduced-motion: reduce) {
  .seq { height: auto; }
  .seq__sticky { position: static; }
}
