:root {
  --green-600: #149a4e;
  --green-400: #55c885;
  --cream-50: #fbfaf6;
  --void: #03110b;
  --hero-p: 0;
  --open-o: 1;
  --brief-o: 0;
  --brief-y: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--void); color: var(--cream-50); }
body { font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: 8px; background: var(--green-600); z-index: 50; }
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 2.4rem 1.15rem 2.8rem; }
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3,17,11,.78), transparent); pointer-events: none; }
.nav > * { position: relative; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.28rem; }
.wordmark, .wordmark-svg { height: 46px; width: auto; display: block; }
.byline { font-size: 8px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,250,246,.72); white-space: nowrap; }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--green-600); color: var(--cream-50);
  padding: 0.55rem 0.9rem; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn { background: var(--green-600); color: #fff; padding: .95rem 1.25rem; border: 0; }
.nav-cta:hover { background: var(--green-600); color: #fff; }
.btn:hover { background: #1fb35f; }
.hero-pin { height: 920vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #03110b; }
.hero-frame {
  position: absolute; inset: 0;
  transform: scale(calc(1 + var(--hero-p) * 0.035));
  transform-origin: 62% 48%;
  will-change: transform;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 48%;
}
.hero-poster { z-index: 0; }
video.hero-media { z-index: 1; opacity: 0; transition: opacity .35s ease; }
video.hero-media.is-on { opacity: 1; }
.grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(20,154,78,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(20,154,78,.07) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 72% 60%, #000 10%, transparent 68%); opacity: .4; }
.veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,17,11,.94) 0%, rgba(3,17,11,.86) 28%, rgba(3,17,11,.42) 48%, rgba(3,17,11,.12) 68%, rgba(3,17,11,.4) 100%), linear-gradient(180deg, rgba(3,17,11,.18) 0%, rgba(3,17,11,.08) 42%, rgba(3,17,11,.72) 100%); pointer-events: none; }
.hud { position: absolute; inset: 12px 12px 12px 16px; pointer-events: none; border: 1px solid rgba(20,154,78,.28); }
.hud span { position: absolute; width: 18px; height: 18px; border-color: var(--green-600); border-style: solid; }
.hud .tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud .tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.hud .bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.hud .br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.hero-copy {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 8vw 9vh 8.2vw; max-width: 40rem;
  opacity: var(--open-o);
  transform: translateY(calc((1 - var(--open-o)) * -2.4rem));
  pointer-events: none;
}
.hero-copy a { pointer-events: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-400); margin-bottom: 1.15rem; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1.06; color: var(--cream-50); }
.lede, .wink { font-family: var(--font-body); font-weight: 400; letter-spacing: 0.01em; max-width: 34rem; }
.lede { margin-top: 1.4rem; font-size: 1rem; line-height: 1.55; color: rgba(251,250,246,.82); }
.wink { margin-top: 1.15rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em; color: var(--green-400); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.2rem 1.8rem; margin-top: 2rem; }
.countdown { display: flex; align-items: flex-end; gap: 1.15rem; }
.count-cell { display: flex; flex-direction: column; gap: 0.22rem; min-width: 2.6rem; }
.count-cell b { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.06em; color: var(--cream-50); font-variant-numeric: tabular-nums; line-height: 1; }
.count-cell span { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,250,246,.45); }
.count-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-400); padding-bottom: 0.15rem; }
.brief {
  position: absolute; z-index: 3;
  left: 0; top: 0; bottom: 0;
  width: min(38.5rem, 46vw);
  padding: 8.2rem 1.6rem 5.6rem 8.2vw;
  overflow: hidden;
  opacity: var(--brief-o);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 6.6rem, #000 8.4rem, #000 calc(100% - 4.4rem), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 6.6rem, #000 8.4rem, #000 calc(100% - 4.4rem), transparent 100%);
}
.brief-track { transform: translateY(var(--brief-y)); will-change: transform; }
.brief-block { margin-bottom: 2.15rem; }
.brief-block:last-child { margin-bottom: 0; padding-bottom: 0.4rem; }
.brief-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green-400); margin-bottom: 0.55rem;
}
.brief p, .brief li { font-size: 0.92rem; line-height: 1.55; color: rgba(251,250,246,.78); }
.brief li { margin: 0 0 0.55rem 1rem; }
.brief li::marker { color: var(--green-600); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.chip {
  border: 1px solid rgba(20,154,78,.45);
  color: var(--green-400);
  font-size: 11px; letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
}
.steps { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.55rem 0.7rem; }
.steps b {
  font-size: 12px; color: var(--green-400); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.about-row {
  display: flex;
  align-items: stretch;
  gap: 1rem 1.2rem;
}
.about-photo {
  flex: 0 0 13.5rem;
  width: 13.5rem;
  position: relative;
  border: 1px solid rgba(20,154,78,.4);
  overflow: hidden;
  background: #062016;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.about-copy {
  flex: 1;
  min-width: 0;
}
.about h2 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 400;
  line-height: 1.15; margin-bottom: 0.22rem;
}
.about .role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-400); margin-bottom: 0.5rem; }
.about-copy p { font-size: 0.86rem; line-height: 1.45; color: rgba(251,250,246,.7); }
.edu { margin-top: 0.45rem; color: rgba(251,250,246,.5); font-size: 0.8rem; }
.fortune {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  padding: 0 8vw;
}
.fortune.is-in { opacity: 1; transform: none; }
.fortune-rule { height: 1px; width: 0; background: var(--green-600); margin-bottom: 1.5rem; }
.fortune.is-in .fortune-rule { animation: ruleDraw .9s var(--ease) forwards; }
@keyframes ruleDraw { to { width: min(11rem, 42vw); } }
.fortune-line { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--cream-50); }
.fortune-line.lead { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: 0.02em; }
.fortune-line.follow { font-size: clamp(1.15rem, 2.4vw, 1.65rem); margin-top: 0.7rem; color: var(--green-400); letter-spacing: 0.08em; }
.fortune-line em { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(7px); }
.fortune.is-in .fortune-line em {
  animation: letterIn .75s var(--ease) forwards;
  animation-delay: calc(var(--i) * 28ms);
}
@keyframes letterIn { to { opacity: 1; transform: none; filter: blur(0); } }
.scroll-cue { position: absolute; right: 8vw; bottom: 9vh; z-index: 3; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,250,246,.5); display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; opacity: var(--open-o); }
.scroll-cue i { width: 1px; height: 3rem; background: linear-gradient(to bottom, var(--green-600), transparent); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity:.3; transform: scaleY(.7); transform-origin: top; } 50% { opacity:1; transform: scaleY(1); transform-origin: top; } }
footer { padding: 1.4rem 8vw 2.2rem 8.2vw; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,250,246,.38); border-top: 1px solid rgba(20,154,78,.16); }
footer a { color: var(--green-400); }
@media (max-width: 880px), (max-height: 560px) {
  .rail { width: 5px; }
  .nav {
    padding: calc(0.7rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.8rem max(1.15rem, env(safe-area-inset-left));
  }
  .wordmark, .wordmark-svg { height: 34px; }
  .byline { font-size: 7px; letter-spacing: 0.05em; white-space: normal; max-width: 17rem; line-height: 1.35; }
  .hero-pin { height: auto; }
  .hero-stage { position: relative; height: auto; overflow: visible; }
  .hero-frame { position: absolute; inset: 0 0 auto; height: 100svh; height: 100dvh; transform: none; }
  .hero-media { object-position: 58% 46%; }
  .hud { display: none; }
  .hero-copy {
    opacity: 1 !important;
    transform: none !important;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 0 max(1.15rem, env(safe-area-inset-right)) calc(1.6rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    max-width: none;
    pointer-events: auto;
  }
  .eyebrow { margin-bottom: 0.7rem; }
  h1 { font-size: clamp(2.15rem, 11vw, 3.15rem); }
  .hero-actions { margin-top: 1.35rem; }
  .btn { width: 100%; max-width: 18rem; }
  .brief {
    position: relative; width: 100%; max-width: none; height: auto;
    overflow: visible;
    opacity: 1 !important;
    padding: 2.6rem max(1.15rem, env(safe-area-inset-right)) 2.2rem max(1.25rem, env(safe-area-inset-left));
    background: var(--void);
    -webkit-mask-image: none;
    mask-image: none;
  }
  .brief-track { transform: none !important; }
  .about-row { gap: 0.85rem 1rem; }
  .about-photo { flex-basis: 9.25rem; width: 9.25rem; }
  .scroll-cue { display: none; }
  .fortune {
    position: relative; min-height: 0; opacity: 1 !important; transform: none !important;
    padding: 2.4rem 1.2rem 3.4rem;
    background: var(--void);
  }
  .fortune-rule { width: min(11rem, 42vw); }
  .fortune-line em { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  footer {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
  }
  .countdown { flex-wrap: wrap; gap: 0.7rem 0.9rem; }
}
@media (max-height: 560px) {
  .nav { padding-top: calc(0.45rem + env(safe-area-inset-top)); padding-bottom: 0.45rem; }
  .wordmark, .wordmark-svg { height: 28px; }
  .byline { display: none; }
  .hero-copy {
    min-height: 100dvh;
    padding-top: 4.2rem;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  }
  .eyebrow { margin-bottom: 0.4rem; }
  h1 { font-size: clamp(1.55rem, 8vh, 2.35rem); }
  .lede { margin-top: 0.7rem; font-size: 0.88rem; }
  .wink { margin-top: 0.55rem; }
  .hero-actions { margin-top: 0.85rem; gap: 0.7rem 1rem; }
  .btn { width: auto; padding: 0.7rem 1rem; }
  .count-cell b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame, .hero-media, .hero-copy, .scroll-cue, .brief-track { transform: none !important; }
  .scroll-cue i { animation: none; }
}
