/* OSC Group. The world is the brand film; this file is the type and chrome
   that ride on top of it. Six colours, two faces. The violet-blue-cyan is the
   logo's own light, so the accent is the logo's cyan and nothing else. */

:root {
  --sc-canvas:     #05060f;
  --sc-surface:    #0c0e22;
  --sc-ink:        #eef1ff;
  --sc-ink-soft:   #a7acd8;
  --sc-accent:     #52d9ff;
  --sc-accent-ink: #031119;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Archivo", system-ui, sans-serif;
  --sc-font-mono:    "Archivo", system-ui, sans-serif;
  --sc-shadow-color: 236 70% 2%;

  --bar-h: 72px;
  --night-90: color-mix(in oklab, var(--sc-canvas) 90%, transparent);
  --night-70: color-mix(in oklab, var(--sc-canvas) 70%, transparent);
  --night-40: color-mix(in oklab, var(--sc-canvas) 40%, transparent);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: var(--sc-gutter); top: -60px; z-index: 100;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: top var(--sc-d-fast) var(--sc-ease-out);
}
.skip:focus-visible { top: 12px; }

/* ------------------------------------------------------------------ bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: var(--sc-z-chrome);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--sc-gutter);
}
.bar::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--night-70), transparent);
}
.bar__brand {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  color: var(--sc-ink); text-decoration: none; border-radius: 10px; padding: 4px 6px 4px 0;
}
.bar__brand img { width: 52px; height: auto; display: block; }
.bar__brand span {
  font-family: var(--sc-font-display); font-weight: 600; font-size: 15px;
  letter-spacing: 0; line-height: 1;
}
.bar__brand b { font-weight: 400; letter-spacing: 0; color: var(--sc-ink-soft); }
.bar .btn { justify-self: end; }

/* The map. The road the film travels, flattened to one line: six stops, the
   part already travelled lit, and a marker where the reader is now. */
.route { position: relative; width: min(620px, 46vw); height: 44px; }
.route__line {
  position: absolute; left: 0; right: 0; top: 13px; height: 1px;
  background: color-mix(in oklab, var(--sc-ink) 22%, transparent);
}
.route__done {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #6f86ff, var(--sc-accent));
}
.route__dot {
  position: absolute; left: 0; top: 13px; width: 9px; height: 9px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--sc-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 22%, transparent);
  will-change: transform;
}
.route__stops {
  list-style: none; margin: 0; padding: 0; position: absolute; inset: 0;
  display: flex; justify-content: space-between;
}
.route__stops li { position: relative; width: 0; display: flex; justify-content: center; }
.route__stops button {
  position: absolute; top: 0; transform: translateX(-50%);
  background: none; border: 0; cursor: pointer; padding: 22px 6px 6px;
  font: 400 11px/1 var(--sc-font-mono); letter-spacing: 0; color: var(--sc-ink-soft);
  white-space: nowrap; border-radius: 6px;
  transition: color var(--sc-d-fast) var(--sc-ease-out);
}
.route__stops li:first-child button { transform: none; left: -6px; }
.route__stops li:last-child button { transform: none; right: -6px; }
.route__stops button::before {
  content: ""; position: absolute; left: 50%; top: 10px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--sc-canvas);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 45%, transparent);
}
.route__stops li:first-child button::before { left: 6px; margin-left: -3.5px; }
.route__stops li:last-child button::before { left: auto; right: 6px; margin-right: -3.5px; }
.route__stops button[aria-current="true"] { color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) {
  .route__stops button:hover { color: var(--sc-ink); }
}
.route__now { display: none; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font: 600 15px/1 var(--sc-font-text); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -10px hsl(196 100% 50% / .45);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in oklab, var(--sc-accent) 82%, white); }
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- world -- */
.world::before {
  /* ambient light for the parts of the frame the film does not cover (phones) */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 36%, rgba(86, 72, 230, .22), transparent 70%),
    radial-gradient(40% 30% at 92% 0%, rgba(80, 52, 200, .25), transparent 70%);
}
/* reduced motion only: one still per station (see encode-legs.sh) */
.rm-still { display: none; }

.orbit {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  z-index: 200; opacity: 0; pointer-events: none;
  touch-action: pan-y; cursor: grab;
}
.is-live .orbit { pointer-events: auto; }
.orbit.is-grabbing { cursor: grabbing; }
.no-orbit .orbit, .no-orbit .tags { display: none; }
/* Smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ----------------------------------------------------------------- copy -- */
.copy { position: absolute; z-index: 2; max-width: 34rem; }
.copy--hero {
  left: 50%; translate: -50% 0; bottom: clamp(1.5rem, 4.5vh, 3.5rem);
  width: min(62rem, calc(100vw - 2 * var(--sc-gutter))); max-width: none;
  text-align: center; display: grid; justify-items: center; gap: var(--sc-4);
}
.copy--lead  { left: var(--sc-gutter); bottom: clamp(3rem, 12vh, 7.5rem); max-width: 29rem; }
.copy--top   { left: var(--sc-gutter); top: calc(var(--bar-h) + clamp(2rem, 8vh, 5rem)); max-width: 30rem; }
.copy--trail { right: var(--sc-gutter); bottom: clamp(3rem, 12vh, 7.5rem); max-width: 27rem; }
.copy--column { left: var(--sc-gutter); top: 50%; translate: 0 -50%; max-width: 27rem; }
.copy--finale { left: var(--sc-gutter); top: calc(var(--bar-h) + 18px); max-width: 21rem; transition: visibility 0s; }
.card-open .copy--finale { visibility: hidden; }
/* .display.display--sm, not .display--sm: the general .display rule comes later in this file and would win */
.display.display--sm { font-size: clamp(1.25rem, 0.95rem + 0.9vw, 1.65rem); line-height: 1.08; }
.copy--finale .body { margin-top: var(--sc-2); font-size: 14px; max-width: 17rem; }

.display {
  font-family: var(--sc-font-display); font-weight: 400;
  font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.85rem);
  line-height: 1.05; letter-spacing: 0; margin: 0;
  text-wrap: balance; color: var(--sc-ink);
}
.display--hero { font-size: clamp(2rem, 1rem + 2.1vw, 3.1rem); line-height: 1.04; }
.lede {
  margin: 0; max-width: 74ch; color: color-mix(in oklab, var(--sc-ink) 82%, var(--sc-ink-soft));
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.5; letter-spacing: 0; text-wrap: pretty;
}
.copy--hero .btn { margin-top: var(--sc-2); }
.body {
  margin: var(--sc-4) 0 0; max-width: 46ch; color: color-mix(in oklab, var(--sc-ink) 74%, var(--sc-ink-soft));
  font-size: var(--sc-t-base); line-height: 1.62; letter-spacing: 0; text-wrap: pretty;
}
.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sc-5);
  color: var(--sc-accent); font: 400 14px/1 var(--sc-font-mono); letter-spacing: 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  padding: 6px 0;
}
.link::after { content: "↗"; text-decoration: none; display: inline-block; }

.when-coarse { display: none; }
@media (pointer: coarse) { .when-fine { display: none; } .when-coarse { display: inline; } }

/* Scrims sit only where the type sits. site.js sets each one's opacity to
   its block's, so the film is untouched everywhere else. */
.scrim { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 1; }
.scrim--hero   { background: linear-gradient(to top, var(--night-90) 0%, var(--night-70) 16%, var(--night-40) 30%, transparent 46%); }
.scrim--lead   {
  background:
    radial-gradient(70% 72% at 0% 100%, var(--sc-canvas) 0%, var(--night-90) 30%, var(--night-70) 52%, transparent 78%),
    radial-gradient(120% 62% at 0% 100%, var(--night-90) 0%, var(--night-70) 38%, var(--night-40) 58%, transparent 80%);
}
.scrim--trail  {
  background:
    radial-gradient(66% 72% at 100% 100%, var(--sc-canvas) 0%, var(--night-90) 30%, var(--night-70) 52%, transparent 78%),
    radial-gradient(120% 70% at 100% 100%, var(--night-90) 0%, var(--night-70) 44%, var(--night-40) 64%, transparent 84%);
}
.scrim--top    { background: radial-gradient(64% 70% at 0% 0%, var(--sc-canvas) 0%, var(--night-90) 30%, var(--night-70) 50%, transparent 76%); }
.scrim--column { background: linear-gradient(to right, var(--sc-canvas) 0%, var(--night-90) 22%, var(--night-70) 34%, var(--night-40) 45%, transparent 60%); }
.scrim--finale { background: radial-gradient(50% 44% at 0% 0%, var(--sc-canvas) 0%, var(--night-90) 48%, var(--night-70) 68%, transparent 92%); }

/* ---------------------------------------------------------------- brief -- */
.brief { margin-top: var(--sc-6); display: grid; gap: var(--sc-4); }
.picks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { position: relative; cursor: pointer; }
.picks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picks span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 400 14px/1 var(--sc-font-text); color: var(--sc-ink-soft);
  background: color-mix(in oklab, var(--sc-surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 16%, transparent);
  transition: color var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.picks input:checked + span {
  color: var(--sc-ink); background: color-mix(in oklab, var(--sc-accent) 16%, var(--sc-surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-accent) 70%, transparent);
}
.picks input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .picks label:hover span { color: var(--sc-ink); }
}
.field { display: grid; gap: 8px; }
.field label { font: 400 12px/1 var(--sc-font-mono); letter-spacing: 0; color: var(--sc-ink-soft); }
.field textarea {
  width: 100%; resize: vertical; min-height: 92px; padding: 12px 14px; border-radius: 14px; border: 0;
  font: 400 15px/1.5 var(--sc-font-text); color: var(--sc-ink);
  background: color-mix(in oklab, var(--sc-surface) 78%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 16%, transparent);
}
.field textarea::placeholder { color: color-mix(in oklab, var(--sc-ink-soft) 70%, transparent); }
.field textarea:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.row { display: flex; align-items: center; gap: var(--sc-4); flex-wrap: wrap; }
.brief__note { font-size: 13px; color: var(--sc-ink-soft); }
.brief__status { margin: 0; min-height: 1.3em; font-size: 13px; color: var(--sc-accent); }
.brief__status:empty { display: none; }

.colophon {
  margin: var(--sc-6) 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font: 400 12px/1.4 var(--sc-font-mono); letter-spacing: 0; color: var(--sc-ink-soft);
}
.colophon a { color: var(--sc-ink-soft); text-underline-offset: 4px; }
.colophon a:hover { color: var(--sc-ink); }

/* ------------------------------------------------------------------ hub --
   The layer over the live galaxy. Transparent to the pointer except for its
   controls, so a drag anywhere else turns the ring. Shown only once the film
   has fully thawed (body.is-live). */
.hub {
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 420ms var(--sc-ease-out), visibility 0s linear 420ms;
}
.is-live .hub { opacity: 1; visibility: visible; transition: opacity 520ms var(--sc-ease-out) 120ms, visibility 0s; }

/* Station labels on the live ring. orbit.js positions them every frame. */
.tags { position: absolute; inset: 0; pointer-events: none; }
.stag {
  position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none;
  padding: 7px 12px; border-radius: 999px; border: 0; cursor: pointer;
  font: 400 12px/1 var(--sc-font-mono); letter-spacing: 0; white-space: nowrap;
  color: var(--sc-ink); background: color-mix(in oklab, var(--sc-canvas) 62%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 18%, transparent);
  transition: box-shadow var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
  will-change: transform, opacity;
}
.stag.is-on, .stag:hover { box-shadow: inset 0 0 0 1px var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 14%, var(--sc-canvas)); }
.stag--cta { color: var(--sc-accent-ink); background: var(--sc-accent); box-shadow: none; }
.stag--cta.is-on, .stag--cta:hover { background: color-mix(in oklab, var(--sc-accent) 82%, white); box-shadow: none; }
.stag.is-hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 50%, transparent); }

/* The dock: every station by name, one row along the bottom. It is the
   keyboard and screen-reader way into the galaxy, and the quick way for
   everyone else. */
.dock {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0;
  max-width: calc(100vw - 2 * var(--sc-gutter)); pointer-events: auto;
  padding: 6px; border-radius: 999px;
  background: color-mix(in oklab, var(--sc-canvas) 72%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 12%, transparent), var(--sc-e2);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.dock::-webkit-scrollbar { display: none; }
.dock ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.dock button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--sc-ink-soft);
  font: 400 13px/1 var(--sc-font-text);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out);
}
.dock button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--c); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 18%, transparent);
}
.dock button[aria-current="true"] { background: color-mix(in oklab, var(--sc-ink) 10%, transparent); color: var(--sc-ink); }
.dock .dock__cta { color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) {
  .dock button:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
}
.dock button:active { transform: scale(0.97); }

/* The card: one feature at a time. Solid enough to read on anything the
   galaxy draws behind it; it slides in from its own edge. */
.card {
  position: absolute; right: var(--sc-gutter); top: calc(var(--bar-h) + 16px); bottom: 92px;
  width: min(430px, 34vw); pointer-events: auto;
  display: flex; flex-direction: column;
  padding: 28px 28px 18px; border-radius: 22px;
  background: color-mix(in oklab, #0a0c1e 90%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 9%, transparent),
              inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 10%, transparent), var(--sc-e3);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translate3d(18px, 0, 0);
  transition: opacity 280ms var(--sc-ease-out), transform 380ms var(--sc-ease-drawer);
}
.card[hidden] { display: none; }
.card.is-in { opacity: 1; transform: none; }
.card__x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer; font: 400 22px/1 var(--sc-font-text); color: var(--sc-ink-soft);
  background: color-mix(in oklab, var(--sc-ink) 6%, transparent);
  transition: color var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.card__x:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 12%, transparent); }
.feat { flex: 1 0 auto; animation: feat-in 420ms var(--sc-ease-out) both; }
@keyframes feat-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
.feat__k {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font: 400 12px/1 var(--sc-font-mono); letter-spacing: 0; text-transform: none; color: var(--sc-ink-soft);
}
.feat__k::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 20%, transparent); }
.feat__t {
  margin: var(--sc-5) 0 0; padding-right: 30px;
  font: 400 clamp(1.45rem, 1.1rem + 0.9vw, 1.9rem)/1.08 var(--sc-font-display); letter-spacing: 0;
  text-wrap: balance; color: var(--sc-ink);
}
.feat__l { margin: var(--sc-4) 0 0; color: color-mix(in oklab, var(--sc-ink) 78%, var(--sc-ink-soft)); line-height: 1.6; text-wrap: pretty; }
.feat__list, .feat__steps { margin: var(--sc-5) 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feat__list li { position: relative; padding-left: 22px; color: var(--sc-ink); line-height: 1.5; font-size: 15px; }
.feat__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--sc-accent); }
.feat__steps { counter-reset: s; gap: 14px; }
.feat__steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; color: color-mix(in oklab, var(--sc-ink) 80%, var(--sc-ink-soft)); line-height: 1.5; }
.feat__steps li::before { content: counter(s); font: 400 13px/1 var(--sc-font-mono); color: var(--sc-accent); }
.feat__steps b { color: var(--sc-ink); font-weight: 600; }
.feat .link { margin-top: var(--sc-5); }
.feat .brief { margin-top: var(--sc-5); }
.feat .colophon { margin-top: var(--sc-5); }
.card__nav {
  display: flex; align-items: center; gap: 8px; margin-top: var(--sc-6); padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
}
.card__go {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  font: 400 17px/1 var(--sc-font-text); color: var(--sc-ink);
  background: color-mix(in oklab, var(--sc-ink) 7%, transparent);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out);
}
.card__go:hover { background: color-mix(in oklab, var(--sc-ink) 14%, transparent); }
.card__go:active { transform: scale(0.95); }
.card__count { font: 400 12px/1 var(--sc-font-mono); letter-spacing: 0; color: var(--sc-ink-soft); min-width: 44px; text-align: center; }
.card__cta { margin-left: auto; }
.card[data-showing="projekt"] .card__cta { display: none; }

/* ------------------------------------------------------------ narrow ---- */
@media (max-width: 1100px) {
  .route { width: min(520px, 44vw); }
  .route__stops button { font-size: 13px; letter-spacing: 0; }
}

@media (max-width: 860px) {
  :root { --bar-h: 60px; }
  .bar { grid-template-columns: auto 1fr auto; }
  .bar__brand img { width: 44px; }
  .bar__brand span { font-size: 13px; }

  /* the map becomes a thin rail under the bar with the current stop named */
  .route { position: fixed; left: var(--sc-gutter); right: var(--sc-gutter); top: var(--bar-h); width: auto; height: 26px; }
  .route__line, .route__dot { top: 6px; }
  .route__stops button { font-size: 0; padding: 0; width: 28px; height: 22px; top: -3px; }
  .route__stops button::before { top: 6px; }
  .route__stops li:first-child button::before { left: 3px; }
  .route__stops li:last-child button::before { right: 3px; }
  .route__now {
    display: block; position: absolute; right: 0; top: 13px;
    font: 400 11px/1 var(--sc-font-mono); letter-spacing: 0; color: var(--sc-ink);
  }

  /* The film is 16:9 and the logo spans its middle 43%. Shown at 165vw and
     centred high, the whole mark and every station stay in frame; the top and
     bottom feather into the night, and the type gets the lower half. */
  .sc-world__seg > :is(video, img) {
    inset: auto; left: 50%; top: 37%; width: 165vw; max-width: none; height: auto; aspect-ratio: 16 / 9;
    translate: -50% -50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }

  .copy, .copy--lead, .copy--trail, .copy--column, .copy--top, .copy--finale {
    left: var(--sc-gutter); right: var(--sc-gutter); top: auto; bottom: max(1.5rem, env(safe-area-inset-bottom));
    translate: none; max-width: none;
  }
  .copy--hero { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; translate: none; text-align: left; justify-items: start; }
  .display { font-size: clamp(1.55rem, 1rem + 2.6vw, 2.1rem); }
  .display--hero { font-size: clamp(1.8rem, 1.1rem + 3.4vw, 2.4rem); }
  .lede { font-size: 1.05rem; }
  .body { font-size: 0.98rem; margin-top: var(--sc-3); }
  .scrim--hero, .scrim--lead, .scrim--trail, .scrim--column, .scrim--top, .scrim--finale {
    background: linear-gradient(to top, var(--night-90) 0%, var(--night-70) 26%, var(--night-40) 42%, transparent 56%);
  }
  .scrim--finale { background: linear-gradient(to top, var(--sc-canvas) 0%, var(--night-90) 40%, var(--night-40) 58%, transparent 70%); }
  .brief { margin-top: var(--sc-4); gap: var(--sc-3); }
  .field textarea { min-height: 64px; }
  .brief__note { display: none; }
  .colophon { margin-top: var(--sc-4); }

  /* the hub on a phone: the heading under the ring, the dock along the
     bottom, and the card as a sheet that rises over the dock */
  .copy--finale { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .scrim--finale { background: linear-gradient(to top, var(--night-90) 0%, var(--night-70) 22%, transparent 40%); }
  .dock { left: 0; right: 0; translate: none; max-width: none; margin: 0 12px; border-radius: 18px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .card {
    left: 10px; right: 10px; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: auto;
    max-height: 62svh; padding: 22px 20px 14px; border-radius: 20px;
    transform: translate3d(0, 24px, 0);
  }
  .card-open .dock { opacity: 0; pointer-events: none; }
  .card-open .stag:not(.is-on) { visibility: hidden; }
  .stag { font-size: 13px; padding: 6px 10px; }
  .feat__t { font-size: 1.35rem; margin-top: var(--sc-4); }
  .feat__list li { font-size: 14px; }
}

@media (max-width: 860px) and (max-height: 720px) {
  .copy--finale > .body { display: none; }
  .card { max-height: 70svh; }
  .brief { gap: 10px; margin-top: var(--sc-3); }
  .picks span { min-height: 36px; padding: 0 13px; font-size: 13px; }
  .field textarea { min-height: 50px; }
  .field label { display: none; }
  .colophon { margin-top: 10px; }
}

/* --------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .rm-still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
  .rm-end { opacity: var(--rm-end, 0); }
  .btn, .picks span, .stag, .route__stops button, .dock button, .card, .hub { transition: none; }
  .feat { animation: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .rm-still { inset: auto; left: 50%; top: 37%; width: 165vw; max-width: none; height: auto; aspect-ratio: 16 / 9; translate: -50% -50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%); }
}

/* ------------------------------------------------------------ AI LAB ---
   The product leads: a second hero action, a link in the bar, a lit station
   in the galaxy, first place in the dock. */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--sc-2); }
.copy--hero .ctas .btn { margin-top: 0; }
.btn--ghost {
  background: color-mix(in oklab, var(--sc-canvas) 55%, transparent); color: var(--sc-ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 30%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 10%, var(--sc-canvas)); }
}
.bar__end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.bar__product {
  font: 400 13px/1 var(--sc-font-mono); letter-spacing: 0; color: var(--sc-ink);
  text-decoration: none; padding: 10px 4px; border-radius: 6px;
}
.bar__product::after { content: none; }
@media (hover: hover) and (pointer: fine) { .bar__product:hover { color: var(--sc-accent); } }
.copy .eyebrow {
  margin: 0 0 var(--sc-3); font: 400 12px/1 var(--sc-font-mono); letter-spacing: 0;
  text-transform: none; color: var(--sc-accent);
}
.copy--column .btn { margin-top: var(--sc-5); }
.stag--main { color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 18%, var(--sc-canvas)); }
.dock .dock__main { color: var(--sc-accent); font-weight: 600; }
.feat__go { margin-top: var(--sc-5); align-self: flex-start; }
.feat { display: flex; flex-direction: column; }
/* a class that sets display beats the UA [hidden] rule; say it again here */
.feat[hidden] { display: none; }
.card[data-showing="ailab"] .card__cta, .card[data-showing="onas"] .card__cta { display: none; }
.social { display: contents; }
.brief__status a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .bar__product { display: none; }
  .ctas { justify-content: flex-start; }
}

/* ===================================================================== *
 * 25. 10.: the film is the front page again, its galaxy opens the node   *
 * pages. Everything below overrides the first film page where needed.    *
 * ===================================================================== */

/* one family on every page: Archivo, wide for headings, normal for reading */
:root {
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Archivo", system-ui, sans-serif;
  --sc-font-mono: "Archivo", system-ui, sans-serif;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.display { font-weight: 600; letter-spacing: 0; }

.route__stops button { letter-spacing: 0; text-transform: none; }
/* text over the film is drawn by the compositor: keep it on whole pixels */
[data-sc-copy] { backface-visibility: hidden; }

/* the old hub's pieces are gone; the galaxy layer is labels + stations */
.tags, .card, .dock { display: none !important; }
.hub { z-index: 210; }

.labels { position: absolute; inset: 0; pointer-events: none; }
.node {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  padding: 6px 11px 7px; border-radius: 10px;
  background: rgba(8, 9, 20, 0.8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #f4f4f5; font: 600 0.875rem/1.2 "Archivo", system-ui, sans-serif;
  white-space: nowrap; text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}
.node--main { background: #f4f4f5; color: #0b0c10; box-shadow: none; }
.node--core { background: transparent; box-shadow: none; color: #c8c8ce; font-weight: 400; }
.node.is-hover, .node:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.node--main.is-hover, .node--main:hover { background: #fff; }

/* the stations as a list: centred by flex, never by translating an intrinsic
   width, and when it does not fit it scrolls inside itself */
.stations {
  position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; padding: 0 var(--sc-gutter, 24px); pointer-events: none;
}
.stations ul {
  pointer-events: auto; min-width: 0; max-width: 100%; margin: 0; list-style: none;
  display: flex; flex-wrap: nowrap; gap: 4px; padding: 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  border-radius: 16px; background: rgba(8, 9, 20, 0.76); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.stations ul::-webkit-scrollbar { display: none; }
.stations li { flex: none; scroll-snap-align: start; }
.stations a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 11px; white-space: nowrap;
  font: 400 0.9375rem/1 "Archivo", system-ui, sans-serif; color: #c8c8ce; text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.stations a.is-main { color: #f4f4f5; font-weight: 600; }
.stations a:hover, .stations a.is-hover, .stations a:focus-visible { background: rgba(255, 255, 255, 0.1); color: #f4f4f5; }
.stations a:active { transform: scale(0.97); }
.stations a:focus-visible { outline: 2px solid #f4f4f5; outline-offset: 0; }

/* leaving: the copy and the bar step aside while the camera flies in, then
   the dark closes just before the next page */
.veil { position: fixed; inset: 0; z-index: 400; background: #0e0e10; opacity: 0; pointer-events: none; }
.is-leaving .veil { opacity: 1; transition: opacity 220ms ease 300ms; }
.is-leaving .hub, .is-leaving .bar, .is-leaving [data-sc-world-copy] { opacity: 0 !important; transition: opacity 160ms ease; }

/* between pages: the same cross-document fade as the node pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms ease both; }
::view-transition-new(root) { animation: vt-in 300ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

@media (max-width: 860px) {
  .stations { bottom: max(12px, env(safe-area-inset-bottom)); padding: 0 16px; }
  .stations ul { width: 100%; padding: 5px; }
  .stations a { min-height: 44px; padding: 0 13px; font-size: 0.875rem; }
  .node { font-size: 0.875rem; padding: 5px 9px 6px; }
}
