/* ════════════════════════════════════════════════════════════════
   MODERN UNIVERSALIS — Declassified Atlas Dossier
   Editorial / cartographic-intelligence-briefing aesthetic.
   ════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Ink palette — deep parchment-on-navy */
  --ink-0: #04091a;
  --ink: #070f1e;
  --ink-2: #0b1828;
  --ink-3: #0f2236;
  --panel: #142a40;
  --panel-2: #1a3450;

  /* Lines */
  --line-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(219, 174, 92, 0.32);
  --line-bright: rgba(219, 174, 92, 0.6);

  /* Gold — warmer, antiqued */
  --gold: #d6a85a;
  --gold-2: #b88947;
  --gold-3: #ecc987;
  --gold-deep: #8a6531;

  /* Accents */
  --teal: #4fb0ad;
  --teal-bright: #7adcd8;
  --crimson: #b53e3a;
  --parchment: #f1e3c4;

  /* Text */
  --text: #f3ecdb;
  --text-2: #e2d8c2;
  --muted: #a8b4be;
  --muted-2: #7e8a94;

  /* Shadow */
  --shadow: rgba(0, 0, 0, 0.48);
  --shadow-glow: rgba(219, 174, 92, 0.2);

  /* Sizing */
  --max: 1200px;
  --max-wide: 1320px;
  --max-narrow: 1040px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);

  /* Fonts */
  --font-display: "Fraunces", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11", "kern";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── Ambient atmosphere: layered navy gradients + faint contour suggestion ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(214, 168, 90, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(79, 176, 173, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(181, 62, 58, 0.045), transparent 60%),
    var(--ink);
}

/* Subtle paper grain — inline SVG fractal noise, very low opacity */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.72  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3, h4 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

::selection {
  background: rgba(214, 168, 90, 0.42);
  color: var(--text);
}

/* ════════════════════════════════════════════════════════════════
   PAGE FRAME — Decorative corner ticks at the viewport edges.
   Gives every section the "we are inside a dossier" feel.
   ════════════════════════════════════════════════════════════════ */

.page-frame {
  position: fixed;
  inset: 16px;
  z-index: 15;
  pointer-events: none;
}

.page-frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(214, 168, 90, 0.42);
}

.page-frame-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.page-frame-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.page-frame-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.page-frame-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

@media (max-width: 720px) {
  .page-frame { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 36px;
  border-bottom: 1px solid transparent;
  background: rgba(7, 15, 30, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background 280ms var(--ease), border-color 280ms var(--ease);
}

.site-header.scrolled {
  background: rgba(7, 15, 30, 0.92);
  border-bottom-color: var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition: transform 240ms var(--ease);
}

.brand:hover { transform: translateY(-1px); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(214, 168, 90, 0.18));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  font-variation-settings: "opsz" 14, "SOFT" 30;
  letter-spacing: 0.2px;
  color: var(--text);
  line-height: 1.05;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 200ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  outline: none;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold-2);
  opacity: 0.7;
}

.site-nav a:hover .nav-num,
.site-nav a:focus-visible .nav-num {
  opacity: 1;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.site-nav .nav-cta {
  margin-left: 12px;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: all 220ms var(--ease);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 6px 24px rgba(214, 168, 90, 0.32);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(18, 34, 53, 0.8);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
}

/* ════════════════════════════════════════════════════════════════
   HERO — Headline plate with corner-tick frame, meta strip,
   coordinate marks, and editorial-scale display type.
   ════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: min(900px, 96svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
  animation: heroDrift 32s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes heroDrift {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -2%); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 26, 0.99) 0%, rgba(7, 15, 30, 0.78) 40%, rgba(7, 15, 30, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 15, 30, 0.7) 0%, transparent 22%, transparent 70%, rgba(4, 9, 26, 0.95) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(214, 168, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 168, 90, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000, transparent 80%);
  opacity: 0.7;
}

/* Inner gold corner-tick frame, sits 36px inset from viewport edge inside hero */
.hero-frame {
  position: absolute;
  inset: 28px;
  pointer-events: none;
  z-index: 2;
}

.hero-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.72;
}

.hero-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Meta strip — top of hero, intelligence-cable header */
.hero-meta-strip {
  position: absolute;
  top: 60px;
  left: 60px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-2);
  z-index: 3;
}

.meta-label {
  color: var(--gold);
  opacity: 0.78;
}

.meta-value {
  color: var(--text-2);
}

.meta-divider {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 4;
  width: min(var(--max), calc(100% - 100px));
  margin: 0 auto;
  padding: 110px 0 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
}

.eyebrow-text { display: inline-block; }

/* Hero title — huge editorial display */
h1 {
  margin: 0 0 28px;
  max-width: 920px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(58px, 11vw, 138px);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 0.92;
  letter-spacing: -2px;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

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

.hero-title-line.accent em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold) 50%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 25;
  line-height: 1.04;
  letter-spacing: -0.8px;
}

h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  color: var(--gold-3);
}

h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  font-variation-settings: "opsz" 30, "SOFT" 20;
  line-height: 1.18;
  letter-spacing: -0.1px;
}

.hero-lede {
  max-width: 660px;
  margin: 0 0 38px;
  color: #e1e8ec;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.1px;
}

.drop-cap {
  display: inline-block;
  margin-right: 6px;
  color: var(--gold-3);
  font-family: var(--font-display);
  font-size: 1.55em;
  font-weight: 600;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 0.85;
  vertical-align: -3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 60px;
}

/* ─── Buttons ─── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 240ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-3) 0%, var(--gold) 100%);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(214, 168, 90, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: linear-gradient(180deg, #f5d597 0%, var(--gold-3) 100%);
  box-shadow: 0 16px 44px rgba(214, 168, 90, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button.primary .button-arrow {
  width: 13px;
  height: 13px;
  transition: transform 240ms var(--ease);
}

.button.primary:hover .button-arrow {
  transform: translateX(4px);
}

.button.secondary {
  color: var(--text);
  background: rgba(15, 34, 54, 0.62);
  backdrop-filter: blur(10px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--gold);
  background: rgba(20, 42, 64, 0.88);
  color: var(--gold-3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.button.full { width: 100%; }

/* Hero stats — treaty ledger */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  max-width: 820px;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(214, 168, 90, 0.36);
  border-bottom: 1px solid rgba(214, 168, 90, 0.36);
}

.hero-stats div {
  position: relative;
  padding: 22px 22px 22px 22px;
  border-right: 1px solid rgba(214, 168, 90, 0.16);
  transition: background 280ms var(--ease);
}

.hero-stats div:last-child {
  border-right: none;
}

.hero-stats div:hover {
  background: rgba(214, 168, 90, 0.06);
}

.hero-stats dt {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.hero-stats dd {
  margin: 0;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
}

.stat-num-text {
  font-size: 26px;
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  color: var(--gold-3);
}

/* Hero coordinates — bottom-left of hero */
.hero-coords {
  position: absolute;
  left: 60px;
  bottom: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: var(--muted);
  z-index: 3;
}

.coord-dot {
  color: var(--gold);
  opacity: 0.7;
}

/* Scroll cue — bottom-right of hero */
.scroll-cue {
  position: absolute;
  right: 60px;
  bottom: 60px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 3;
  opacity: 0.85;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}

.scroll-cue:hover {
  opacity: 1;
  color: var(--gold-3);
}

.scroll-cue-line {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
  animation: scrollPulseH 2.6s ease-in-out infinite;
}

@keyframes scrollPulseH {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ════════════════════════════════════════════════════════════════
   PART HEADINGS — "Part I — Doctrine" treaty markers
   ════════════════════════════════════════════════════════════════ */

.part-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.part-num {
  color: var(--gold);
  flex-shrink: 0;
}

.part-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(214, 168, 90, 0.05) 100%);
  position: relative;
}

.part-rule::before,
.part-rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--gold);
}

.part-rule::before { left: 0; }
.part-rule::after  { left: calc(100% - 1px); display: none; }

.part-name {
  color: var(--text-2);
  flex-shrink: 0;
  letter-spacing: 3.2px;
}

/* ════════════════════════════════════════════════════════════════
   SECTIONS — generic
   ════════════════════════════════════════════════════════════════ */

.section {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 120px 0;
  position: relative;
}

.section-intro {
  padding: 100px 0 50px;
}

.section-grid,
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.intro-body {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.1px;
  color: var(--text-2);
  margin: 14px 0 0;
}

.intro-body::first-letter {
  font-family: var(--font-display);
  font-size: 1.05em;
  color: var(--gold-3);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 56px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-heading .eyebrow {
  margin-bottom: 20px;
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════════
   FEATURE GRID — Dossier cards with index, tag, gold corner ticks
   ════════════════════════════════════════════════════════════════ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  position: relative;
  padding: 36px 32px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 24, 40, 0.32);
  transition: background 360ms var(--ease), transform 360ms var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 0%, rgba(214, 168, 90, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  z-index: -1;
}

.feature-card:hover {
  background: rgba(15, 34, 54, 0.6);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.feature-index {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-style: italic;
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-bottom: 4px;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 26px;
  font-variation-settings: "opsz" 48, "SOFT" 25;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════
   SCREENSHOT MASONRY — Atlas plates
   ════════════════════════════════════════════════════════════════ */

.screenshots-section {
  width: min(var(--max-wide), calc(100% - 80px));
}

.screenshot-grid {
  columns: 3;
  column-gap: 22px;
}

.screenshot-card {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 22px;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
  cursor: zoom-in;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 42, 64, 0.6), rgba(11, 24, 40, 0.6));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  transition: border-color 360ms var(--ease), box-shadow 360ms var(--ease), transform 360ms var(--ease);
}

.screenshot-card:hover {
  border-color: var(--gold);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(214, 168, 90, 0.18);
  transform: translateY(-3px);
}

.plate-label {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  padding: 4px 9px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(7, 15, 30, 0.84);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #050b14, #0a1626);
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
}

.screenshot-card:hover img {
  transform: scale(1.02);
  filter: brightness(1.05) saturate(1.08);
}

.screenshot-card figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line-soft);
  background: rgba(7, 15, 30, 0.55);
}

.screenshot-card figcaption strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  font-variation-settings: "opsz" 30, "SOFT" 20;
  letter-spacing: -0.1px;
  color: var(--text);
}

.screenshot-card figcaption span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════
   ROADMAP TIMELINE — Phase dossier with classification stamp
   ════════════════════════════════════════════════════════════════ */

.roadmap-section {
  width: min(var(--max-narrow), calc(100% - 80px));
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 23px;
  width: 1px;
  background: linear-gradient(180deg,
    var(--gold) 0%,
    rgba(214, 168, 90, 0.5) 28%,
    rgba(79, 176, 173, 0.6) 50%,
    rgba(214, 168, 90, 0.18) 100%
  );
}

.timeline-item {
  position: relative;
  padding: 26px 28px 26px 78px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 42, 64, 0.5), rgba(11, 24, 40, 0.55));
  transition: border-color 280ms var(--ease), background 280ms var(--ease), transform 280ms var(--ease);
}

.timeline-item:hover {
  border-color: var(--line);
  transform: translateX(4px);
}

.timeline-marker {
  position: absolute;
  top: 32px;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-2);
  border-radius: 50%;
  background: var(--ink);
  z-index: 1;
}

.timeline-item.complete .timeline-marker {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(214, 168, 90, 0.18), 0 0 18px rgba(214, 168, 90, 0.4);
}

.timeline-item.active {
  border-color: rgba(79, 176, 173, 0.5);
  background: linear-gradient(180deg, rgba(28, 60, 72, 0.62), rgba(15, 34, 54, 0.62));
}

.timeline-item.active .timeline-marker {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(79, 176, 173, 0.2), 0 0 18px rgba(79, 176, 173, 0.5);
  animation: pulseTeal 2.8s ease-in-out infinite;
}

@keyframes pulseTeal {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 176, 173, 0.2), 0 0 18px rgba(79, 176, 173, 0.5); }
  50%      { box-shadow: 0 0 0 9px rgba(79, 176, 173, 0.08), 0 0 28px rgba(79, 176, 173, 0.7); }
}

.timeline-item .phase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  flex-wrap: wrap;
}

.phase-roman {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
}

.phase-name {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: 21px;
  font-variation-settings: "opsz" 36, "SOFT" 20;
  letter-spacing: -0.1px;
  text-transform: none;
}

.phase-status {
  padding: 3px 9px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.timeline-item.complete .phase-status {
  color: var(--ink);
  background: var(--gold);
}

.timeline-item.active .phase-status {
  color: var(--ink);
  background: var(--teal);
}

.phase-desc {
  margin: 0;
  padding-left: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Classification stamp on the active phase */
.classification-stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 6px 14px;
  border: 2px solid var(--crimson);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--crimson);
  background: rgba(181, 62, 58, 0.06);
  transform: rotate(-4deg);
  pointer-events: none;
  opacity: 0.88;
  filter: drop-shadow(0 2px 6px rgba(181, 62, 58, 0.18));
}

.classification-stamp::before,
.classification-stamp::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 80%;
  height: 1px;
  background: var(--crimson);
  opacity: 0.55;
  transform: translateX(-50%);
}

.classification-stamp::before { top: -4px; }
.classification-stamp::after  { bottom: -4px; }

/* ════════════════════════════════════════════════════════════════
   DEVLOGS — Newspaper bulletins
   ════════════════════════════════════════════════════════════════ */

.devlog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.devlog-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 24, 40, 0.32);
  transition: background 320ms var(--ease);
  position: relative;
  overflow: hidden;
}

.devlog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 0%, rgba(214, 168, 90, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}

.devlog-card:hover {
  background: rgba(15, 34, 54, 0.58);
}

.devlog-card:hover::before { opacity: 1; }

.devlog-dateline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.devlog-date {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
}

.devlog-dispatch {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.devlog-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
  font-variation-settings: "opsz" 36, "SOFT" 20;
}

.devlog-card p {
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag-row span,
.signal-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(214, 168, 90, 0.28);
  border-radius: 2px;
  background: rgba(7, 15, 30, 0.5);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.tag-row span:hover,
.signal-list span:hover {
  border-color: var(--gold);
  color: var(--gold-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.text-link:hover {
  color: var(--gold-3);
  border-color: var(--gold-3);
}

.text-link-arrow {
  transition: transform 220ms var(--ease);
}

.text-link:hover .text-link-arrow {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════════
   SUGGESTION FORM — Outbound transmission
   ════════════════════════════════════════════════════════════════ */

.suggestion-section {
  width: min(var(--max-narrow), calc(100% - 80px));
}

.suggestion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.suggestion-intro {
  padding-top: 18px;
}

.suggestion-copy {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.1px;
  color: var(--text-2);
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.suggestion-form {
  display: grid;
  gap: 20px;
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 42, 64, 0.5), rgba(11, 24, 40, 0.55));
  position: relative;
}

.suggestion-form::before,
.suggestion-form::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
}

.suggestion-form::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.suggestion-form::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.form-header-label,
.form-header-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-header-label {
  color: var(--gold);
}

.form-header-id {
  color: var(--muted-2);
}

.suggestion-form label {
  display: grid;
  gap: 10px;
}

.label-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-2);
}

.label-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 9px;
  color: var(--gold);
}

.suggestion-form input,
.suggestion-form select,
.suggestion-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(4, 9, 26, 0.74);
  color: var(--text);
  font: inherit;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1px;
  text-transform: none;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.suggestion-form input::placeholder,
.suggestion-form textarea::placeholder {
  color: var(--muted-2);
}

.suggestion-form input,
.suggestion-form select {
  min-height: 46px;
  padding: 0 14px;
}

.suggestion-form textarea {
  min-height: 160px;
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
  font-family: var(--font-serif);
  font-size: 16px;
}

.suggestion-form input:focus,
.suggestion-form select:focus,
.suggestion-form textarea:focus {
  border-color: var(--gold);
  background: rgba(7, 15, 30, 0.96);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 168, 90, 0.18);
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER — Map plate signature
   ════════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  width: min(var(--max), calc(100% - 80px));
  margin: 60px auto 32px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}

.footer-rule {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer-mark {
  color: var(--gold);
  opacity: 0.84;
}

.footer-mark svg {
  width: 56px;
  height: 56px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  color: var(--text);
  letter-spacing: -0.1px;
}

.footer-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-up {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 200ms var(--ease);
}

.footer-up:hover { color: var(--gold-3); }

.footer-up-arrow {
  transition: transform 200ms var(--ease);
}

.footer-up:hover .footer-up-arrow {
  transform: translateY(-3px);
}

.footer-coords {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-coords span:nth-child(odd):not(.coord-dot) {
  color: var(--gold);
  opacity: 0.78;
}

/* ════════════════════════════════════════════════════════════════
   SCROLL REVEAL — staged orchestration
   ════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out-quint), transform 900ms var(--ease-out-quint);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid > [data-reveal].is-visible,
.devlog-grid > [data-reveal].is-visible,
.screenshot-grid > [data-reveal].is-visible,
.timeline > [data-reveal].is-visible {
  transition-delay: var(--reveal-delay, 0ms);
}

/* On hero, stagger lines as if they're being uncovered */
.hero [data-reveal]:nth-of-type(1) { transition-delay: 80ms; }
.hero [data-reveal]:nth-of-type(2) { transition-delay: 220ms; }
.hero [data-reveal]:nth-of-type(3) { transition-delay: 380ms; }
.hero [data-reveal]:nth-of-type(4) { transition-delay: 540ms; }
.hero [data-reveal]:nth-of-type(5) { transition-delay: 700ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .devlog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .screenshot-grid {
    columns: 2;
  }
}

@media (max-width: 980px) {
  .site-header { padding: 0 22px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 22px;
    display: none;
    width: min(320px, calc(100vw - 44px));
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(7, 15, 30, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
    justify-content: center;
  }

  .hero {
    min-height: min(760px, 90svh);
  }

  .hero-meta-strip,
  .hero-coords,
  .scroll-cue {
    left: 26px;
    right: 26px;
  }

  .hero-meta-strip { top: 30px; }
  .hero-coords,
  .scroll-cue { bottom: 22px; }

  .scroll-cue { right: 26px; left: auto; }

  .hero-frame { inset: 16px; }

  .hero-content {
    width: min(100% - 52px, var(--max));
    padding: 130px 0 110px;
  }

  .hero-content,
  .section,
  .screenshots-section,
  .roadmap-section,
  .suggestion-section,
  .site-footer {
    width: min(100% - 44px, var(--max));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats div:nth-child(2) { border-right: none; }
  .hero-stats div:nth-child(1),
  .hero-stats div:nth-child(2) { border-bottom: 1px solid rgba(214, 168, 90, 0.16); }

  .section-grid,
  .intro-grid,
  .suggestion-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-grid p:last-child { margin-top: 0; }

  .classification-stamp {
    top: auto;
    bottom: 16px;
    right: 18px;
  }
}

@media (max-width: 760px) {
  .feature-grid,
  .devlog-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-grid {
    columns: 1;
  }

  .footer-row {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 18px;
  }

  .footer-up { justify-self: flex-start; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; padding: 0 18px; }

  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8.5px; }

  .site-nav { top: 68px; right: 18px; }

  .hero { min-height: min(700px, 90svh); }
  .hero-bg { object-position: 62% center; }

  .hero-meta-strip,
  .hero-coords,
  .scroll-cue {
    left: 18px;
    right: 18px;
  }

  .scroll-cue { right: 18px; left: auto; }
  .scroll-cue-line { width: 36px; }

  .hero-content { padding: 110px 0 100px; }

  .hero-lede { font-size: 17px; }
  .drop-cap { font-size: 1.35em; }

  .section { padding: 80px 0; }
  .section-intro { padding-top: 56px; }

  .part-heading {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-heading.split,
  .site-footer {
    flex-direction: column;
  }

  .feature-card { padding: 28px 22px 24px; }
  .feature-card-head { margin-bottom: 26px; }
  .feature-index { font-size: 32px; }
  .feature-card h3 { font-size: 22px; }

  .timeline::before { left: 18px; }
  .timeline-item {
    padding: 22px 22px 22px 62px;
  }
  .timeline-marker { left: 9px; top: 26px; }

  .classification-stamp {
    position: static;
    display: inline-block;
    margin-top: 10px;
    transform: rotate(-2deg);
  }

  .suggestion-form { padding: 22px; }
  .form-header { flex-wrap: wrap; gap: 6px; }

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

  .hero-stats div {
    border-right: none;
    border-bottom: 1px solid rgba(214, 168, 90, 0.16);
  }

  .hero-stats div:last-child {
    border-bottom: none;
  }
}
