/* Direction C "Any screen". Layout idea: the page is one screen whose frame keeps changing shape; everything else
   is set as annotation around it (dimension lines, a rating plate, a side rail). Type: Michroma (wide, like the badge on a
   monitor bezel) for headings, B612 (the Airbus cockpit-display face) for reading, B612 Mono for every number and spec.
   Tiers: phone 320-430, tablet 768-1024, laptop 1280-1440, desktop 1920, wide 2560, ultrawide 3440. */
@font-face { font-family: "Michroma"; src: url(/sites/sidescreen-any-screen/v4/fonts/michroma-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "B612"; src: url(/sites/sidescreen-any-screen/v4/fonts/b612-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "B612"; src: url(/sites/sidescreen-any-screen/v4/fonts/b612-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: "B612 Mono"; src: url(/sites/sidescreen-any-screen/v4/fonts/b612-mono-400-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap }

:root {
  --c-ground: #101213; --c-ink: #e9eef0; --c-dim: #b4bec2; --c-accent: #9ec9cc; --c-line: #3e4a4d; --c-bezel: #23272a;
  --display: "Michroma", "Eurostile", sans-serif; --text: "B612", system-ui, sans-serif; --mono: "B612 Mono", ui-monospace, Menlo, monospace;
  --gx: max(20px, env(safe-area-inset-left), 5vw); --gr: max(20px, env(safe-area-inset-right), 5vw);
  color-scheme: dark;
}
@media (prefers-contrast: more) { :root { --c-dim: #dbe4e7; --c-line: #7d8f94 } }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--c-accent) var(--c-ground) }
@supports (font: -apple-system-body) { html { font: -apple-system-body } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--c-ground); color: var(--c-ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.5; overflow-x: clip }
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration-color: var(--c-accent); text-underline-offset: 4px; text-decoration-thickness: 2px }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip { position: fixed; left: var(--gx); top: max(8px, env(safe-area-inset-top)); z-index: 999; padding: 12px 0; min-height: 44px; transform: translateY(-200%) }
.skip:focus { transform: none }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .01em }
h1, h2, h3 { text-wrap: balance; margin: 0 }
h2 { font: 400 clamp(1.5rem, 3.6vw, 3.25rem)/1.08 var(--display); text-transform: uppercase; letter-spacing: -.01em }
section { position: relative; padding: clamp(72px, 12vw, 180px) var(--gr) clamp(56px, 9vw, 140px) var(--gx) }

/* ---------- chrome: the menu sits top-centre (no logo-left), the rail runs down the left edge ---------- */
.mf-head { justify-content: center !important; padding-top: max(10px, env(safe-area-inset-top)) !important; pointer-events: none }
.mf-head > * { pointer-events: auto }
.mf-brand { display: none !important }
.mf-btn { padding: 10px 14px !important; font-size: .8125rem !important }
.mf-panel { padding-top: max(96px, calc(env(safe-area-inset-top) + 80px)) !important }
.mf-panel a { font-weight: 700 !important; text-transform: uppercase }
.corner { position: fixed; z-index: 40; top: max(6px, env(safe-area-inset-top)); right: var(--gr); display: flex; gap: 4px; align-items: center; font: 400 .875rem/1 var(--text) }
.corner .pic, .sound-toggle { appearance: none; background: none; border: 0; color: inherit; font: inherit; min-height: 44px; min-width: 44px; padding: 0 6px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 5px }
.rail { position: fixed; z-index: 30; left: max(6px, env(safe-area-inset-left)); top: 50%; margin: 0; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; display: flex; gap: 14px; align-items: center; color: var(--c-dim) }
.rail .sal-t { color: var(--c-ink) }
.rail .sal-next { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-accent); text-decoration: none }
@media (max-width: 899px) { .rail, .rail.sal { display: none !important } }

/* ---------- 1 · hero: the sticky screen, captions scroll up under it ---------- */
.hero { padding: 0; }
.stage { position: sticky; top: 0; z-index: 2; height: 56svh; min-height: 300px; background: var(--c-ground); padding: max(58px, calc(env(safe-area-inset-top) + 48px)) var(--gr) 8px var(--gx) }
.stage .frame { height: 100%; display: flex; flex-direction: column }
.stage .ssh-dial { margin: 0; gap: 0 2px; flex: none }
.stage .ssh-stage { flex: 1; min-height: 0; height: auto }
.stage .ssh-note { display: none }
.steps { position: relative; z-index: 1; padding: 0 var(--gr) 0 var(--gx) }
.step { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6svh; max-width: 40rem }
.step.first { min-height: calc(44svh - 4px); justify-content: flex-start; padding-top: 18px }
.step .spec { margin: 0 0 6px; color: var(--c-accent); font-size: .9375rem }
.step .spec .num { font-size: 1.25rem; margin-right: .3em }
.step h1 { font: 400 clamp(1.6rem, 6.6vw, 5rem)/1.02 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 12px }
.step h1 span { display: block }
.step h1 span + span { color: var(--c-accent) }
.step h2 { font-size: clamp(1.35rem, 4vw, 2.5rem); margin-bottom: 10px }
.step p { margin: 0; max-width: 38ch }
.steps::after { content: ""; display: block; height: 10svh }

/* ---------- 2 · turn it around ---------- */
.turn { padding: 0; height: 330svh; height: 330vh }
.turn .pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding: max(64px, calc(env(safe-area-inset-top) + 52px)) var(--gr) max(24px, env(safe-area-inset-bottom)) var(--gx); overflow: hidden }
.turn-stage { position: relative; width: min(100%, 64svh); aspect-ratio: 1; justify-self: center; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none }
.turn-stage:active { cursor: grabbing }
.turn-copy { display: grid; gap: 8px; align-content: start }
.callouts { min-height: 3.2em; max-width: 34ch }
.callouts .callout { margin: 0; display: none }
.callouts .callout.on { display: block }
.deg { margin: 0; font: 400 clamp(2.6rem, 8vw, 6rem)/.9 var(--mono); color: var(--c-accent); font-variant-numeric: tabular-nums }
.nudges { display: flex; gap: 18px }
.nudges button, .turn .act { appearance: none; background: none; border: 0; color: var(--c-ink); font: 700 1rem/1 var(--mono); min-height: 44px; min-width: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 6px }
.plate { margin: 0; padding: 0 var(--gr) clamp(48px, 8vw, 120px) var(--gx); display: grid; gap: 0; border-top: 1px solid var(--c-line) }
.plate div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line) }
.plate dt { font: 700 .9375rem/1.3 var(--mono); text-transform: uppercase; color: var(--c-accent); letter-spacing: .04em }
.plate dd { margin: 0 }
.rm .turn, html.rm .turn { height: auto }

/* ---------- 3 · screening ---------- */
.screening { display: grid; gap: 20px }
.tv { position: relative; padding: 10px; background: var(--c-bezel); border-radius: 6px; max-width: 1500px }
.tv .safe-l { position: absolute; inset: calc(10px + 3.5%) ; border: 1.5px dashed var(--c-accent); pointer-events: none; opacity: .55 }
.clip { margin: 0 }
.clip .cp-title, .clip .cp-bar { color: var(--c-ink) }
.screening .note { color: var(--c-dim); max-width: 60ch; margin: 0 }

/* ---------- 4 · bench ---------- */
.bench { display: grid; gap: 18px }
.bench .lede { margin: 0; max-width: 52ch; color: var(--c-dim) }
.benchbox { margin: 40px 34px 0 }
.benchbox .ssh-stage { height: min(50svh, 520px); min-height: 260px }
.benchbox .ssh-sliders, .benchbox .ssh-read { margin-left: -34px; margin-right: -34px }
.distpair { display: grid; gap: 18px; margin-top: 48px }
.distpair fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px }
.distpair legend { font: 400 1rem/1.3 var(--display); text-transform: uppercase; margin-bottom: 6px }
.distpair label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer }
.distpair input { width: 22px; height: 22px; accent-color: var(--c-accent); margin: 0 }
.distpair figure { margin: 0 }
.distpair img { border: 6px solid var(--c-bezel); border-radius: 4px }
.distpair figcaption { color: var(--c-dim); margin-top: 8px }
.benchbox .ssh-glass img { object-fit: cover; object-position: top left }

/* ---------- 5 · modes ---------- */
.modes { display: grid; gap: 24px }
.strips { max-width: 1600px }
.mlist { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 0 }
.mlist li { counter-increment: m; padding: 12px 0 12px 3.2em; position: relative; border-bottom: 1px solid var(--c-line) }
.mlist li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 10px; font: 700 1.25rem/1 var(--mono); color: var(--c-accent) }
.mlist b { display: block; font: 400 1rem/1.3 var(--display); text-transform: uppercase }

/* ---------- 6 · ways ---------- */
.ways { display: grid; gap: 36px }
.way h3 { font: 400 clamp(1.2rem, 2.4vw, 1.9rem)/1.1 var(--display); text-transform: uppercase; margin-bottom: 12px }
.way p { margin: 0; max-width: 46ch }
.cta-row { margin: 0 }
.cta { font: 400 clamp(1.5rem, 4.6vw, 4rem)/1.05 var(--display); text-transform: uppercase; text-decoration: none; color: var(--c-ink); display: inline-block; min-height: 44px; padding: 34px 0 6px }

/* ---------- 7 · price + launch ---------- */
.price { display: grid; gap: 32px }
.ledger { max-width: 980px; overflow-x: auto }
.launch { display: grid; gap: 16px; max-width: 760px; border-top: 1px solid var(--c-line); padding-top: 24px }
.launch h3 { font: 400 1.5rem/1.1 var(--display); text-transform: uppercase }
.launch p { margin: 0 }
.launch .row { display: grid; gap: 6px; border: 0; margin: 0; padding: 0 }
.launch label[for] { font: 700 1rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em }
.launch input[type=email] { font: 400 1.0625rem/1.3 var(--text); color: var(--c-ink); background: transparent; border: 0; border-bottom: 2px solid var(--c-accent); padding: 10px 0; min-height: 48px; width: 100%; border-radius: 0; -webkit-appearance: none; appearance: none }
.launch input[type=email][aria-invalid=true] { border-bottom-style: dashed }
.launch fieldset legend { font: 700 1rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px }
.launch fieldset label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 20px; cursor: pointer }
.launch fieldset input { width: 22px; height: 22px; accent-color: var(--c-accent); margin: 0 }
.launch .hp { position: absolute; left: -9999px }
.subframe { position: relative; min-height: 120px; padding-top: 4px }
.go { appearance: none; background: none; border: 0; padding: 0; min-height: 48px; color: var(--c-ink); cursor: pointer; font: 400 clamp(1.5rem, 3.4vw, 2.25rem)/1.1 var(--display); text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 3px; text-underline-offset: 8px }
.launch small { color: var(--c-dim); font-size: .9375rem }
.subframe .ts-sub { position: static; margin-top: 14px }

/* ---------- 8 · faq ---------- */
.faq { display: grid; gap: 24px }
#faqbox { max-width: 1100px }

/* footer-card: the full-height last page */
#foot .fc { min-height: 100svh }
#foot .fc .strip { display: none }

/* ---------- tablet 768-1024: captions in a column beside the screen's dial ---------- */
@media (min-width: 768px) {
  .stage { height: 64svh }
  .step.first { min-height: calc(36svh - 4px) }
  .steps { padding-left: calc(var(--gx) + 8vw) }
  .turn .pin { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: 1fr; align-items: center; column-gap: 4vw }
  .turn-copy { order: 2 }
  .turn-stage { order: 1; width: min(100%, 82svh) }
  .plate { grid-template-columns: 1fr 1fr; column-gap: 40px }
  .ways { grid-template-columns: 1fr 1fr; column-gap: 6vw } .cta-row { grid-column: 1 / -1 }
  .mlist { grid-template-columns: 1fr 1fr; column-gap: 40px }
  .distpair { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start }
  .price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 5vw; align-items: start } .price h2 { grid-column: 1 / -1 }
}
/* ---------- laptop 1280-1440: the screen owns three quarters of the height; captions offset right of centre ---------- */
@media (min-width: 1200px) {
  .stage { height: 74svh }
  .step.first { min-height: calc(26svh - 4px); flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 4vw; max-width: none }
  .step.first h1 { font-size: clamp(2.2rem, 4vw, 4.5rem); order: -1 }
  .step.first h1 span { display: inline }
  .step.first p:not(.spec) { max-width: 34ch }
  .steps { padding-left: calc(var(--gx) + 30vw) }
  .step { max-width: 46rem }
  .modes { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 4vw; align-items: start } .modes h2 { grid-column: 1 / -1 }
  .mlist { grid-template-columns: 1fr }
  .bench { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 5vw } .bench h2, .bench .lede { grid-column: 1 / -1 }
  .benchbox { grid-row: 3 / span 2 }
  .distpair { grid-template-columns: 1fr; margin-top: 0 }
}
/* ---------- desktop 1920: the plate and screening use the width as two rails ---------- */
@media (min-width: 1800px) {
  body { font-size: 1.125rem }
  .screening { grid-template-columns: minmax(0, 3fr) minmax(0, 10fr); column-gap: 4vw; align-items: end } .screening h2 { grid-row: 1 } .screening .tv { grid-row: 1 / span 2; grid-column: 2 } .screening .note { grid-column: 1 }
  .plate { grid-template-columns: repeat(3, 1fr) }
  .ways { grid-template-columns: 1fr 1fr 1fr; align-items: end } .cta-row { grid-column: auto }
}
/* ---------- wide 2560 / ultrawide 3440: the page itself becomes an ultrawide; captions run in a row ---------- */
@media (min-width: 2400px) {
  body { font-size: 1.25rem }
  .stage { height: 70svh }
  .steps { padding-left: calc(var(--gx) + 34vw) }
  .tv { max-width: 2200px }
  .strips { max-width: 2200px }
  .modes { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr) }
  .ledger, .launch { max-width: none }
  #faqbox { max-width: 1700px }
}
@media (min-width: 3200px) { .stage { height: 76svh } .steps { padding-left: calc(var(--gx) + 50vw) } .step { max-width: 52rem } }

/* ---------- legal pages: the document is set on a portrait monitor ---------- */
.doc { padding: max(84px, calc(env(safe-area-inset-top) + 72px)) var(--gr) 80px var(--gx); display: grid; gap: 28px }
.doc .mon { position: relative; background: var(--c-bezel); padding: 10px; border-radius: 6px; max-width: 54rem }
.doc .mon::before, .doc .mon::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--c-accent) }
.doc .mon::before { left: -12px; top: -12px; border-right: 0; border-bottom: 0 } .doc .mon::after { right: -12px; bottom: -12px; border-left: 0; border-top: 0 }
.doc .glass { background: var(--c-ground); padding: clamp(20px, 4vw, 56px); border-radius: 3px }
.doc .dims { margin: 0; color: var(--c-accent); font: 700 1rem/1 var(--mono); letter-spacing: .04em }
.doc h1 { font: 400 clamp(1.7rem, 5vw, 3.6rem)/1.05 var(--display); text-transform: uppercase; margin-bottom: 14px }
.doc h2 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin: 34px 0 10px }
.doc p, .doc li, .doc dd { max-width: 66ch; overflow-wrap: anywhere }
.doc .eff { color: var(--c-dim); margin: 0 0 10px }
.doc .lede { font-size: 1.1875rem }
.doc dt { font-weight: 700; margin-top: 12px }
.doc dd { margin: 2px 0 0 }
.doc ol { padding-left: 1.3em }
.doc .switch { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none }
.doc .switch a { display: inline-flex; align-items: center; min-height: 44px; font: 400 1rem/1 var(--display); text-transform: uppercase }
.doc .switch a[aria-current] { color: var(--c-accent) }
@media (min-width: 1200px) { .doc { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: 5vw; align-items: start } .doc .switch { flex-direction: column; position: sticky; top: 96px } }
@media (min-width: 2400px) { .doc { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr) } }

/* ---------- 404: no signal ---------- */
.nosignal { min-height: 100svh; padding: max(64px, env(safe-area-inset-top)) var(--gr) 40px var(--gx) }
.nosignal [data-nf] { width: 100% }

/* loader-story / notfound-scene: our supplied scene (src/scene.ts): a screen frame searching for its shape */
.ss-scene { width: 100%; max-height: 62cqh; height: auto; display: block }
.ss-scene text { font-family: var(--mono) }
.nf .ss-scene { max-height: 50svh }
.ldr .num { font-family: var(--mono) !important; font-size: clamp(2.6rem, 10cqi, 8rem) !important; color: var(--c-accent, #9ec9cc) }
/* phones: the centred menu would collide with the picture/sound words, so it moves to the leading edge (still no logo) */
@media (max-width: 599px) { .mf-head { justify-content: flex-start !important; padding-left: var(--gx) !important } .mf-btn { padding-left: 0 !important } }
@media (min-width: 2400px) { .step.first h1 { font-size: clamp(4.5rem, 3.9vw, 9rem) } .step h2 { font-size: clamp(2.5rem, 2.1vw, 4.5rem) } .step.first { min-height: calc(30svh - 4px) } }
.callouts .callout { white-space: normal !important; overflow-wrap: anywhere }
.ledger .pl-sort { min-height: 44px; min-width: 44px }
/* price-ledger ships no button skin: its sort headers are naked type with an underline, not grey UA chips */
.ledger button { appearance: none; -webkit-appearance: none; background: none; border: 0; color: inherit; font: 700 .875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 5px; cursor: pointer; padding: 0 }
.ledger th, .ledger td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top }
.ledger caption { text-align: left; color: var(--c-dim); padding-bottom: 12px }
.ledger td:first-child, .ledger th[scope=row] { font: 400 .9375rem/1.3 var(--display); text-transform: uppercase }
/* Michroma is wide: footer wordmark and FAQ questions are re-sized so they never clip at 320-390 */
#faqbox .t { font-size: clamp(.95rem, 1.7vw, 1.3rem) !important; line-height: 1.25 !important }
.doc > * { min-width: 0 } .doc h1, .doc h2 { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto }
.launch input[type=email] { font-size: max(16px, 1.0625rem) }
/* Michroma is wide: the letterhead tagline drops under the wordmark at every width (the part does this only on phones) */
#foot .fc--letterhead .head { grid-template-columns: auto 1fr } #foot .fc--letterhead .tag { grid-column: 1 / -1; text-align: left; max-width: 52ch }
#foot .big { font-family: var(--mono) !important; font-size: clamp(1rem, 1.4vw, 1.375rem) !important; white-space: nowrap; overflow-wrap: normal !important; word-break: normal !important }
#foot .fc--letterhead .cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important }
