:root {
  --bg: #071014;
  --bg-soft: #0b171c;
  --panel: rgba(13, 28, 34, 0.88);
  --panel-strong: #0d1d22;
  --text: #eef7f6;
  --muted: #9bb0b3;
  --line: rgba(117, 255, 219, 0.16);
  --accent: #72f7cb;
  --accent-2: #6cc8ff;
  --accent-3: #a78bfa;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  opacity: .35;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .14;
  pointer-events: none;
  z-index: -2;
}
.orb-a { top: -120px; left: -100px; background: var(--accent); }
.orb-b { right: -140px; top: 30%; background: var(--accent-2); }

.section-shell,
.topbar,
.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04110d;
  box-shadow: 0 0 30px rgba(114,247,203,.2);
}
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); font-size: .92rem; }
.nav-link:hover { color: var(--text); }

.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 30%, rgba(114,247,203,.10), transparent 42%);
  pointer-events: none;
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 60px 0 110px;
}
.eyebrow,
.section-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  max-width: 900px;
  margin: 20px 0 22px;
  font-size: clamp(3.6rem, 8.4vw, 7.8rem);
  line-height: .88;
  letter-spacing: -.065em;
}
.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(114,247,203,.85);
  text-shadow: 0 0 35px rgba(114,247,203,.14);
}
.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.stat {
  min-width: 132px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
}
.stat strong { display: block; font-size: 1.35rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.cta {
  width: fit-content;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03130f;
  font-weight: 900;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(114,247,203,.18); }

.hero-dna {
  position: absolute;
  right: 3vw;
  bottom: 4vh;
  width: min(36vw, 500px);
  height: 300px;
  opacity: .24;
  transform: rotate(-8deg);
}
.hero-dna::before,
.hero-dna::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  box-shadow: 0 0 20px rgba(114,247,203,.55);
}
.hero-dna::before { top: 82px; transform: skewY(8deg); }
.hero-dna::after { bottom: 82px; transform: skewY(-8deg); }
.hero-dna span {
  position: absolute;
  top: 84px;
  width: 2px;
  height: 132px;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform-origin: center;
  animation: dna 2.4s ease-in-out infinite alternate;
}
.hero-dna span:nth-child(1) { left: 7%; animation-delay: .0s; }
.hero-dna span:nth-child(2) { left: 15%; animation-delay: .1s; }
.hero-dna span:nth-child(3) { left: 23%; animation-delay: .2s; }
.hero-dna span:nth-child(4) { left: 31%; animation-delay: .3s; }
.hero-dna span:nth-child(5) { left: 39%; animation-delay: .4s; }
.hero-dna span:nth-child(6) { left: 47%; animation-delay: .5s; }
.hero-dna span:nth-child(7) { left: 55%; animation-delay: .6s; }
.hero-dna span:nth-child(8) { left: 63%; animation-delay: .7s; }
.hero-dna span:nth-child(9) { left: 71%; animation-delay: .8s; }
.hero-dna span:nth-child(10) { left: 79%; animation-delay: .9s; }
.hero-dna span:nth-child(11) { left: 87%; animation-delay: 1s; }
.hero-dna span:nth-child(12) { left: 95%; animation-delay: 1.1s; }
@keyframes dna { from { transform: scaleY(.3); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }

.intro {
  padding: 110px 0 80px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.intro h2 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -.045em;
}
.intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.04rem;
}

.timeline-section { padding: 60px 0 100px; }
.timeline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}
.timeline-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -.045em;
}

.progress-track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 15px rgba(114,247,203,.45);
  transition: width .35s ease;
}

.timeline-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 68px max(20px, calc((100vw - var(--max)) / 2)) 80px;
  cursor: grab;
}
.timeline-viewport::-webkit-scrollbar { display: none; }
.timeline-viewport.dragging { cursor: grabbing; user-select: none; }
.timeline-row {
  display: flex;
  width: max-content;
  gap: 34px;
  position: relative;
}
.timeline-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 4%, var(--line) 96%, transparent);
}

.timeline-card {
  position: relative;
  width: 340px;
  min-height: 430px;
  flex: 0 0 340px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.timeline-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-66px);
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px var(--line);
}
.timeline-card:hover,
.timeline-card.active {
  transform: translateY(-10px);
  border-color: rgba(114,247,203,.5);
  background: linear-gradient(160deg, rgba(114,247,203,.08), rgba(108,200,255,.025));
}
.timeline-card.active::before { background: var(--accent); box-shadow: 0 0 0 7px var(--bg), 0 0 20px var(--accent); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gen { color: var(--muted); font-size: .72rem; letter-spacing: .14em; font-weight: 800; }
.tag {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.featured-tag { color: #0d1714; background: var(--accent); border-color: transparent; }
.year {
  margin-top: 48px;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .08em;
}
.timeline-card h3 {
  margin: 12px 0 8px;
  font-size: 1.75rem;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.author { margin: 0; color: var(--accent-2); font-weight: 700; }
.summary { margin: 24px 0 0; color: var(--muted); line-height: 1.7; }
.details-btn {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.details-btn:hover { background: var(--accent); color: #062018; border-color: transparent; }

.footer {
  border-top: 1px solid var(--line);
  padding: 32px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: center;
  color: var(--muted);
}
.footer p { margin: 0; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 10, .78);
  backdrop-filter: blur(12px);
}
.modal-panel {
  position: relative;
  width: min(860px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(114,247,203,.3);
  border-radius: 26px;
  background: var(--panel-strong);
  box-shadow: 0 30px 100px rgba(0,0,0,.46);
  padding: 34px;
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}
.modal-meta { display: flex; gap: 10px; flex-wrap: wrap; padding-right: 56px; }
.modal-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.modal h2 {
  margin: 18px 0 6px;
  max-width: 680px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -.045em;
  line-height: 1;
}
.modal-author { margin: 0 0 28px; color: var(--accent-2); font-weight: 800; }
.modal-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-content-grid section {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255,255,255,.02);
}
.modal-content-grid h3 { margin: 0 0 10px; font-size: .9rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.modal-content-grid p { margin: 0; color: var(--muted); line-height: 1.75; }
.modal-career { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(3.2rem, 12vw, 6rem); }
  .hero-dna { opacity: .12; width: 70vw; right: -25vw; }
  .intro { grid-template-columns: 1fr; }
  .timeline-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .topbar { height: 68px; }
  .brand span:last-child, .nav-link { display: none; }
  .hero-content { padding-top: 30px; }
  .hero h1 { letter-spacing: -.055em; }
  .hero p { font-size: 1rem; }
  .stat { flex: 1; min-width: 100px; }
  .intro { padding-top: 80px; }
  .timeline-card { width: 290px; flex-basis: 290px; min-height: 420px; }
  .timeline-viewport { padding-top: 58px; }
  .footer { flex-direction: column; text-align: center; }
  .modal-panel { padding: 26px 20px; }
  .modal-content-grid { grid-template-columns: 1fr; }
  .modal-career { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}