:root {
  --ink: #25221d;
  --muted: #6f675b;
  --paper: #fff9ed;
  --paper-deep: #efe3c8;
  --melon: #f2a65a;
  --melon-deep: #d46b3a;
  --rind: #67885a;
  --rind-dark: #37553d;
  --blue: #2e688c;
  --blue-soft: #d8edf4;
  --plum: #6d3a5f;
  --terminal: #58ff8a;
  --terminal-dim: rgba(88, 255, 138, 0.62);
  --terminal-dark: #07100b;
  --line: rgba(37, 34, 29, 0.16);
  --shadow: 0 24px 70px rgba(59, 45, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(37, 34, 29, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(37, 34, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-dark {
  color: #fff9ed;
}

.site-header.is-scrolled {
  background: rgba(255, 249, 237, 0.94);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(37, 34, 29, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled.is-dark {
  background: rgba(20, 20, 18, 0.84);
  border-color: rgba(255, 249, 237, 0.12);
}

.site-header.is-dark nav,
.site-header.is-dark .brand small {
  color: rgba(255, 249, 237, 0.68);
}

.site-header.is-dark nav a:hover {
  color: #fff9ed;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff9ed;
  font-weight: 900;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #f8ca7a 0 18%, transparent 19%),
    linear-gradient(135deg, var(--rind), var(--rind-dark));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.brand strong {
  display: block;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.classified {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(92px, 12vw, 140px) clamp(18px, 5vw, 72px) clamp(38px, 6vw, 70px);
  color: var(--terminal);
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 255, 138, 0.16), transparent 31%),
    radial-gradient(circle at 82% 20%, rgba(46, 104, 140, 0.22), transparent 30%),
    linear-gradient(135deg, #010403, #07100b 50%, #000);
  overflow: hidden;
}

.classified::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(88, 255, 138, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 255, 138, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

.classified::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(88, 255, 138, 0.055) 0,
    rgba(88, 255, 138, 0.055) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.classified-noise {
  position: absolute;
  inset: 0;
  opacity: 0.33;
  background-image:
    repeating-linear-gradient(0deg, rgba(88, 255, 138, 0.12) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
  animation: staticShift 420ms steps(2, end) infinite;
  pointer-events: none;
}

@keyframes staticShift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1px, 1px);
  }
  50% {
    transform: translate(1px, -1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.classified-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
}

.classified-topline,
.classified-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--terminal-dim);
  font: 700 0.78rem/1.2 "Courier New", monospace;
  text-transform: uppercase;
}

.dossier {
  position: relative;
  margin: 22px 0;
  padding: clamp(24px, 6vw, 62px);
  border: 1px solid rgba(255, 249, 237, 0.22);
  background:
    linear-gradient(90deg, rgba(88, 255, 138, 0.075), transparent 18% 82%, rgba(88, 255, 138, 0.04)),
    rgba(1, 8, 5, 0.84);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.66),
    inset 0 0 70px rgba(88, 255, 138, 0.06);
}

.dossier::before,
.dossier::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-color: rgba(88, 255, 138, 0.72);
  border-style: solid;
}

.dossier::before {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
}

.dossier::after {
  right: 16px;
  bottom: 16px;
  border-width: 0 2px 2px 0;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terminal);
  box-shadow: 0 0 16px rgba(88, 255, 138, 0.65);
}

.dossier-stamp {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 16px;
  color: var(--terminal);
  font: 900 clamp(1rem, 3vw, 1.8rem)/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 3px solid var(--terminal);
  transform: rotate(-3deg);
  text-shadow: 0 0 14px rgba(88, 255, 138, 0.62);
}

.dossier h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.86;
  color: #d9ffe1;
  text-shadow: 0 0 26px rgba(88, 255, 138, 0.28);
}

.dossier p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(217, 255, 225, 0.76);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.terminal-log {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin: 28px 0 0;
  padding: 18px;
  color: var(--terminal-dim);
  font: 700 0.88rem/1.35 "Courier New", monospace;
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(88, 255, 138, 0.22);
}

.terminal-log p {
  margin: 0;
}

.terminal-log span {
  color: #d9ffe1;
}

.redacted-lines {
  display: grid;
  gap: 10px;
  width: min(100%, 610px);
  margin: 28px 0;
}

.redacted-lines span {
  display: block;
  height: 18px;
  background:
    linear-gradient(90deg, #010101 0 28%, transparent 28% 34%, #010101 34% 72%, transparent 72% 78%, #010101 78% 100%);
  border: 1px solid rgba(88, 255, 138, 0.14);
  box-shadow: 0 0 16px rgba(88, 255, 138, 0.06);
}

.oath-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(88, 255, 138, 0.22);
}

.oath-box label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: rgba(217, 255, 225, 0.86);
  font-weight: 800;
}

.oath-box input {
  width: 22px;
  height: 22px;
  accent-color: var(--terminal);
}

.oath-box button {
  min-height: 48px;
  padding: 13px 18px;
  color: #001707;
  font-weight: 900;
  border: 0;
  border-radius: 6px;
  background: var(--terminal);
  cursor: pointer;
  box-shadow: 0 0 28px rgba(88, 255, 138, 0.32);
}

.oath-box button:disabled {
  color: rgba(255, 249, 237, 0.42);
  background: rgba(88, 255, 138, 0.09);
  cursor: not-allowed;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(32px, 6vw, 76px) clamp(18px, 5vw, 72px) clamp(40px, 7vw, 86px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(239, 227, 200, 0.78));
  pointer-events: none;
}

.hero-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.hero-photo {
  position: relative;
  width: min(82vw, 560px);
  margin: 0;
  transform: rotate(-2deg);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  background: rgba(46, 104, 140, 0.18);
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid #fffdf7;
  box-shadow: var(--shadow);
}

.hero-photo::after {
  content: "REMOVE 1 M";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 9px 12px;
  color: var(--terminal);
  font: 900 0.78rem/1 "Courier New", monospace;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(88, 255, 138, 0.55);
  box-shadow: 0 0 18px rgba(88, 255, 138, 0.22);
}

.melon {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffd98c 0 10%, transparent 11%),
    radial-gradient(circle at 58% 40%, rgba(255, 255, 255, 0.24) 0 8%, transparent 9%),
    linear-gradient(135deg, #7e9c5c 0 10%, #f0bd65 11% 48%, #e08348 52% 84%, #5d7448 85% 100%);
  box-shadow: var(--shadow), inset -28px -32px 0 rgba(107, 68, 37, 0.14);
}

.melon-large {
  width: min(78vw, 430px);
}

.melon-small {
  width: 92px;
}

.mini-melon {
  position: absolute;
  right: 5%;
  bottom: 5%;
  padding: 8px;
  border-radius: 999px;
  background: #fffdf7;
  box-shadow: 0 14px 34px rgba(37, 34, 29, 0.18);
}

.melon span {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border-left: 2px solid rgba(87, 82, 48, 0.32);
  border-right: 2px solid rgba(255, 251, 226, 0.26);
}

.melon span:nth-child(1) {
  transform: rotate(24deg);
}

.melon span:nth-child(2) {
  transform: rotate(64deg);
}

.melon span:nth-child(3) {
  transform: rotate(112deg);
}

.melon span:nth-child(4) {
  transform: rotate(150deg);
}

.orbit-note {
  position: absolute;
  max-width: 140px;
  padding: 10px 12px;
  color: var(--ink);
  font: 700 0.78rem/1.2 "Courier New", monospace;
  text-transform: uppercase;
  background: #fffdf5;
  border: 1px solid rgba(37, 34, 29, 0.2);
  box-shadow: 8px 8px 0 rgba(46, 104, 140, 0.18);
  transform: rotate(-5deg);
}

.note-a {
  top: 14%;
  right: 4%;
}

.note-b {
  bottom: 18%;
  left: 0;
  transform: rotate(6deg);
}

.note-c {
  top: 18%;
  left: 9%;
  color: #fff9ed;
  background: var(--plum);
  box-shadow: 8px 8px 0 rgba(103, 136, 90, 0.22);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.2rem, 13vw, 10rem);
  line-height: 0.82;
  letter-spacing: 0;
  max-width: 780px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.lede,
.proof-lab p,
.case-panel p,
.exhibit p,
.faq p {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 620px;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
}

.word-machine {
  width: min(100%, 620px);
  margin-top: 32px;
  padding: 18px;
  background: rgba(255, 253, 245, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(37, 34, 29, 0.1);
}

.word-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.word-row.result {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.word-machine.is-solved .result {
  max-height: 80px;
  margin-top: 16px;
  opacity: 1;
}

.tile {
  display: grid;
  place-items: center;
  width: clamp(31px, 6vw, 50px);
  height: clamp(36px, 6.6vw, 56px);
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.45rem);
  background: #fffdf7;
  border: 1px solid rgba(37, 34, 29, 0.18);
  box-shadow: inset 0 -4px 0 rgba(37, 34, 29, 0.08);
}

.tile.accent {
  color: #fffdf7;
  background: var(--melon-deep);
}

.gap {
  width: clamp(10px, 2vw, 18px);
}

.proof-button {
  margin-top: 18px;
  padding: 13px 18px;
  color: #fffdf7;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 34, 29, 0.18);
}

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

.ticker {
  display: flex;
  gap: 32px;
  padding: 13px clamp(18px, 5vw, 72px);
  overflow: hidden;
  color: #fff9ed;
  background: var(--ink);
  white-space: nowrap;
}

.ticker span {
  animation: drift 24s linear infinite;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-60px);
  }
}

.section,
.comparison,
.proof-lab {
  padding: clamp(54px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 30px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-panel,
.exhibit,
.lab-console {
  border: 1px solid var(--line);
  background: rgba(255, 253, 245, 0.72);
}

.case-panel {
  min-height: 260px;
  padding: 24px;
}

.panel-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: #fff9ed;
  font-weight: 900;
  background: var(--blue);
}

.proof-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(216, 237, 244, 0.9), rgba(255, 249, 237, 0.45)),
    var(--blue-soft);
}

.lab-console {
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.lab-console label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--melon-deep);
}

.conversion-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 26px 0 18px;
  min-height: 86px;
}

.conversion-stage span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: clamp(1.2rem, 4vw, 2.6rem);
  font-weight: 900;
  background: #fffdf7;
  border: 1px solid rgba(37, 34, 29, 0.16);
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.conversion-stage [data-step="arrow"] {
  color: var(--melon-deep);
  background: transparent;
  border: 0;
}

.conversion-stage.is-half [data-step="musk"],
.conversion-stage.is-half [data-step="melon"] {
  opacity: 0.52;
  transform: translateY(8px);
}

.conversion-stage.is-complete [data-step="elon"],
.conversion-stage.is-complete [data-step="musk2"] {
  color: #fffdf7;
  background: var(--rind-dark);
  transform: translateY(-4px);
}

.lab-readout {
  min-height: 52px;
  margin: 0;
}

.exhibit-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
}

.exhibit {
  min-height: 260px;
  padding: 24px;
}

.produce-tag {
  position: relative;
  color: #fffdf7;
  background:
    linear-gradient(160deg, rgba(55, 85, 61, 0.92), rgba(103, 136, 90, 0.82)),
    var(--rind-dark);
}

.tag-hole {
  width: 18px;
  height: 18px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--paper);
}

.tag-label,
.signature,
.quote-card span {
  color: inherit;
  opacity: 0.72;
  font-size: 0.86rem;
}

dl {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 253, 247, 0.28);
}

dt {
  opacity: 0.76;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.memo {
  position: relative;
  background: #fffdf7;
}

.stamp {
  display: inline-block;
  padding: 7px 10px;
  color: var(--melon-deep);
  font: 900 0.78rem/1 "Courier New", monospace;
  border: 2px solid var(--melon-deep);
  transform: rotate(-4deg);
}

.timeline ol {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

time {
  color: var(--ink);
  font-weight: 900;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--plum);
}

.quote-card p {
  color: #fffdf7;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.comparison {
  background: var(--paper-deep);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(37, 34, 29, 0.18);
  background: #fffdf7;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: #fffdf7;
  background: var(--ink);
}

tbody th {
  width: 22%;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

details {
  background: rgba(255, 253, 245, 0.72);
  border: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #fff9ed;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .classified-topline,
  .classified-footer {
    flex-direction: column;
  }

  .oath-box {
    align-items: stretch;
    flex-direction: column;
  }

  .oath-box button {
    width: 100%;
  }

  .hero,
  .proof-lab {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 360px;
    order: -1;
  }

  .case-grid,
  .exhibit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 310px;
  }

  .note-a {
    right: 0;
  }

  .note-b {
    left: 2%;
    bottom: 8%;
  }

  .note-c {
    top: 8%;
    left: 0;
  }

  .word-machine {
    padding: 12px;
  }

  .tile {
    width: 30px;
    height: 36px;
  }

  .conversion-stage span {
    padding: 8px 10px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
