:root {
  --black: #000;
  --panel: #111;
  --ink: #1d1d1d;
  --muted: #6e6e6e;
  --muted-on-dark: #a1a1a1;
  --faint-on-dark: #868686;
  --paper: #fff;
  --paper-alt: #f5f5f5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.08);
  --pill: #fff;
  --header-h: 64px;
  --ease: cubic-bezier(0.28, 0.11, 0.27, 0.99);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid #868686;
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  backdrop-filter: saturate(150%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.wordmark img {
  width: min(150px, 34vw);
  height: auto;
  filter: invert(1);
}

.site-nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 36px);
  justify-content: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-header .btn {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--pill);
  color: var(--black);
}

.btn-primary:hover {
  background: #d9d9d9;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 64px) 72px;
  background: var(--black);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 74% 42%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(90% 90% at 50% 120%, rgba(255, 255, 255, 0.05), transparent 55%);
}

.hero-alloy {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(72vw, 880px);
  max-width: none;
  transform: translateY(-50%);
  filter: grayscale(1) brightness(0.98) drop-shadow(0 40px 90px rgba(255, 255, 255, 0.08));
  opacity: 0.94;
  object-fit: contain;
  animation: alloy-drift 9s ease-in-out infinite alternate;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.12) 68%, transparent 84%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: rise-in 0.9s var(--ease) both;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.04;
  color: #fff;
}

.lede {
  margin: 22px 0 0;
  max-width: 40ch;
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.micro {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head h2,
.close h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--ink);
}

.section-support {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.path,
.moments,
.recall,
.close {
  padding: clamp(88px, 12vw, 168px) clamp(20px, 5vw, 64px);
}

.path {
  background: var(--paper);
}

.path-rail {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}

.path-rail li:nth-child(2) { transition-delay: 0.1s; }
.path-rail li:nth-child(3) { transition-delay: 0.2s; }

.step-index {
  display: block;
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #868686;
}

.path-rail h3,
.moment h3 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.path-rail p,
.moment p {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
}

.moments {
  background: var(--paper-alt);
}

.moment-list {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
}

.moment {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(32px, 4.5vw, 52px) 0;
  border-top: 1px solid var(--line-light);
}

.moment:last-child {
  border-bottom: 1px solid var(--line-light);
}

.moment-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #868686;
}

.recall {
  background: var(--paper);
}

.recall-stage {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: var(--panel);
  color: #fff;
  text-align: center;
}

.scenario-row,
.view-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.scenario-row button,
.view-toggle button {
  appearance: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.scenario-row button:hover,
.view-toggle button:hover {
  color: #fff;
}

.scenario-row button[aria-pressed="true"],
.view-toggle button[aria-pressed="true"] {
  color: var(--black);
  background: #fff;
}

#question {
  margin: 32px auto 24px;
  max-width: 24ch;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}

.view-toggle {
  margin-bottom: 4px;
}

.excerpt {
  margin: 26px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  max-width: 660px;
  text-align: left;
  display: grid;
  gap: 16px;
}

.excerpt-line {
  display: grid;
  grid-template-columns: minmax(130px, 170px) 1fr;
  gap: 18px;
  align-items: start;
  animation: fade-slide 0.45s var(--ease) both;
}

.excerpt-line b {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint-on-dark);
}

.excerpt-line span {
  color: #f5f5f5;
  font-size: 1.05rem;
}

.close {
  background: var(--black);
  text-align: center;
}

.close-copy {
  max-width: 720px;
  margin: 0 auto;
}

.close-mark {
  width: 104px;
  height: auto;
  margin: 0 auto 26px;
  filter: grayscale(1) drop-shadow(0 20px 50px rgba(255, 255, 255, 0.1));
  animation: alloy-drift-sm 7s ease-in-out infinite alternate;
}

.close h2 {
  color: #fff;
}

.close p {
  margin: 0 auto 30px;
  max-width: 46ch;
  color: var(--muted-on-dark);
  font-size: 1.14rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 30px clamp(20px, 5vw, 64px) 44px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--faint-on-dark);
  font-size: 0.92rem;
}

.site-footer .wordmark img {
  width: 124px;
}

.site-footer a:hover {
  color: #fff;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes alloy-drift {
  from { transform: translateY(-50%); }
  to { transform: translateY(calc(-50% - 14px)); }
}

@keyframes alloy-drift-sm {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .site-nav {
    display: none;
  }

  .hero-alloy {
    width: min(84vw, 560px);
    right: -10%;
    opacity: 0.66;
  }

  .hero-plane::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.92) 100%);
  }

  .path-rail {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .path-rail li:nth-child(2),
  .path-rail li:nth-child(3) {
    transition-delay: 0s;
  }

  .moment {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 48px;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero .lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-plane {
    position: relative;
    inset: auto;
    margin: 48px auto 0;
    max-width: 420px;
    height: min(70vw, 320px);
  }

  .hero-plane::after {
    background: radial-gradient(70% 70% at 50% 45%, rgba(255, 255, 255, 0.06), transparent 65%);
  }

  .hero-alloy {
    position: absolute;
    inset: 0;
    right: auto;
    top: auto;
    width: 100%;
    transform: none;
    opacity: 0.9;
    animation: alloy-drift-sm 8s ease-in-out infinite alternate;
  }

  .site-header .btn {
    padding: 0 14px;
    min-height: 34px;
    font-size: 0.84rem;
  }

  .excerpt-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-alloy,
  .close-mark,
  .hero-copy,
  .excerpt-line {
    animation: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
