:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #050b13;
  color: #e2e8f0;
  --sky: #7dd3fc;
  --panel: #07111f;
  --line: rgb(255 255 255 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  background: #050b13;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 5%, rgb(14 116 144 / 8%), transparent 28rem),
    #050b13;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  border-radius: 0.5rem;
  background: white;
  color: #020617;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: none;
}

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.25rem;
}

.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.eyebrow,
.eyebrow-link {
  margin: 0;
  font: 500 0.625rem/1.5 "JetBrains Mono", monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sky);
}

.eyebrow-link {
  text-decoration: none;
}

.eyebrow-link:hover,
.eyebrow-link:focus-visible {
  color: white;
}

.brand {
  font: 600 1.125rem/1 "Playfair Display", serif;
  color: white;
  text-decoration: none;
}

.brand span {
  color: var(--sky);
}

.hero > .eyebrow {
  margin-top: 2.5rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: white;
}

h1 {
  max-width: 64rem;
  margin-top: 0.85rem;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.04;
  font-weight: 600;
}

.deck {
  max-width: 50rem;
  margin: 1.25rem 0 0;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.evidence-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font: 500 0.625rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-verified {
  border-color: rgb(52 211 153 / 35%);
  background: rgb(52 211 153 / 10%);
  color: #a7f3d0;
}

.badge-claim {
  border-color: rgb(251 191 36 / 35%);
  background: rgb(251 191 36 / 10%);
  color: #fef3c7;
}

.badge-illustrative {
  border-color: rgb(56 189 248 / 35%);
  background: rgb(56 189 248 / 10%);
  color: #e0f2fe;
}

.explorer {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.explorer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.explode-button {
  min-height: 2.75rem;
  cursor: pointer;
  border: 1px solid rgb(125 211 252 / 50%);
  border-radius: 999px;
  background: rgb(125 211 252 / 10%);
  padding: 0.8rem 1.3rem;
  color: #e0f2fe;
  font: 500 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.explode-button:hover {
  background: rgb(125 211 252 / 20%);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: black;
  box-shadow: 0 1.5rem 4rem rgb(8 47 73 / 35%);
}

.reel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
}

.reel-image,
.image-shade,
.hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reel-image {
  object-fit: cover;
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.assembled-image {
  object-fit: contain;
  background: white;
  opacity: 0;
}

.exploded-image {
  opacity: 1;
  transform: scale(1);
}

.image-shade {
  pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / 65%), transparent 45%, rgb(0 0 0 / 15%));
}

.hotspots {
  pointer-events: none;
}

.hotspot {
  pointer-events: auto;
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  transform: translate(-50%, -50%);
  place-items: center;
  cursor: pointer;
  border: 2px solid rgb(186 230 253 / 80%);
  border-radius: 999px;
  background: rgb(2 6 23 / 88%);
  color: white;
  font: 700 0.8rem/1 "JetBrains Mono", monospace;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 45%);
  transition:
    opacity 250ms ease,
    transform 200ms ease,
    background 200ms ease;
}

.hotspot:hover,
.hotspot[aria-pressed="true"] {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: white;
  background: #38bdf8;
  color: #020617;
}

.hotspots.is-hidden .hotspot {
  pointer-events: none;
  opacity: 0;
}

.range-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 5rem;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: rgb(2 6 23 / 92%);
  padding: 1rem;
  color: #94a3b8;
  font: 500 0.625rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.range-row span:first-child {
  text-align: right;
}

.range-row span:last-child {
  color: var(--sky);
}

.range-row input {
  width: 100%;
  accent-color: #38bdf8;
}

.system-buttons {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.system-button {
  min-height: 4.25rem;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 3%);
  padding: 0.8rem;
  color: #cbd5e1;
  text-align: left;
}

.system-button:hover,
.system-button[aria-pressed="true"] {
  border-color: var(--sky);
  background: rgb(125 211 252 / 12%);
  color: white;
}

.system-button-number {
  display: block;
  color: var(--sky);
  font: 500 0.625rem/1 "JetBrains Mono", monospace;
}

.system-button-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

.system-detail {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(255 255 255 / 4%);
  padding: 1.75rem;
}

.detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.system-number {
  margin: 0;
  color: var(--sky);
  font: 500 0.75rem/1 "JetBrains Mono", monospace;
}

.system-detail h3 {
  margin-top: 0.5rem;
  font-size: 1.7rem;
}

.system-description {
  max-width: 56rem;
  margin: 1rem 0 0;
  color: #e2e8f0;
  line-height: 1.7;
}

.system-evidence {
  max-width: 56rem;
  margin: 0.7rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.illustration-note {
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.6;
}

.story {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 2;
}

.story section + section {
  margin-top: 3.25rem;
}

.story h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.story p {
  margin: 1rem 0 0;
}

.story a {
  color: var(--sky);
  text-underline-offset: 0.25rem;
}

.story li + li {
  margin-top: 0.45rem;
}

.verified-text {
  color: #a7f3d0;
}

.claim-text {
  color: #fef3c7;
}

.illustrative-text {
  color: #e0f2fe;
}

.disclosure {
  margin-top: 2rem !important;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: #64748b;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .system-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotspot {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2rem 1.25rem 1.75rem;
  }

  .hero > .eyebrow {
    margin-top: 2rem;
  }

  .explorer-inner {
    padding: 1.75rem 0.75rem;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .explode-button {
    width: 100%;
  }

  .range-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    gap: 0.5rem;
    padding: 0.8rem 0.5rem;
    letter-spacing: 0.04em;
  }

  .system-detail {
    padding: 1.25rem;
  }

  .detail-heading {
    flex-direction: column;
  }

  .story {
    padding: 3rem 1.25rem 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
