/* ModelDeck site. Tokens mirror the app (src/renderer/styles/tokens.css); see shared/VISUAL-LANGUAGE.md. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #0a0b0e;
  --bg-1: #0f1115;
  --bg-2: #151820;
  --bg-3: #1c2029;
  --bg-4: #242936;
  --line: #222733;
  --line-strong: #2e3442;
  --fg-0: #f2f4f7;
  --fg-1: #b4bac5;
  --fg-2: #7a8291; /* text only on bg-0, bg-1, bg-2 */
  --fg-3: #4a5160; /* decorative only */
  --accent: #2dd4bf;
  --accent-ink: #04201c;
  --accent-hover: #5eead4;
  --accent-dim: rgba(45, 212, 191, 0.14);
  --accent-line: rgba(45, 212, 191, 0.38);
  --amber: #f5b544;
  --amber-dim: rgba(245, 181, 68, 0.12);
  --amber-line: rgba(245, 181, 68, 0.36);
  --violet: #a78bfa;
  --violet-dim: rgba(167, 139, 250, 0.12);
  --violet-line: rgba(167, 139, 250, 0.36);
  --teal-line: rgba(45, 212, 191, 0.36);

  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 140ms;

  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --section-y: 96px;
  --shadow-shot: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -24px rgba(0, 0, 0, 0.75);
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --section-y: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-0);
  color: var(--fg-0);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

code, kbd, pre, .mono { font-family: var(--font-mono); font-feature-settings: normal; }
.mono { font-size: 0.94em; }

code {
  font-size: 0.875em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--fg-0);
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  margin: 0 0.12em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--fg-0);
  font-size: 0.85em;
  line-height: 1.5;
  text-align: center;
}

strong { font-weight: 600; color: var(--fg-0); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(45, 212, 191, 0.32); color: var(--fg-0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; outline-color: var(--fg-0); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }

section[id], [id="prerequisites"], [id="release-notes"] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Fixture banner (QA builds only) */
.fixture-banner {
  padding: 10px var(--gutter);
  background: var(--amber);
  color: #1a1204;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

/* Chips and tags */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}
.chip-beta { color: var(--amber); background: var(--amber-dim); border: 1px solid var(--amber-line); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tag {
  padding: 4px 10px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-gguf { color: var(--amber); background: var(--amber-dim); border: 1px solid var(--amber-line); }
.tag-mlx { color: var(--violet); background: var(--violet-dim); border: 1px solid var(--violet-line); }
.tag-splash { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--teal-line); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.small { font-size: 0.9375rem; color: var(--fg-1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--fg-0); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-2); color: var(--fg-0); border-color: var(--fg-3); }
.btn-small { padding: 7px 14px; font-size: 0.875rem; }
.btn-large { padding: 14px 24px; font-size: 1.0625rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, 0.82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--fg-0);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--fg-0); }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  color: var(--fg-1);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.site-nav ul a:hover { color: var(--fg-0); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg-0);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); background: var(--fg-0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--fg-0); }

@media (max-width: 759px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7);
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 12px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { padding: 12px 18px; font-size: 1rem; }

  .no-js .header-row { flex-wrap: wrap; padding: 10px 0; }
  .no-js .site-nav { width: 100%; justify-content: space-between; }
  .no-js .site-nav ul { gap: 16px; }
  .no-js .site-nav .btn { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 var(--section-y);
  overflow: hidden;
}
.hero::before {
  position: absolute;
  inset: -20% 0 auto;
  height: 900px;
  background: radial-gradient(60% 50% at 50% 30%, rgba(45, 212, 191, 0.10), rgba(45, 212, 191, 0) 70%);
  content: "";
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow { justify-content: center; color: var(--fg-1); letter-spacing: 0.04em; text-transform: none; font-size: 0.9375rem; font-weight: 500; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero h1 .accent { display: inline-block; }
.lede {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--fg-1);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
}

.cta-block { margin: 36px auto 0; max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Phones: keep both hero buttons on one row, so the beta notice sits directly under the download button. */
@media (max-width: 479px) {
  .cta-row .btn-large { padding: 13px 16px; font-size: 1rem; }
}
@media (max-width: 379px) {
  .cta-row { gap: 10px; }
  .cta-row .btn-large { padding: 12px 14px; font-size: 0.9375rem; }
}
.cta-meta { margin: 18px 0 0; color: var(--fg-1); font-size: 0.9375rem; }
.cta-meta + .cta-meta { margin-top: 6px; }
.cta-meta [aria-hidden="true"] { margin: 0 4px; color: var(--fg-3); }
/* The facts break only between their two groups, so no line starts or ends with a dot. The link gets its own line. */
.cta-meta .meta-group { white-space: nowrap; }
.cta-meta .meta-link { display: block; width: fit-content; margin-inline: auto; }
/* Pending release: the download status gets its own line, like the SHA-256 link it replaces. */
.cta-meta .meta-status { display: block; }
@media (max-width: 599px) {
  .cta-meta .meta-sep { display: none; }
  .cta-meta .meta-group { display: block; }
}

.notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--amber-line);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(245, 181, 68, 0.06);
  color: var(--fg-1);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: left;
}
.notice a { color: var(--fg-0); }
.notice a:hover { color: var(--accent); }

.shot {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--shadow-shot);
}
.shot img { width: 100%; }
.shot > figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 0.9375rem;
}
.shot-hero {
  position: relative;
  margin-top: 64px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.shot-hero::before {
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0));
  filter: blur(40px);
  content: "";
}
.shot-hero img {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  box-shadow: var(--shadow-shot);
}
.shot-hero figcaption {
  margin-top: 16px;
  padding: 0;
  border-top: 0;
  color: var(--fg-2);
  font-size: 0.9375rem;
  text-align: center;
}

/* Section heads */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
.section-head h2 + p { margin-top: 16px; color: var(--fg-1); font-size: 1.0625rem; }

/* Film band */
.band { padding: var(--section-y) 0; }
.band-film {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--line);
}
.film { margin: 0; }
.film-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-shot);
}
.film-frame video { width: 100%; background: #000; }
.film-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 0.9375rem;
}
.film-toggle { min-width: 7.5em; }
.film-toggle[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); }
.film-status { color: var(--fg-1); }
.film-status:empty { display: none; }

/* Features */
.features { padding: var(--section-y) 0; }
.band-film + .features { padding-top: calc(var(--section-y) * 0.6); }
.feature { margin-top: 96px; }
.feature:first-of-type { margin-top: 0; }
.feature-copy h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.feature-copy p { color: var(--fg-1); font-size: 1.0625rem; }
.feature-copy .eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 0.8125rem; }
.feature-wide .feature-copy { max-width: 720px; margin-bottom: 36px; }

@media (min-width: 960px) {
  .feature-cols .feature-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 72px; max-width: none; }
  .feature-cols .feature-copy h3 { margin-bottom: 0; }
}

.feature-split { display: grid; gap: 36px; align-items: center; }
.feature-split .shot-portrait { max-width: 520px; }
@media (min-width: 960px) {
  .feature-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .feature-split .shot-portrait { justify-self: end; width: 100%; }
}

.more { margin-top: 112px; }
.more-title { margin-bottom: 24px; font-size: 1.5rem; letter-spacing: -0.02em; }
.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
}
.card h4 { margin-bottom: 8px; font-size: 1.125rem; }
.card p { color: var(--fg-1); }
.card-media { display: flex; flex-direction: column; }
.shot-small { margin-top: 20px; border-radius: var(--radius-md); box-shadow: none; }

/* Measured band */
.band-measured {
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(45, 212, 191, 0.08), rgba(45, 212, 191, 0) 70%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
  text-align: center;
}
.band-measured .eyebrow { justify-content: center; }
.stats {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 24px auto 0;
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .stat + .stat { border-left: 1px solid var(--line); }
}
.stat { display: flex; flex-direction: column-reverse; gap: 8px; padding: 0 16px; }
.stat dt { color: var(--fg-1); font-size: 0.9375rem; font-weight: 500; }
.stat dd { margin: 0; }
.stat-num {
  font-size: clamp(2.75rem, 5.4vw, 4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-0);
}
.stat-unit { color: var(--fg-1); font-size: 1rem; font-weight: 500; }
.stats-label { max-width: 680px; margin: 28px auto 0; color: var(--fg-1); font-size: 0.9375rem; }

/* Download */
.download { padding: var(--section-y) 0; }
.release {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: var(--shadow-shot);
}
@media (min-width: 960px) {
  .release { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 40px; }
}
.release-main { min-width: 0; }
.release-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.release-file { margin: 12px 0 0; color: var(--fg-1); font-size: 0.8125rem; overflow-wrap: anywhere; }
/* Phones: file name and size on their own lines, so no line ends with a dot. */
@media (max-width: 479px) {
  .release-file .file-sep { display: none; }
  .release-file > span { display: block; }
}
.notice-boxed { margin-top: 16px; }
/* Pending release: a dashed panel stands where the download button goes, so the gap reads as unfinished. */
.release-status {
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-0);
  color: var(--fg-1);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.release-status strong { color: var(--fg-0); font-weight: 600; }

.specs { min-width: 0; margin: 0; }
.specs > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.specs > div:first-child { padding-top: 0; }
.specs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.specs dt { color: var(--fg-2); font-size: 0.9375rem; }
.specs dd { margin: 0; min-width: 0; color: var(--fg-0); font-size: 0.9375rem; }
.spec-sha dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* Two even lines of 32 hex characters, with Copy beside the block when it fits. */
.sha {
  display: block;
  max-width: calc(32ch + 26px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-0);
  color: var(--fg-0);
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-all;
}
.copy-status { color: var(--accent); font-size: 0.875rem; }
@media (max-width: 559px) {
  .specs > div { grid-template-columns: minmax(0, 1fr); }
}

.release-cols { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 960px) {
  .release-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .release-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.release-col {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
}
.release-col h3 { margin-bottom: 12px; font-size: 1.125rem; }
.release-col > p { color: var(--fg-1); font-size: 0.9375rem; }

.plain-list, .steps { margin: 12px 0 0; padding: 0; list-style: none; color: var(--fg-1); font-size: 0.9375rem; }
.plain-list li, .steps li { position: relative; padding-left: 18px; }
.plain-list li + li, .steps li + li { margin-top: 10px; }
.plain-list li::before {
  position: absolute;
  left: 0; top: 0.68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}
.steps { counter-reset: step; }
.steps li { counter-increment: step; padding-left: 34px; }
.steps li::before {
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 20px;
  text-align: center;
  content: counter(step);
}
.release-col .small { margin-top: 20px; }
.code {
  margin: 10px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-0);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.code code { padding: 0; background: none; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

.notes {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
}
.notes > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.notes > summary::-webkit-details-marker { display: none; }
.notes > summary::after, .faq-list summary::after {
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--fg-1);
  border-bottom: 2px solid var(--fg-1);
  transform: rotate(45deg) translate(-2px, -2px);
  content: "";
  transition: transform var(--dur) var(--ease);
}
.notes[open] > summary::after, .faq-list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.notes-body { padding: 0 24px 24px; color: var(--fg-1); font-size: 0.9375rem; }
.notes-body h3 { margin: 28px 0 10px; color: var(--fg-0); font-size: 1.0625rem; }
.notes-body h3:first-child { margin-top: 4px; }
.notes-body ul, .notes-body ol { margin: 0 0 1em; padding-left: 1.25em; }
.notes-body li + li { margin-top: 6px; }

/* FAQ */
.faq { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.faq .section-head { margin-bottom: 32px; }
@media (min-width: 960px) {
  .faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--fg-0);
  font-size: 1.0625rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { margin: -4px 0 0; padding: 0 0 22px; color: var(--fg-1); max-width: 68ch; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); background: var(--bg-0); }
.footer-row { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .footer-row { grid-template-columns: auto 1fr; align-items: center; }
  .footer-legal { grid-column: 1 / -1; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.footer-brand img { border-radius: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 760px) { .footer-nav { justify-content: flex-end; } }
.footer-nav a { color: var(--fg-1); text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--fg-0); text-decoration: underline; }
.footer-legal { margin: 0; color: var(--fg-2); font-size: 0.9375rem; }
.footer-legal a { color: var(--fg-1); }

/* Simple pages (disclaimer, 404) */
.page { padding: 72px 0 var(--section-y); min-height: calc(100vh - 220px); }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.035em; }
.page-meta { margin: 14px 0 32px; color: var(--fg-1); }
.legal-text {
  padding: 28px;
  border: 1px solid var(--amber-line);
  border-left-width: 3px;
  border-radius: var(--radius-lg);
  background: rgba(245, 181, 68, 0.05);
  color: var(--fg-0);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.legal-text p + p { margin-top: 1em; }
.page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.page .lede { margin-left: 0; }

/* Reveal: only when JS has opted in and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .nav-toggle, .film, .skip-link { display: none; }
  html, body { background: #fff; color: #000; }
}
