:root {
  --bg: #08090d;
  --bg-elevated: rgba(16, 18, 25, 0.82);
  --bg-soft: rgba(20, 24, 34, 0.56);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2eee8;
  --muted: #b8b3ad;
  --accent: #f28f5b;
  --accent-soft: rgba(242, 143, 91, 0.18);
  --signal: #8fc4ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  background:
    radial-gradient(circle at top, rgba(143, 196, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(242, 143, 91, 0.12), transparent 18%),
    linear-gradient(180deg, #0a0b11 0%, #06070b 52%, #08090d 100%);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #111;
  font-family: "Azeret Mono", monospace;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 3px,
      transparent 4px
    ),
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 75% 14%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 100%);
  background-size: auto, 210px 210px, 260px 260px;
  mix-blend-mode: screen;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
    var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(320deg, rgba(143, 196, 255, 0.08), transparent 25%);
  opacity: 0.8;
}

.site-header,
.hero,
.facts-grid,
.story-grid,
.lower-grid,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  width: 3.6rem;
  height: 3.6rem;
  filter: drop-shadow(0 14px 28px rgba(242, 143, 91, 0.18));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-kicker,
.eyebrow,
.fact-label,
.role-tag,
.site-nav a,
.button,
.transmission-badge,
.footer-title {
  font-family: "Azeret Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-kicker,
.eyebrow,
.fact-label,
.transmission-badge {
  color: var(--muted);
  font-size: 0.7rem;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -8rem -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 143, 91, 0.2), transparent 70%);
  filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-right: clamp(0rem, 3vw, 3rem);
}

.hero h1,
.fact-card h2,
.section-head h2,
.narrative h2,
.adaptation h2 {
  margin: 0;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.35rem, 8vw, 6.6rem);
  max-width: 8ch;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 0.55rem;
  color: rgba(242, 238, 232, 0.52);
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: 0.74rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #ffbb85);
  color: #17120d;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.hero-note {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.transmission-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  background:
    linear-gradient(180deg, rgba(143, 196, 255, 0.08), transparent 40%),
    rgba(10, 11, 15, 0.84);
}

.transmission-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
}

.countdown {
  display: grid;
  gap: 0.25rem;
}

.countdown-number {
  font-family: "Azeret Mono", monospace;
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 0.92;
  color: var(--signal);
}

.countdown-label {
  color: var(--text);
  font-size: 1rem;
}

.transmission-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.transmission-list div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.transmission-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.transmission-list dd {
  margin: 0;
  font-size: 1rem;
}

.signal-map {
  position: relative;
  min-height: 11rem;
  margin-top: 0.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 143, 91, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.015);
}

.node,
.beam {
  position: absolute;
}

.node {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(143, 196, 255, 0.85);
}

.node-a {
  left: 16%;
  top: 64%;
}

.node-b {
  left: 42%;
  top: 34%;
}

.node-c {
  left: 66%;
  top: 60%;
}

.node-d {
  left: 82%;
  top: 20%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(242, 143, 91, 0.75);
}

.beam {
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 196, 255, 0.2), rgba(143, 196, 255, 0.9));
  transform-origin: left;
}

.beam-a {
  left: 17%;
  top: 66%;
  width: 30%;
  transform: rotate(-24deg);
}

.beam-b {
  left: 42%;
  top: 37%;
  width: 28%;
  transform: rotate(27deg);
}

.beam-c {
  left: 67%;
  top: 59%;
  width: 24%;
  transform: rotate(-50deg);
  background: linear-gradient(90deg, rgba(242, 143, 91, 0.18), rgba(242, 143, 91, 0.9));
}

.facts-grid,
.story-grid,
.lower-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.facts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-card,
.narrative,
.adaptation,
.ensemble,
.faq-panel,
.sources-panel,
.site-footer {
  padding: 1.25rem;
}

.fact-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-top: 0.55rem;
  max-width: 11ch;
}

.fact-card p,
.narrative p,
.adaptation p,
.people-grid p,
.faq-panel p,
.sources-panel span,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.story-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.narrative h2,
.adaptation h2,
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.narrative,
.adaptation {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.ensemble {
  margin-top: 1rem;
}

.section-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.people-grid article {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--bg-soft);
}

.role-tag {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.65rem;
}

.people-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.lower-grid {
  grid-template-columns: 0.88fr 1.12fr;
}

.faq-panel details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-panel details:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq-panel summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
}

.faq-panel summary::-webkit-details-marker {
  display: none;
}

.faq-panel details p {
  margin-top: 0.7rem;
}

.source-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--bg-soft);
}

.source-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 1.06rem;
}

.source-list a::after {
  content: "↗";
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.footer-title {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.74rem;
}

.site-footer a {
  align-self: center;
  color: var(--text);
  font-family: "Azeret Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button,
.site-nav a,
.source-list a,
.site-footer a,
.faq-panel summary {
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible,
.source-list a:hover,
.source-list a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.faq-panel summary:hover,
.faq-panel summary:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .hero,
  .facts-grid,
  .story-grid,
  .lower-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.6rem;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .fact-card,
  .narrative,
  .adaptation,
  .ensemble,
  .faq-panel,
  .sources-panel,
  .site-footer {
    padding: 1rem;
  }

  .hero h1 {
    max-width: none;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .button {
    width: 100%;
  }
}

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

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