/* developed-film template (first instance: Sidescreen direction B). Palette + faces come from tokens.css.
   Two colours from the subject: the portable monitor's matte graphite and its backlight. theme-switch swaps
   --paper/--ink on :root; every part reads them live (the halftone recolours itself).
   iOS standard (docs/design/IOS-STANDARD.md): Dynamic Type via -apple-system-body + rem, 17 px body,
   44 pt targets, env(safe-area-inset-*), svh/dvh, controls in the bottom thumb zone, no hover-only reveals. */

:root {
  --g: max(20px, env(safe-area-inset-left));            /* side gutter: 20 pt edge keep-out + safe area */
  --gr: max(20px, env(safe-area-inset-right));
  --bar: calc(56px + env(safe-area-inset-bottom));      /* bottom bar height incl. home indicator strip */
  color-scheme: dark;
}
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }  /* iOS Larger Text reaches rem */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-bottom: var(--bar); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.4 var(--text); overflow-x: clip; padding-bottom: var(--bar); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font: 800 clamp(2.125rem, 7.4vw, 6.5rem)/.92 var(--display); font-stretch: 140%; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; min-height: 44px; }
.skip:focus { top: max(8px, env(safe-area-inset-top)); }
@media (prefers-contrast: more) { :root { --ink: #F2F7F4; } }

/* ---------- bottom bar: label · sound · theme · menu (thumb zone, never a logo-left header) ---------- */
.bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: var(--bar);
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 18px;
  padding: 0 var(--gr) env(safe-area-inset-bottom) var(--g); background: var(--paper); color: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); font: 600 .8125rem/1 var(--text); letter-spacing: .06em; }
.bar-label { min-width: 0; overflow: hidden; }
.bar button, .bar .sound-toggle { min-height: 44px; min-width: 44px; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; padding: 0 4px; }
.bar-theme { text-decoration: underline 2px; text-underline-offset: .3em; }
/* menu-flip's own header, re-seated into the bar: no brand on the left, just its Menu word + morphing lines */
.bar .mf-head { position: static !important; padding: 0 !important; display: contents; }
.bar .mf-brand { display: none !important; }
.bar .mf-btn { color: var(--ink); padding: 0 0 0 6px; }
.mf-panel { padding-bottom: calc(var(--bar) + 24px) !important; }
.mf-panel .mf-aside p { font-size: 1rem; }
body.mf-open .bar, .mf-root[data-open] .bar { background: transparent; border-color: transparent; }
@media (max-width: 430px) { .bar { gap: 4px 10px; } .bar-label .sal-next { display: none; } }

/* ---------- 1 · the film (halftone-develop) ---------- */
.film { position: relative; height: 260vh; height: 260svh; background: var(--paper); color: var(--ink);
  /* the film swaps the pair locally: dark footage stays solid graphite, the lit screen comes up in backlight */
  --ink: var(--film-ink, #1B1C1E); --paper: var(--film-paper, #D3DED8); }
.film [data-pin] { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film [data-still] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.55); }
.film-copy { position: absolute; inset: auto var(--gr) calc(var(--bar) + 4svh) var(--g); display: grid; justify-items: center; text-align: center; gap: 1rem; color: var(--paper); }
/* the develop shades the copy zone to solid ink (shadeAmt > 0), so the copy is set in the paper colour: 4.5:1 with no box */
.film [data-still] + .film-copy { color: var(--ink); } .film[data-drawn] .film-copy { color: var(--paper); }
.wordmark { font: 900 calc((100vw - 48px) / 6.6)/.82 var(--display); font-stretch: 150%; letter-spacing: -.03em; text-transform: uppercase; display: grid; }
.film-line { font: 700 clamp(1.0625rem, 2.2vw, 1.75rem)/1.25 var(--text); max-width: 30ch; }
.film-meter { font: 600 .75rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; opacity: calc(1 - var(--dev, 0)); }
@media (min-width: 700px) { .film-copy { bottom: calc(var(--bar) + 7svh); } .wordmark { grid-auto-flow: column; font-size: calc((100vw - 64px) / 10.4); } }


/* ---------- intro ---------- */
.intro { padding: clamp(4rem, 12svh, 9rem) var(--gr) clamp(3rem, 8svh, 6rem) var(--g); display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.intro h2 { max-width: 16ch; }
.intro p { max-width: 38rem; font-size: 1.25rem; line-height: 1.45; }

/* ---------- 2 · all the way round (frame-scrub-360) ---------- */
.turn { position: relative; height: 330vh; height: 330svh; background: var(--paper); color: var(--ink); }
.turn .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
  padding: max(24px, env(safe-area-inset-top)) var(--gr) calc(var(--bar) + 12px) var(--g); gap: 8px; }
.turn-copy { display: grid; justify-items: center; gap: .4rem; width: 100%; max-width: 40rem; min-width: 0; }
.turn h2 { font-size: clamp(1.75rem, 8.6vw, 6.5rem); }
.turn [data-turn] { position: relative; aspect-ratio: 1; height: 100%; max-width: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.turn .deg { font: 800 clamp(2.5rem, 8vw, 6rem)/.9 var(--display); font-stretch: 130%; font-variant-numeric: tabular-nums; }
.turn [data-callouts] { position: relative; min-height: 4.4em; width: min(36rem, 100%); }
.turn .callout { position: absolute; inset: 0 0 auto; margin: 0; font-size: 1.0625rem; line-height: 1.4; opacity: 0; transition: opacity .3s; }
.turn .callout.on { opacity: 1; }
.nudges { display: flex; gap: 20px; }
.nudges button { min-width: 44px; min-height: 44px; background: none; border: 0; border-bottom: 2px solid currentColor; color: inherit; font: 600 1rem var(--text); cursor: pointer; padding: 0 6px; }
@media (min-width: 1280px) { .turn h2 { font-size: clamp(2rem, 3.6vw, 4.5rem); } .turn-copy { grid-template-columns: auto auto; column-gap: 2rem; align-items: end; max-width: 64rem; } .turn-copy h2, .turn .deg { grid-row: 1; } .turn [data-callouts], .nudges { grid-column: 1 / -1; justify-self: center; } .turn .deg { font-size: clamp(2.5rem, 4.4vw, 5.5rem); } }

/* ---------- 3 · ten screens (corner-drift-gallery) ---------- */
.drift { position: relative; height: 400vh; height: 400svh; background: var(--paper); color: var(--ink); }
.drift .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
[data-drift] { position: absolute; inset: 0; }
[data-drift] figure { position: absolute; left: 0; top: 0; margin: 0; width: var(--w, 24vw); will-change: transform; }
[data-drift] img { display: block; width: 100%; height: auto; outline: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); outline-offset: 6px; }
[data-drift] figcaption { margin-top: 12px; font: 600 .75rem/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.drift-lines { position: absolute; inset: 0 var(--gr) 0 var(--g); display: grid; place-content: center; justify-items: center; text-align: center; gap: 1rem; pointer-events: none; }
.drift-lines .ln { display: block; overflow: hidden; }
.drift-lines .ln > span { display: block; }
.drift-lines p { font: 700 1.25rem/1.3 var(--text); }
.drift-lines h2 { font-size: clamp(2.25rem, 9vw, 9rem); }
@media (max-width: 699px) { [data-drift] figure { width: calc(var(--w, 24vw) * 2.3); } }
@media (min-width: 2560px) { [data-drift] figure { width: calc(var(--w, 24vw) * .75); } }
.modelist { padding: 3rem var(--gr) 5rem var(--g); }
.modelist ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1600px; display: block; counter-reset: m; columns: 1; }
.modelist li { counter-increment: m; display: block; padding: 14px 0 14px 3.2rem; position: relative; border-top: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); font-size: 1.0625rem; line-height: 1.4; break-inside: avoid; }
.modelist li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 700 .8125rem/1 var(--text); }
.modelist b { font: 800 1.25rem/1.15 var(--display); font-stretch: 130%; text-transform: uppercase; display: block; margin-bottom: 4px; }
@media (min-width: 768px) { .modelist ol { columns: 2; column-gap: 3rem; } .modelist li { grid-column: auto; } }
@media (min-width: 1920px) { .modelist ol { columns: 3; } }
@media (min-width: 2560px) { .modelist ol { columns: 5; max-width: none; } }

/* ---------- 4 · test card to colour (develop-to-photo) ---------- */
.tcard { position: relative; height: 240vh; height: 240svh; background: var(--paper); color: var(--ink); --strip: var(--bar); }
.tcard .pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 1.5rem;
  padding: max(20px, env(safe-area-inset-top)) var(--gr) calc(var(--bar) + 16px) var(--g); overflow: clip; text-align: center; }
.tcard [data-photo] { position: relative; width: min(100%, calc((100svh - 22rem) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; }
.tcard [data-photo] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard .copy { display: grid; justify-items: center; gap: .8rem; max-width: 40rem; }
.tcard h2 { font-size: clamp(1.75rem, 4.4vw, 3.75rem); }
.tcard .cta { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.125rem/1 var(--text); }
.tcard .meter { font: 600 .75rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 5 · numbers (counter-set flap) ---------- */
.numbers { padding: clamp(4rem, 10svh, 8rem) var(--gr) 4rem var(--g); display: grid; gap: 2.5rem; justify-items: center; }
#facts { width: min(100%, 1700px); display: grid; grid-template-columns: 1fr; gap: 2rem 3rem; }
#facts .cs-fact { display: grid; gap: .4rem; border-top: 2px solid var(--ink); padding-top: .8rem; }
#facts .cs-num { font: 800 clamp(2.75rem, 11vw, 7rem)/.9 var(--display); font-stretch: 125%; }
@media (min-width: 768px) { #facts .cs-num { font-size: clamp(3rem, 6.2vw, 7rem); } }
#facts .cs-unit, #facts .cs-label { font-size: 1.0625rem; line-height: 1.35; }
@media (min-width: 768px) { #facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { #facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 2560px) { #facts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 2200px; } }

/* ---------- 6 · the screening (clip-player strip) ---------- */
.screening { padding: 3rem var(--gr) 5rem var(--g); display: grid; justify-items: center; gap: 2rem; }
#screening-clip { width: min(100%, 1400px, calc((100svh - 12rem) * 16 / 9)); }
#screening-clip .cp-title, #screening-clip .cp-cap { font-size: 1.0625rem; }
@media (min-width: 2560px) { #screening-clip { width: min(70vw, 2000px); } }

/* ---------- 7 · price (price-ledger) ---------- */
.price { padding: 4rem var(--gr) 4rem var(--g); display: grid; justify-items: center; gap: 2rem; }
#ledger { width: min(100%, 60rem); font-size: 1.0625rem; }
#ledger table { width: 100%; }

/* ---------- 8 · launch list (sentence-booking) ---------- */
.list { padding: 5rem var(--gr) 5rem var(--g); display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.list-note { max-width: 36rem; font-size: 1.0625rem; }
#list-form { width: min(100%, 56rem); font: 700 clamp(1.5rem, 4vw, 3rem)/1.35 var(--text); }
#list-form input { font-size: max(16px, 1em); }
#list-form .ok-big { font: 800 clamp(2.5rem, 8vw, 6rem)/.95 var(--display); font-stretch: 140%; text-transform: uppercase; }
#list-form .ok-s { font: 400 1.0625rem/1.45 var(--text); margin-top: 1rem; }
#list-form .again { margin-top: 1rem; min-height: 44px; background: none; border: 0; border-bottom: 2px solid currentColor; color: inherit; font: 700 1.0625rem var(--text); }

/* ---------- 9 · questions (faq-custom circuit) ---------- */
.questions { padding: 4rem var(--gr) 6rem var(--g); display: grid; justify-items: center; gap: 2rem; }
#faq { width: min(100%, 64rem); }

/* ---------- sections that hold a big h2 get it centred ---------- */
.numbers h2, .screening h2, .price h2, .list h2, .questions h2 { text-align: center; }

/* ---------- legal documents ---------- */
.doc { padding: max(56px, calc(env(safe-area-inset-top) + 32px)) var(--gr) 4rem var(--g); }
.doc-head { max-width: 1600px; margin: 0 auto 3rem; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.doc-kicker { font: 600 .8125rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.doc-kicker a { display: inline-flex; min-height: 44px; align-items: center; }
.doc h1 { font: 900 clamp(2rem, 11vw, 10rem)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.02em; text-wrap: balance; }
.doc-lede { max-width: 40rem; font-size: 1.25rem; line-height: 1.45; display: grid; gap: .6rem; }
.doc-lede .eff { font: 600 .875rem/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.doc-body { max-width: 1600px; margin: 0 auto; display: grid; gap: 0 4rem; }
.clause { border-top: 2px solid var(--ink); padding: 1.2rem 0 2rem; display: grid; gap: .8rem; max-width: 44rem; min-width: 0; overflow-wrap: anywhere; }
.clause h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1; }
.clause p, .clause li, .clause dd { font-size: 1.0625rem; line-height: 1.5; }
.clause dt { font-weight: 700; margin-top: .7rem; }
.clause dd { margin: .2rem 0 0; }
.clause ol { padding-left: 1.4rem; margin: 0; display: grid; gap: .5rem; }
.clause a { display: inline-block; min-height: 24px; }
@media (min-width: 1280px) { .doc-body { display: block; columns: 2; column-gap: 4rem; } }
@media (min-width: 2560px) { .doc-body { columns: 3; max-width: 2400px; } }

/* ---------- 404 ---------- */
.nf { padding: 0 0 2rem; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 1.5rem var(--gr) 0 var(--g); font: 700 1.0625rem var(--text); }
.nf-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- footer-card letterhead, in our two colours ---------- */
.card { background: var(--paper); color: var(--ink); }
.card .fc { min-height: calc(100dvh - var(--bar)); }

@media (prefers-reduced-motion: reduce) {
  .film, .turn, .drift, .tcard { height: auto; }
  .film [data-pin] { position: relative; height: 100svh; }
  .turn .pin, .drift .pin, .tcard .pin { position: relative; height: auto; min-height: 100svh; }
  .turn [data-turn] { height: min(80vw, 70svh); }
  .turn .callout { transition: none; }
  .drift .pin { min-height: 0; height: auto; } [data-drift] { display: none; } .drift-lines { position: relative; inset: auto; padding: 4rem var(--gr) 0 var(--g); }
}


/* ---------- 44 pt hit areas for controls inside parts (grow the hit area, not the visible mark) ---------- */
.pl-sort, .sb-word, .sb-submit { padding-block: 14px !important; margin-block: -14px !important; }
.sb-input { min-height: 44px; }
.card a, .nf-links a, .doc-kicker a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }

[data-torn] { overflow: hidden; max-width: 100%; }
@media (max-width: 699px) { h2 { font-stretch: 112%; font-size: clamp(1.75rem, 8.4vw, 3rem); } .wordmark { font-stretch: 150%; } }
#screening-clip { min-width: 0; max-width: 100%; }
.screening { overflow-x: clip; grid-template-columns: minmax(0, 1fr); }
.drift-lines { z-index: 2; } [data-drift] { z-index: 1; }
@media (min-width: 1920px) { #facts .cs-num { font-size: clamp(3rem, 4vw, 7rem); } }
#list-form :is(.sb-word, .sb-submit, input, button):focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 4px; }

/* ---------- the shared halftone stage (stage.ts): one fixed canvas under every section ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.has-stage body { background: transparent; }
.has-stage :is(.film, .turn, .drift, .tcard, .intro, .screening) { background: transparent; }
.has-stage .film[data-drawn] [data-still] { visibility: hidden; }
.has-stage .tcard[data-drawn] [data-photo] img { visibility: hidden; }
.has-stage .turn [data-turn] canvas { opacity: 0; }          /* frame-scrub-360 keeps input; the stage draws its frame */
.break { height: clamp(7rem, 22svh, 14rem); }
.has-stage .film[data-drawn] .film-copy { color: var(--film-paper); }
@media (prefers-reduced-motion: reduce) { .break { height: 3rem; } }
.has-stage .film-copy { opacity: calc(1 - var(--brk, 0)); }

/* ---------- second half: every section has product imagery drawn by the stage (data-scene="still") ---------- */
.shot { margin: 0; width: min(100%, var(--shot-w, 44rem)); }
.still { position: relative; aspect-ratio: var(--ar, 16 / 9); width: 100%; overflow: hidden; outline: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); outline-offset: 6px; }
.still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.has-stage .still[data-drawn] img { visibility: hidden; }
.shot[style*="440"] { --shot-w: 15rem; }
.pair { width: min(100%, 1400px); display: grid; gap: 2.5rem; justify-items: center; align-items: center; }
.pair > :last-child { width: 100%; min-width: 0; }
@media (min-width: 1024px) { .pair { grid-template-columns: auto minmax(0, 1fr); gap: 4rem; } .pair .shot[style*="440"] { --shot-w: 18rem; } }
@media (min-width: 2560px) { .pair { max-width: 2000px; } .pair .shot[style*="440"] { --shot-w: 22rem; } }
.numbers .shot { --shot-w: 56rem; }
.helper { padding: 4rem var(--gr) 5rem var(--g); display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.helper .shot { --shot-w: 60rem; }
.helper-body { max-width: 40rem; font-size: 1.125rem; line-height: 1.45; }
.helper-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: st; font-weight: 600; }
.helper-steps li { counter-increment: st; } .helper-steps li::before { content: counter(st) "  "; font: 800 1rem var(--display); font-stretch: 130%; }
.helper .cta { display: inline-flex; align-items: center; min-height: 44px; font: 700 1.125rem/1 var(--text); }
.rigbox { width: min(80vw, 26rem); aspect-ratio: 1; }
@media (max-width: 1023px) { .questions .pair .rigbox { width: min(70vw, 20rem); } }
.ending { position: relative; height: 260vh; height: 260svh; }
.ending .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: end; justify-items: center; text-align: center; gap: .8rem;
  padding: 0 var(--gr) calc(var(--bar) + 6svh) var(--g); color: var(--film-paper); }
.end-mark { display: grid; font: 900 calc((100vw - 48px) / 7.4)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; }
@media (min-width: 700px) { .end-mark { font-size: min(9vw, 12rem); } }
.end-line { font: 700 1.125rem/1.35 var(--text); max-width: 32ch; }
.end-meter { display: flex; gap: 1.2rem; font: 600 .75rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.end-meter span { text-decoration: none; } .end-meter span.on { text-decoration: underline 2px; text-underline-offset: .35em; } .end-meter span.on::before { content: "▸ "; }
.has-stage .ending { color: var(--film-paper); }
html:not(.has-stage) .ending { height: auto; } html:not(.has-stage) .ending .pin { position: relative; height: auto; padding-block: 6rem; color: var(--ink); }
.doc-head .doc-shot { --shot-w: 26rem; }
.doc-head .doc-shot[style*="440"] { --shot-w: 13rem; }
.break-s { height: clamp(4rem, 12svh, 8rem); column-span: all; }

/* ---------- round 4: hero-scale backdrops in the second half; the footer card sits on the colour frame ---------- */
.has-stage :is(.list, .helper, .questions, .card, .card .fc) { background: transparent; }
.list, .helper, .questions { min-height: 100svh; align-content: center; }
.has-stage .list, .has-stage .helper, .has-stage .questions { color: var(--film-paper); }
.card .fc { min-height: calc(100svh - var(--bar)); }
.helper .shot { --shot-w: 22rem; }

/* ---------- round 5: film material over everything + toys ---------- */
/* emulsion grain, fibres, scratches and dust (tools/make-grain.py) over the whole page, jittering like a gate */
body::after { content: ""; position: fixed; inset: -64px; z-index: 55; pointer-events: none; background: url(/sites/sidescreen-developed-film/v6/img/grain.webp) 0 0 / 512px 512px; mix-blend-mode: overlay; opacity: .55; animation: gate .9s steps(6) infinite; }
@keyframes gate { 0% { transform: translate(0, 0) } 20% { transform: translate(-23px, 11px) } 40% { transform: translate(17px, -29px) } 60% { transform: translate(-9px, 31px) } 80% { transform: translate(29px, 7px) } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
/* light cards (FAQ, ledger, footer sheet) get paper tooth so nothing is one flat colour */
.fq, .card .sheet, #ledger table { background-image: url(/sites/sidescreen-developed-film/v6/img/grain.webp); background-size: 384px; background-blend-mode: overlay; }

/* toys share one language: naked type, a drawn underline, 44 pt targets */
.toy-range { display: grid; gap: .4rem; justify-items: center; font: 700 .8125rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.toy-range input { width: min(80vw, 22rem); min-height: 44px; accent-color: currentColor; background: none; }
.toy-range input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.break { position: relative; display: grid; place-items: center; }
.tear { min-height: 44px; min-width: 44px; padding: 0 14px; background: var(--paper); color: var(--ink); border: 0; border-bottom: 2px solid currentColor; font: 800 .875rem/1 var(--display); font-stretch: 130%; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: transform .25s; }
.break.hit .tear { transform: scale(.94) rotate(-2deg); }
.tear:focus-visible, .picks button:focus-visible, .show:focus-visible, .seg button:focus-visible, .pt-pad:focus-visible, .pt-click:focus-visible, .sec-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* trackpad toy */
.padtoy { width: min(100%, 64rem); display: grid; gap: 1.5rem; align-items: center; justify-items: center; margin-top: 1rem; }
@media (min-width: 900px) { .padtoy { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.pt-monitor { position: relative; width: 100%; padding: 10px; background: #0d0e0f; outline: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.pt-monitor .still { outline: 0; }
.pt-cursor { position: absolute; width: 18px; height: 26px; margin: -2px 0 0 -2px; background: #fff; clip-path: polygon(0 0, 0 80%, 26% 62%, 44% 100%, 58% 94%, 40% 57%, 72% 57%); filter: drop-shadow(0 0 1px #000); transition: left .08s linear, top .08s linear; z-index: 2; }
.pt-ripple { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid #fff; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 2; }
.pt-ripple.go { animation: rip .5s ease-out; } @keyframes rip { from { opacity: .9; transform: scale(.3) } to { opacity: 0; transform: scale(1.4) } }
@media (prefers-reduced-motion: reduce) { .pt-ripple.go { animation: none; opacity: .9; } .pt-cursor { transition: none; } }
.pt-phone { width: min(100%, 17rem); display: grid; gap: .6rem; justify-items: stretch; padding: 14px 12px 18px; border: 2px solid color-mix(in srgb, var(--ink) 60%, transparent); border-radius: 36px; }
.pt-title { font: 700 1rem/1.2 var(--text); text-align: center; }
.pt-pad { min-height: 11rem; border: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); border-radius: 12px; touch-action: none; cursor: crosshair; background-image: radial-gradient(color-mix(in srgb, var(--ink) 30%, transparent) 1px, transparent 1.4px); background-size: 12px 12px; }
.pt-click { min-height: 44px; background: none; color: inherit; border: 2px solid currentColor; border-radius: 10px; font: 700 1rem var(--text); cursor: pointer; }
.pt-hint { font-size: .9375rem; text-align: center; }
/* mode picks inside the pinned drift (its copy layer is pointer-events:none, the picks are not) */
.picks { pointer-events: auto; display: grid; grid-template-columns: repeat(5, 44px); gap: 6px; justify-content: center; margin-top: .6rem; }
@media (min-width: 700px) { .picks { grid-template-columns: repeat(10, 44px); } }
.picks button { width: 44px; height: 44px; background: var(--paper); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); font: 800 .875rem/1 var(--display); cursor: pointer; }
.picks button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* mode list switches the monitor */
.ml-monitor { position: sticky; top: max(12px, env(safe-area-inset-top)); z-index: 3; width: min(100%, 44rem); margin: 0 auto 1.5rem; padding: 10px; background: #0d0e0f; }
.ml-monitor figcaption { font: 700 .875rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding-top: 10px; color: #D3DED8; }
.modelist li { padding: 0 !important; } .modelist li::before { content: none !important; }
.show { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 14px 0 14px 0; cursor: pointer; }
.show[aria-pressed="true"] b { text-decoration: underline 2px; text-underline-offset: .2em; }
.show-w { display: block; font: 700 .75rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; opacity: .85; }
@media (max-width: 699px) { .ml-monitor { width: 100%; } }
/* viewing distance */
.seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seg button { min-height: 44px; padding: 0 14px; background: var(--paper); color: var(--ink); border: 1px solid currentColor; font: 700 .9375rem var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg-note { max-width: 36rem; text-align: center; font-size: 1rem; }
#numbers[data-distance="room"] #facts .cs-num { font-size: clamp(3.25rem, 12vw, 9rem); }
#numbers[data-distance="across"] #facts .cs-num { font-size: clamp(3.5rem, 13.5vw, 11.5rem); }
#numbers[data-distance] #facts { transition: font-size .3s; }
/* legal: a link per section */
.sec-link { display: inline-flex; align-items: center; min-height: 44px; font: 700 .8125rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; }
#facts .cs-fact { position: relative; min-height: 44px; }
.flip-b { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; }
.flip-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
#facts .cs-fact.flick .cs-num { animation: flick .42s steps(6); }
@keyframes flick { 0% { transform: rotateX(0) } 50% { transform: rotateX(80deg); filter: blur(1px) } 100% { transform: rotateX(0) } }
@media (prefers-reduced-motion: reduce) { #facts .cs-fact.flick .cs-num { animation: none; text-decoration: underline 2px; } }
/* the business card is printed in the same bar screen as the film: faint vertical bars + emulsion grain */
.card .sheet { background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 0 2px, transparent 2px 7px), url(/sites/sidescreen-developed-film/v6/img/grain.webp); background-size: auto, 384px; background-blend-mode: normal, overlay; }
