/* Device layer (2026-11-18, for the live deploy; pairs with js/device.js). Loads last.
   The film is always a 16:9 frame, on every screen: portrait phones get it letterboxed in the middle (behind the
   rotate card until they turn or tap Continue). Heights use the dynamic viewport where the browser has it, so the
   frame never hides under Safari's toolbars. */
:root { --vh: 100vh; }
@supports (height: 100dvh) { :root { --vh: 100dvh; } }
:root {
  --stw: min(100vw, calc(var(--vh) * 16 / 9));
  --sth: calc(var(--stw) * 9 / 16);
  --stx: calc((100vw - var(--stw)) / 2);
  --sty: calc((var(--vh) - var(--sth)) / 2);
}
/* phones and tablets: the page is laid out at 1600 px (device.js), so every size rule reads as desktop */
html.is-small { --ctx: 1440; --cols: 12; --gutter: 1.25rem; --margin: 1.25rem; }
html, body { background: rgb(11, 9, 8); }
/* no double-tap zoom or tap delay; swipes step the film (film.js) */
html.is-touch { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.is-touch body { overscroll-behavior: none; }

/* ---------------------------------------------------------------- rotate your phone */
.rotate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 0 9vw; background: rgb(11, 9, 8); color: rgb(251, 244, 236); text-align: center; font-family: "Geist", system-ui, sans-serif; }
.rotate[hidden] { display: none; }
.rotate__in { display: grid; justify-items: center; gap: 4vw; max-width: 80vw; }
.rotate__ph { width: 22vw; height: 22vw; animation: rotate-turn 2.6s cubic-bezier(.53, 0, 0, 1) infinite; }
.rotate__h { margin: 2vw 0 0; font-size: 8.4vw; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.rotate__p { margin: 0; max-width: 30ch; font-size: 4.4vw; font-weight: 400; line-height: 1.4; color: rgb(160, 150, 141); }
.rotate__btn { margin-top: 4vw; padding: 0 7vw; height: 13vw; border: 0; border-radius: 0; background: rgb(237, 230, 216); color: rgb(11, 9, 8); font: 600 4.2vw/1 "Geist", system-ui, sans-serif; letter-spacing: -.01em; cursor: pointer; }
.rotate__btn:focus-visible { outline: .6vw solid rgb(251, 244, 236); outline-offset: .8vw; }
@keyframes rotate-turn { 0%, 20% { transform: rotate(0deg); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .rotate__ph { animation: none; transform: rotate(-90deg); } }

/* ---------------------------------------------------------------- slow start */
.boot { position: fixed; left: 50%; top: 50%; z-index: 150; transform: translate(-50%, -50%); font: 500 13px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(237, 230, 216, .55); animation: boot-in .6s ease both; pointer-events: none; }
html.is-small .boot { font-size: 22px; }
@keyframes boot-in { from { opacity: 0; } }
