/* ==========================================================================
   stuartmcclure.ai: PROTOTYPE design system (shared by every page)
   --------------------------------------------------------------------------
   One idea runs through the system: the VIEW PORT. The 747 cargo door had
   eight small windows with alignment stripes for checking the latches. A
   circle with one stripe is the site's only motif.
   Color follows the Founder Film: charcoal, warm paper, and one violet
   accent that means "before it fails".
   Rules:
   - Themes are discrete token sets. Never interpolate text and background
     together; transitions happen in text-free bands.
   - All motion is opt-in via prefers-reduced-motion: no-preference.
   - No third-party requests. Fonts and images are self-hosted.
   ========================================================================== */

/* ---- Fonts (self-hosted, OFL) ---------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-opsz-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-opsz-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-latin-ext.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Raw palette */
  --charcoal: #111214;
  --night: #0c1016;
  --blue-hour: #131a26;
  --ember: #1a1310;
  --paper: #f4f1ea;
  --paper-2: #ebe5d8;
  --linen: #faf8f3;
  --ink: #141414;
  --bone: #f0ede8;

  --violet: #5b3f8c;        /* on light grounds: 7.35:1 on paper; white on it 8.29:1 */
  --violet-light: #b69cf0;  /* on dark grounds: 7.97:1 on #131313 */
  --brass: #c8b89a;
  --brass-deep: #7a6247;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Red Hat Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem);
  --step-5:  clamp(3rem, 1.9rem + 5.2vw, 7rem);
  --step-6:  clamp(3.4rem, 1.6rem + 8vw, 10.5rem);

  /* Space */
  /* Pages use viewport-fit=cover, so the gutter also clears notches / rounded corners in phone landscape */
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(96px, 14vh, 200px);
  --maxw: 1320px;
  --measure: 36rem;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --slow: 1100ms;
  --med: 700ms;
  --fast: 220ms;

  /* Default theme = charcoal (like the film's title cards) */
  --bg: var(--charcoal);
  --fg: var(--bone);
  --muted: rgba(240, 237, 232, .66);
  --faint: rgba(240, 237, 232, .42);
  --hair: rgba(240, 237, 232, .16);
  --accent: var(--violet-light);
  --accent-ink: var(--charcoal);
  --card: rgba(255, 255, 255, .035);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* Discrete themes. Each is contrast-checked: body text ≥ 7:1, muted ≥ 5:1. */
[data-theme="charcoal"] { --bg: var(--charcoal); --fg: var(--bone); --muted: rgba(240,237,232,.66); --faint: rgba(240,237,232,.42); --hair: rgba(240,237,232,.16); --accent: var(--violet-light); --accent-ink: var(--charcoal); --card: rgba(255,255,255,.035); color-scheme: dark; }
[data-theme="night"]    { --bg: var(--night); --fg: var(--bone); --muted: rgba(240,237,232,.64); --faint: rgba(240,237,232,.40); --hair: rgba(240,237,232,.14); --accent: var(--violet-light); --accent-ink: var(--night); --card: rgba(255,255,255,.03); color-scheme: dark; }
[data-theme="blue"]     { --bg: var(--blue-hour); --fg: #eef0f5; --muted: rgba(238,240,245,.68); --faint: rgba(238,240,245,.44); --hair: rgba(238,240,245,.16); --accent: var(--violet-light); --accent-ink: var(--blue-hour); --card: rgba(255,255,255,.04); color-scheme: dark; }
[data-theme="ember"]    { --bg: var(--ember); --fg: #f6efe7; --muted: rgba(246,239,231,.68); --faint: rgba(246,239,231,.44); --hair: rgba(246,239,231,.16); --accent: #d9c3ff; --accent-ink: var(--ember); --card: rgba(255,255,255,.04); color-scheme: dark; }
[data-theme="paper"]    { --bg: var(--paper); --fg: var(--ink); --muted: rgba(20,20,20,.68); --faint: rgba(20,20,20,.46); --hair: rgba(20,20,20,.14); --accent: var(--violet); --accent-ink: #fff; --card: rgba(255,255,255,.55); --shadow: 0 30px 70px rgba(60,40,20,.16); color-scheme: light; }
[data-theme="day"]      { --bg: var(--linen); --fg: var(--ink); --muted: rgba(20,20,20,.68); --faint: rgba(20,20,20,.46); --hair: rgba(20,20,20,.12); --accent: var(--violet); --accent-ink: #fff; --card: #fff; --shadow: 0 30px 70px rgba(60,40,20,.14); color-scheme: light; }

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }

/* Themed regions paint their own background so sections can switch themes. */
[data-theme] { background: var(--bg); color: var(--fg); }

/* Film grain (static by default; it moves only in cinematic scenes, see story.css) */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .055;
  mix-blend-mode: overlay;
}

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack > * + *, .stack > * + .quote, .stack > * + blockquote { margin-top: var(--stack, 1.25rem); }

/* ---- Typography --------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 320;
  font-size: var(--step-5);
  line-height: .98;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.display em, .display i { font-style: italic; font-weight: 300; }
.display--xl { font-size: var(--step-6); line-height: .9; letter-spacing: -.03em; }
.display--l { font-size: var(--step-4); line-height: 1.02; }
.display--m { font-size: var(--step-3); line-height: 1.08; letter-spacing: -.015em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 38rem; text-wrap: pretty; }
.body-l { font-size: var(--step-1); line-height: 1.6; text-wrap: pretty; }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* Stuart's words are always set in the serif and always carry a source. */
.quote {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: var(--step-3);
  line-height: 1.14;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0;
  quotes: "“" "”" "‘" "’";
}
.quote--l { font-size: var(--step-4); line-height: 1.06; }
.quote--s { font-size: var(--step-2); line-height: 1.25; }
.quote i, .quote em { font-style: italic; }
.cite {
  display: block;
  margin-top: 1.15rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}
.cite a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.cite a:hover { border-color: currentColor; }

/* ---- The view port (the one motif) --------------------------------------- */
/* Markup:  <span class="port" style="--size:44px"><span class="port__stripe"></span></span>
   A circle with one alignment stripe. .is-aligned turns the stripe level: "latched, checked". */
.port {
  --size: 40px;
  --angle: -28deg;
  position: relative; display: inline-grid; place-items: center;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--brass);
}
.port__stripe {
  position: absolute; left: 14%; right: 14%; top: 50%; height: 1.5px; margin-top: -.75px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(var(--angle));
  transition: transform var(--med) var(--ease-out);
}
.port.is-aligned { --angle: 0deg; }
.port--solid { background: rgba(255,255,255,.04); }

/* ---- Buttons & links ------------------------------------------------------ */
.btn {
  --pad-y: .95rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease, transform var(--fast) ease;
  white-space: nowrap;
}
.btn:hover { border-color: currentColor; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.06); border-color: var(--accent); }
.btn--quiet { border-color: transparent; padding-inline: .25rem; }
.btn--quiet:hover { border-color: transparent; text-decoration: underline; }
.btn__icon { width: 1.9rem; height: 1.9rem; margin: -.45rem -.35rem -.45rem -.9rem; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid currentColor; }
.btn--primary .btn__icon { border-color: rgba(0,0,0,.25); }
.btn__icon svg { width: .7rem; height: .7rem; }
.link-arrow { text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-flex; gap: .45rem; align-items: center; border-bottom: 1px solid var(--hair); padding-bottom: .2rem; }
.link-arrow:hover { border-color: currentColor; }
.link-arrow::after { content: "→"; transition: transform var(--fast) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(3px); }
.ext::after { content: " ↗"; }

/* Focus: a clear violet ring for keyboard users; circular elements get a round one. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.btn:focus-visible, .port:focus-visible, .round:focus-visible { border-radius: 999px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: .7rem 1rem; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; transform: translateY(-160%);
  transition: transform var(--fast) ease;
}
.skip-link:focus { transform: none; }

/* ---- Site navigation ------------------------------------------------------ */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--nav-fg, var(--bone));
  transition: background var(--med) ease, color var(--med) ease, border-color var(--med) ease, transform var(--med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
  background: var(--nav-bg, rgba(17, 18, 20, .72));
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--nav-hair, rgba(240,237,232,.08));
}
.site-nav[data-nav="light"] { --nav-fg: var(--ink); --nav-bg: rgba(250, 248, 243, .78); --nav-hair: rgba(20,20,20,.08); }
.site-nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.wordmark {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem;
  text-decoration: none; color: inherit;
}
.wordmark .port { --size: 22px; color: currentColor; opacity: .9; }
.wordmark .port__stripe { background: var(--nav-accent, var(--violet-light)); }
.site-nav[data-nav="light"] .wordmark .port__stripe { background: var(--violet); }
.site-nav__links { display: flex; gap: 2rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.site-nav__links a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .82; position: relative; padding-block: .4rem; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { opacity: 1; }
/* "For engineers" switch to the plain HTML version (engineers/): quieter than the main links, set in mono */
.site-nav__links a.site-nav__eng { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 400; opacity: .7; }
.site-nav__links a.site-nav__eng::before { content: "</> "; opacity: .8; }
.nav-sheet a.nav-sheet__eng { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; opacity: .8; }
.nav-sheet a.nav-sheet__eng::before { content: "</> "; }
.site-nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.site-nav .btn { --pad-y: .62rem; --pad-x: 1.1rem; font-size: .84rem; }
.site-nav .btn--book { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }
.site-nav[data-nav="light"] .btn--book { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid currentColor; border-radius: 999px; padding: .5rem .9rem; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 860px) {
  .site-nav__links, .site-nav .btn--book { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav__inner { height: 60px; }
}
.nav-sheet {
  border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  background: var(--charcoal); color: var(--bone);
}
.nav-sheet::backdrop { background: transparent; }
.nav-sheet__inner { padding: 88px var(--gutter) 40px; display: grid; gap: 1.2rem; }
.nav-sheet a { font-family: var(--serif); font-size: 2.4rem; font-weight: 320; text-decoration: none; line-height: 1.1; }
.nav-sheet .btn { justify-self: start; margin-top: 1rem; font-family: var(--sans); font-size: 1rem; }
.nav-sheet__close { position: absolute; top: 14px; right: var(--gutter); background: none; border: 1px solid currentColor; border-radius: 999px; padding: .5rem .9rem; cursor: pointer; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }

/* ---- Dialogs (native <dialog>: focus trap and restore for free) ------------ */
.dialog {
  border: 0; padding: 0; background: transparent; color: var(--bone);
  max-width: min(1120px, 94vw); width: 100%;
}
.dialog::backdrop { background: rgba(6, 7, 9, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dialog[open] { animation: dialog-in var(--med) var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog__panel { background: #0b0c0e; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06); }
.dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px; }
.dialog__close { background: none; border: 1px solid rgba(255,255,255,.2); color: var(--bone); border-radius: 999px; padding: .45rem .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.dialog__close:hover { border-color: var(--bone); }
.dialog video { width: 100%; height: auto; background: #000; aspect-ratio: 16 / 9; }
.dialog--small { max-width: 560px; }
.dialog--small .dialog__panel { padding: 34px; background: var(--linen); color: var(--ink); }
.dialog--small .dialog__panel .muted { color: rgba(20,20,20,.68); }

/* ---- Cards & surfaces ----------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 36px);
}
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .32rem .6rem; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted);
}
.tag--voice { border-color: color-mix(in oklab, var(--accent) 45%, transparent); color: var(--accent); }

/* ---- Photographs --------------------------------------------------------- */
.photo { position: relative; overflow: hidden; border-radius: 4px; background: #0b0b0b; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, figure > figcaption { font-size: .78rem; color: var(--muted); margin-top: .8rem; letter-spacing: .02em; }
.artifact { background: #fff; padding: 10px; box-shadow: var(--shadow); transform: rotate(var(--tilt, -1.2deg)); }
.artifact img { filter: sepia(.08) contrast(1.02); }

/* ---- Reveal on view (content is always in the DOM; motion is decoration) -- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal--fade { transform: none; }
  .js .reveal--scale { transform: scale(.965); }
  .js .reveal--scale.is-in { transform: none; }
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--hair); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr repeat(4, 1fr); }
.site-footer h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; opacity: .86; font-size: .95rem; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer__base { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---- Review mode (prototype only) -------------------------------------- */
/* Items marked data-note are proposed copy, facts to confirm, or rights to clear. */
.review-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem .95rem; border-radius: 999px;
  background: rgba(17,18,20,.88); color: var(--bone); border: 1px solid rgba(240,237,232,.18);
  font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.review-toggle[aria-pressed="true"] { background: #f5d76e; color: #1a1a1a; border-color: #f5d76e; }
.review-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5d76e; }
.review-toggle[aria-pressed="true"] .dot { background: #1a1a1a; }
body.review-on [data-note] { outline: 1.5px dashed #f5d76e; outline-offset: 6px; position: relative; }
body.review-on [data-note]::after {
  content: attr(data-note);
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 60;
  max-width: 340px; padding: .55rem .7rem; border-radius: 8px;
  background: #f5d76e; color: #1a1a1a;
  font: 600 .72rem/1.35 var(--sans); letter-spacing: .01em; text-transform: none; font-style: normal;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); pointer-events: none;
}
@media print { .review-toggle, .grain, .site-nav, .skip-link { display: none !important; } }

/* ---- Utilities ------------------------------------------------------- */
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.only-sm { display: none; }
@media (max-width: 640px) { .only-sm { display: initial; } }

@media (max-width: 640px) { .review-toggle { left: 12px; right: auto; bottom: 12px; padding: .55rem .75rem; } .review-toggle span:last-child { font-size: .66rem; } }

/* Button meta (e.g. the film's running time), readable on the violet button */
.btn__meta { opacity: .8; font-weight: 500; }
/* Unfinished placeholders are review-only */
.placeholder { display: none; }
body.review-on .placeholder { display: block; }
/* Whole components that exist only for review (unfinished) */
.review-only { display: none !important; }
body.review-on .review-only { display: block !important; }
body.map-open .review-toggle { display: none; }

/* ---- Mobile QA: touch targets, safe areas, short screens ------------------ */
/* Primary nav controls get a 44px touch target (the wordmark was 22px tall). */
.wordmark { min-height: 44px; }
.nav-toggle, .nav-sheet__close { min-height: 44px; align-items: center; }
/* viewport-fit=cover: keep fixed chrome clear of the status bar, notch and home indicator */
.site-nav { padding-top: env(safe-area-inset-top, 0px); }
.nav-sheet__close { top: calc(14px + env(safe-area-inset-top, 0px)); }
.nav-sheet__inner { padding-top: calc(88px + env(safe-area-inset-top, 0px)); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.review-toggle { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .review-toggle { left: calc(12px + env(safe-area-inset-left, 0px)); right: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .review-toggle span:last-child { font-size: .7rem; } /* was .66rem (10.6px) */
}
/* Room under the footer so the fixed bottom controls never cover its last line */
@media (max-width: 899.98px) { .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
/* Dialogs on short screens (phone landscape): the film fits the screen, the notice keeps its buttons in reach */
.dialog video { max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); }
@media (max-width: 480px) { .dialog--small .dialog__panel { padding: 26px 22px; } }
