/* =========================================================================
   64 ELEVEN — invite-only manifesto site
   Design system extracted verbatim from the 64 Eleven Brand Book.
   Dark only. Lime used sparingly. Mono numbers.
   ========================================================================= */

/* ---- Theme tokens (from brand book) ------------------------------------- */
:root {
  --bg:         #0B0C0E;   /* Ink     */
  --card:       #16181D;   /* Surface */
  --card-2:     #1C1F25;   /* raised  */
  --line:       #262A30;   /* Line    */
  --line-strong:#33383F;   /* stronger edge on Ink */
  --line-soft:  #1E2227;
  --text:       #F4F4F2;   /* Paper   */
  --muted:      #8A9099;   /* Muted   */
  --faint:      #565C64;
  --accent:     #C6F24E;   /* Signal lime */
  --on-accent:  #0B0C0E;
  --accent-ink: #C6F24E;   /* accent used AS text */
  --grid:       rgba(255,255,255,0.035);
  --shadow:     0 1px 0 rgba(255,255,255,0.02), 0 24px 60px -30px rgba(0,0,0,0.8);
  color-scheme: dark;
}

/* ---- Animated background (behind all content) --------------------------- */
#bgfx {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; display: block; pointer-events: none;
}
#bgveil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11,12,14,0.62) 0%,
    rgba(11,12,14,0.30) 11%,
    rgba(11,12,14,0.26) 50%,
    rgba(11,12,14,0.34) 88%,
    rgba(11,12,14,0.60) 100%);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
h1,h2,h3,h4,p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Helpers ------------------------------------------------------------ */
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.num  { font-family: "Geist Mono", ui-monospace, monospace; font-feature-settings: "tnum" 1; }
.lime { color: var(--accent-ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px){ .wrap { padding: 0 22px; } }

/* ---- Wordmark ----------------------------------------------------------- */
.wordmark {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
}
.wordmark .six4 {
  font-family: "Geist Mono", ui-monospace, monospace;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}
.wordmark .eleven { font-family: "Geist", sans-serif; }
.wordmark .sub { font-family: "Geist", sans-serif; font-weight: 400; color: var(--text); margin-left: 0.28em; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 15px;
  font-family: "Geist", sans-serif;
  padding: 13px 20px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }

/* =========================================================================
   PASSWORD GATE
   ========================================================================= */
#gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 22px;
  /* near-solid ink so the falling cells only faintly register behind */
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity .6s ease;
}
#gate.hidden { opacity: 0; pointer-events: none; }
.gate-inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.gate-mark { font-size: 40px; margin-bottom: 22px; }
.gate-tag {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 40px;
}
.gate-form {
  display: flex; flex-direction: column; gap: 14px;
}
.gate-input {
  width: 100%;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 15px; letter-spacing: 0.12em;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 18px;
  text-align: center;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.gate-input::placeholder { color: var(--faint); letter-spacing: 0.18em; }
.gate-input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.gate-form .btn { justify-content: center; width: 100%; }
.gate-error {
  min-height: 18px;
  margin-top: 4px;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s ease;
}
.gate-error.show { opacity: 1; }

/* subtle shake on wrong password */
@keyframes gate-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.gate-shake { animation: gate-shake .5s cubic-bezier(.36,.07,.19,.97) both; }

/* =========================================================================
   PAGE (revealed after unlock)
   ========================================================================= */
#page {
  opacity: 0;
  transition: opacity .8s ease .15s;
}
#page.revealed { opacity: 1; }

/* ---- Top nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav .mark { font-size: 20px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: "Geist Mono", monospace;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted); padding: 8px 12px; border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--card); }

.nav-toggle {
  display: none;
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color .18s ease;
}
.nav-toggle:hover { border-color: var(--muted); }

@media (max-width: 920px){
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    padding: 8px 40px 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 14px;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
}
@media (max-width: 720px){
  .nav-links { padding-left: 22px; padding-right: 22px; }
}

/* ---- Section scaffolding ------------------------------------------------ */
.section { padding: 110px 0; border-top: 1px solid var(--line); position: relative; }
.section:first-of-type { border-top: none; padding-top: 130px; }

.sec-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.sec-label::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  display: inline-block;
}
.sec-label .idx { color: var(--faint); }

.sec-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 18ch;
}
.sec-intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
  margin-top: 18px;
  text-wrap: pretty;
}
.placeholder {
  margin-top: 28px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px 18px;
  display: inline-block;
}

/* ---- Hero (no numbered label) ------------------------------------------ */
.hero { padding: 132px 0 96px; border-top: none; }
.hero-eyebrow {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 18px;
}
.hero-eyebrow + .hero-headline { margin-top: 0; }
.hero-headline {
  font-size: clamp(40px, 6.2vw, 74px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: clamp(40px, 5vw, 64px);
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.5;
  max-width: 52ch;
  margin-top: 22px;
  text-wrap: pretty;
}

/* ---- Principles (section 06) ------------------------------------------- */
.sec-body { margin-top: 18px; }
.sec-body p { color: var(--muted); font-size: 18px; max-width: 60ch; }
.sec-body p + p { margin-top: 18px; }
.sec-body .lede { color: var(--text); font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; max-width: 30ch; letter-spacing: -0.01em; }

/* ---- Zigzag (alternating) section layout ------------------------------ */
.sec-col { width: 54%; max-width: 640px; }
.section--right .sec-col { margin-left: auto; text-align: right; }
.section--right .sec-label { justify-content: flex-end; }
.section--right .sec-title,
.section--right .sec-body p,
.section--right .sec-body .lede { margin-left: auto; }
@media (max-width: 860px) {
  .sec-col { width: 100%; max-width: none; margin-left: 0; text-align: left; }
  .section--right .sec-col { text-align: left; }
  .section--right .sec-label { justify-content: flex-start; }
  .section--right .sec-title,
  .section--right .sec-body p,
  .section--right .sec-body .lede { margin-left: 0; }
  .section--right .seats-counter { justify-content: flex-start; }
  .section--right .seats-grid { margin-left: 0; }
}

/* ---- 01 Why now — "a hundred falls, eleven remain" cube animation ------ */
/* Two columns: text left, the canvas visual right. Collapses to one column on
   narrow screens (the visual drops below the copy, a touch smaller). */
.whynow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
#why-now .sec-col { width: auto; max-width: 600px; }

.fall-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.fall-counter {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
  transition: color .4s ease;
}
.fall-counter .fall-count { font-variant-numeric: tabular-nums; }
.fall-counter.is-final { color: var(--accent); }
.fall-word {
  margin-left: 0.4em;
  font-size: 0.56em;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .7s ease, transform .7s ease;
}
.fall-counter.show-word .fall-word {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .fall-word { transition: none; }
}
.fall-canvas {
  display: block;
  width: 100%;
  height: clamp(230px, 30vw, 300px);
}
.fall-cap {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent);
  text-align: center;
  max-width: 24ch;
}

@media (max-width: 860px) {
  .whynow-grid { grid-template-columns: 1fr; gap: 40px; }
  #why-now .sec-col { max-width: none; }
  .fall-viz { max-width: 380px; margin: 0 auto; }
  .fall-canvas { height: clamp(200px, 50vw, 240px); }
}

/* ---- The Eleven — 11-seat fill grid + 00 → 11 counter ----------------- */
.seats { margin: 34px 0 30px; }
.seats-counter {
  display: flex;
  align-items: baseline;
  gap: .45em;
  margin-bottom: 16px;
}
.section--right .seats-counter { justify-content: flex-end; }
.seats-count {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.seats-total {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.seats-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: clamp(5px, 0.7vw, 10px);
  max-width: 560px; /* keep cells from getting oversized on wide screens */
}
.section--right .seats-grid { margin-left: auto; } /* right-align the block */
/* narrow screens: wrap deliberately into an even 6-col grid (6 + 5), no orphan */
@media (max-width: 480px) {
  .seats-grid { grid-template-columns: repeat(6, 1fr); max-width: 320px; }
}
.seat {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.seat.is-filled {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 42%, transparent);
}
/* "complete" moment — all eleven glow brighter and pulse for ~2s before reset */
.seat.is-flash {
  background: var(--accent);
  border-color: var(--accent);
  animation: seat-flash 1s ease-in-out infinite;
}
@keyframes seat-flash {
  0%, 100% { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); transform: none; }
  50%      { box-shadow: 0 0 30px 6px color-mix(in srgb, var(--accent) 95%, transparent); transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .seat { transition: none; }
  .seat.is-flash { animation: none; }
}
.sec-body p.seats-signoff {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-top: 16px;
}

.principles {
  list-style: none;
  margin: 56px 0 0;
  padding: 0 0 0 30px;
  position: relative;
}
/* lime rail down the full left edge of the list (echoes the cell columns) */
.principles::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 75%, transparent),
    color-mix(in srgb, var(--accent) 20%, transparent));
  transform: scaleY(1);
  transform-origin: top;
}

.principles li {
  position: relative;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(20px, 2.9vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  padding: clamp(20px, 2.8vw, 30px) clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.5vw, 20px);
  /* split transform so entrance/loop nudge never override each other */
  --rev: translateY(0);
  --hov: translateX(0);
  transform: var(--rev) var(--hov);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, .61, .36, 1), background-color .4s ease;
}
.principles li:first-child { border-top: 1px solid var(--line); }

/* large mono index — dim until its line is the active one */
.principles .p-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1;
  color: var(--muted);
  flex: none;
  min-width: 2.6ch;
  transition: color .4s ease, text-shadow .4s ease;
}
.principles .p-dash {
  color: var(--faint);
  flex: none;
  transform-origin: left;
  transition: color .4s ease, transform .35s ease;
}
.principles .p-text { position: relative; }
.principles .p-digits { display: inline-block; }

/* active "cell" on the rail — echoes the falling-cells active-cell motif */
.principles li::before {
  content: "";
  position: absolute;
  left: -30px; top: 50%;
  width: 9px; height: 9px; margin-top: -4px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0;
  transform: scale(.4);
  transform-origin: center;
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
/* underline that draws beneath the active line */
.principles .p-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

/* dimmed-but-readable waiting state (armed by JS only when motion is allowed) */
.principles.is-armed li { opacity: .5; }
.principles.is-armed li.is-active { opacity: 1; }

/* the single active principle: number ignites, cell + underline appear, the
   text brightens and nudges right, and a faint surface lifts the row. */
.principles li.is-active {
  --hov: translateX(8px);
  background: color-mix(in srgb, var(--card) 65%, transparent);
}
.principles li.is-active::before { opacity: 1; transform: scale(1); }
.principles li.is-active .p-text::after { transform: scaleX(1); }
.principles li.is-active .p-text { color: var(--text); }
.principles li.is-active .p-num {
  color: var(--accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}
.principles li.is-active .p-dash { color: var(--accent); transform: scaleX(1.3); }

/* reduced motion / no-JS: every line fully lit + readable, numbers lime. */
.principles.all-lit li .p-num {
  color: var(--accent);
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .principles li,
  .principles li::before,
  .principles li .p-text::after,
  .principles li .p-num,
  .principles li .p-dash { transition: none; }
}

/* entrance — the rail draws top→down and the principles stagger in (fade +
   slight slide); the JS auto-focus loop begins afterward. The stagger is a
   one-shot keyframe (backwards fill) so it never fights the loop's opacity
   transitions, and reverts to the dimmed waiting state when it ends. */
@media (prefers-reduced-motion: no-preference) {
  body.anim .principles::before {
    transform: scaleY(0);
    transition: transform .9s cubic-bezier(.22, .61, .36, 1);
  }
  body.anim #principles.in-view .principles::before { transform: scaleY(1); }

  body.anim #principles:not(.in-view) .principles li { opacity: 0; }
  body.anim #principles.in-view .principles li {
    animation: princ-in .6s cubic-bezier(.22, .61, .36, 1) backwards;
  }
  body.anim #principles.in-view .principles li:nth-child(1) { animation-delay: .14s; }
  body.anim #principles.in-view .principles li:nth-child(2) { animation-delay: .22s; }
  body.anim #principles.in-view .principles li:nth-child(3) { animation-delay: .30s; }
  body.anim #principles.in-view .principles li:nth-child(4) { animation-delay: .38s; }
  body.anim #principles.in-view .principles li:nth-child(5) { animation-delay: .46s; }
  body.anim #principles.in-view .principles li:nth-child(6) { animation-delay: .54s; }
  body.anim #principles.in-view .principles li:nth-child(7) { animation-delay: .62s; }
  @keyframes princ-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---- "Breathing" pulse on select lime elements ------------------------- */
/* Gentle, slow, never blinking. Disabled entirely under reduced motion.    */
@media (prefers-reduced-motion: no-preference) {
  .sec-label::before { animation: breathe 3.6s ease-in-out infinite; }
  /* negative delays stagger the breath so they never pulse in unison */
  #why-now .sec-label::before      { animation-delay: -0.2s; }
  #what-we-are .sec-label::before  { animation-delay: -1.4s; }
  #the-eleven .sec-label::before   { animation-delay: -0.9s; }
  #how-we-earn .sec-label::before  { animation-delay: -1.7s; }
  #how-partners-earn .sec-label::before { animation-delay: -2.7s; }
  #roadmap .sec-label::before      { animation-delay: -2.3s; }
  #principles .sec-label::before   { animation-delay: -3.1s; }
  #join .sec-label::before         { animation-delay: -1.0s; }

  /* nav "64" — extremely subtle */
  .nav .six4 { animation: breathe-nav 5s ease-in-out infinite; }
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .67; }
}
@keyframes breathe-nav {
  0%, 100% { opacity: 1; }
  50%      { opacity: .86; }
}

/* ---- 03 How we earn / 04 How partners earn — capital-flow diagrams ----- */
.earn-title { max-width: 22ch; }
.earn-sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 52ch; }
.flow {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 240px) 92px minmax(0, 260px);
  grid-template-areas:
    "s1 a1 pool"
    "s2 a2 pool"
    "s3 a3 pool";
  column-gap: 0;
  row-gap: 20px;
  justify-content: center;
  align-items: stretch;
}
/* grid placement — three source cards (left), three arrows, one central node */
.flow-s1 { grid-area: s1; }
.flow-s2 { grid-area: s2; }
.flow-s3 { grid-area: s3; }
.fm-arrow--1 { grid-area: a1; }
.fm-arrow--2 { grid-area: a2; }
.fm-arrow--3 { grid-area: a3; }
.flow-block--pool { grid-area: pool; }
.flow-split {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.flow-split .hl { color: var(--accent); }
/* sources, arrows and the central node are direct grid children of .flow */

.flow-block {
  width: 100%;
  box-sizing: border-box;
  background: #16181D;
  border: 1px solid #262A30;
  border-radius: 10px;
  padding: 16px 18px 18px;
}
.flow-src { min-height: 130px; }
.flow-tag {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.flow-name {
  margin: 12px 0 7px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.flow-name .hl { color: var(--accent); }
.flow-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* central node — the emphasized reservoir/studio every source flows into */
.flow-block--pool {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;       /* content centred in the tall panel */
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(198, 242, 78, 0.08), rgba(22, 24, 29, 0.92));
  box-shadow: 0 0 0 1px rgba(198, 242, 78, 0.22), 0 0 40px rgba(198, 242, 78, 0.10);
}
.flow-block--pool .flow-name { font-size: 22px; }

/* connectors — each arrow lives in the same grid row as its source card, so it
   aligns to that card's centre at ANY height (robust to long copy). */
.fm-arrow {
  position: relative;
  align-self: center;          /* row centre == card centre */
  height: 2px;
  margin-left: 4px;
  background: var(--accent);
}
.fm-arrow::after {
  content: "";
  position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* reveal — each arrow draws into the pool in turn; the pool ignites last.
   Replays on entry (toggled by #how-we-earn.in-view); static under reduced
   motion (body.anim is only added when motion is allowed). */
@media (prefers-reduced-motion: no-preference) {
  body.anim .flow-block {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
  }
  body.anim .fm-arrow { transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
  body.anim .fm-arrow::after { opacity: 0; transition: opacity .25s ease; }

  /* stream 1 → arrow draws, card fades */
  body.anim .in-view .fm-arrow--1 { transform: scaleX(1); transition-delay: .15s; }
  body.anim .in-view .flow-s1 { opacity: 1; transform: none; transition-delay: .15s; }
  body.anim .in-view .fm-arrow--1::after { opacity: 1; transition-delay: .5s; }
  /* stream 2 */
  body.anim .in-view .fm-arrow--2 { transform: scaleX(1); transition-delay: .4s; }
  body.anim .in-view .flow-s2 { opacity: 1; transform: none; transition-delay: .4s; }
  body.anim .in-view .fm-arrow--2::after { opacity: 1; transition-delay: .75s; }
  /* stream 3 */
  body.anim .in-view .fm-arrow--3 { transform: scaleX(1); transition-delay: .65s; }
  body.anim .in-view .flow-s3 { opacity: 1; transform: none; transition-delay: .65s; }
  body.anim .in-view .fm-arrow--3::after { opacity: 1; transition-delay: 1s; }
  /* central node ignites last */
  body.anim .in-view .flow-block--pool { opacity: 1; transform: none; transition-delay: 1s; }
}

/* mobile — sources stacked, one lime arrow pointing DOWN into the node below */
@media (max-width: 960px) {
  .flow {
    grid-template-columns: minmax(0, 420px);
    grid-template-areas:
      "s1"
      "s2"
      "s3"
      "a2"
      "pool";
    row-gap: 14px;
    margin-top: 44px;
  }
  .flow-block--pool { justify-content: flex-start; }
  .flow-src { min-height: 0; }

  .fm-arrow--1, .fm-arrow--3 { display: none; }
  .fm-arrow--2 {
    justify-self: center;
    align-self: stretch;
    width: 2px;
    height: 44px;
    margin: 0;
  }
  .fm-arrow--2::after {
    right: auto; top: auto; left: 50%; bottom: -1px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent);
    border-bottom: 0;
  }

  body.anim .fm-arrow--2 { transform: scaleY(0); transform-origin: top; }
  body.anim .in-view .fm-arrow--2 { transform: scaleY(1); transition-delay: .55s; }
}

/* ---- 02 What we are — two-column layout (diagram left, text right) ----- */
.wcol {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.wcol-text .sec-body { margin-top: 18px; }

@media (max-width: 860px) {
  /* Stack on mobile — text first, then the diagram below (single column). */
  .wcol { grid-template-columns: 1fr; gap: 36px; }
  .wcol-text { order: -1; }
  .wcol-diagram { order: 0; }
}

/* ---- 02 ownership chain (vertical) ----------------------------------- */
.chain {
  --ch-box: 240px;     /* box column width */
  --ch-op: 64px;       /* left gutter for the dashed "operates" bracket */
  --ch-vx: 18px;       /* x of the operates vertical line within the gutter */
  display: grid;
  grid-template-columns: var(--ch-op) minmax(0, var(--ch-box)) minmax(108px, 1fr);
  grid-template-areas:
    ".      b1   ."
    ".      l1   ."
    "optop  b2   ."
    "opv    l2   ."
    "opv    b3   cap"
    "opv    l3   ."
    "opbot  b4   .";
  align-items: stretch;
  justify-items: stretch;
}

.ch-b1 { grid-area: b1; }
.ch-b2 { grid-area: b2; }
.ch-b3 { grid-area: b3; }
.ch-b4 { grid-area: b4; }
.ch-l1 { grid-area: l1; }
.ch-l2 { grid-area: l2; }
.ch-l3 { grid-area: l3; }

.ch-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
}
.ch-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ch-title {
  margin: 6px 0 5px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ch-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* solid ownership links between consecutive boxes (own / controls / owns) */
.ch-link { position: relative; min-height: 46px; }
.ch-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: translateX(-50%); transform-origin: top;
}
.ch-lbl {
  position: absolute; left: calc(50% + 10px); top: 50%;
  transform: translateY(-50%);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}

/* dashed "operates" bracket — Studio → Project Pool, bypassing the Fund */
.ch-op { background: transparent; }
.ch-op-top {
  grid-area: optop; align-self: end; justify-self: stretch;
  height: 0; margin-left: var(--ch-vx);
  border-top: 2px dashed var(--accent);
  transform-origin: right;
}
.ch-op-v {
  grid-area: opv; justify-self: start; align-self: stretch;
  width: 0; margin-left: var(--ch-vx);
  border-left: 2px dashed var(--accent);
  transform-origin: top;
}
.ch-op-bot {
  grid-area: opbot; align-self: start; justify-self: stretch;
  height: 0; margin-left: var(--ch-vx);
  border-top: 2px dashed var(--accent);
  transform-origin: left;
}
.ch-op-lbl {
  grid-area: opv; align-self: center; justify-self: start;
  writing-mode: vertical-rl;
  margin-left: 1px;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* capital-in arrow — enters the Fund from the right only */
.ch-cap {
  grid-area: cap; align-self: center; justify-self: start;
  display: flex; align-items: center; gap: 6px;
  padding-left: 8px;
}
.ch-cap-head {
  width: 0; height: 0; flex: none;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid var(--accent);
}
.ch-cap-line { flex: none; height: 2px; width: 26px; background: var(--accent); }
.ch-cap-lbl {
  font-size: 10px; letter-spacing: 0.06em; line-height: 1.35; color: var(--accent);
}

@media (max-width: 520px) {
  .chain { --ch-box: 1fr; --ch-op: 48px; --ch-vx: 14px; }
  .ch-cap-lbl { font-size: 9px; }
  .ch-note { font-size: 11.5px; }
}

/* animation — fade boxes / draw links in chain order; capital-in arrow last.
   Replays each visit (#what-we-are.in-view toggled by JS). Static under
   reduced motion: hidden states below are scoped to no-preference only. */
@media (prefers-reduced-motion: no-preference) {
  body.anim .chain .ch-box {
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1);
  }
  body.anim .chain .ch-op-v { transform: scaleY(0); transition: transform .3s ease; }
  body.anim .chain .ch-line { transform: translateX(-50%) scaleY(0); transition: transform .3s ease; }
  body.anim .chain .ch-op-top,
  body.anim .chain .ch-op-bot { transform: scaleX(0); transition: transform .3s ease; }
  body.anim .chain .ch-lbl,
  body.anim .chain .ch-op-lbl { opacity: 0; transition: opacity .35s ease; }
  body.anim .chain .ch-cap { opacity: 0; transform: translateX(8px); transition: opacity .4s ease, transform .4s ease; }

  /* boxes + solid links, top to bottom */
  body.anim #what-we-are.in-view .ch-b1 { opacity: 1; transform: none; transition-delay: 0s; }
  body.anim #what-we-are.in-view .ch-l1 .ch-line { transform: translateX(-50%) scaleY(1); transition-delay: .12s; }
  body.anim #what-we-are.in-view .ch-l1 .ch-lbl { opacity: 1; transition-delay: .16s; }
  body.anim #what-we-are.in-view .ch-b2 { opacity: 1; transform: none; transition-delay: .22s; }
  body.anim #what-we-are.in-view .ch-l2 .ch-line { transform: translateX(-50%) scaleY(1); transition-delay: .34s; }
  body.anim #what-we-are.in-view .ch-l2 .ch-lbl { opacity: 1; transition-delay: .38s; }
  body.anim #what-we-are.in-view .ch-b3 { opacity: 1; transform: none; transition-delay: .44s; }
  body.anim #what-we-are.in-view .ch-l3 .ch-line { transform: translateX(-50%) scaleY(1); transition-delay: .56s; }
  body.anim #what-we-are.in-view .ch-l3 .ch-lbl { opacity: 1; transition-delay: .60s; }
  body.anim #what-we-are.in-view .ch-b4 { opacity: 1; transform: none; transition-delay: .66s; }

  /* dashed operates bracket */
  body.anim #what-we-are.in-view .ch-op-top { transform: scaleX(1); transition-delay: .74s; }
  body.anim #what-we-are.in-view .ch-op-v { transform: scaleY(1); transition-delay: .80s; }
  body.anim #what-we-are.in-view .ch-op-bot { transform: scaleX(1); transition-delay: .90s; }
  body.anim #what-we-are.in-view .ch-op-lbl { opacity: 1; transition-delay: .82s; }

  /* capital-in — last */
  body.anim #what-we-are.in-view .ch-cap { opacity: 1; transform: none; transition-delay: 1s; }
}

/* ---- 04 Roadmap — animated vertical timeline -------------------------- */
.timeline { position: relative; margin-top: 48px; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; padding-left: 40px; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 4px; }

/* base track, drawn beam, traveling head */
.tl-line,
.tl-beam {
  position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
}
.tl-line { background: rgba(198, 242, 78, 0.16); }
.tl-beam {
  background: var(--accent); transform-origin: top;
  box-shadow: 0 0 10px rgba(198, 242, 78, 0.35);
}
.tl-head {
  position: absolute; left: 2px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(198, 242, 78, 0.7);
  opacity: 0; pointer-events: none;
}

/* nodes — board cells; solid = done, hollow = planned */
.tl-node {
  position: absolute; left: 0; top: 3px;
  width: 14px; height: 14px; border-radius: 3px;
  box-sizing: border-box; background: var(--accent);
}
.tl-item.is-planned .tl-node { background: transparent; border: 2px solid var(--accent); }
.tl-item.is-done .tl-node { background: var(--accent); box-shadow: 0 0 12px rgba(198, 242, 78, 0.5); }

/* content */
.tl-date {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.tl-title {
  margin: 6px 0 5px;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
}
.tl-desc { margin: 0; max-width: 54ch; color: var(--muted); font-size: 15px; line-height: 1.5; }

.tl-disclaimer {
  margin: 26px 0 0; max-width: 62ch;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; line-height: 1.6; color: var(--muted);
}

/* reveal — "calculating moves ahead": beam draws, head travels, nodes ignite */
@media (prefers-reduced-motion: no-preference) {
  /* Whole redraw is tuned to finish in ~1.1s so replaying on each scroll-in
     never makes the reader wait: beam/head ~1s, nodes/content stagger 0.12s. */
  body.anim .tl-beam { transform: scaleY(0); transition: transform 1s cubic-bezier(.4, 0, .2, 1); }
  body.anim #roadmap.in-view .tl-beam { transform: scaleY(1); }

  body.anim .tl-line { opacity: 0; transition: opacity .3s ease; }
  body.anim #roadmap.in-view .tl-line { opacity: 1; }

  body.anim #roadmap.in-view .tl-head { animation: tl-travel 1s cubic-bezier(.4, 0, .2, 1) forwards; }

  body.anim .tl-node { opacity: 0; }
  body.anim #roadmap.in-view .tl-node {
    animation: tl-ignite .4s ease both;
    animation-delay: calc(var(--i) * 0.12s);
  }
  /* future nodes keep breathing once the beam has passed */
  body.anim #roadmap.in-view .tl-item.is-planned .tl-node {
    animation: tl-ignite .4s ease both calc(var(--i) * 0.12s),
               tl-breathe 3.2s ease-in-out infinite 1.4s;
  }

  body.anim .tl-content {
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.22, .61, .36, 1);
  }
  body.anim #roadmap.in-view .tl-content {
    opacity: 1; transform: none;
    transition-delay: calc(var(--i) * 0.12s + 0.08s);
  }
}
/* head is 10px tall, centered via top; offset by half-height so its centre
   tracks the beam ends (beam spans y:8px .. height-8px). */
@keyframes tl-travel {
  0%   { opacity: 1; top: 3px; }
  88%  { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 13px); }
}
@keyframes tl-ignite {
  0%   { transform: scale(.5); opacity: .2; }
  55%  { transform: scale(1.55); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tl-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .6; }
}

/* mobile — keep the vertical timeline, scale nodes/line/text down */
@media (max-width: 720px) {
  .timeline { margin-top: 36px; }
  .tl-item { padding-left: 32px; padding-bottom: 26px; }
  .tl-title { font-size: 18px; }
  .tl-desc { font-size: 14px; }
  .tl-node { width: 12px; height: 12px; top: 3px; }
  .tl-line,
  .tl-beam { left: 5px; }
  .tl-head { left: 1px; }
}

/* ---- Join (section 07) — centered, generous space ---------------------- */
.section.join-sec { text-align: center; padding: 150px 0 160px; }
.sec-label.center { justify-content: center; }
.join-block { max-width: 50ch; margin: 36px auto 0; }
.join-line {
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text);
}
.join-line + .join-line { margin-top: clamp(30px, 4.5vw, 52px); }
.join-line .muted { color: var(--muted); font-weight: 400; }
.join-line--solo { white-space: nowrap; }
.join-combined .muted { color: var(--muted); }
.join-combined .join-reach { color: var(--accent-ink); }

.join-lead {
  margin: clamp(24px, 3.4vw, 36px) auto 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.join-cta { margin: clamp(28px, 4vw, 40px) auto 0; max-width: 30ch; }
.join-heading {
  margin: 0 0 18px;
  text-align: center;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--accent-ink);
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.join-field { display: flex; flex-direction: column; gap: 7px; }
.join-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.join-input {
  width: 100%;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 15px; letter-spacing: 0.08em;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.join-input::placeholder { color: var(--faint); }
.join-input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.join-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.join-check input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.join-send { justify-content: center; width: 100%; }
.join-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.join-success {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px; letter-spacing: 0.04em;
  color: var(--accent-ink);
}
.join-error {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px; letter-spacing: 0.04em;
  color: #ff6b6b;
}
/* Honeypot: visually removed but reachable by bots. */
.join-hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Footer ------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 80px;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.foot .mono {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
}
.foot-tagline {
  margin-top: 18px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- Scroll reveal + responsive polish -------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  body.anim .section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
  }
  body.anim .section.in-view {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Stronger veil + tighter spacing on phones so cells never fight the text */
@media (max-width: 720px) {
  #bgveil {
    background: linear-gradient(180deg,
      rgba(11,12,14,0.80) 0%,
      rgba(11,12,14,0.56) 14%,
      rgba(11,12,14,0.52) 50%,
      rgba(11,12,14,0.60) 86%,
      rgba(11,12,14,0.80) 100%);
  }
  .section { padding: 78px 0; }
  .section:first-of-type { padding-top: 92px; }
  .hero { padding: 96px 0 64px; }
  .nav .mark { font-size: 18px; }
  .sec-intro, .sec-body p { font-size: 16px; }
  .sec-body .lede { font-size: 20px; }
  .principles { margin-top: 36px; }
  .principles li { gap: 0.5em; padding: 20px 0; }
  .join-sec { padding: 100px 0 112px; }
  .join-line--solo { white-space: normal; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
}
