:root {
  --ink: #0D1F1C;
  --ink-2: #14302B;
  --ink-3: #1E4A42;
  --cream: #F1EADB;
  --muted: #9FB3A8;
  --gold: #E8B44C;
  --gold-l: #F7D98C;
  --teal: #6FE3C8;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 30% 20%, #163a34 0%, var(--ink) 60%) fixed, var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  background: linear-gradient(var(--ink) 30%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav nav a { transition: color .2s; }
.nav nav a:hover { color: var(--cream); }
.phase { width: 22px; height: 22px; }
.phase circle { fill: var(--ink-3); }
.phase path { fill: var(--gold-l); }

/* ---------------------------------------------------------------- story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.frame { position: relative; width: min(100%, 440px, calc((100vh - 140px) * .833)); aspect-ratio: 600 / 720; margin-top: 40px; }
/* before the script runs (or without it) show only the opening scene */
#stage .bg:not([data-i="0"]), #stage .actor:not([data-i="0"]) { opacity: 0; }
#stage { display: block; width: 100%; height: auto; overflow: visible; }
.frame::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); z-index: -1;
}

.steps { padding: 0 0 20vh; }
.step {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: clamp(8px, 4vw, 56px);
  opacity: .18; transition: opacity .6s ease;
}
.step.is-active { opacity: 1; }
.step--quiet { min-height: 72vh; }
.step > * { transform: translateY(26px); transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease; }
.step.is-active > * { transform: none; }
.step.is-active > :nth-child(2) { transition-delay: .06s; }
.step.is-active > :nth-child(3) { transition-delay: .14s; }
.step.is-active > :nth-child(4) { transition-delay: .22s; }
.num { font-size: 12px; letter-spacing: .24em; color: var(--teal); margin-bottom: 14px; }
.step h1, .step h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.02; }
.step h1 { font-size: clamp(48px, 6.4vw, 88px); }
.step h2 { font-size: clamp(38px, 4.6vw, 64px); }
.line { margin: 18px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 36ch; line-height: 1.5; }
.def { font-family: var(--serif); font-size: 20px; color: var(--gold); margin: 0 0 18px; }
.cue {
  margin-top: 56px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------------------------------------------------------------- ventures */
.ventures { max-width: 1200px; margin: 0 auto; padding: 8vh clamp(20px, 4vw, 48px) 14vh; }
.ventures h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); margin: 0 0 36px; }
.cards { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.card { border-radius: 22px; padding: 30px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.card--live {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(111, 227, 200, .35);
  position: relative; transition: transform .3s, border-color .3s;
}
.card--live:hover { transform: translateY(-4px); border-color: var(--teal); }
.card--live .dot { position: absolute; top: 30px; left: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px rgba(111, 227, 200, .15), 0 0 24px var(--teal); }
.card h3 { font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }
.card .go { margin-top: 18px; font-size: 14px; color: var(--teal); }
.card--soon { border: 1px dashed rgba(241, 234, 219, .22); align-items: flex-start; }
.card--soon .plus { font-size: 26px; color: var(--muted); margin-bottom: auto; }

/* The closing signature rises in layers, like the story's dough. */
.foot {
  border-top: 1px solid rgba(241, 234, 219, .12);
  color: var(--muted);
  padding: 54px clamp(20px, 4vw, 48px) 26px;
}
.foot-inner { max-width: 1104px; margin: 0 auto; }
.foot-intro, .foot-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot-intro { font-size: 14px; }
.foot-intro p { display: flex; align-items: center; gap: 12px; margin: 0; }
.foot-intro img { opacity: .8; }
.foot-contact { color: var(--cream); padding: 10px 0; }
.foot-contact span, .foot-top span { display: inline-block; margin-left: 8px; transition: transform .3s ease; }
.foot-contact:hover span { transform: translate(3px, -3px); }
.foot-top:hover span { transform: translateY(-3px); }
.foot-wordmark {
  display: block;
  padding: .27em 0 .2em;
  margin: 12px 0 16px;
  font-family: var(--serif);
  font-size: clamp(42px, 13.6vw, 184px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.045em;
  color: var(--cream);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.foot-name { position: relative; display: inline-block; white-space: nowrap; }
.foot-letter {
  display: inline-block;
  white-space: pre;
  transform: translateY(var(--rise, 0em)) rotate(var(--lean, 0deg));
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), color .4s ease, text-shadow .45s ease;
}
.foot-wordmark:is(:hover, :focus-visible) .foot-letter {
  color: var(--gold-l);
  text-shadow: 0 1px 0 #C99B66, 0 3px 0 #9A643E, 0 5px 0 #6B4029;
}
.foot-wordmark:focus-visible .foot-letter { --rise: -.065em; }
.foot-wordmark:focus-visible, .foot-contact:focus-visible, .foot-top:focus-visible {
  outline: 1px solid var(--gold-l); outline-offset: 6px; border-radius: 3px;
}
.foot-meta { border-top: 1px solid rgba(241, 234, 219, .12); padding-top: 24px; font-size: 11px; line-height: 1.5; }
.foot-meta p { margin: 0; }
.foot-top { padding: 6px 0; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 820px) {
  .nav nav a { display: none; }
  .story { display: block; padding: 0 20px; }
  /* the stage stays on top; words slide up underneath it */
  .stage {
    height: calc(58vh + 64px); top: 0; z-index: 3; align-items: flex-start; padding-top: 64px;
    margin: 0 -20px;
    background: radial-gradient(1200px 800px at 30% 20%, #163a34 0%, var(--ink) 60%) fixed;
    -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent);
  }
  .frame { width: min(calc(100% - 40px), calc((58vh - 16px) * .833)); margin-top: 6px; }
  .steps { position: relative; z-index: 1; margin-top: calc(-58vh - 64px); padding-bottom: 30vh; }
  .step { min-height: 85vh; justify-content: flex-end; padding: 0 0 7vh; text-align: center; align-items: center; }
  .step--hero { min-height: 100vh; padding-bottom: 6vh; }
  .step--quiet { min-height: 60vh; }
  .step h1 { font-size: 44px; }
  .step h2 { font-size: 36px; }
  .def { font-size: 17px; margin-bottom: 10px; }
  .line { max-width: none; margin-top: 10px; font-size: 16px; }
  .cue { display: none; }
  .cards { grid-template-columns: 1fr; }
  .foot { padding-top: 32px; }
  .foot-intro { font-size: 12px; }
  .foot-wordmark { font-size: clamp(36px, 13.1vw, 108px); margin: 14px 0 20px; padding: .4em 0 .3em; }
  .foot-meta { flex-wrap: wrap; gap: 12px; padding-top: 18px; }
  .foot-meta p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .step > * { transition: none; transform: none; }
  .cue::after { animation: none; }
  .foot-letter { transform: none; transition: color .2s; }
  .foot-contact span, .foot-top span { transform: none !important; transition: none; }
}
