:root {
  --deep-night: #1a1a2e;
  --cosmos: #16213e;
  --hot-pink: #ff6b9d;
  --electric-cyan: #00e5ff;
  --sunburst-yellow: #ffde03;
  --lavender-neon: #b388ff;
  --chalk-white: #f0f0f5;
  --terrazzo-gray: #4a4a5e;
  --body-dark: #e0e0e0;
  --body-light: #2d2d3e;
  --scroll-y: 0px;
  --progress: 0%;
  --hero-speed: 1;
}

* { box-sizing: border-box; }

html { background: var(--deep-night); }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--chalk-white);
  font-family: "Source Sans 3", Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 157, 0.16), transparent 30vw),
    radial-gradient(circle at 90% 30%, rgba(0, 229, 255, 0.13), transparent 28vw),
    var(--deep-night);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.42;
  background-image: radial-gradient(var(--terrazzo-gray) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

h1, h2 {
  font-family: "Playfair Display", Playfair, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

svg { display: block; width: 100%; height: 100%; }

.fixed-geometry {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  transform: translateY(calc(var(--scroll-y) * -0.3));
  filter: drop-shadow(10px 10px 0 rgba(0, 0, 0, 0.35));
}

.geo-one {
  width: 190px;
  height: 190px;
  left: -82px;
  top: 22vh;
  background: var(--sunburst-yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border: 3px solid #000;
}

.geo-two {
  width: 220px;
  height: 110px;
  right: -72px;
  top: 58vh;
  background: var(--electric-cyan);
  border-radius: 220px 220px 0 0;
  border: 3px solid #000;
}

.geo-three {
  width: 160px;
  height: 160px;
  right: 5vw;
  top: 8vh;
  background: repeating-linear-gradient(45deg, var(--lavender-neon) 0 14px, var(--deep-night) 14px 28px);
  border: 3px solid #000;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #000;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  background: linear-gradient(135deg, transparent 0 33%, var(--hot-pink) 33% 42%, transparent 42% 58%, var(--electric-cyan) 58% 67%, transparent 67%);
  background-size: 48px 34px;
}

.hero-cosmos {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: --hero-speed 0.2s ease;
}

.hero:hover { --hero-speed: .5; }

.hero-title-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  background: rgba(26, 26, 46, 0.55);
  border: 3px solid rgba(240, 240, 245, 0.25);
  box-shadow: 18px 18px 0 rgba(255, 107, 157, 0.28), -18px -18px 0 rgba(0, 229, 255, 0.18);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(5rem, 17vw, 180px);
  text-shadow: 5px 5px 0 #000, 12px 12px 0 var(--hot-pink), -9px -9px 0 var(--electric-cyan);
}

.hero-kicker, .hero-subtitle, .card-bar, .terrazzo-footer p {
  font-family: "DM Mono", "Space Mono", monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-kicker {
  color: var(--sunburst-yellow);
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-subtitle {
  color: var(--chalk-white);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-top: 24px;
}

.orb {
  position: absolute;
  width: 76px;
  height: 76px;
  left: calc(50% - 38px);
  top: calc(50% - 38px);
  transform-origin: 38px 38px;
  animation-name: orbit, spin;
  animation-timing-function: linear, linear;
  animation-iteration-count: infinite, infinite;
}

.orb svg { overflow: visible; }
.orb path, .orb circle { stroke: #000; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.orb-1 { --radius: 120px; animation-duration: calc(7s * var(--hero-speed)), 5s; }
.orb-2 { --radius: 180px; animation-duration: calc(11s * var(--hero-speed)), 7s; }
.orb-3 { --radius: 240px; animation-duration: calc(13s * var(--hero-speed)), 11s; }
.orb-4 { --radius: 300px; animation-duration: calc(17s * var(--hero-speed)), 13s; }
.orb-5 { --radius: 150px; animation-duration: calc(19s * var(--hero-speed)), 7s; }
.orb-6 { --radius: 220px; animation-duration: calc(23s * var(--hero-speed)), 5s; }
.orb-7 { --radius: 285px; animation-duration: calc(29s * var(--hero-speed)), 17s; }
.orb-8 { --radius: 330px; animation-duration: calc(31s * var(--hero-speed)), 19s; }
.orb-1 path { fill: var(--hot-pink); }
.orb-2 path, .orb-4 path, .orb-8 path { stroke: var(--electric-cyan); }
.orb-3 path { fill: var(--sunburst-yellow); }
.orb-5 path { fill: var(--lavender-neon); }
.orb-6 path { fill: var(--electric-cyan); }
.orb-7 circle { fill: var(--hot-pink); }

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--radius)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--radius)) rotate(-360deg); }
}

@keyframes spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.timeline {
  position: relative;
  padding: 120px 0 80px;
  min-height: 100vh;
}

.timeline-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38.2%;
  width: 4px;
  background: repeating-linear-gradient(to bottom, rgba(255, 107, 157, 0.45) 0 8px, transparent 8px 12px);
  animation: railPulse 1.8s ease-in-out infinite alternate;
}

.timeline-rail::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--progress);
  background: var(--hot-pink);
  box-shadow: 0 0 18px var(--hot-pink);
}

@keyframes railPulse { to { opacity: 0.62; } }

.timeline-entry {
  --accent: var(--hot-pink);
  position: relative;
  min-height: 430px;
  width: 100%;
}

.accent-pink { --accent: var(--hot-pink); }
.accent-cyan { --accent: var(--electric-cyan); }
.accent-yellow { --accent: var(--sunburst-yellow); }
.accent-lavender { --accent: var(--lavender-neon); }

.node {
  position: absolute;
  z-index: 2;
  left: calc(38.2% - 24px);
  top: 42px;
  width: 48px;
  height: 48px;
  padding: 8px;
  background: var(--deep-night);
  border: 3px solid var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.node svg * { stroke: var(--accent); fill: none; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.node svg path:first-child, .node svg circle:first-child { fill: rgba(255, 222, 3, 0.15); }

.connector {
  position: absolute;
  top: 65px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.42s ease 0.1s;
}

.side-right .connector { left: calc(38.2% + 24px); }
.side-left .connector { right: calc(61.8% + 24px); }

.card {
  position: absolute;
  top: 24px;
  width: min(520px, 45vw);
  padding: 40px 16px 24px;
  color: var(--body-light);
  background:
    radial-gradient(var(--terrazzo-gray) 1.5px, transparent 1.5px),
    #f0f0f5;
  background-size: 16px 16px, auto;
  border: 3px solid var(--accent);
  border-radius: 0;
  box-shadow: 12px 12px 0 #000;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.2s ease 0.2s, transform 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.side-right .card { left: calc(38.2% + 56px); }
.side-left .card { right: calc(61.8% + 56px); }

.card::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  right: 14px;
  bottom: 12px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.8;
}

.card-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--deep-night);
  background: var(--accent);
  font-size: 13px;
}

.card h2 {
  color: var(--deep-night);
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 22px;
}

.card p {
  max-width: 48ch;
  color: var(--body-light);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.72;
}

.timeline-entry.is-visible .node { transform: scale(1); }
.timeline-entry.is-visible .connector { width: 32px; }
.timeline-entry.is-visible .card { opacity: 1; transform: translateY(0); }

.terrazzo-footer {
  position: relative;
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 100px 24px;
  overflow: hidden;
  background-color: var(--deep-night);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 107, 157, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 70%, rgba(0, 229, 255, 0.18) 0 7px, transparent 8px),
    linear-gradient(45deg, transparent 48%, rgba(255, 222, 3, 0.16) 49% 52%, transparent 53%),
    linear-gradient(135deg, transparent 46%, rgba(179, 136, 255, 0.15) 47% 54%, transparent 55%);
  background-size: 70px 70px, 94px 94px, 58px 58px, 83px 83px;
  border-top: 4px solid var(--hot-pink);
}

.footer-node {
  width: 72px;
  height: 72px;
  padding: 10px;
  border: 3px solid var(--sunburst-yellow);
  background: #000;
}

.footer-node path { fill: var(--hot-pink); stroke: var(--sunburst-yellow); stroke-width: 2px; }

.terrazzo-footer p {
  color: var(--electric-cyan);
  font-size: 13px;
  margin: 26px 0 18px;
}

.terrazzo-footer h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 767px) {
  .fixed-geometry { display: none; }
  .hero-title-wrap { padding: 28px 18px; box-shadow: 9px 9px 0 rgba(255, 107, 157, 0.3), -9px -9px 0 rgba(0, 229, 255, 0.2); }
  .hero-subtitle { font-size: 12px; line-height: 1.8; }
  .orb { width: 54px; height: 54px; left: calc(50% - 27px); top: calc(50% - 27px); transform-origin: 27px 27px; }
  .orb-1 { --radius: 80px; }
  .orb-2 { --radius: 118px; }
  .orb-3 { --radius: 152px; }
  .orb-4 { --radius: 188px; }
  .orb:nth-child(n+5) { display: none; }
  .timeline { padding: 76px 0 40px; }
  .timeline-rail { left: 24px; }
  .timeline-entry { min-height: 500px; padding-left: 56px; padding-right: 16px; }
  .node { left: 0; margin-left: 0; }
  .connector, .side-left .connector, .side-right .connector { left: 48px; right: auto; }
  .card, .side-left .card, .side-right .card { left: 56px; right: 16px; width: auto; max-width: calc(100% - 72px); }
  .card h2 { font-size: clamp(2rem, 10vw, 3.1rem); }
}
