/* Grimoire.pro site: the app's "Grimório arcano" (ink blue-black, old gold,
   crimson; Fell types + Alegreya Sans), on a long page. Dark only, like the app.
   Fonts are OFL (@fontsource), copied from the app. */
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English SC"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --font-display: "IM Fell English", Georgia, serif;
  --font-label: "IM Fell English SC", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", sans-serif;

  --bg: #09080f;
  --surface: #0d0b15;
  --panel: rgba(19, 16, 29, 0.92);
  --panel-solid: #13101d;
  --inset: #171425;
  --line: rgba(190, 150, 80, 0.2);
  --line-strong: rgba(190, 150, 80, 0.5);
  --line-faint: rgba(190, 150, 80, 0.1);

  --text: #ede1c7;
  --muted: #ab9f8a;
  --muted-2: #d0c2a3;
  --dim: #766c80;

  --gold: #c49c52;
  --gold-bright: #e9c97f;
  --crimson: #a3233e;
  --crimson-bright: #e0476a;
  --crimson-deep: #6d1428;

  --wrap: 1180px;
  --gutter: 24px;
  --header: 68px;
  --frame: 0 0 0 6px rgba(13, 11, 21, 0.92), 0 0 0 7px var(--line-faint);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-decoration-color: rgba(233, 201, 127, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* Night sky and a faint film grain, fixed behind and over the page. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(233, 201, 127, 0.7), transparent 60%),
    radial-gradient(1px 1px at 22% 64%, rgba(233, 201, 127, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 34% 9%, rgba(233, 201, 127, 0.6), transparent 60%),
    radial-gradient(1px 1px at 46% 38%, rgba(233, 201, 127, 0.35), transparent 60%),
    radial-gradient(1px 1px at 58% 88%, rgba(233, 201, 127, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 71% 6%, rgba(233, 201, 127, 0.6), transparent 60%),
    radial-gradient(1px 1px at 81% 74%, rgba(233, 201, 127, 0.4), transparent 60%),
    radial-gradient(1px 1px at 88% 52%, rgba(233, 201, 127, 0.45), transparent 60%),
    radial-gradient(1.3px 1.3px at 95% 14%, rgba(233, 201, 127, 0.6), transparent 60%),
    radial-gradient(ellipse 38% 42% at 0% 62%, rgba(163, 35, 62, 0.16), transparent 72%),
    radial-gradient(ellipse 50% 40% at 94% 0%, rgba(90, 60, 140, 0.2), transparent 70%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  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='2' 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>");
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { --wrap: 820px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  color: var(--text);
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
}
.skip:focus { top: 12px; }

/* ---------- Small pieces shared with the app ---------- */

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: "✦"; margin-right: 10px; font-size: 11px; color: var(--crimson-bright); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  color: var(--text);
  font-family: var(--font-label);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  transition: background 160ms, border-color 160ms, color 160ms, box-shadow 160ms;
}
.button.primary {
  background: linear-gradient(180deg, #8f2039, var(--crimson-deep));
  border-color: rgba(224, 71, 106, 0.75);
  box-shadow: inset 0 0 0 3px rgba(60, 10, 24, 0.55), inset 0 0 0 4px rgba(233, 201, 127, 0.18), 0 10px 30px rgba(163, 35, 62, 0.25);
}
.button.primary:hover { background: linear-gradient(180deg, #a3263f, #7a172d); box-shadow: inset 0 0 0 3px rgba(60, 10, 24, 0.55), inset 0 0 0 4px rgba(233, 201, 127, 0.28), 0 12px 36px rgba(224, 71, 106, 0.3); }
.button.ghost { color: var(--gold-bright); background: rgba(13, 11, 21, 0.6); }
.button.ghost:hover { border-color: var(--gold); background: rgba(196, 156, 82, 0.08); }
.button.small { min-height: 38px; padding: 6px 16px; font-size: 15px; color: var(--gold-bright); }
.button.small:hover { border-color: var(--gold); background: rgba(196, 156, 82, 0.08); }
.button.soon { cursor: default; }

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 10px var(--crimson-bright);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--crimson-bright);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

.numeral { color: var(--gold); font-family: var(--font-display); font-size: 22px; letter-spacing: 0.12em; }
.numeral::before, .numeral::after { content: "—"; margin: 0 8px; color: var(--dim); letter-spacing: 0; }

/* A screenshot in the double frame of the app's panels. */
.window, .shot img {
  display: block;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--frame), 0 40px 100px rgba(0, 0, 0, 0.6);
}
.window img { display: block; width: 100%; }
[data-zoom] { cursor: zoom-in; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(9, 8, 15, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 200ms, background 200ms;
}
.site-header.scrolled { background: rgba(9, 8, 15, 0.88); border-bottom-color: var(--line); }

.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand img { display: block; }
.brand strong { font-family: var(--font-label); font-size: 19px; font-weight: 400; letter-spacing: 0.06em; white-space: nowrap; }

.site-nav { display: flex; gap: 26px; margin-left: 12px; }
.site-nav a { color: var(--muted-2); font-size: 16px; text-decoration: none; transition: color 160ms; }
.site-nav a:hover { color: var(--gold-bright); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.lang { display: flex; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.1em; }
.lang a { padding: 4px 8px; color: var(--dim); text-decoration: none; border: 1px solid transparent; }
.lang a:hover { color: var(--muted-2); }
.lang a[aria-current] { color: var(--gold-bright); border-color: var(--line); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 9vh, 96px); overflow-x: clip; }
.hero-copy { max-width: 860px; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
/* The gold is the text's background: the padding (undone by the margin) widens
   that box so the italic g's tail, which leans out to the left, gets painted too. */
.hero h1 em {
  padding: 0 0.08em 0.16em 0.2em;
  margin: 0 -0.08em 0 -0.2em;
  font-style: italic;
  background: linear-gradient(180deg, #f3dca2, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
}
.lead { max-width: 690px; margin: 24px auto 0; color: var(--muted-2); font-size: clamp(18px, 2vw, 20.5px); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.fine { margin-top: 18px; color: var(--dim); font-size: 15px; }

.hero-stage { position: relative; margin-top: clamp(48px, 7vw, 76px); }
.halo {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: -1;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  background:
    url("assets/brand/arcane-circle.svg") center / contain no-repeat,
    radial-gradient(circle, rgba(163, 35, 62, 0.22), rgba(90, 60, 140, 0.12) 40%, transparent 66%);
  opacity: 0.4;
  animation: spin 320s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.hero-window { max-width: 1100px; margin: 0 auto; box-shadow: var(--frame), 0 50px 140px rgba(0, 0, 0, 0.75), 0 0 120px rgba(163, 35, 62, 0.12); }
.hero-overlay {
  position: absolute;
  left: max(-8px, calc(50% - 640px));
  bottom: -64px;
  width: clamp(150px, 25vw, 300px);
  margin: 0;
}
.hero-overlay img { display: block; width: 100%; }

/* ---------- Facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(96px, 12vw, 132px);
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.facts li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  color: var(--muted-2);
  font-family: var(--font-label);
  font-size: 16.5px;
  letter-spacing: 0.04em;
  text-align: center;
}
.facts li::before { content: "✦"; color: var(--crimson-bright); font-size: 11px; }
.facts li + li { border-left: 1px solid var(--line-faint); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 11vw, 136px) 0; }
.section-head { max-width: 760px; margin: 0 auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; text-wrap: balance; }
.section-head p { margin-top: 18px; color: var(--muted); text-wrap: pretty; }

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  margin-top: clamp(72px, 10vw, 120px);
  padding-inline: clamp(0px, 4vw, 56px);
}
.feature.flip { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.feature.flip .feature-copy { order: 2; }

.feature-copy .numeral { display: block; margin-bottom: 18px; font-size: 20px; }
.feature-copy .numeral::before { margin-left: 0; }
.feature-copy .label { display: block; margin-bottom: 8px; color: var(--crimson-bright); font-family: var(--font-label); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.feature-copy h3 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; text-wrap: balance; }
.feature-copy p { margin-top: 16px; color: var(--muted-2); text-wrap: pretty; }

.ticks { margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 9px 0 9px 26px; color: var(--muted); font-size: 16.5px; border-top: 1px solid var(--line-faint); }
.ticks li:last-child { border-bottom: 1px solid var(--line-faint); }
.ticks li::before { content: "✦"; position: absolute; left: 2px; top: 11px; color: var(--gold); font-size: 10px; }

.shot { margin: 0; }
.shot img { width: 100%; }
.shot.tall { justify-self: center; width: 100%; max-width: 420px; }

/* Wide shots: the text sits above, in two columns, and the picture takes the row. */
.feature.wide { grid-template-columns: 1fr; gap: 44px; }
.feature.wide .feature-copy {
  order: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "num p" "label p" "title ticks";
  column-gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.feature.wide .numeral { grid-area: num; }
.feature.wide .label { grid-area: label; }
.feature.wide h3 { grid-area: title; }
.feature.wide p { grid-area: p; margin-top: 0; align-self: end; }
.feature.wide .ticks { grid-area: ticks; }
.feature.wide .shot { width: 100%; max-width: 1060px; justify-self: center; }
.feature.wide .shot.medium { max-width: 880px; }

/* The overlay over a dusky, game-like scene. */
.shot.scene {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: start;
  padding: 28px 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--frame), 0 40px 100px rgba(0, 0, 0, 0.6);
  background:
    radial-gradient(ellipse 70% 45% at 80% 18%, rgba(242, 169, 59, 0.3), transparent 62%),
    radial-gradient(ellipse 60% 55% at 12% 92%, rgba(109, 140, 255, 0.24), transparent 62%),
    radial-gradient(ellipse 40% 30% at 62% 70%, rgba(224, 71, 106, 0.12), transparent 70%),
    linear-gradient(165deg, #343a46 0%, #1c1f27 52%, #101116 100%);
}
.shot.scene::before {
  /* Crosshair */
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: 22px;
  height: 22px;
  translate: -50% -50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)) center / 2px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)) center / 8px 2px no-repeat;
  opacity: 0.6;
}
.shot.scene img { position: relative; z-index: 1; width: 82%; border: 0; background: none; box-shadow: none; }
.scene-hud span {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 2px 10px;
  color: #f4ead6;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.scene-hud kbd {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 6px 14px;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  background: rgba(13, 11, 21, 0.85);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  animation: press 3.2s ease-in-out infinite;
}
@keyframes press { 0%, 70%, 100% { translate: 0 0; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); } 78%, 92% { translate: 0 3px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(233, 201, 127, 0.35); } }

.extras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(80px, 10vw, 120px);
}
.extras-title { grid-column: 1 / -1; margin-bottom: 8px; color: var(--gold); font-family: var(--font-label); font-size: 15px; letter-spacing: 0.16em; text-align: center; text-transform: uppercase; }
.extra {
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(13, 11, 21, 0.9), inset 0 0 0 4px var(--line-faint);
}
.extra h4 { color: var(--gold-bright); font-family: var(--font-label); font-size: 19px; letter-spacing: 0.03em; }
.extra p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- Screens ---------- */

.gallery { max-width: 1100px; margin: 48px auto 0; }
.gallery-tabs {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  scrollbar-width: none;
}
.gallery-tabs button {
  flex-shrink: 0;
  padding: 11px 22px;
  color: var(--muted-2);
  font-family: var(--font-label);
  font-size: 17px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 160ms, background 160ms;
}
.gallery-tabs button + button { border-left: 1px solid var(--line-strong); }
.gallery-tabs button:hover { color: var(--gold-bright); }
.gallery-tabs button[aria-selected="true"] { color: var(--gold-bright); background: linear-gradient(180deg, rgba(163, 35, 62, 0.55), rgba(109, 20, 40, 0.55)); }
.gallery-tabs button:focus-visible { outline-offset: -4px; }
.gallery-panel { margin: 0; }
.gallery-panel figcaption { max-width: 720px; margin: 26px auto 0; color: var(--muted); font-size: 16.5px; text-align: center; text-wrap: pretty; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li {
  padding: 30px 26px 32px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(13, 11, 21, 0.9), inset 0 0 0 4px var(--line-faint);
}
.steps .numeral { display: block; margin-bottom: 14px; }
.steps h3 { font-family: var(--font-display); font-size: 26px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }

/* ---------- Download ---------- */

.download-card {
  position: relative;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 72px) clamp(22px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(163, 35, 62, 0.28), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 5px rgba(13, 11, 21, 0.9), inset 0 0 0 6px var(--line), 0 40px 120px rgba(0, 0, 0, 0.5);
}
.download-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 760px;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url("assets/brand/arcane-circle.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.download-card > * { position: relative; z-index: 1; }
.download-mark { display: block; margin: 0 auto 22px; filter: drop-shadow(0 10px 30px rgba(163, 35, 62, 0.45)); }
.download-card h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.download-card p { max-width: 560px; margin: 18px auto 30px; color: var(--muted-2); text-wrap: pretty; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15.5px; }
.reqs li::before { content: "✦"; margin-right: 9px; color: var(--crimson-bright); font-size: 9px; vertical-align: 2px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 23px);
  list-style: none;
  cursor: pointer;
  transition: color 160ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-bright); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  translate: 0 -50%;
  rotate: 45deg;
  transition: rotate 200ms, background 200ms;
}
.faq details[open] summary::after { rotate: 225deg; background: var(--gold); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted-2); }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(96px, 12vw, 144px); padding: 40px 0 48px; border-top: 1px solid var(--line); background: rgba(9, 8, 15, 0.7); }
.footer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 40px; }
.site-footer .brand strong { font-size: 16px; }
.legal { color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.legal a { color: var(--muted); }
.credit { color: var(--muted); font-size: 14px; white-space: nowrap; }
.footer-side { display: grid; justify-items: end; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.footer-links a { color: var(--muted-2); }
.footer-links a:hover { color: var(--gold-bright); }

/* ---------- Privacy page ---------- */

.legal-page { padding-top: clamp(48px, 8vh, 88px); }
.legal-head { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 62px); line-height: 1.05; }
.legal-head .lead { max-width: none; margin: 18px 0 0; }
.updated { margin-top: 14px; color: var(--dim); font-size: 15px; }
.legal-page section { margin-top: 46px; }
.legal-page h2 { margin-bottom: 14px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.legal-page h3 { margin: 26px 0 8px; color: var(--gold-bright); font-family: var(--font-label); font-size: 19px; letter-spacing: 0.04em; }
.legal-page p { color: var(--muted-2); text-wrap: pretty; }
.legal-page p + p, .legal-page p + .ticks, .legal-page .ticks + p { margin-top: 14px; }
.legal-page .ticks { margin-top: 0; }
.legal-page .ticks li { color: var(--muted-2); font-size: 17px; }
.legal-page strong { color: var(--text); font-weight: 500; }
.legal-page .legal-summary {
  margin-top: 40px;
  padding: 26px 28px 22px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 3px rgba(13, 11, 21, 0.9), inset 0 0 0 4px var(--line-faint);
}
.legal-summary h2 { color: var(--gold); font-family: var(--font-label); font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; }
.legal-summary .ticks li:last-child { border-bottom: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 4vh 3vw;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 4, 9, 0.9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 92dvh; width: auto; height: auto; border: 1px solid var(--line-strong); box-shadow: 0 30px 120px rgba(0, 0, 0, 0.8); }
.lightbox img[src*="overlay"] { border: 0; box-shadow: none; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  background: rgba(13, 11, 21, 0.85);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

/* ---------- Reveal on scroll (only with JS; see main.js) ---------- */

.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 700ms ease, translate 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo, .scene-hud kbd { animation: none; }
  .pulse::after { display: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 980px) {
  .site-nav { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line-faint); }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip { grid-template-columns: 1fr; padding-inline: 0; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 640px; }
  .feature.wide .feature-copy { display: block; max-width: 640px; }
  .feature.wide p { margin-top: 16px; }
  .footer-row { grid-template-columns: 1fr; justify-items: start; }
  .footer-side { justify-items: start; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header: 60px; }
  body { font-size: 17px; }
  .header-row { gap: 12px; }
  .brand strong { font-size: 17px; }
  .header-actions { gap: 10px; }
  .hero-overlay { left: -4px; bottom: -40px; width: 42%; }
  .steps { grid-template-columns: 1fr; }
  .gallery-tabs { justify-content: flex-start; width: auto; }
  .gallery-tabs button { padding: 10px 16px; font-size: 16px; }
}

@media (max-width: 520px) {
  .header-actions .button.small { display: none; }
  .facts li { padding: 16px 8px; font-size: 15px; }
  .extras { grid-template-columns: 1fr; }
  .cta-row .button { width: 100%; }
  .credit { white-space: normal; }
}
