:root {
  --obsidian: #0B0C0E;
  --obsidian-deep: #07080A;
  --slate: #13161B;
  --slate-2: #1A1F26;
  --concrete: #2F343A;
  --silver: #9AA2A9;
  --silver-light: #CFD5DB;
  --white: #FFFFFF;
  --brass: #C29B61;
  --brass-soft: rgba(194, 155, 97, 0.14);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --basin-scrim: 0.42;
  --basin-compress: 0;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', 'EB Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--obsidian);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* LIVE 3D BASIN CANVAS & LAYERED OBSIDIAN READABILITY SCRIMS */
.basin-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.webgl-ready .basin-canvas {
  opacity: 1;
}

.basin-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 82% 72% at 50% 44%, rgba(11, 12, 14, 0.26) 0%, rgba(11, 12, 14, 0.86) 100%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.72) 0%, rgba(11, 12, 14, 0.42) 38%, rgba(11, 12, 14, 0.84) 100%);
  transition: opacity 0.6s ease;
}

body.webgl-ready .basin-scrim {
  opacity: var(--basin-scrim, 0.45);
}

.landing-shell {
  position: relative;
  z-index: 2;
}

/* Subtle fallback atmospheric grading when WebGL is inactive */
html[data-atmosphere="anvil"] body:not(.webgl-ready) .hero-bg {
  filter: contrast(1.08) sepia(0.18) brightness(0.88);
}

html[data-atmosphere="eclipse"] body:not(.webgl-ready) .hero-bg {
  filter: contrast(1.16) brightness(0.68);
}

/* SITE HEADER */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.nav-crest {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-links a.nav-explore {
  color: var(--brass);
  padding: 5px 10px;
  border: 1px solid rgba(194, 155, 97, 0.42);
  background: rgba(194, 155, 97, 0.08);
}

.nav-links a.nav-explore:hover {
  color: var(--white);
  border-color: var(--brass);
  background: rgba(194, 155, 97, 0.2);
}

@media (max-width: 1080px) {
  .nav-links .hide-md { display: none; }
}

@media (max-width: 900px) {
  .nav-links .hide-sm { display: none; }
  .site-nav-inner { padding: 13px 18px; }
  .nav-links { gap: 14px; }
}

@media (max-width: 620px) {
  .nav-links .hide-xs { display: none; }
  .nav-wordmark {
    font-size: 11.5px;
    letter-spacing: 0.22em;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--hairline-strong);
  background: rgba(11, 12, 14, 0.58);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.btn-solid {
  background: var(--white);
  color: var(--obsidian);
  border-color: var(--white);
  font-weight: 600;
}

.btn-solid:hover {
  background: #e6eaef;
  color: var(--obsidian);
}

.btn-brass {
  border-color: rgba(194, 155, 97, 0.72);
  color: var(--brass);
  background: rgba(194, 155, 97, 0.14);
}

.btn-brass:hover {
  border-color: var(--brass);
  color: var(--white);
  background: rgba(194, 155, 97, 0.26);
}

.btn-subtle {
  border-color: var(--hairline);
  color: var(--silver-light);
  background: rgba(11, 12, 14, 0.45);
}

.btn-subtle:hover {
  border-color: var(--hairline-strong);
  color: var(--white);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 10.5px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 120px 28px 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/hero-backdrop.jpg');
  background-size: cover;
  background-position: center 42%;
  opacity: 0.48;
  transform: scale(1.03);
  transition: opacity 0.9s ease, filter 0.5s ease;
}

body.webgl-ready .hero-bg {
  opacity: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(11, 12, 14, 0.18), rgba(11, 12, 14, 0.92)),
    linear-gradient(180deg, rgba(11, 12, 14, 0.65) 0%, rgba(11, 12, 14, 0.25) 45%, #0B0C0E 100%);
  transition: background 0.8s ease;
}

/* Layered obsidian directional scrim when 3D WebGL is active: razor-legible text, open monolith corridor */
body.webgl-ready .hero-vignette {
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.80) 0%, rgba(11, 12, 14, 0.56) 44%, rgba(11, 12, 14, 0.08) 68%, rgba(11, 12, 14, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.52) 0%, rgba(11, 12, 14, 0.04) 48%, rgba(11, 12, 14, 0.68) 100%);
}

/* LIVE 3D-PROJECTED SPATIAL TELEMETRY RETICLES */
.hud-reticle {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
}

.hud-reticle.is-visible {
  opacity: 0.9;
}

.reticle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  margin-left: -3.5px;
  margin-top: -3.5px;
}

.hud-reticle-brass .reticle-dot {
  background: var(--brass);
  box-shadow: 0 0 12px rgba(194, 155, 97, 0.85);
}

.reticle-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.15));
}

.hud-reticle-brass .reticle-line {
  background: linear-gradient(90deg, rgba(194, 155, 97, 0.8), rgba(194, 155, 97, 0.2));
}

.reticle-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(11, 12, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--silver-light);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.hud-reticle-brass .reticle-tag {
  border-color: rgba(194, 155, 97, 0.55);
  color: var(--brass);
}

/* COMPRESSION METER */
.compress-meter {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: rgba(11, 12, 14, 0.82);
  border: 1px solid rgba(194, 155, 97, 0.55);
  padding: 7px 14px;
  backdrop-filter: blur(12px);
  min-width: 220px;
}

.compress-meter.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.compress-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 5px;
  text-align: center;
}

.compress-rail {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.compress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--white));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 380px);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  position: relative;
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 108px 20px 68px; }
  body.webgl-ready .hero-vignette {
    background:
      linear-gradient(180deg, rgba(11, 12, 14, 0.82) 0%, rgba(11, 12, 14, 0.62) 55%, rgba(11, 12, 14, 0.88) 100%);
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brass);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 5.4vw, 72px);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--white);
  text-shadow: 0 4px 32px rgba(7, 8, 10, 0.78);
}

.hero-hook {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
  color: var(--silver-light);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 30px;
  text-shadow: 0 2px 18px rgba(7, 8, 10, 0.82);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 2px;
}

/* COVER SHOWCASE WITH 3D TILT + SPECULAR BRASS GLINT */
.cover-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1100px;
}

.cover-frame {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glint-x: 50%;
  --glint-y: 35%;
  --glint-opacity: 0;
  position: relative;
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.82), 0 0 1px rgba(255, 255, 255, 0.35);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.35s ease;
  display: block;
  overflow: hidden;
  will-change: transform;
}

.cover-frame:hover {
  border-color: rgba(194, 155, 97, 0.62);
  box-shadow: 0 42px 96px rgba(0, 0, 0, 0.88), 0 0 28px rgba(194, 155, 97, 0.12);
}

.cover-frame.is-tilting {
  transition: border-color 0.28s ease, box-shadow 0.35s ease;
}

.cover-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.cover-glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--glint-opacity);
  background: radial-gradient(
    circle 210px at var(--glint-x) var(--glint-y),
    rgba(255, 240, 214, 0.26) 0%,
    rgba(194, 155, 97, 0.16) 28%,
    rgba(194, 155, 97, 0) 68%
  );
  mix-blend-mode: screen;
  transition: opacity 0.28s ease;
}

.cover-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  text-shadow: 0 1px 12px rgba(7, 8, 10, 0.9);
}

/* SECTIONS */
.section {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 28px;
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 720px) {
  .section { padding: 64px 20px; }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 2px 22px rgba(7, 8, 10, 0.85);
}

.section-sub {
  max-width: 560px;
  color: var(--silver-light);
  font-size: 14.5px;
  font-weight: 300;
  text-shadow: 0 1px 14px rgba(7, 8, 10, 0.9);
}

.laws-sim-hint {
  display: none;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

body.webgl-ready .laws-sim-hint {
  display: block;
}

/* CHAPTER INDEX TABLE */
.chapter-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

body.webgl-ready .chapter-list {
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
}

.chapter-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.4fr) minmax(0, 1fr) 150px 110px;
  gap: 18px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.chapter-row:last-child {
  border-bottom: none;
}

.chapter-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 960px) {
  .chapter-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 14px;
  }
  .ch-excerpt, .ch-badges { display: none; }
}

.ch-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--brass);
}

.ch-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 3px;
}

.ch-excerpt {
  font-size: 12.5px;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ch-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--hairline-strong);
  color: var(--silver-light);
}

.ch-badge-bloodline {
  border-color: rgba(194, 155, 97, 0.65);
  color: var(--brass);
}

.ch-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--silver);
  text-align: right;
}

.ch-state {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  color: var(--silver);
}

.ch-state.read { color: var(--brass); }
.ch-state.current { color: var(--white); font-weight: 600; }

/* FOUR HARD LAWS — STICKY SPLIT 3D GRAVITY LAB */
.laws-lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}

.laws-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.law-card {
  background: var(--slate);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: none;
  transition: border-color 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, box-shadow 0.28s ease;
}

body.webgl-ready .law-card {
  background: rgba(13, 16, 21, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.law-card-row {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: stretch;
}

.law-thumb {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  display: block;
  border-right: 1px solid var(--hairline);
}

.law-card:hover,
.law-card:focus-visible,
.law-card.is-active {
  border-color: rgba(194, 155, 97, 0.78);
  transform: translateX(4px);
  background: rgba(18, 22, 29, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(194, 155, 97, 0.22);
}

.law-body { padding: 18px 20px 20px; }

/* STICKY RIGHT-HAND OPEN 3D STAGE WINDOW */
.laws-stage-column {
  position: sticky;
  top: 96px;
}

.laws-stage-window {
  position: relative;
  height: clamp(460px, calc(100vh - 165px), 680px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(11, 12, 14, 0.02) 0%, rgba(11, 12, 14, 0.34) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: crosshair;
  user-select: none;
}

body:not(.webgl-ready) .laws-stage-window {
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.65), rgba(11, 12, 14, 0.85)), url('/assets/lensing-bg.jpg') center/cover no-repeat;
}

.stage-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--brass);
  border-style: solid;
  pointer-events: none;
}
.stage-corner.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.stage-corner.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.stage-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.stage-corner.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.stage-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.stage-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}

.stage-formula {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.stage-live-dot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border: 1px solid rgba(194, 155, 97, 0.55);
  color: var(--brass);
  background: rgba(11, 12, 14, 0.65);
}

.stage-hud-bottom {
  background: rgba(11, 12, 14, 0.72);
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-note {
  font-size: 12.5px;
  color: var(--silver-light);
  line-height: 1.48;
}

.stage-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#labHoldBtn.is-holding {
  background: var(--brass);
  color: var(--obsidian);
  border-color: var(--brass);
}

@media (max-width: 960px) {
  .laws-lab-layout { grid-template-columns: 1fr; }
  .laws-stage-column { position: relative; top: 0; order: -1; }
  .laws-stage-window { height: 320px; }
}

@media (max-width: 560px) {
  .law-card-row { grid-template-columns: 1fr; }
  .law-thumb { height: 140px; border-right: none; border-bottom: 1px solid var(--hairline); }
}

.law-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.law-sim-pill {
  display: none;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border: 1px solid rgba(194, 155, 97, 0.35);
  color: var(--silver);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.webgl-ready .law-sim-pill {
  display: inline-flex;
  align-items: center;
}

.law-card:hover .law-sim-pill,
.law-card:focus-visible .law-sim-pill,
.law-card.is-active .law-sim-pill {
  border-color: var(--brass);
  color: var(--obsidian);
  background: var(--brass);
}

.law-body h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--white);
}

.law-body p {
  font-size: 14px;
  color: var(--silver-light);
  font-weight: 300;
}

/* CAST & WORLD CARDS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: 1fr; } }

.plate-card {
  background: var(--slate);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.webgl-ready .plate-card {
  background: rgba(15, 18, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.plate-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.plate-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.plate-info { padding: 18px 20px 20px; }
.plate-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.plate-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--white);
}
.plate-info p {
  font-size: 13px;
  color: var(--silver-light);
  font-weight: 300;
}

/* COLLECTOR BANNER */
.collector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 860px) { .collector-grid { grid-template-columns: 1fr; } }

.collector-img-card {
  border: 1px solid var(--hairline);
  background: var(--slate);
  overflow: hidden;
}

body.webgl-ready .collector-img-card {
  background: rgba(15, 18, 23, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.collector-img-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* FOOTER */
.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 28px 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--silver);
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a { text-decoration: none; color: var(--silver-light); }
.footer-links a:hover { color: var(--white); }

/* DUNE ATMOSPHERE PRESET SWITCHER DOCK */
.atmosphere-bar {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 13px;
  background: rgba(11, 12, 14, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.62);
}

.atmo-act {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

.atmo-sep {
  width: 1px;
  height: 14px;
  background: var(--hairline-strong);
}

.atmo-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.atmo-pill {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.atmo-pill:hover {
  color: var(--white);
  border-color: var(--hairline-strong);
}

.atmo-pill.is-active,
.atmo-pill[aria-pressed="true"] {
  color: var(--white);
  border-color: rgba(194, 155, 97, 0.72);
  background: rgba(194, 155, 97, 0.16);
}

.atmo-kbd {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--silver);
  border: 1px solid var(--hairline-strong);
  padding: 2px 6px;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .atmosphere-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    padding: 6px 8px;
    gap: 6px;
  }
  .atmo-act,
  .atmo-sep,
  .atmo-kbd {
    display: none;
  }
  .atmo-pills {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .atmo-pill {
    flex: 1;
    text-align: center;
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 6px 5px;
  }
}

/* LIGHTBOX */
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

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

.site-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid var(--hairline-strong);
}

.site-lightbox-cap {
  margin-top: 14px;
  color: var(--silver-light);
  font-size: 14px;
  text-align: center;
  max-width: 720px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .basin-canvas,
  .basin-scrim {
    display: none !important;
  }
  .cover-frame {
    transform: none !important;
    transition: none !important;
  }
  .cover-glint {
    display: none !important;
  }
}
