:root {
  --bg: #07111d;
  --bg-soft: #0d1b2d;
  --surface: rgba(8, 17, 31, 0.76);
  --surface-strong: rgba(9, 18, 34, 0.92);
  --line: rgba(219, 181, 120, 0.45);
  --line-soft: rgba(219, 181, 120, 0.18);
  --text: #f1e6cc;
  --muted: #c3b496;
  --accent: #d9b478;
  --accent-cool: #87b5c4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(235, 186, 113, 0.24), transparent 0 18%),
    radial-gradient(circle at 85% 12%, rgba(108, 148, 178, 0.16), transparent 0 14%),
    radial-gradient(circle at 50% 68%, rgba(20, 40, 70, 0.45), transparent 0 22%),
    linear-gradient(180deg, #030914 0%, #07111d 26%, #081221 56%, #040a13 100%);
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 23% 82%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 47% 52%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle at 66% 88%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.7px);
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 64px 24px 48px;
}

.hero__inner,
.timeline-layout,
.closing-note,
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero__orbits {
  position: absolute;
  top: 20px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 120, 0.16);
  box-shadow:
    inset 0 0 0 24px rgba(217, 180, 120, 0.04),
    inset 0 0 0 72px rgba(217, 180, 120, 0.03),
    inset 0 0 0 110px rgba(217, 180, 120, 0.02);
  filter: blur(0.2px);
}

.hero__orbits::before,
.hero__orbits::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero__orbits::before {
  inset: 48px;
  border: 1px solid rgba(217, 180, 120, 0.18);
}

.hero__orbits::after {
  inset: 106px;
  border: 1px solid rgba(217, 180, 120, 0.18);
}

.hero__orbits--left {
  left: -180px;
}

.hero__orbits--right {
  right: -180px;
  top: 6px;
}

.hero__kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 5.9rem);
}

.hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero code {
  color: var(--accent-cool);
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.source-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(217, 180, 120, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(10, 22, 38, 0.96), rgba(7, 15, 27, 0.9));
  box-shadow: var(--shadow);
}

.source-card__block {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 180, 120, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.source-card__label {
  color: var(--accent-cool);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.source-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.source-card span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.source-ledger {
  margin-top: 22px;
  padding: 24px 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(135, 181, 196, 0.18);
  background: rgba(6, 14, 25, 0.58);
  box-shadow: var(--shadow);
}

.source-ledger h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.1vw, 2.3rem);
}

.source-ledger__list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.timeline-layout {
  display: block;
  padding: 22px 24px 48px;
}

.timeline {
  position: relative;
  padding: 22px 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent 0%, var(--line) 6%, var(--line) 94%, transparent 100%);
  box-shadow: 0 0 18px rgba(217, 180, 120, 0.18);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 22px;
}

.timeline-entry__content {
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(217, 180, 120, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 20, 35, 0.86), rgba(6, 14, 25, 0.78));
  box-shadow: var(--shadow);
}

.timeline-entry--left .timeline-entry__content {
  grid-column: 1;
}

.timeline-entry--right .timeline-entry__content {
  grid-column: 3;
}

.timeline-entry__phase {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(135, 181, 196, 0.28);
  color: var(--accent-cool);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-entry h3 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 2.4vw, 2.85rem);
}

.timeline-entry p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.timeline-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.timeline-entry__time {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 180, 120, 0.28);
  color: var(--text);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
}

.timeline-entry__sources {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--accent-cool);
  line-height: 1.75;
}

.timeline-entry__sources li + li {
  margin-top: 2px;
}

.timeline-entry__node {
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(217, 180, 120, 0.72);
  box-shadow:
    0 0 0 12px rgba(217, 180, 120, 0.05),
    0 0 48px rgba(217, 180, 120, 0.18);
}

.timeline-entry__node::before,
.timeline-entry__node::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
}

.timeline-entry__node::after {
  inset: -18px;
  border: 1px dashed rgba(217, 180, 120, 0.18);
}

.timeline-entry__node--signal::before {
  background:
    radial-gradient(circle at 50% 26%, #fff0d0, #f0c17a 20%, rgba(255, 255, 255, 0) 21%),
    radial-gradient(circle at 50% 54%, #9ed8ff 0 18%, #28517e 38%, #111b2a 76%);
}

.timeline-entry__node--gold::before {
  background: radial-gradient(circle at 30% 30%, #fff6d3, #f6c97a 38%, #7b4a17 72%, rgba(0, 0, 0, 0.2));
}

.timeline-entry__node--plasma::before {
  background: radial-gradient(circle at 50% 34%, #d5f8ff, #96c5dd 30%, #385b77 56%, #0d1520 76%);
}

.timeline-entry__node--orbit::before {
  background: radial-gradient(circle at 38% 34%, #f7ecd3, #d9b478 28%, #624328 58%, #111827 82%);
}

.timeline-entry__node--venus::before {
  background: radial-gradient(circle at 40% 36%, #fff1cc, #c7a36a 34%, #694826 58%, #111824 82%);
}

.timeline-entry__node--mars::before {
  background: radial-gradient(circle at 43% 34%, #ffd9bf, #b86a4f 36%, #4b1f1b 66%, #111821 82%);
}

.timeline-entry__node--fracture::before {
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 196, 133, 0.86), rgba(255, 120, 52, 0.62) 34%, rgba(79, 20, 17, 0.92) 58%, #140f16 84%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 180, 120, 0.85) 48% 51%, transparent 51% 100%);
}

.timeline-entry__node--fusion::before {
  background:
    radial-gradient(circle at 30% 34%, #d4f8ff, #7fb7d8 28%, transparent 42%),
    radial-gradient(circle at 68% 62%, #ffe4b7, #dba45f 26%, transparent 42%),
    radial-gradient(circle at 50% 50%, #112035, #091119 76%);
}

.timeline-entry__node--earth::before {
  background: radial-gradient(circle at 45% 38%, #d9f4ff, #3f78b8 34%, #294116 54%, #101725 76%);
}

.timeline-entry__node--dna::before {
  background:
    radial-gradient(circle at 36% 36%, #f4f8ff, #90b5ff 24%, transparent 25%),
    radial-gradient(circle at 64% 64%, #ffe4b7, #d7986d 24%, transparent 25%),
    linear-gradient(135deg, rgba(134, 181, 196, 0.85), rgba(217, 180, 120, 0.72)),
    #0d1828;
}

.timeline-entry__node--matrix::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 242, 205, 0.92) 0 10%, rgba(122, 186, 214, 0.74) 14%, transparent 22%),
    conic-gradient(from 40deg, rgba(151, 193, 233, 0.62), rgba(243, 202, 136, 0.72), rgba(74, 100, 150, 0.72), rgba(151, 193, 233, 0.62));
}

.timeline-entry__node--transition::before {
  background:
    radial-gradient(circle at 50% 36%, #d8f4ff, #74a2d8 30%, #27477f 52%, #20411d 64%, #121a26 84%);
}

.timeline-entry__node--galaxy::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 241, 205, 0.92) 0 8%, rgba(154, 197, 231, 0.88) 12%, transparent 18%),
    conic-gradient(from 0deg, rgba(151, 193, 233, 0.72), rgba(243, 202, 136, 0.72), rgba(74, 100, 150, 0.72), rgba(151, 193, 233, 0.72));
}

.closing-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin: 12px auto 0;
  padding: 28px 28px 30px;
  border-radius: 32px;
  border: 1px solid rgba(217, 180, 120, 0.2);
  background: rgba(7, 16, 28, 0.9);
  box-shadow: var(--shadow);
}

.closing-note__seal {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 120, 0.28);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 242, 205, 0.95), rgba(225, 184, 109, 0.84) 20%, rgba(98, 68, 31, 0.18) 21%, transparent 22%),
    linear-gradient(90deg, transparent 49%, rgba(225, 184, 109, 0.6) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 58%, rgba(225, 184, 109, 0.6) 58% 60%, transparent 60%),
    radial-gradient(circle at 50% 78%, rgba(225, 184, 109, 0.8), rgba(98, 68, 31, 0.24) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, rgba(225, 184, 109, 0.12), rgba(0, 0, 0, 0) 70%);
  box-shadow: 0 0 40px rgba(217, 180, 120, 0.12);
}

.closing-note h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.closing-note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  padding: 24px 24px 56px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer span {
  color: var(--accent-cool);
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 18px 30px;
  }

  .source-card {
    grid-template-columns: 1fr;
  }

  .timeline-layout {
    padding: 18px 18px 36px;
  }

  .timeline::before {
    left: 38px;
    transform: none;
  }

  .timeline-entry {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
  }

  .timeline-entry__node {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 64px;
    align-self: start;
  }

  .timeline-entry__content,
  .timeline-entry--left .timeline-entry__content,
  .timeline-entry--right .timeline-entry__content {
    grid-column: 2;
  }

  .timeline-entry__content {
    padding: 22px 20px 20px;
  }

  .closing-note {
    grid-template-columns: 1fr;
    text-align: left;
    margin: 0 18px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.6rem;
  }

  .hero__kicker {
    font-size: 0.78rem;
    line-height: 1.7;
  }

  .hero__lead,
  .timeline-entry p,
  .closing-note ul,
  .source-ledger__list {
    font-size: 0.96rem;
  }

  .timeline-entry h3 {
    font-size: 1.85rem;
  }

  .timeline-entry__time {
    font-size: 0.88rem;
  }
}
