/* MN Peace — cinematic public face. Aurora + river ice.
   Craft vocabulary from a 2026 cinematic one-pager (tokens, chapters, glass),
   retuned away from crimson. Not a nightlife site and not a mugshot wall. */

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --bg: #050507;
  --bg: oklch(0.13 0.012 285);
  --bg-elevated: #0a0a0f;
  --bg-elevated: oklch(0.16 0.014 285);
  --bg-card: #0e0e14;
  --bg-card: oklch(0.18 0.02 285);
  --bg-glass: rgba(14, 14, 20, 0.78);

  --cyan: #22d3ee;
  --cyan: oklch(0.82 0.12 205);
  --gold: #f59e0b;
  --gold: oklch(0.82 0.14 75);
  --purple: #a855f7;
  --purple: oklch(0.68 0.2 305);
  --blue: #3b82f6;
  --blue: oklch(0.62 0.17 260);
  --ice: #67e8f9;
  --ice: oklch(0.86 0.08 200);

  --text: #f8fafc;
  --text: oklch(0.98 0.005 240);
  --text-muted: #9ca3af;
  --text-muted: oklch(0.72 0.02 250);
  --text-dim: #6b7280;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --glow-cyan: 0 0 48px rgba(34, 211, 238, 0.32);
  --glow-gold: 0 0 48px rgba(245, 158, 11, 0.22);
  --glow-purple: 0 0 48px rgba(168, 85, 247, 0.38);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1120px;
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --nav-h: 4.5rem;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease;
}

::view-transition-group(record-cta) {
  animation-duration: 220ms;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.4rem;
  background: var(--cyan);
  color: #042f2e;
  font-weight: 600;
  font-size: 0.875rem;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

/* Grain + ice grid (decorative) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, black 10%, transparent 75%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nav-h);
  padding: 0.85rem clamp(1.1rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo em {
  font-style: normal;
  color: var(--purple);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
  order: 1;
}

.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  order: 2;
  view-transition-name: record-cta;
  padding: 0.55rem 1.25rem;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--glow-purple);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.55);
}

.nav-cta[aria-current="page"] {
  transform: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) clamp(1.2rem, 5vw, 4.5rem) clamp(4rem, 10vh, 6.5rem);
  overflow: hidden;
}

.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-fallback {
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 72% 18%, rgba(6, 182, 212, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 35% at 88% 78%, rgba(245, 158, 11, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 30% at 18% 40%, rgba(168, 85, 247, 0.1), transparent 70%),
    linear-gradient(165deg, transparent 20%, rgba(6, 182, 212, 0.07) 48%, rgba(245, 158, 11, 0.08) 72%, transparent 90%);
}

.hero-canvas {
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.orb-cyan {
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  background: var(--cyan);
  top: -8%;
  right: 8%;
  animation: orb-a 16s ease-in-out infinite;
}

.orb-gold {
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  background: var(--gold);
  bottom: -10%;
  right: -6%;
  animation: orb-b 13s ease-in-out infinite;
}

.orb-purple {
  width: min(28vw, 320px);
  height: min(28vw, 320px);
  background: var(--purple);
  top: 38%;
  left: -8%;
  opacity: 0.16;
  animation: orb-c 18s ease-in-out infinite;
}

@keyframes orb-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 18px); }
}
@keyframes orb-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, -22px); }
}
@keyframes orb-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -12px) scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  view-transition-name: peace-title;
}

.hero-title .plain {
  display: block;
}

.hero-title .gradient {
  display: block;
  background: linear-gradient(125deg in oklch, var(--cyan) 0%, var(--gold) 48%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 38rem;
  margin: 0 auto 2.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  min-height: 52px;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg in oklch, var(--cyan), var(--blue));
  color: #042f2e;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom in oklch, var(--cyan), transparent);
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up 0.8s ease 0.08s forwards;
  }
  .hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.9s ease 0.28s forwards;
  }
  .hero-sub {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up 0.8s ease 0.52s forwards;
  }
  .hero-actions {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up 0.8s ease 0.72s forwards;
  }
  .hero-scroll {
    opacity: 0;
    animation: fade-up 0.8s ease 1.1s forwards;
  }
  .scroll-line {
    animation: scroll-pulse 2.2s ease-in-out infinite;
  }
}

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.35; transform: scaleY(0.72); }
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  padding: 1.35rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 3rem;
  width: auto;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee-item::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.55rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Stats ── */
.stats {
  padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.2rem, 5vw, 3.5rem);
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stat {
  background: var(--bg-card);
  padding: 2.2rem 1.4rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.45rem;
  background: linear-gradient(135deg in oklch, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat:nth-child(2) .stat-value {
  background: linear-gradient(135deg in oklch, var(--gold), oklch(0.86 0.12 85));
  -webkit-background-clip: text;
  background-clip: text;
}
.stat:nth-child(3) .stat-value {
  background: linear-gradient(135deg in oklch, var(--ice), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}
.stat:nth-child(4) .stat-value {
  background: linear-gradient(135deg in oklch, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats-note {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Chapters ── */
.chapter {
  padding: var(--section-pad) clamp(1.2rem, 5vw, 3.5rem);
}

.chapter:nth-of-type(even) {
  background: var(--bg-elevated);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.chapter-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.is-cyan { color: var(--cyan); }
.is-gold { color: var(--gold); }
.is-ice { color: var(--ice); }
.is-purple { color: var(--purple); }

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.3rem;
  max-width: 18ch;
}

.lede,
.prose {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 42rem;
}

.prose + .prose {
  margin-top: 1.1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.45rem 1.55rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.panel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
}

.panel-card-compact {
  min-height: 18rem;
}

.panel-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.16) 0%, rgba(168, 85, 247, 0.08) 48%, rgba(245, 158, 11, 0.1) 100%);
}

.panel-card-bg-alt {
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.16) 0%, rgba(34, 211, 238, 0.08) 50%, rgba(59, 130, 246, 0.12) 100%);
}

.panel-card-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 44px,
    rgba(34, 211, 238, 0.05) 44px,
    rgba(34, 211, 238, 0.05) 45px
  );
}

.panel-card-body {
  position: relative;
  z-index: 1;
  padding: 1.8rem 1.6rem 1.7rem;
}

.panel-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.panel-mark {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg in oklch, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.river-band {
  height: 88px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.18) 22%,
    rgba(168, 85, 247, 0.12) 50%,
    rgba(245, 158, 11, 0.16) 78%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: river-flow 22s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes river-flow {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
}

/* Type cards (unused on the public homepage; keep tokens for layout) */
.actor-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 2rem;
}

@container (min-width: 520px) {
  .actor-grid { grid-template-columns: 1fr 1fr; }
}

@container (min-width: 820px) {
  .actor-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 720px) {
  .actor-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .actor-grid { grid-template-columns: repeat(5, 1fr); }
}

.actor {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem 1.15rem;
  min-height: 100%;
}

.actor-key {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.actor:nth-child(2) .actor-key { color: var(--gold); }
.actor:nth-child(3) .actor-key { color: var(--ice); }
.actor:nth-child(4) .actor-key,
.actor:nth-child(5) .actor-key { color: var(--text-dim); }

.actor h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.actor p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.actor.is-open {
  opacity: 1;
}

.actor.is-closed {
  opacity: 0.72;
  border-style: dashed;
}

.flag {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.read-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

.read-points li {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.05rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.read-points strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: inherit;
  letter-spacing: -0.02em;
}

/* Record families */
.family-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .family-grid { grid-template-columns: 1fr 1fr; }
}

.family-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.family-card:hover,
.family-card:focus-visible {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.16);
}

.family-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.family-card:nth-child(2) .family-kicker { color: var(--gold); }

.family-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.family-go {
  margin-top: auto;
  padding-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
}

.gap-card {
  margin-top: 1rem;
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.gap-kicker { color: var(--gold); }

.gap-card:hover,
.gap-card:focus-visible {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.14);
  transform: translateY(-2px);
}

.gap-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.2rem 0 0.4rem;
}

/* Will not */
.wont-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 2rem;
}

@media (min-width: 760px) {
  .wont-grid { grid-template-columns: 1fr 1fr; }
}

.wont {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
}

.wont-n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 0.2rem;
}

.wont h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.wont p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Community */
.later-note {
  margin-top: 1.6rem;
  max-width: 40rem;
  border-color: rgba(168, 85, 247, 0.28);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(3.2rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 3.5rem) 2.2rem;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.footer-brand em {
  font-style: normal;
  color: var(--cyan);
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--cyan); text-decoration: none; }

/* Record chrome — same MN Peace header owns the product */
.record-page {
  --nav-h: 6.9rem;
  --rv-bg: var(--bg);
  --rv-card: var(--bg-card);
  --rv-card-2: var(--bg-elevated);
  --rv-ink: var(--text);
  --rv-muted: var(--text-muted);
  --rv-dim: var(--text-dim);
  --rv-line: var(--border-subtle);
  --rv-cyan: var(--cyan);
  --rv-gold: var(--gold);
  --rv-purple: var(--purple);
  --rv-blue: var(--blue);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.record-page::before { opacity: 0.16; }
.record-page::after { opacity: 0.03; }

.record-page #app {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: calc(var(--nav-h) + 1.25rem);
}

.record-header {
  flex-wrap: wrap;
  row-gap: 0;
  padding-bottom: 0;
}

.record-header .nav-panel {
  flex-wrap: wrap;
  row-gap: 0;
}

.record-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  width: 100%;
  order: 3;
  padding: 0.35rem 0 0.55rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-nav a {
  color: var(--text-dim);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.record-nav a:hover,
.record-nav a[aria-current="page"] {
  color: var(--cyan);
}

.record-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.density-toggle {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  background: transparent;
}

.density-toggle:hover,
.density-toggle[aria-pressed="true"] {
  color: var(--gold);
  border-color: color-mix(in oklch, var(--gold) 45%, transparent);
}

.record-page.is-paper {
  --bg: oklch(0.2 0.018 80);
  --bg-elevated: oklch(0.23 0.02 80);
  --bg-card: oklch(0.25 0.022 80);
  --text: oklch(0.97 0.012 85);
  --text-muted: oklch(0.8 0.02 80);
  --text-dim: oklch(0.68 0.02 80);
  --border-subtle: oklch(0.82 0.02 80 / 0.12);
  --cyan: oklch(0.82 0.1 205);
  --gold: oklch(0.82 0.12 75);
  --rv-bg: var(--bg);
  --rv-card: var(--bg-card);
  --rv-card-2: var(--bg-elevated);
  --rv-ink: var(--text);
  --rv-muted: var(--text-muted);
  --rv-dim: var(--text-dim);
  --rv-line: var(--border-subtle);
  --rv-cyan: var(--cyan);
  --rv-gold: var(--gold);
}

.record-page.is-paper #app {
  line-height: 1.7;
}

.record-foot {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.record-fallback {
  padding: 6rem 1.5rem 3rem;
  max-width: 40rem;
}

/* Chapter rail + read progress */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.read-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg in oklch, var(--cyan), var(--gold));
}

.chapter-rail {
  position: fixed;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chapter-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-rail a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: transparent;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.chapter-rail a.is-active {
  color: var(--text);
}

.chapter-rail a.is-active::after {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.chapter-rail a span {
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.chapter-rail a:hover span,
.chapter-rail a.is-active span,
.chapter-rail a:focus-visible span {
  opacity: 1;
}

/* Reveal: visible by default so Firefox never sticks at opacity 0. */
.reveal {
  opacity: 1;
  transform: none;
}

.d1, .d2, .d3 { /* stagger hooks for view() ranges above */ }

@keyframes read-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .read-progress > span {
      animation: read-progress linear both;
      animation-timeline: scroll();
    }

    .marquee-track {
      flex-wrap: nowrap;
      justify-content: flex-start;
      width: max-content;
      animation: marquee linear both;
      animation-timeline: scroll();
    }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(18px);
      animation: fade-up ease-out both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
    .reveal.d1 { animation-range: entry 6% cover 34%; }
    .reveal.d2 { animation-range: entry 12% cover 36%; }
    .reveal.d3 { animation-range: entry 18% cover 38%; }
  }
}

/* Reduced motion: keep layout, drop spectacle.
   WCAG 2.2.2: kill looping motion. Timeline must go to auto or scroll-driven
   animations still run even when duration is 0. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    animation-timeline: auto !important;
    transition: none !important;
  }

  @view-transition {
    navigation: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
    animation-timeline: auto !important;
  }

  .reveal,
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-canvas {
    display: none;
  }

  .orb { display: none; }

  .river-band {
    opacity: 0.35;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: 0.6rem;
  }

  .chapter-rail a.is-active::after {
    box-shadow: none;
  }

  .read-progress {
    display: none;
  }
}

@media (max-width: 1100px) {
  .chapter-rail {
    top: var(--nav-h);
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    background: rgba(5, 5, 7, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.45rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.25rem 1.1rem;
    scrollbar-width: none;
  }
  .chapter-rail::-webkit-scrollbar { display: none; }
  .chapter-rail a {
    justify-content: flex-start;
    flex-shrink: 0;
  }
  .chapter-rail a::after { display: none; }
  .chapter-rail a span { opacity: 0.7; }
}

@media (max-width: 900px) {
  .nav-panel {
    display: none;
  }

  .site-header.is-open .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 7, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.7rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.25rem;
    flex: none;
    justify-content: flex-start;
  }

  .site-header.is-open .nav-cta {
    order: -1;
    display: inline-flex;
    justify-content: center;
    margin: 0.15rem 0 0.55rem;
    align-self: stretch;
  }

  .site-header.is-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 2;
  }

  .site-header.is-open .record-nav {
    order: 1;
    flex-direction: column;
    width: auto;
    gap: 0;
    padding: 0.35rem 0 0.65rem;
    margin-bottom: 0.25rem;
  }

  .site-header.is-open .density-toggle {
    margin-left: 0;
    margin-top: 0.45rem;
    align-self: flex-start;
  }

  .nav-toggle { display: inline-flex; }

  .record-page { --nav-h: 4.5rem; }

  .split,
  .footer-top,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .hero {
    align-items: center;
  }

  .actor-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.not-found-page {
  padding-top: 8rem;
}
.not-found-page .hero-actions {
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  .stats-grid,
  .actor-grid,
  .wont-grid {
    grid-template-columns: 1fr;
  }
}

