:root {
  --white: #f6f3ec;
  --paper: #fbf9f4;
  --ink: #18203a;
  --muted: #5d6478;
  --blue: #1f4fa8;
  --deep: #0d1433;
  --sun: #ff8a3d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  color: #fff;
  transition: background .4s, color .4s, box-shadow .4s, backdrop-filter .4s;
}
.topbar.solid {
  background: rgba(251, 249, 244, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(24, 32, 58, .08);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.mark svg { width: 26px; height: 26px; fill: currentColor; }
.topbar nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.topbar nav a { text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.topbar nav a:hover { opacity: 1; }

/* Hero */
.hero { height: 260vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0d1433; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-copy {
  position: absolute; left: clamp(22px, 7vw, 120px); top: 23vh;
  color: #fff; max-width: 640px;
  text-shadow: 0 2px 30px rgba(10, 15, 40, .24);
  will-change: transform, opacity;
}
.eyebrow { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 6px; opacity: .9; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(60px, 9.5vw, 146px); line-height: .9;
  margin: 0; letter-spacing: -.01em;
}
.lede { font-size: clamp(16px, 1.6vw, 20px); font-weight: 300; margin: 18px 0 0; opacity: .92; }
.lede em { font-family: var(--serif); font-size: 1.25em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .85;
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(#fff, transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Bands */
.band { padding: clamp(90px, 14vw, 180px) 0; position: relative; }
.wrap { width: min(1080px, 88vw); margin: 0 auto; }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6.4vw, 88px); line-height: 1; margin: 0 0 40px; letter-spacing: -.01em; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 6px 0 8px; }
.body { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--muted); max-width: 640px; font-weight: 300; }
.body em { font-family: var(--serif); font-size: 1.15em; color: var(--ink); }

/* Name equation */
.equation {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2.5vw, 34px);
  margin: 10px 0 44px; padding: 34px clamp(20px, 3vw, 40px);
  background: #fff; border: 1px solid rgba(24, 32, 58, .08); border-radius: 22px;
  box-shadow: 0 30px 60px -40px rgba(31, 79, 168, .35);
}
.equation > div { display: flex; flex-direction: column; }
.equation b { font-family: var(--serif); font-size: 34px; font-weight: 400; color: var(--sun); }
.gk { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; }
.en { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.result .gk { color: var(--blue); font-style: italic; }

/* Names timeline */
.names { background: var(--white); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .35; }
.timeline li { position: relative; padding-top: 52px; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.timeline li:last-child::before { background: var(--blue); box-shadow: 0 0 0 6px rgba(31, 79, 168, .14); }
.t-gk { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 20px; }
.timeline p { color: var(--muted); line-height: 1.6; font-size: 15px; margin: 0; }

/* Dark island band */
.dark { background: radial-gradient(120% 80% at 80% 0%, #24306a 0%, var(--deep) 60%); color: #fff; overflow: hidden; }
.dark .kicker { color: #ffb066; }
.dark .body { color: rgba(255, 255, 255, .72); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 10px 0 48px; }
.stat { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; }
.num { display: block; font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); line-height: 1; color: #ffcf8a; }
.lbl { display: block; margin-top: 12px; color: rgba(255, 255, 255, .7); line-height: 1.55; font-size: 15px; }

.meander {
  height: 22px; width: 100%; position: absolute; left: 0; top: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 21H8V5H36V17H16V11H28' fill='none' stroke='%23ffb066' stroke-width='2'/%3E%3Cpath d='M28 11V13M36 21H44' fill='none' stroke='%23ffb066' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 44px 22px; background-repeat: repeat-x;
}

/* Roots */
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.two h2 { position: sticky; top: 110px; }
.memories { display: grid; gap: 18px; }
.memory {
  background: #fff; border-radius: 22px; padding: 28px 30px;
  border: 1px solid rgba(24, 32, 58, .07);
  box-shadow: 0 24px 50px -40px rgba(24, 32, 58, .4);
  transition: transform .35s ease, box-shadow .35s ease;
}
.memory:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(31, 79, 168, .45); }
.ico { font-size: 26px; }
.memory p { color: var(--muted); line-height: 1.65; margin: 0; }

/* Now */
.now { background: linear-gradient(180deg, var(--paper), #eef2fb); }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 18px; margin-top: 36px; }
.card-link {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 28px; border-radius: 20px; text-decoration: none;
  background: var(--deep); color: #fff; overflow: hidden;
  transition: transform .3s ease;
}
.card-link::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 61, .7), transparent 70%); transition: transform .5s ease; }
.card-link:hover { transform: translateY(-4px); }
.card-link:hover::after { transform: scale(1.4); }
.card-link:nth-child(2) { background: var(--blue); }
.cl-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.cl-t { font-family: var(--serif); font-size: 32px; }
.cl-d { font-size: 14px; opacity: .75; }
.arrow { position: absolute; top: 22px; right: 24px; font-size: 20px; }

/* Footer */
.foot { position: relative; background: var(--deep); color: #fff; text-align: center; padding: 90px 20px 50px; }
.welcome { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 6vw, 72px); margin: 0 0 10px; }
.small { color: rgba(255, 255, 255, .7); margin: 0 0 30px; }
.tiny { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.timeline .reveal:nth-child(2), .memories .reveal:nth-child(2), .stats .reveal:nth-child(2) { transition-delay: .12s; }
.timeline .reveal:nth-child(3), .memories .reveal:nth-child(3), .stats .reveal:nth-child(3) { transition-delay: .24s; }
.timeline .reveal:nth-child(4) { transition-delay: .36s; }

@media (max-width: 820px) {
  .topbar nav { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .timeline::before { display: none; }
  .stats { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .two h2 { position: static; }
  .links { grid-template-columns: 1fr; }
  .hero-copy { top: 16vh; }
}
@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
}

/* Quiet framing for the illustrated caldera. */
.scene-caption {
  position: absolute; left: clamp(22px, 4vw, 48px); bottom: 30px;
  display: flex; flex-direction: column; gap: 7px; color: #ede5df;
  font-size: 9px; letter-spacing: .19em; line-height: 1.4;
}
.scene-caption span:last-child { font-family: var(--serif); font-size: 19px; font-style: italic; letter-spacing: .02em; }
.motion-toggle {
  position: absolute; right: clamp(22px, 4vw, 48px); bottom: 30px;
  color: #f9f0e7; background: rgba(15, 25, 44, .42);
  border: 1px solid rgba(249, 240, 231, .28); border-radius: 24px;
  padding: 11px 16px; min-height: 44px; font: 11px var(--sans);
  letter-spacing: .04em; cursor: pointer; backdrop-filter: blur(8px);
}
.motion-toggle:hover { background: rgba(15, 25, 44, .7); }
a:focus-visible, button:focus-visible { outline: 2px solid #eaa16c; outline-offset: 5px; }
.scroll-cue { font-size: 10px; letter-spacing: .18em; bottom: 29px; }
.scroll-cue i { height: 26px; }
@media (max-width: 820px) {
  .hero-copy { top: 18vh; max-width: calc(100% - 44px); }
  .hero h1 { font-size: clamp(54px, 11.8vw, 94px); }
  .lede { max-width: 320px; font-size: 15px; line-height: 1.55; }
  .scene-caption { bottom: 25px; font-size: 8px; }
  .scene-caption span:last-child { font-size: 17px; }
  .motion-toggle { bottom: 23px; }
  .scroll-cue { bottom: 100px; font-size: 8px; white-space: nowrap; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-copy { top: 22vh; }
  .hero h1 { font-size: 68px; }
  .eyebrow { font-size: 20px; }
  .lede { margin-top: 10px; font-size: 14px; }
}
