:root {
  --bg: #11090a;
  --bg-soft: #24100f;
  --surface: rgba(31, 13, 13, 0.82);
  --surface-strong: rgba(42, 17, 15, 0.95);
  --line: rgba(224, 124, 79, 0.46);
  --text: #f4e4cf;
  --muted: #d5b79c;
  --accent: #df8253;
  --accent-cool: #d8c5a9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-pill: 999px;
  --content-width: 1180px;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(210, 76, 43, 0.25), transparent 0 18%),
    radial-gradient(circle at 84% 9%, rgba(202, 139, 91, 0.16), transparent 0 16%),
    radial-gradient(circle at 50% 63%, rgba(95, 34, 25, 0.35), transparent 0 24%),
    linear-gradient(180deg, #0b0608 0%, #160a0a 28%, #1d0d0c 62%, #090507 100%);
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.7px),
    radial-gradient(circle at 24% 84%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 72%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 48% 52%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.7px);
}

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

.hero {
  position: relative;
  padding: 68px 24px 42px;
}

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

.hero__inner,
.timeline-entry__content { min-width: 0; }

.hero__halo {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(223, 130, 83, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 34px rgba(223, 130, 83, 0.04),
    inset 0 0 0 88px rgba(223, 130, 83, 0.028),
    inset 0 0 0 138px rgba(223, 130, 83, 0.02);
}

.hero__halo::before,
.hero__halo::after {
  position: absolute;
  border: 1px solid rgba(216, 197, 169, 0.14);
  border-radius: 50%;
  content: "";
}

.hero__halo::before { inset: 58px; }
.hero__halo::after { inset: 122px; }
.hero__halo--left { top: -12px; left: -190px; }
.hero__halo--right { top: -40px; right: -180px; }

.site-home-link {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(223, 130, 83, 0.34);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: rgba(16, 7, 8, 0.66);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.site-home-link span {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 0.8;
  transition: transform 220ms ease;
}

.site-home-link:hover,
.site-home-link:focus-visible {
  border-color: var(--accent);
  color: #fff1df;
  outline: none;
  transform: translateX(-3px);
}

.site-home-link:hover span,
.site-home-link:focus-visible span { transform: translateX(-3px); }

.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: 940px;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6rem);
}

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

.timeline-layout { padding: 24px 24px 44px; }

.timeline {
  position: relative;
  padding-top: 16px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, var(--line) 8%, var(--line) 92%, transparent 100%);
  box-shadow: 0 0 18px rgba(223, 130, 83, 0.2);
}

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

.timeline-entry__content {
  padding: 28px 28px 24px;
  border: 1px solid rgba(223, 130, 83, 0.18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(45, 18, 16, 0.92), rgba(18, 8, 9, 0.86));
  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: 1px solid rgba(216, 197, 169, 0.24);
  border-radius: var(--radius-pill);
  color: var(--accent-cool);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

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

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

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

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

.timeline-entry__node::after {
  inset: -18px;
  border: 1px dashed rgba(223, 130, 83, 0.16);
}

.timeline-entry__node--migration::before,
.timeline-entry__node--earth::before {
  background:
    radial-gradient(circle at 30% 34%, #f0b27e 0 18%, transparent 20%),
    radial-gradient(circle at 68% 65%, #6b9cad 0 18%, transparent 20%),
    linear-gradient(135deg, #6c2a21, #101018 72%);
}

.timeline-entry__node--seed::before,
.timeline-entry__node--people::before {
  background: radial-gradient(circle at 38% 30%, #f7d2a2, #c96540 24%, #70261f 55%, #180b0d 82%);
}

.timeline-entry__node--ocean::before {
  background:
    radial-gradient(circle at 38% 30%, #f5d7aa 0 15%, transparent 17%),
    linear-gradient(165deg, #9c4c30 0 48%, #47798f 50% 72%, #16101a 74%);
}

.timeline-entry__node--ra::before,
.timeline-entry__node--pyramid::before,
.timeline-entry__node--egypt::before {
  clip-path: polygon(50% 8%, 92% 86%, 8% 86%);
  border-radius: 0;
  background: linear-gradient(135deg, #f1c589, #9c4a2f 58%, #251015);
}

.timeline-entry__node--cities::before {
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 18%, #d68252 18% 28%, transparent 28% 43%, #a74932 43% 57%, transparent 57% 72%, #e0a06a 72% 83%, transparent 83%),
    linear-gradient(180deg, transparent 0 45%, #4f201c 46% 100%);
}

.timeline-entry__node--lyra::before,
.timeline-entry__node--council::before,
.timeline-entry__node--fleet::before {
  background:
    radial-gradient(circle at 50% 50%, #f6d49d 0 9%, transparent 11%),
    conic-gradient(from 15deg, #bf6342, #d7b083, #54243a, #bf6342);
}

.timeline-entry__node--reptile::before {
  background:
    radial-gradient(ellipse at 50% 43%, #d6c58a 0 12%, #6d783e 14% 38%, transparent 40%),
    radial-gradient(circle at 50% 50%, #583323, #160c0d 76%);
}

.timeline-entry__node--orbit::before {
  background:
    radial-gradient(circle at 50% 50%, #bc5f3d 0 28%, #5d211d 30% 44%, transparent 46%),
    radial-gradient(ellipse at 50% 50%, transparent 0 57%, #d9b185 59% 62%, transparent 64%);
}

.timeline-entry__node--fracture::before,
.timeline-entry__node--impact::before,
.timeline-entry__node--war::before {
  background:
    linear-gradient(132deg, transparent 0 44%, #f3c591 45% 49%, transparent 50% 100%),
    radial-gradient(circle at 40% 36%, #ef9c64, #a43f2e 32%, #43171a 60%, #14090b 82%);
}

.timeline-entry__node--underground::before {
  background:
    radial-gradient(ellipse at 50% 75%, #e9b478 0 11%, #75402d 13% 25%, transparent 27%),
    linear-gradient(180deg, #9a4932 0 45%, #291216 47% 100%);
}

.timeline-entry__node--olympus::before {
  clip-path: polygon(50% 5%, 95% 88%, 5% 88%);
  border-radius: 0;
  background: linear-gradient(155deg, #e9ad75, #a3422f 48%, #371419 76%);
}

.timeline-entry__node--soul::before {
  background:
    radial-gradient(circle at 50% 50%, #fff0c8 0 10%, #d98c5f 13% 22%, transparent 24%),
    radial-gradient(circle at 50% 50%, transparent 0 45%, #b66749 47% 50%, transparent 52%),
    #211016;
}

.timeline-entry__node--future::before {
  background:
    radial-gradient(circle at 48% 40%, #efd8af 0 12%, transparent 14%),
    linear-gradient(180deg, #86422f 0 48%, #6c8b72 50% 60%, #1b1014 62%);
}

.closing-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 8px;
  padding: 28px 28px 30px;
  border: 1px solid rgba(223, 130, 83, 0.2);
  border-radius: 32px;
  background: rgba(24, 9, 10, 0.92);
  box-shadow: var(--shadow);
}

.closing-note__seal {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(223, 130, 83, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 226, 185, 0.96), rgba(223, 130, 83, 0.86) 17%, transparent 19%),
    linear-gradient(132deg, transparent 0 47%, rgba(247, 197, 145, 0.7) 48% 51%, transparent 52%),
    radial-gradient(circle at 50% 50%, #9e432f 0 42%, #3d1718 44% 62%, #16090b 64%);
  box-shadow: 0 0 42px rgba(223, 130, 83, 0.18);
}

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

.closing-note p { margin-bottom: 0; }

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

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

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

  .site-home-link {
    position: static;
    display: flex;
    width: max-content;
    margin: 0 0 32px;
  }

  .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-row: 1;
    grid-column: 1;
    align-self: start;
    width: 64px;
    height: 64px;
  }

  .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;
    margin-right: 18px;
    margin-left: 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 p { font-size: 0.96rem; }
  .timeline-entry h3 { font-size: 1.85rem; }

  .timeline-entry {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline::before { left: 31px; }

  .timeline-entry__node {
    width: 54px;
    height: 54px;
  }

  .timeline-entry__phase {
    font-size: 0.7rem;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }
}

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