/* -------------------------------------------------------------------------
   TELLMYTH
   Dark theme. Lime used sparingly. Mono numbers.
   ------------------------------------------------------------------------- */

/* ---- Self-hosted webfonts ----------------------------------------------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gyByhwUxId8gMEwRGFWfOw.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gyByhwUxId8gMEwYGFWfOw.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gyByhwUxId8gMEwTGFWfOw.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gyByhwUxId8gMEwSGFWfOw.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gyByhwUxId8gMEwcGFU.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/V8mDoQDjQSkFtoMM3T6r8E7mPb54C-s0.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- 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-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.018em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.wordmark__letter {
  display: inline-block;
  margin-right: 0.025em;
  transform-origin: 50% 78%;
}
.wordmark__letter:last-child { margin-right: 0; }
.wordmark__letter--signal {
  color: var(--accent-ink);
  font-weight: 600;
}
.wordmark--footer { font-size: 26px; }

/* The menu wordmark has a visible, continuous pulse; other marks stay quieter. */
@media (prefers-reduced-motion: no-preference) {
  .wordmark__letter {
    animation: wordmark-breathe 3.8s ease-in-out infinite;
    animation-delay: calc(var(--letter-index) * 110ms);
    will-change: transform, opacity;
  }
  .wordmark.is-reacting .wordmark__letter {
    animation: wordmark-impact .42s cubic-bezier(.2, .8, .3, 1) both;
    animation-delay: calc(var(--letter-index) * 18ms);
    will-change: transform;
  }
  .nav .wordmark__letter {
    animation: wordmark-menu-pulse 2.7s ease-in-out infinite;
    animation-delay: calc(var(--letter-index) * 75ms);
  }
  @keyframes wordmark-breathe {
    0%, 100% {
      opacity: 0.94;
      transform: translate3d(0, 0, 0) scale(1);
    }
    48% {
      opacity: 1;
      transform: translate3d(0, -.018em, 0) scale(1.035);
    }
  }
  @keyframes wordmark-impact {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    18% { transform: translate3d(-.045em, -.055em, 0) rotate(-2.2deg); }
    42% { transform: translate3d(.055em, .035em, 0) rotate(1.6deg); }
    66% { transform: translate3d(-.025em, -.015em, 0) rotate(-.7deg); }
  }
  @keyframes wordmark-menu-pulse {
    0%, 100% {
      opacity: .84;
      transform: translate3d(0, 0, 0) scale(1);
    }
    46% {
      opacity: 1;
      transform: translate3d(0, -.028em, 0) scale(1.065);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark__letter { transform: none; }
}

/* ---- 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); }

/* -------------------------------------------------------------------------
   PAGE
   ------------------------------------------------------------------------- */
#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: 72px; }
.nav .mark { font-size: 38px; }
.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 About — scattered signals resolve into a clear direction -------- */
/* 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;
}
#about .sec-col { width: auto; max-width: 600px; }

.fall-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.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; }
  #about .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 */
  #about .sec-label::before      { animation-delay: -0.2s; }
  #services .sec-label::before  { animation-delay: -1.4s; }
  #the-eleven .sec-label::before   { animation-delay: -0.9s; }
  #marketing .sec-label::before  { animation-delay: -1.7s; }
  #development .sec-label::before { animation-delay: -2.7s; }
  #process .sec-label::before      { animation-delay: -2.3s; }
  #principles .sec-label::before   { animation-delay: -3.1s; }
  #contact .sec-label::before         { animation-delay: -1.0s; }
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .67; }
}

/* ---- 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 {
  position: relative;
  overflow: hidden;
  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; }
.flow-block--pool::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(198, 242, 78, 0.22) 50%, transparent 72%);
  transform: translateX(-130%);
}

/* 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;
}

/* The separate pieces travel in from different points, dock into their rows,
   draw their connectors, then lock the central block into place. */
@media (prefers-reduced-motion: no-preference) {
  body.anim .flow-src {
    opacity: 0;
    filter: blur(7px);
    transition: opacity .65s ease, transform .72s cubic-bezier(.2, .8, .2, 1), filter .55s ease;
    will-change: opacity, transform, filter;
  }
  body.anim .flow-s1 { transform: translate(-86px, -28px) rotate(-2deg) scale(.91); }
  body.anim .flow-s2 { transform: translateX(-112px) scale(.91); }
  body.anim .flow-s3 { transform: translate(-86px, 28px) rotate(2deg) scale(.91); }
  body.anim .flow-block--pool {
    opacity: 0;
    filter: blur(8px);
    transform: translateX(72px) scale(.78);
    transition: opacity .65s ease, transform .82s cubic-bezier(.16, 1, .3, 1), filter .55s ease;
    will-change: opacity, transform, filter;
  }
  body.anim .fm-arrow { transform: scaleX(0); transform-origin: left; transition: transform .46s ease; }
  body.anim .fm-arrow::after { opacity: 0; transition: opacity .25s ease; }

  body.anim .in-view .flow-s1 { opacity: 1; filter: none; transform: none; transition-delay: .08s; }
  body.anim .in-view .fm-arrow--1 { transform: scaleX(1); transition-delay: .48s; }
  body.anim .in-view .fm-arrow--1::after { opacity: 1; transition-delay: .82s; }
  body.anim .in-view .flow-s2 { opacity: 1; filter: none; transform: none; transition-delay: .30s; }
  body.anim .in-view .fm-arrow--2 { transform: scaleX(1); transition-delay: .70s; }
  body.anim .in-view .fm-arrow--2::after { opacity: 1; transition-delay: 1.04s; }
  body.anim .in-view .flow-s3 { opacity: 1; filter: none; transform: none; transition-delay: .52s; }
  body.anim .in-view .fm-arrow--3 { transform: scaleX(1); transition-delay: .92s; }
  body.anim .in-view .fm-arrow--3::after { opacity: 1; transition-delay: 1.26s; }
  body.anim .in-view .flow-block--pool { opacity: 1; filter: none; transform: none; transition-delay: 1.14s; }
  body.anim .in-view .flow-block--pool::after { animation: assembly-scan .75s ease-out 1.72s 1 both; }
  @keyframes assembly-scan {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
  }
}

/* mobile — sources stacked, one lime arrow pointing DOWN into the node below */
@media (max-width: 960px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "s1"
      "s2"
      "s3"
      "a2"
      "pool";
    row-gap: 14px;
    margin-top: 44px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: clip;
  }
  .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; }
  body.anim .flow-s1 { transform: translateX(-40px) scale(.94); }
  body.anim .flow-s2 { transform: translateX(40px) scale(.94); }
  body.anim .flow-s3 { transform: translateX(-40px) scale(.94); }
  body.anim .flow-block--pool { transform: translateY(38px) scale(.9); }
  body.anim .in-view .flow-src,
  body.anim .in-view .flow-block--pool { transform: none; }
}

/* ---- 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) {
  /* Narrow chain: box fills available space, caption column shrinks to min-content
     so the box column always wins and the arrow label wraps rather than pushes
     the chain wider than the viewport. */
  .chain {
    --ch-box: 1fr;
    --ch-op: 48px;
    --ch-vx: 14px;
    grid-template-columns: var(--ch-op) minmax(0, var(--ch-box)) minmax(0, 96px);
  }
  .ch-cap-lbl { font-size: 9px; }
  .ch-note { font-size: 11.5px; }
}
@media (max-width: 400px) {
  /* Very narrow: hide the decorative capital-in arrow so the box column
     can use the full remaining width without any horizontal overflow. */
  .ch-cap { display: none; }
  .chain {
    grid-template-columns: var(--ch-op) 1fr;
  }
}

/* animation — fade boxes / draw links in chain order; capital-in arrow last.
   Replays each visit (#services.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 #services.in-view .ch-b1 { opacity: 1; transform: none; transition-delay: 0s; }
  body.anim #services.in-view .ch-l1 .ch-line { transform: translateX(-50%) scaleY(1); transition-delay: .12s; }
  body.anim #services.in-view .ch-l1 .ch-lbl { opacity: 1; transition-delay: .16s; }
  body.anim #services.in-view .ch-b2 { opacity: 1; transform: none; transition-delay: .22s; }
  body.anim #services.in-view .ch-l2 .ch-line { transform: translateX(-50%) scaleY(1); transition-delay: .34s; }
  body.anim #services.in-view .ch-l2 .ch-lbl { opacity: 1; transition-delay: .38s; }
  body.anim #services.in-view .ch-b3 { opacity: 1; transform: none; transition-delay: .44s; }
  body.anim #services.in-view .ch-l3 .ch-line { transform: translateX(-50%) scaleY(1); transition-delay: .56s; }
  body.anim #services.in-view .ch-l3 .ch-lbl { opacity: 1; transition-delay: .60s; }
  body.anim #services.in-view .ch-b4 { opacity: 1; transform: none; transition-delay: .66s; }

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

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

/* ---- 04 Roadmap — animated vertical timeline -------------------------- */
.process-intro { max-width: 52ch; }
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(52px, 8vw, 110px);
  align-items: center;
  margin-top: 54px;
}
.timeline { position: relative; margin-top: 0; }
.process-board {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(198, 242, 78, 0.11), rgba(22, 24, 29, 0.94) 58%);
  box-shadow: 0 0 45px rgba(198, 242, 78, 0.08);
}
.process-board h3 {
  margin: 18px 0 24px;
  font-family: "Space Grotesk", "Geist", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.process-board ol { list-style: none; margin: 0; padding: 0; }
.process-board li {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 14px;
}
.process-board li span {
  font-family: "Geist Mono", ui-monospace, monospace;
  color: var(--accent);
}
.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 #process.in-view .tl-beam { transform: scaleY(1); }

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

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

  body.anim .tl-node { opacity: 0; }
  body.anim #process.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 #process.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 #process.in-view .tl-content {
    opacity: 1; transform: none;
    transition-delay: calc(var(--i) * 0.12s + 0.08s);
  }
  body.anim .process-board {
    opacity: 0;
    transform: translateX(36px) scale(.94);
    transition: opacity .7s ease .55s, transform .8s cubic-bezier(.16, 1, .3, 1) .55s;
  }
  body.anim #process.in-view .process-board { opacity: 1; transform: none; }
  body.anim .process-board li { opacity: 0; transform: translateX(14px); transition: opacity .4s ease, transform .4s ease; }
  body.anim #process.in-view .process-board li { opacity: 1; transform: none; }
  body.anim #process.in-view .process-board li:nth-child(1) { transition-delay: .85s; }
  body.anim #process.in-view .process-board li:nth-child(2) { transition-delay: .96s; }
  body.anim #process.in-view .process-board li:nth-child(3) { transition-delay: 1.07s; }
  body.anim #process.in-view .process-board li:nth-child(4) { transition-delay: 1.18s; }
}
/* 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; }
}

@media (max-width: 960px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .process-board { min-width: 0; max-width: 520px; }
}

/* mobile — keep the vertical timeline, scale nodes/line/text down */
@media (max-width: 720px) {
  .process-grid { margin-top: 38px; }
  body.anim .process-board { transform: translateY(28px) scale(.96); }
  body.anim #process.in-view .process-board { transform: none; }
  .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: 1100px; 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-email {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.join-email a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(360px, 1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: stretch;
  max-width: 940px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: left;
}
.join-cta { max-width: 30ch; }
.contact-grid .join-cta { max-width: none; margin: 0; }
.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);
}
.contact-grid .join-heading { text-align: left; }

.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-textarea { resize: vertical; min-height: 112px; letter-spacing: 0; line-height: 1.5; }
.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-input[aria-invalid="true"] {
  border-color: rgba(255, 107, 107, .82);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .09);
}

.pixel-select { position: relative; }
.pixel-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pixel-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  background: var(--card);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: .02em;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.pixel-select__trigger:hover,
.pixel-select.is-open .pixel-select__trigger {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: var(--card-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.pixel-select__trigger:focus-visible,
.pixel-select__options button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pixel-select__glyph {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
  transition: transform .2s ease;
}
.pixel-select.is-open .pixel-select__glyph { transform: rotate(45deg); }
.pixel-select__options {
  position: absolute;
  z-index: 20;
  right: 0;
  left: 0;
  top: calc(100% + 6px);
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: #101216;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .48);
}
.pixel-select__options button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 15px;
  color: var(--muted);
  background: transparent;
  font: 13px/1.35 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .01em;
  text-align: left;
  cursor: pointer;
}
.pixel-select__options button:last-child { border-bottom: 0; }
.pixel-select__options button:hover,
.pixel-select__options button[aria-selected="true"] { color: var(--on-accent); background: var(--accent); }
.pixel-select__options button:focus-visible { color: var(--on-accent); background: var(--accent); }
.pixel-select__trigger:disabled { cursor: default; opacity: .55; }

.office-map {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(198, 242, 78, .08), rgba(20, 23, 29, .95) 30%, rgba(14, 17, 26, .96));
  box-shadow: var(--shadow);
}
.office-map__head { padding: 26px 26px 18px; }
.office-map__head h3 {
  margin-top: 10px;
  font-family: "Space Grotesk", "Geist", sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
}
.office-map__head p { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pixel-world {
  position: relative;
  flex: 1;
  min-height: 260px;
  aspect-ratio: 520 / 330;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a0d13;
}
.pixel-world svg { display: block; width: 100%; height: 100%; min-height: 0; }
.pixel-world__grid { fill: none; stroke: rgba(255, 255, 255, .055); stroke-width: 1; }
.pixel-world__meridians { fill: none; stroke: rgba(198, 242, 78, .09); stroke-width: 1; }
.pixel-world__rim { fill: none; stroke: rgba(198, 242, 78, .55); stroke-width: 2; }
.pixel-world__land { fill: rgba(198, 242, 78, .1); stroke: rgba(198, 242, 78, .37); stroke-width: 2; }
.pixel-world__land--europe { fill: rgba(198, 242, 78, .15); }
.pixel-world__route {
  fill: none;
  stroke: rgba(198, 242, 78, .52);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  animation: pixel-route-flow 3s linear infinite;
}
.pixel-world__node { fill: rgba(198, 242, 78, .7); }
.pixel-world__node--origin { fill: var(--accent); animation: pixel-world-pulse 2.4s steps(2, end) infinite; }
.pixel-world__track {
  animation: pixel-world-rotate 26s linear infinite;
  transform-box: view-box;
  transform-origin: 0 0;
}
.pixel-world:hover .pixel-world__track,
.pixel-world:focus-within .pixel-world__track { animation-play-state: paused; }
@keyframes pixel-world-rotate {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes pixel-route-flow { to { stroke-dashoffset: -20; } }
@keyframes pixel-world-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .36; }
}
.pixel-world__legend {
  position: absolute;
  right: 7%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}
.pixel-world__legend b { color: var(--accent); font-weight: 500; }
.pixel-world__legend span { margin-top: 5px; color: var(--muted); }
.pixel-world__markets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 0;
  padding: 15px 26px 16px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}
.pixel-world__markets span::before { content: "·"; margin-right: 6px; color: var(--accent); }
.pixel-world__markets span:first-child { color: var(--accent); }
.pixel-world__markets span:first-child::before { content: "◆"; font-size: 7px; }
.office-map__contact {
  min-height: 84px;
  margin-top: auto;
  padding: 15px 26px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.office-map__contact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.office-map__contact-dynamic {
  display: none;
  align-items: center;
  min-height: 21px;
}
.office-map__contact-cycle.is-enhanced .office-map__contact-dynamic { display: inline-flex; }
.office-map__contact-link {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .035em;
  text-decoration: none;
}
.office-map__contact-link:hover { color: var(--text); }
.office-map__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 5px;
  background: var(--accent);
  animation: contact-cursor 1s steps(2, start) infinite;
}
.office-map__contact-static {
  display: block;
  color: var(--accent);
  font: 13px/1.5 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .02em;
}
.office-map__contact-static a { color: var(--accent); }
.office-map__contact-cycle.is-enhanced .office-map__contact-static { display: none; }
@keyframes contact-cursor {
  50% { opacity: 0; }
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .office-map { min-height: 0; }
}
@media (max-width: 520px) {
  .contact-grid { gap: 28px; }
  .office-map__head { padding: 22px 20px 17px; }
  .office-map__contact { padding: 15px 20px 18px; }
  .office-map__contact-dynamic { max-width: 100%; }
  .office-map__contact a[href^="tel:"] {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .pixel-world,
  .pixel-world svg { min-height: 230px; }
  .pixel-world__markets { gap: 7px 12px; padding: 14px 20px 15px; font-size: 8px; }
  .pixel-world__legend { right: 6%; bottom: 8%; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-world__track,
  .pixel-world__route,
  .pixel-world__node--origin { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .office-map__contact-cycle.is-enhanced .office-map__contact-dynamic { display: none; }
  .office-map__contact-cycle.is-enhanced .office-map__contact-static { display: block; }
}

.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-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.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;
}
.join-fallback {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.join-fallback a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 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;
}

/* ---- Cookie banner ------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(360px, calc(100vw - 48px));
  border: 1px solid rgba(198, 242, 78, 0.28);
  border-radius: 18px 4px 18px 4px;
  background: rgba(15, 17, 24, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(191, 255, 66, 0.06) inset;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity .2s ease, transform .2s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__inner {
  padding: 18px;
}
.cookie-banner__copy {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.cookie-banner__copy strong { color: var(--text); }
.cookie-banner__copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-btn {
  min-width: 112px;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 10px 2px 10px 2px;
  padding: 0 16px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.cookie-btn--quiet {
  color: var(--muted);
  background: transparent;
}
.cookie-btn--quiet:hover {
  border-color: var(--accent);
  color: var(--text);
}
.cookie-btn--accept {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}
.cookie-btn--accept:hover { background: #d8ff77; }
@media (max-width: 720px) {
  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: min(340px, calc(100vw - 28px));
  }
  .cookie-banner__inner { padding: 16px; }
  .cookie-btn { min-width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transform: none;
    transition: opacity .01ms linear;
  }
}

/* ---- 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);
}
.foot-email,
.foot-phone {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent) !important;
}
.foot-phone { margin-left: 20px; }
.foot-email:hover,
.foot-phone:hover { color: var(--ink) !important; }
.foot-legal {
  margin: 12px 0 0;
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--faint);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}
.foot-links a {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.foot-links a:hover { color: var(--accent); }

/* ---- Legal pages -------------------------------------------------------- */
.policy-page { min-height: 100vh; }
.policy-main { padding: 118px 0 100px; }
.policy-intro { max-width: 680px; }
.policy-title {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.policy-updated {
  margin-top: 18px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.policy-content {
  max-width: 760px;
  margin-top: 58px;
}
.policy-content section { padding: 30px 0; border-top: 1px solid var(--line); }
.policy-content h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.policy-content p { margin-top: 12px; }
.policy-content ul { margin: 12px 0 0; padding-left: 20px; }
.policy-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .policy-main { padding: 92px 0 70px; }
  .policy-content { margin-top: 42px; }
  .foot-links { gap: 14px; }
}

/* ---- 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: 31px; }
  .foot-phone { margin-left: 14px; }
  .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; }
  /* Ultra-narrow: knock hero headline down just below the clamp floor */
  .hero-headline { font-size: 36px; }
  /* Bring principles padding flush with the narrowed .wrap */
  .principles { padding-left: 18px; }
  .principles li::before { left: -18px; }
}

/* ---- Mobile polish: phone-width refinements -------------------- */
/* Tighten vertical rhythm, center stacked diagrams, fix touch targets
   and small-screen overflow that the desktop layout doesn't expose.   */
@media (max-width: 720px) {
  /* Compact label spacing — 30 px gap eats into limited viewport height */
  .sec-label { margin-bottom: 18px; }

  /* Hero: trim generous desktop padding */
  .hero { padding: 80px 0 52px; }

  /* Join / contact section: desktop padding is disproportionate on phones */
  .join-sec { padding: 80px 0 88px; }

  /* Process board: the 520 px cap from the 960 px breakpoint would still
     overflow a 390 px device — let it fill the column naturally */
  .process-board { max-width: 100%; }

  /* Footer: reduce bottom padding so legal links don't sit below the fold */
  .foot { padding: 32px 0 56px; }

  /* Earn-section sub-text: matches sec-body rhythm on mobile */
  .earn-sub { font-size: 16px; }
}

@media (max-width: 480px) {
  /* Principles: the 8 px right-nudge on the active row starts bumping into
     side padding at this width — pull it back */
  .principles { padding-left: 22px; }
  .principles li::before { left: -22px; }
  .principles li.is-active { --hov: translateX(3px); }

  /* Timeline: slightly tighter heading so long milestone labels don't wrap
     onto a third line with the narrow left indent */
  .tl-title { font-size: 17px; }
  .tl-desc  { font-size: 13px; }

  /* Contact form: reduce field gap on small phones */
  .join-form { gap: 13px; }

  /* Service picker options: use system font size for touch targets */
  .pixel-select__options button { padding: 14px 15px; font-size: 14px; }

  /* Foot links: wrap into two short columns on the narrowest devices */
  .foot-links { column-gap: 14px; row-gap: 10px; }
}

