/* =============================================================
   NOCTEM ENTERTAINMENT — main.css
   High-End cinematic single-page build (2026)
   ============================================================= */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --bg-0: #050410;
  --bg-1: #0b0a1e;
  --bg-2: #09071c;
  --panel: rgba(9, 7, 28, 0.55);
  --panel-line: rgba(214, 163, 19, 0.34);
  --ink: #ececff;
  --ink-dim: rgba(236, 236, 255, 0.64);
  --ink-faint: rgba(236, 236, 255, 0.40);
  --gold: #d6a313;
  --gold-bright: #f4ce6a;
  --gold-soft: rgba(214, 163, 19, 0.16);
  --violet: #785cff;
  --violet-soft: rgba(120, 92, 255, 0.20);

  /* type */
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* spacing / layout */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1280px;
  --radius: 26px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100svh;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

::selection { background: rgba(214, 163, 19, 0.30); color: #fff; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--gold);
  color: #1a1300;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* =============================================================
   Background layers
   ============================================================= */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-0); }

.bg__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 44% at 16% 20%, rgba(214, 163, 19, 0.22), transparent 70%),
    radial-gradient(40% 46% at 84% 16%, rgba(120, 92, 255, 0.28), transparent 72%),
    radial-gradient(50% 50% at 50% 108%, rgba(214, 163, 19, 0.14), transparent 70%),
    radial-gradient(60% 60% at 78% 88%, rgba(120, 92, 255, 0.16), transparent 75%);
  filter: blur(18px) saturate(120%);
  will-change: transform;
  animation: aurora 26s ease-in-out infinite alternate;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.6;
}

.bg__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px 340px at var(--mx, 50%) var(--my, 18%),
    rgba(214, 163, 19, 0.10),
    transparent 70%
  );
  transition: background-position 0.2s linear;
  opacity: 0;
  animation: fade-in 1.2s 0.4s var(--ease) forwards;
}

.bg__grain {
  position: absolute;
  inset: -8%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  opacity: 0.05;
  will-change: transform;
  animation: grain 0.6s steps(3) infinite;
  pointer-events: none;
}

/* =============================================================
   Header
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.6rem) max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(#000 70%, transparent);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(214, 163, 19, 0.45));
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.18rem;
}

.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(11, 10, 30, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.status__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px 2px rgba(214, 163, 19, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.status__sweep {
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(214, 163, 19, 0.22), transparent);
  transform: translateX(-120%);
  animation: sweep 4.5s ease-in-out infinite;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: 100%;
  grid-template-columns: 1fr;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__title {
  font-weight: 800;
  font-size: clamp(2.9rem, 8.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.hero__accent {
  display: block;
  position: relative;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 55%, #b07f0c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(214, 163, 19, 0.35));
}

.hero__subline {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero__lead {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-dim);
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}
.chip {
  --mx: 0px; --my: 0px;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(236, 236, 255, 0.16);
  border-radius: 999px;
  background: rgba(236, 236, 255, 0.035);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: default;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              scale 0.3s var(--ease);
}
.chip:hover {
  color: var(--gold-bright);
  background: rgba(214, 163, 19, 0.10);
  border-color: rgba(214, 163, 19, 0.45);
  box-shadow: 0 8px 28px -16px rgba(214, 163, 19, 0.5);
  scale: 1.025;
}

/* =============================================================
   HUD — signal radar panel
   ============================================================= */
.hud {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 60px rgba(214, 163, 19, 0.05);
  overflow: hidden;
  container-type: inline-size;
}
.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(120, 92, 255, 0.10), transparent 70%);
  pointer-events: none;
}

.hud__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 163, 19, 0.95), transparent);
  box-shadow: 0 0 24px rgba(214, 163, 19, 0.85);
  animation: scan 4.8s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
  will-change: transform, opacity;
}

.hud__radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0.5rem auto 1.6rem;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(214, 163, 19, 0.30);
  border-radius: 50%;
  animation: ring-pulse 4.5s ease-in-out infinite;
}
.ring--1 { width: 38%; height: 38%; animation-delay: 0s; }
.ring--2 { width: 66%; height: 66%; animation-delay: 0.5s; border-color: rgba(214, 163, 19, 0.22); }
.ring--3 { width: 96%; height: 96%; animation-delay: 1s; border-color: rgba(120, 92, 255, 0.24); }

.hud__sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 96%; height: 96%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(214, 163, 19, 0.32) 8deg, rgba(214, 163, 19, 0.12) 46deg, transparent 80deg);
  mask: radial-gradient(circle, transparent 0, #000 2%);
  -webkit-mask: radial-gradient(circle, transparent 0, #000 2%);
  animation: radar-spin 7s linear infinite;
}

.hud__core {
  position: absolute;
  top: 50%; left: 50%;
  width: 27%; height: 27%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(214, 163, 19, 0.95), rgba(214, 163, 19, 0.18) 45%, transparent 72%);
  box-shadow: 0 0 60px rgba(214, 163, 19, 0.6);
  animation: core-pulse 2.8s ease-in-out infinite;
}
.hud__core-label {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2.6cqi, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1300;
}

/* revolving scanner blip */
.hud__orbit { position: absolute; inset: 0; animation: orbit-spin 6s linear infinite; }
.hud__blip {
  position: absolute;
  top: 2%; left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold-bright);
  box-shadow: 0 0 14px 3px rgba(214, 163, 19, 0.85);
}

/* static radar labels */
.rlabel {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 2.6cqi, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-dim);
  animation: float 5s ease-in-out infinite;
}
.rlabel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(214, 163, 19, 0.75);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.rlabel--signal   { top: 3%;  left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.rlabel--channels { top: 58%; left: 2%;  animation-delay: 0.8s; }
.rlabel--status   { top: 58%; right: 2%; animation-delay: 1.6s; }

/* data readout */
.hud__data {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(236, 236, 255, 0.10);
}
.hud__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hud__row dt { color: var(--ink-faint); flex: 1; }
.hud__row dd {
  color: var(--gold-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 6.5em;
}
.hud__row dd::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(214, 163, 19, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  position: relative;
  padding: clamp(2rem, 3.5vw, 2.8rem) var(--gutter) clamp(2rem, 4vw, 2.6rem);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 236, 255, 0.13), transparent);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.footer__copy { font-variant-numeric: tabular-nums; }

.footer__legal { display: inline-flex; align-items: center; gap: 1.15rem; }
.footer__legal a {
  position: relative;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  padding: 0.4rem 0.2rem;
  transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}
.footer__legal a::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.16rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--gold-bright);
  text-shadow: 0 0 22px rgba(214, 163, 19, 0.35);
}
.footer__legal a:hover::after,
.footer__legal a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.footer__sep {
  width: 1px;
  height: 11px;
  background: rgba(236, 236, 255, 0.20);
  font-size: 0;
  display: inline-block;
}

/* =============================================================
   Reveal on load
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.9s var(--d, 0s) var(--ease) forwards;
}

/* =============================================================
   Keyframes
   ============================================================= */
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.04); }
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-4%, 3%); }
  66%  { transform: translate(3%, -2%); }
  100% { transform: translate(-2%, 2%); }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes pulse-dot {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes sweep {
  0%, 60% { transform: translateX(-120%); }
  100%    { transform: translateX(320%); }
}
@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(640px); opacity: 0; }
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.96); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}
@keyframes radar-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hud__orbit { transform-origin: 50% 50%; }
@keyframes core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.94); box-shadow: 0 0 40px rgba(214,163,19,0.5); }
  50%      { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 75px rgba(214,163,19,0.75); }
}
@keyframes float { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 3px; } }
@keyframes caret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes glitch {
  0%, 90%, 100% { transform: translateX(0); opacity: 1; }
  91% { transform: translateX(-1px); opacity: 0.7; }
  92% { transform: translateX(1px); opacity: 0.95; }
  93% { transform: translateX(0); }
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* =============================================================
   Responsive
   ============================================================= */
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

@media (min-width: 1180px) {
  .hud__radar { max-width: 340px; }
}

/* =============================================================
   Legal pages (Impressum / Datenschutz) — built to match index
   ============================================================= */

/* Back-pill in the header (mirrors the index status badge) */
.header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(11, 10, 30, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.header__back svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease); }
.header__back:hover,
.header__back:focus-visible {
  border-color: rgba(214, 163, 19, 0.6);
  color: var(--gold-bright);
}
.header__back:hover svg,
.header__back:focus-visible svg { transform: translateX(-3px); }

/* Reserve scrollbar space on doc pages so the layout never shifts on
   load / reflow. Scoped via :has(), so the index stays untouched. */
html:has(.doc) { scrollbar-gutter: stable; }

/* Two-column document layout: sticky meta rail + content panel.
   Header, grid and footer all share --maxw (1280), so the global header
   sits identically to the index (no logo jump) and everything is flush. */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .page__head {
    position: sticky;
    top: clamp(5.5rem, 14vh, 9rem);
  }
}

/* Masthead — eyebrow -> title -> meta (mirrors the hero language) */
.page__title {
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  hyphens: auto;
}
.page__lead {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Content card — echoes the HUD panel */
.prose {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 40px 90px -34px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 60px rgba(214, 163, 19, 0.04);
}

/* Typography inside the card */
.prose > :first-child { margin-top: 0; }
.prose h2 {
  position: relative;
  margin: 2.5rem 0 0.85rem;
  padding-left: 0.95rem;
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--gold-bright);
  scroll-margin-top: 6rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--gold-bright), var(--gold));
}
.prose h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin: 1.6rem 0 0.5rem; }
.prose p {
  color: rgba(236, 236, 255, 0.82);
  line-height: 1.75;
  margin: 0 0 0.95rem;
  max-width: 66ch;
}
.prose strong { color: #fff; font-weight: 600; }
.prose em { color: var(--ink-faint); font-style: italic; }
.prose a {
  color: var(--gold-bright);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.4s var(--ease);
}
.prose a:hover,
.prose a:focus-visible { background-size: 100% 1.5px; }
.prose ul { list-style: none; margin: 0 0 0.95rem; padding: 0; }
.prose li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(236, 236, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  max-width: 66ch;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(214, 163, 19, 0.55);
}
.prose hr { border: 0; border-top: 1px solid rgba(236, 236, 255, 0.10); margin: 2.4rem 0; }
.prose .todo {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px dashed rgba(214, 163, 19, 0.7);
  border-radius: 6px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--gold-soft);
}

/* Copy protection helper (legal pages) */
.protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@media print { .protected { display: none !important; } }

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg__grain { display: none; }
}
