/* Alcor studio site. Generated pages share this one stylesheet (tools/build.mjs writes the HTML).
   Motion is calm and slow, never strobing; everything holds still under prefers-reduced-motion.
   Archivo variable font: SIL OFL 1.1, see fonts/OFL-Archivo.txt. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Film-noir palette from the Threadmark pitch: near-black, charcoal panels, one red-coral thread. */
  --ground: #0b0c0e;
  --panel: #141619;
  --panel-hi: #1d2024;
  --ink: #ece9e4;
  --ink-2: #b3afa9;
  --ink-3: #8e8a85;
  --hair: rgba(236, 233, 228, .12);
  --rule: rgba(236, 233, 228, .32);
  --amber: #ff5a47;
  --amber-hi: #ff8576;
  --on-amber: #160605;
  --face: "Archivo", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--face); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: var(--amber-hi); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--amber); color: var(--on-amber); padding: 10px 14px; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 6vw, 82px); line-height: 1; font-weight: 500; letter-spacing: -.01em; }
.h2 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 500; }
.lede { margin: 0; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.band { background: var(--panel); border-block: 1px solid var(--hair); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 26px; min-height: 44px; align-items: center; }
.brand i { color: var(--amber); font-style: normal; }
.brand small { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); margin-left: 8px; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--amber); }

/* Buttons and pills */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-weight: 700; text-decoration: none; background: var(--amber); color: var(--on-amber); }
.btn:hover { color: var(--on-amber); background: var(--amber-hi); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); font-weight: 500; }
.btn.ghost:hover { border-color: var(--amber); color: var(--ink); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; white-space: nowrap; }
.pill.live { color: var(--amber); }
.pill.prep, .pill.github { color: var(--ink-2); }

/* Hero + The Thread */
.hero { display: grid; gap: clamp(24px, 4vw, 40px); padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.thread { border: 1px solid var(--hair); background: var(--panel); }
.thread svg { display: block; width: 100%; height: auto; touch-action: none; }
.thread .grid line { stroke: rgba(236, 233, 228, .045); }
.t-line { fill: none; stroke-linecap: round; }
.t-line.built { stroke: var(--amber); stroke-width: 3.5; filter: url(#glow); }
.t-line.progress { stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 12 8; }
.t-line.idea { stroke: var(--ink-3); stroke-width: 3; stroke-dasharray: 1 9; }
.t-hit { stroke: transparent; stroke-width: 28; fill: none; cursor: pointer; }
.t-tag { font-family: var(--face); font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: var(--panel); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.t-node { cursor: grab; }
.t-node.dragging { cursor: grabbing; }
.t-node circle.ring { fill: var(--panel-hi); stroke: var(--rule); stroke-width: 1.5; }
.t-node:hover circle.ring, .t-node:focus-visible circle.ring { stroke: var(--amber); stroke-width: 3; }
.t-node text { font-family: var(--face); font-size: 17px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.t-node .initial { font-size: 30px; font-weight: 700; fill: var(--ink-2); }
.thread.has-pick .t-line:not(.picked), .thread.has-pick .t-tag:not(.picked) { opacity: .35; }
.t-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--hair); min-height: 48px; align-items: center; }
.t-caption p { margin: 0; color: var(--ink-2); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.legend svg { width: 34px; height: 8px; }
@media (max-width: 720px) { .t-tag { display: none; } }

.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.links li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.links b { font-weight: 600; }
.links span { color: var(--ink-2); }

/* App grid */
.grid-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.app { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--hair); background: var(--panel); color: var(--ink); text-decoration: none; min-height: 100%; }
.app:hover { border-color: var(--amber); color: var(--ink); background: var(--panel-hi); }
.app img, .app .noicon { width: 64px; height: 64px; border-radius: 15px; }
.app .noicon { display: grid; place-items: center; background: var(--ground); border: 1px solid var(--hair); font-weight: 700; font-size: 26px; color: var(--ink-2); }
.app strong { font-size: 19px; font-weight: 600; }
.app p { margin: 4px 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.app .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-3); }

/* Featured screens */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots.wide { grid-auto-columns: minmax(280px, 560px); }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border: 1px solid var(--hair); border-radius: 18px; background: var(--panel); }
.shots.wide img { border-radius: 10px; }
.shots figcaption { font-size: 13px; color: var(--ink-3); padding-top: 8px; }

/* Play + lab + stay */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--hair); background: var(--ground); color: var(--ink); text-decoration: none; }
.band .card { background: var(--ground); }
.card:hover { border-color: var(--amber); color: var(--ink); }
.card img { border: 1px solid var(--hair); border-radius: 14px; max-height: 300px; object-fit: cover; object-position: top; }
.card img.mid { object-position: center 70%; }
.card strong { font-family: var(--serif); font-size: 23px; font-weight: 500; }
.card p { margin: 0; color: var(--ink-2); }
.code { font-family: var(--mono); font-size: clamp(30px, 4vw, 42px); letter-spacing: .06em; color: var(--amber); }

/* App page */
.app-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: center; padding-block: clamp(24px, 4vw, 56px); }
.app-hero .icon { width: 96px; height: 96px; border-radius: 22px; }
.app-hero-detail { min-width: 0; gap: 20px; }
.app-art { display: block; width: 100%; height: auto; border: 1px solid var(--hair); background: var(--ground); }
.app-art[hidden] { display: none; }
.crumb { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.facts { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }

footer { border-top: 1px solid var(--hair); }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-block: 36px; font-size: 14px; color: var(--ink-2); }
.foot a { color: var(--ink); }

/* Layout helpers. The server's CSP allows only same-origin stylesheets, so pages carry no style="" attributes. */
.stack.tight { gap: 6px; }
.stack.roomy { gap: 24px; }
.foot-brand { color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 500; }
.label.plain { color: var(--ink-3); letter-spacing: .02em; text-transform: none; }
.label.amber { color: var(--amber); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; }
.split.center { align-items: center; gap: 24px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.pill.start { align-self: flex-start; }
.card.amber { border-color: var(--amber); }
.lede.big { font-size: 19px; }
.shots-wrap { padding-bottom: 40px; }
.thread { margin: 0; }
.hero .stack { gap: 18px; }

/* Hero band: in the Thread look the three.js web (.web-sky) sits behind it. */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.thread { background: rgba(20, 22, 25, .82); }

/* Shelves: the apps as products, grouped by what they do for a person. */
.h3 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
.shelf { display: grid; gap: 16px; padding-top: 28px; border-top: 1px solid var(--hair); }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.shelf-head p { margin: 0; color: var(--ink-2); }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.pc { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--hair); background: var(--panel); color: var(--ink); text-decoration: none; overflow: hidden; }
.pc:hover { border-color: var(--amber); color: var(--ink); }
.pc-shot { display: block; height: 300px; background: radial-gradient(120% 90% at 50% 0%, #23262b, var(--ground)); padding: 18px 28px 0; overflow: hidden; }
.pc-shot img { width: 100%; border-radius: 18px 18px 0 0; border: 1px solid var(--hair); border-bottom: 0; }
.pc-icon { display: grid; place-items: center; padding: 0; }
.pc-icon img { width: 112px; border-radius: 26px; border: 0; }
.pc-icon b { font-family: var(--serif); font-size: 72px; font-weight: 500; color: var(--ink-3); }
.pc-body { display: grid; gap: 8px; padding: 16px; }
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-head img { border-radius: 9px; }
.pc-head strong { font-size: 19px; font-weight: 600; }
.pc-line { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.pc .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-3); }

/* What's inside: plain-language powers, the framework as a footnote. */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--hair); background: var(--panel); }
.tool strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.tool p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.tool-apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tool-apps a { font-size: 13px; padding: 4px 8px; border: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.tool-apps a:hover { border-color: var(--amber); }
.pill.dev, .pill.open { color: var(--ink-2); }
.thread svg { max-height: 760px; }

/* Splash: threads weave the apps together and draw them into Alcor (splash.js). */
.splashing body { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 50; background: var(--ground); }
.splash[hidden] { display: none; }
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-hud { position: absolute; left: var(--gutter); right: var(--gutter); top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); }
.splash-hud.bottom { top: auto; bottom: 18px; align-items: center; }
.splash-skip { min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink-2); border: 1px solid var(--hair); font: inherit; cursor: pointer; }
.splash-title { position: absolute; left: 0; right: 0; bottom: 6vh; display: grid; justify-items: center; gap: 14px; text-align: center; opacity: 0; pointer-events: none; }
.splash.ready .splash-title { opacity: 1; pointer-events: auto; }
.splash-title strong { font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 11vw, 140px); line-height: .9; letter-spacing: .01em; text-shadow: 0 0 60px rgba(255,90,71,.35); }
.splash-tag { font-size: clamp(17px, 1.8vw, 21px); letter-spacing: .01em; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .splash-title { transition: opacity .9s ease-out, transform .9s ease-out; transform: translateY(14px); }
  .splash.ready .splash-title { transform: none; }
  .splash.leaving .splash-title { opacity: 0; transition-duration: .35s; }
}
@media (max-height: 640px) {
  .splash-title { bottom: 4vh; gap: 8px; }
  .splash-title strong { font-size: clamp(44px, 9vh, 72px); }
  .splash-tag { display: none; }
}
.pc-cover { padding: 0; } .pc-cover img { height: 100%; object-fit: cover; border: 0; border-radius: 0; }

/* Phones: the site nav stays on one line and scrolls sideways instead of wrapping. */
@media (max-width: 720px) {
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
}

/* Support and privacy pages. */
.prose { max-width: 68ch; }
.prose p { margin: 0; }
.app-help { display: flex; gap: 24px; padding-block: 32px; }
.app-help a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Shared by both looks. These rules are the Thread look; comic.css restyles them for Comic. ---- */

/* Brand mark (Mizar, with little Alcor beside it) and the look switch. */
.mark { width: 26px; height: 26px; flex: none; }
.mark .mizar { fill: var(--ink); }
.mark .alcor { fill: var(--amber); }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.theme-switch[hidden] { display: none; }
.theme-switch button { font: 600 13px var(--face); min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }

/* Labels that the Comic look draws as yellow caption boxes and corner tags. */
.tag, .caption { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); align-self: flex-start; justify-self: start; }
.panel { position: relative; }

/* Hero: the cover, then "What do you want to do?". In Thread the web canvas fills the first screen
   only (thread-web.js sets --sky-h to the cover's height), so the picker below sits on plain ground. */
.web-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.web-sky[hidden] { display: none; }
.hero-band.has-web .web-sky, .hero-band.has-web::before { bottom: auto; height: var(--sky-h, 100%); }
.hero-band.has-web .web-sky { mask-image: linear-gradient(#000 80%, transparent); }
.hero-page { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 640px); gap: 22px; padding-block: clamp(24px, 4vw, 56px) 8px; }
.hero-band.has-web .hero-page { min-height: min(78svh, 760px); align-content: center; pointer-events: none; }
/* The cover takes clicks; the empty rest of the row lets drags and taps reach the web behind it. */
.hero-band.has-web .hero-page > * { pointer-events: auto; }
.cover { gap: 16px; }
.cover .h1 em { font-style: normal; color: var(--amber); }
.inkweb { display: none; }
.hero-band.has-web::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.72) 38%, rgba(11,12,14,.1) 70%); }
.ask { position: relative; z-index: 2; gap: 18px; padding-block: 24px clamp(40px, 6vw, 72px); }
.ask .h2 { max-width: 16ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(11,12,14,.7); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--amber); color: var(--ink); }
.chip[aria-current] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.features { max-width: 920px; }
.feature { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px clamp(20px, 4vw, 48px); align-items: center; padding: clamp(20px, 3vw, 36px); background: rgba(20,22,25,.86); border: 1px solid var(--hair); }
.feature[hidden] { display: none; }
.feature > .tag { grid-column: 1 / -1; }
.feature-text { gap: 14px; }
.feature-name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5.4vw, 76px); line-height: 1; }
.feature-line { margin: 0; font-size: clamp(18px, 1.7vw, 21px); max-width: 36ch; }
.phone { position: relative; width: 100%; max-width: 220px; aspect-ratio: 9 / 19.5; justify-self: center; border: 6px solid #2a2d33; border-radius: 30px; overflow: hidden; background: var(--ground); }
.phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top; background: #111; opacity: 0; }
.phone > img.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .phone > img { transition: opacity .6s ease; } }
.phone > .ht { position: absolute; inset: 0; }
.phone > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; }

/* In the studio: unreleased apps, each in a phone with its state on the corner tag. No store claims. */
.studio-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.studio-card { display: grid; gap: 16px; align-content: start; padding: 20px; border: 1px solid var(--hair); background: var(--panel); }
.studio-card .phone { max-width: 200px; }
.studio-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.studio-card .soon { color: var(--ink); }
.studio-links a { min-height: 44px; display: inline-flex; align-items: center; }
.ficon { width: 120px; border-radius: 28px; }
.passes { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.say { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 16px; background: var(--panel-hi); color: var(--ink); }
.ask-more { margin: 0; }
.ask-more a { color: var(--ink-2); }

/* Drawn tiles for apps with no icon yet: halftone in the app's ink, the initial on top. */
.ht { --c: #f28fb8; display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(var(--c) 2.2px, transparent 2.6px) 0 0 / 10px 10px, color-mix(in srgb, var(--c) 28%, var(--ground)); }
.ht.t0 { --c: #f28fb8; } .ht.t1 { --c: #2ec4d6; } .ht.t2 { --c: #8f7cf2; } .ht.t3 { --c: #6cc788; } .ht.t4 { --c: #ffd23f; }
.ht b { font: 900 96px/1 var(--face); font-stretch: 75%; color: var(--ink); }
.pc-drawn { padding: 0; }
.app-hero .icon.drawn { display: block; width: 96px; height: 96px; border-radius: 22px; overflow: hidden; }
.app-hero .icon.drawn b { font-size: 56px; }

/* Our story: the pixel map beside a few lines. */
.story { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
.map { margin: 0; overflow: hidden; background: #0d1220; border: 1px solid var(--hair); }
.map canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; image-rendering: pixelated; }
.map > .tag { position: absolute; top: 12px; left: 12px; color: #f4ecd8; }
.map-cap { position: absolute; left: 12px; bottom: 12px; color: #f4ecd8; }
.map-btn { position: absolute; right: 12px; bottom: 10px; min-height: 40px; padding: 0 14px; font: 700 14px var(--face); border: 1px solid var(--rule); border-radius: 999px; background: rgba(11,12,14,.8); color: var(--ink); cursor: pointer; }
.map-btn[hidden] { display: none; }
.story-text { justify-content: center; padding: clamp(20px, 3vw, 36px); background: var(--panel); border: 1px solid var(--hair); }
.story-text p { margin: 0; color: var(--ink-2); }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.steps span { font: 600 13px var(--face); padding: 4px 10px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-2); }
.steps span.on { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .phone { max-width: 190px; }
}
/* Phones: the web is a strip above the headline instead of a haze behind the words. */
@media (max-width: 720px) {
  .hero-band.has-web .web-sky, .hero-band.has-web::before { height: 300px; }
  .hero-band.has-web::before { background: linear-gradient(180deg, rgba(11,12,14,0) 55%, var(--ground)); }
  .hero-band.has-web .hero-page { min-height: 0; padding-top: 290px; }
}
@media (max-width: 600px) { .map-cap { font-size: 10px; } }

/* The opening film (intro.js), in every look: one screen under the header, the poster until the film
   plays, its line once it ends. Reduced motion: the poster and the line only. */
.intro-film { position: relative; height: calc(100svh - 72px); min-height: 420px; overflow: hidden; background: #000; color: #f2f1ec; }
.intro-film img, .intro-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-film video { opacity: 0; transition: opacity .4s ease; }
.intro-film.ready video { opacity: 1; }
.intro-film-text { position: absolute; inset: auto 0 0; padding-block: 0 40px; }
.intro-film-end { margin: 0; font-family: var(--serif); font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em; max-width: 14ch; opacity: 0; translate: 0 12px; transition: opacity .8s ease, translate .8s ease; }
.intro-film.end .intro-film-end { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .intro-film video { display: none; } .intro-film-end { transition: none; } }

/* Film plays over the current look only when selected. */
.film-overlay{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#05070b;color:#fff;overflow:hidden}.film-overlay::backdrop{background:#05070b}.film-overlay video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.film-overlay-bar{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px clamp(20px,4vw,60px);background:linear-gradient(#000b,transparent);font:700 11px system-ui;letter-spacing:.15em}.film-overlay button{color:#fff;background:#111b;border:1px solid #fff9;padding:12px 18px;font:600 14px system-ui;cursor:pointer}.film-overlay button:focus-visible{outline:3px solid white;outline-offset:4px}.film-motion-note{position:absolute;bottom:30px;left:clamp(20px,4vw,60px);background:#000b;padding:12px}.film-motion-note[hidden]{display:none}
