/* ============================================================
   MeshPilot — scroll-story redesign
   dark terminal design system · single ember accent
   ============================================================ */

:root {
  --bg: #050506;
  --bg-2: #0b0b0e;
  --ink: #f4f3f1;
  --ink-dim: rgba(244, 243, 241, 0.62);
  --ink-faint: rgba(244, 243, 241, 0.38);
  --line: rgba(244, 243, 241, 0.1);
  --line-soft: rgba(244, 243, 241, 0.06);
  --ember: #ff6b3d;
  --ember-dim: rgba(255, 107, 61, 0.14);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: rgba(244,243,241,.18) transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ember); color: #0a0503; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============ fixed layers ============ */

#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}

#labels {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.mem-label {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -140%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--ink-dim);
  background: rgba(5,5,6,.55);
  border: 1px solid var(--line-soft);
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  backdrop-filter: blur(4px);
}
.mem-label b { color: var(--ember); font-weight: 500; }
.mem-label::before {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1px; height: 14px; background: var(--line);
}

main { position: relative; z-index: 3; }

/* ============ boot overlay ============ */

#boot {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.boot-inner {
  width: min(560px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  overflow: hidden;
}
.boot-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.boot-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,243,241,.16); }
.boot-dot:first-child { background: var(--ember); }
.boot-title {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .08em;
}
#boot-log {
  padding: 20px 20px 26px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  color: var(--ink-dim);
  min-height: 220px;
  white-space: pre-wrap;
}
#boot-log .ok { color: var(--ember); }
#boot-log .bright { color: var(--ink); }
.boot-skip {
  padding: 0 20px 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.boot-caret { display: inline-block; width: 8px; height: 14px; background: var(--ember);
  vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ nav ============ */

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px);
  opacity: 0; transform: translateY(-12px);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(5,5,6,.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 9px; }
/* Earlier exports padded the mark inside its own box, so it read far smaller
   than the wordmark and --mark-crop scaled it back up to compensate. The marks
   are now trimmed to the artwork's true alpha bounds (zero padding on all four
   sides), so no correction is needed. Kept as a variable only so a future
   padded export can be handled without touching every rule. */
:root { --mark-crop: 1; }
.brand-mark {
  width: 30px; height: 30px; display: block;
  object-fit: contain;
  transform: scale(var(--mark-crop));
  transform-origin: center;
}
/* The raster mark is trimmed to its artwork, which is wider than it is tall.
   Pinning it to a 30px square would letterbox it and put back the empty space
   the trim just removed, so height follows the aspect instead. The square box
   above still applies to the inline SVG variant, which has its own viewBox. */
img.brand-mark { height: auto; }
svg.brand-mark { color: var(--ink); transform: none; }
.nav-signin { display: none; }
@media (min-width: 720px) { .nav-signin { display: inline-flex; } }
.f-mark { display: inline-flex; align-items: center; gap: 9px; width: fit-content; }
.f-mark img {
  width: 30px; height: auto; object-fit: contain;
  transform: scale(var(--mark-crop));
}
.brand-word { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.beta {
  font-family: var(--mono); font-size: 9px; font-weight: 400;
  color: var(--ember); border: 1px solid var(--ember-dim);
  background: var(--ember-dim);
  padding: 2px 5px; border-radius: 4px; margin-left: 7px;
  letter-spacing: .1em; text-transform: uppercase;
  vertical-align: 3px;
}
.nav-links { display: flex; gap: clamp(14px, 2.6vw, 32px); }
.nav-links a {
  font-size: 13.5px; color: var(--ink-dim);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ============ mobile nav (hamburger + drawer) ============
   Injected by public/js/navmenu.js. Hidden on desktop; the burger appears
   below 760px where the inline nav-links / ghost CTAs are hidden. */
.nav-burger {
  display: none;
  position: relative;
  width: 40px; height: 40px; flex: 0 0 auto;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(244, 243, 241, .03);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  z-index: 60;
}
.nav-burger span {
  position: absolute; left: 11px; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.nav-burger span:nth-child(1) { transform: translateY(-5px); }
.nav-burger span:nth-child(3) { transform: translateY(5px); }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(5, 5, 6, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav-drawer.open { opacity: 1; visibility: visible; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(80vw, 320px);
  display: flex; flex-direction: column; gap: 2px;
  padding: 92px 20px 28px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .7);
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
/* Lift the bar above the drawer while open so the burger (now an X) and the
   brand stay tappable on top of the overlay. #nav is z-index:40 by default. */
body.nav-open #nav { z-index: 56; }
.nav-drawer-link {
  display: block; padding: 13px 12px; border-radius: 10px;
  font-family: var(--sans); font-size: 15px; color: var(--ink-dim);
  text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-drawer-link:hover, .nav-drawer-link:active {
  background: rgba(244, 243, 241, .05); color: var(--ink);
}
.nav-drawer-div { height: 1px; background: var(--line); margin: 12px 4px; }
.nav-drawer-panel .btn { display: inline-flex; width: 100%; margin-top: 8px; justify-content: center; }
body.nav-open { overflow: hidden; }

/* ============ buttons ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 500; font-size: 13.5px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-solid { background: var(--ink); color: #0a0a0c; border-color: var(--ink); }
.btn-solid:hover { background: var(--ember); border-color: var(--ember); color: #160803; }
.btn-ghost { color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(244,243,241,.32); background: rgba(244,243,241,.05); }

/* ============ chapter rail ============ */

#rail {
  position: fixed; left: clamp(14px, 3vw, 40px); top: 50%; z-index: 30;
  transform: translateY(-50%);
  display: flex; gap: 14px; align-items: stretch;
  opacity: 0; transition: opacity .6s var(--ease);
}
body[data-chapter]:not([data-chapter="boot"]):not([data-chapter="0"]) #rail { opacity: 1; }
.rail-line { width: 1px; background: var(--line-soft); position: relative; }
#rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: var(--ember); display: block;
}
#rail ol { list-style: none; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
#rail li {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-faint);
  transition: color .35s;
  cursor: pointer;
}
#rail li i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-faint); display: block;
  transition: all .35s;
}
#rail li.on { color: var(--ink); }
#rail li.on i { background: var(--ember); box-shadow: 0 0 10px rgba(255,107,61,.8); }
#rail li span { opacity: 0; transform: translateX(-4px); transition: all .3s var(--ease); }
#rail:hover li span, #rail li.on span { opacity: 1; transform: none; }

/* ============ status bar ============ */

#statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px clamp(16px, 3vw, 36px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(to top, rgba(5,5,6,.85), rgba(5,5,6,0));
  opacity: 0; transition: opacity .8s var(--ease);
}
body[data-chapter]:not([data-chapter="boot"]) #statusbar { opacity: 1; }
.sb-left { display: flex; align-items: center; gap: 7px; color: var(--ink-dim); }
.sb-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
  animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.sb-right { display: flex; gap: 18px; align-items: center; }
.sb-prog { color: var(--ink-dim); min-width: 58px; text-align: right; }
#sb-pct { color: var(--ember); }

/* ============ story panels ============ */

.panel { position: relative; min-height: 260vh; }
.panel.hero { min-height: 130vh; }

.copy {
  position: sticky; top: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) clamp(20px, 7vw, 110px) 80px;
  max-width: 820px;
  pointer-events: none;
}
.copy > * { pointer-events: auto; }
.align-left { margin-right: auto; }
.align-right { margin-left: auto; text-align: right; align-items: flex-end; }
.align-center { margin: 0 auto; text-align: center; align-items: center; max-width: 900px; }
.hero-copy { margin: 0 auto; text-align: center; align-items: center; max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-soft);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(5,5,6,.4); backdrop-filter: blur(6px);
  margin-bottom: 34px;
}
.tick { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 2.2s infinite; }

.chapter-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: lowercase;
  color: var(--ink-faint);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.chapter-tag.center { justify-content: center; }
.chapter-tag b { color: var(--ember); font-weight: 500; }
.align-right .chapter-tag { flex-direction: row-reverse; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: 1.04; }
h2 { font-size: clamp(38px, 5.4vw, 74px); line-height: 1.06; }
h1 em, h2 em {
  font-style: italic; font-weight: 400;
  color: var(--ember);
}
.lede {
  margin-top: 26px;
  font-size: clamp(15.5px, 1.35vw, 18.5px);
  line-height: 1.72;
  color: var(--ink-dim);
  max-width: 560px;
}
.align-right .lede { margin-left: auto; }
.align-center .lede, .hero-copy .lede { margin-left: auto; margin-right: auto; }
.hero-copy .lede { max-width: 640px; }

.cta-row { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.hero-hint {
  margin-top: 76px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hh-key { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--ink-dim); }
.hh-line { width: 52px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hh-line::after {
  content: ""; position: absolute; inset: 0; background: var(--ember);
  transform: translateX(-100%); animation: scan 2.4s var(--ease) infinite;
}
@keyframes scan { 60%, 100% { transform: translateX(100%); } }

.facts { list-style: none; margin-top: 38px; display: flex; flex-direction: column; gap: 12px; }
.facts li {
  font-size: 14.5px; color: var(--ink-dim);
  display: flex; align-items: baseline; gap: 12px;
}
.align-right .facts li { flex-direction: row-reverse; }
.f-key {
  font-family: var(--mono); font-size: 11px; color: var(--ember);
  background: var(--ember-dim);
  border: 1px solid rgba(255,107,61,.18);
  padding: 2px 9px; border-radius: 6px;
  white-space: nowrap;
}
.kbd-row { display: inline-block; margin: 0 4px; }
kbd {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  background: rgba(244,243,241,.06);
  padding: 2px 9px;
}

/* ============ content sections ============ */

.content {
  position: relative;
  padding: clamp(90px, 12vh, 150px) clamp(20px, 6vw, 90px);
  max-width: 1280px; margin: 0 auto;
}
.content.narrow { max-width: 860px; }
.content::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(5,5,6,.82) 12%, rgba(5,5,6,.82) 88%, transparent);
  pointer-events: none; z-index: -1;
}
.content-head { max-width: 720px; margin-bottom: clamp(46px, 7vh, 80px); }
.content-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.content-head.center .chapter-tag { justify-content: center; }

/* ---- bento ---- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, 1fr);
}
.cell {
  grid-column: span 2;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(11,11,14,.72);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.cell:hover { border-color: rgba(244,243,241,.2); transform: translateY(-3px); }
.cell-wide { grid-column: span 4; }
.cell-wide-r { grid-column: span 4; }
.cell-code { grid-column: span 2; }
.cell-media { border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.cell-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: 16/9.4; transition: transform .8s var(--ease); }
.cell:hover .cell-media img { transform: scale(1.025); }
.cell-body { padding: 26px 28px 30px; }
.cell-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 12px;
}
.cell-tag .dim { color: var(--ink-faint); }
.cell h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.cell p { font-size: 14px; line-height: 1.68; color: var(--ink-dim); }
.cell-links { display: flex; gap: 18px; margin-top: 20px; }
.cell-links a {
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid rgba(255,107,61,.45);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.cell-links a:hover { color: var(--ember); border-color: var(--ember); }
.codeblock {
  margin: 6px 22px 24px;
  padding: 18px;
  border: 1px solid var(--line-soft); border-radius: 12px;
  background: rgba(5,5,6,.7);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.75;
  overflow-x: auto;
  color: var(--ink-dim);
}
.c-k { color: #9ecbff; }
.c-s { color: var(--ink); }
.c-p { color: var(--ink-faint); }

/* ---- pricing ---- */
.toggle {
  display: inline-flex; margin-top: 34px;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
  background: rgba(11,11,14,.6); backdrop-filter: blur(8px);
}
.t-btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--ink-dim);
  background: transparent; border: 0; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s var(--ease);
}
.t-btn.active { background: var(--ink); color: #0a0a0c; }
.t-note {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  color: var(--ember); background: var(--ember-dim);
  padding: 2px 7px; border-radius: 999px;
}
.t-btn.active .t-note { color: #160803; background: rgba(0,0,0,.12); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan {
  position: relative;
  border: 1px solid var(--line-soft); border-radius: 22px;
  background: rgba(11,11,14,.72); backdrop-filter: blur(12px);
  padding: 34px 32px 36px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.plan:hover { border-color: rgba(244,243,241,.2); transform: translateY(-3px); }
.plan.featured {
  border-color: rgba(255,107,61,.35);
  background: linear-gradient(to bottom, rgba(255,107,61,.07), rgba(11,11,14,.72) 40%);
  transform: translateY(-12px);
}
.plan.featured:hover { transform: translateY(-15px); }
.plan-flag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(255,107,61,.3);
  padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 17px; font-weight: 600; }
.plan-blurb { margin-top: 6px; font-size: 13px; color: var(--ink-faint); max-width: 220px; }
.plan-price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; }
.p-amount { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.p-cadence { font-size: 13px; color: var(--ink-faint); }

/* ---- promo badge ----
   Injected into the data-promo-slot markers by src/lib/marketing.ts from the
   coupons an admin published in meshadmin. Absent from the markup entirely when
   there is no live coupon, so the card falls back to its authored spacing. */
.plan-promo {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 8px; column-gap: 10px;
  border: 1px solid rgba(255,107,61,.32); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,107,61,.11), rgba(255,107,61,.04));
  padding: 11px 13px;
  font-size: 12.5px; color: var(--ink-dim);
}
.promo-tag {
  flex-basis: 100%;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ember);
}
.promo-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 8px rgba(255,107,61,.9);
}
.promo-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.promo-amount { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.promo-was { color: var(--ink-faint); text-decoration: line-through; }
.promo-scope { color: var(--ink-dim); }
.promo-charged { color: var(--ink-faint); }
.promo-code {
  flex-basis: 100%;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.promo-code b { color: var(--ember); font-weight: 500; letter-spacing: .14em; }
/* Coupons apply to the monthly price only — checkout ignores them on an annual
   order — so the badge is hidden while the annual period is selected. */
.plans.annual-period .plan-promo { display: none; }

.plan-cta { width: 100%; margin-top: 24px; }
.plan ul { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; color: var(--ink-dim); line-height: 1.5;
}
.plan li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember);
  transform: rotate(-45deg) translateY(-1px);
}

/* ---- faq ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  border: 1px solid var(--line-soft); border-radius: 16px;
  background: rgba(11,11,14,.72); backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color .3s;
}
details[open] { border-color: rgba(244,243,241,.18); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 26px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; background: var(--ink-dim);
  transition: transform .35s var(--ease), background .3s;
}
.faq-x::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq-x::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
details[open] .faq-x::after { transform: scaleY(0); }
details[open] .faq-x::before { background: var(--ember); }
details p {
  padding: 0 26px 24px;
  font-size: 14px; line-height: 1.75; color: var(--ink-dim);
  max-width: 640px;
}

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-grid.solo { grid-template-columns: minmax(0, 560px); }
.member {
  border: 1px solid var(--line-soft); border-radius: 22px;
  background: rgba(11,11,14,.72); backdrop-filter: blur(12px);
  padding: 32px 34px 36px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.member:hover { border-color: rgba(244,243,241,.2); transform: translateY(-3px); }
.m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.m-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember);
}
.m-gh {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); border-radius: 10px; color: var(--ink-dim);
  transition: all .25s;
}
.m-gh:hover { color: var(--ink); border-color: rgba(244,243,241,.3); background: rgba(244,243,241,.05); }
.m-gh svg { width: 16px; height: 16px; }
.member h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
.member p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--ink-dim); }

/* ---- cta ---- */
#cta { padding-bottom: clamp(120px, 16vh, 190px); }
.cta-card {
  position: relative;
  border: 1px solid var(--line); border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, var(--ember-dim), transparent 70%),
    rgba(11,11,14,.8);
  backdrop-filter: blur(14px);
  text-align: center;
  padding: clamp(60px, 9vh, 110px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,107,61,.6), transparent);
}
.cta-card p { margin-top: 18px; color: var(--ink-dim); font-size: 16px; }

/* ---- footer ---- */
#footer {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line-soft);
  background: rgba(5,5,6,.9);
  padding: clamp(50px, 8vh, 90px) clamp(20px, 6vw, 90px) 40px;
}
.f-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.f-brand p { margin-top: 16px; font-size: 13.5px; line-height: 1.7; color: var(--ink-faint); max-width: 300px; }
.f-col { display: flex; flex-direction: column; gap: 12px; }
.f-col span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}
.f-col a { font-size: 13.5px; color: var(--ink-dim); transition: color .25s; width: fit-content; }
.f-col a:hover { color: var(--ember); }
.f-base {
  max-width: 1280px; margin: 60px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-faint);
}
.f-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }

/* ============ reveal states (JS toggles) ============ */

.copy > *, .content-head > *, .cell, .plan, details, .member, .cta-card > * {
  will-change: transform, opacity;
}

/* ============ responsive ============ */

@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell, .cell-wide, .cell-wide-r, .cell-code { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.featured { transform: none; }
  #rail { display: none; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .copy { padding-left: 22px; padding-right: 22px; }
  .align-right { text-align: left; align-items: flex-start; }
  .align-right .lede { margin-left: 0; }
  .align-right .chapter-tag { flex-direction: row; }
  .align-right .facts li { flex-direction: row; }
  .team-grid, .bento { grid-template-columns: 1fr; }
  .cell, .cell-wide, .cell-wide-r, .cell-code { grid-column: span 1; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .sb-hide-m { display: none; }
  .hero-hint { margin-top: 48px; }
  .panel { min-height: 220vh; }
}

/* ============ reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .copy { position: relative; min-height: auto; padding-top: 18vh; padding-bottom: 18vh; }
  .panel, .panel.hero { min-height: auto; }
}

.no-gl #gl, .no-gl .vignette { display: none; }
.no-gl body, body.no-gl { background: radial-gradient(ellipse 90% 60% at 50% 0%, #101014, #050506 70%); }
