/* Abacus venture page. Same tokens and type as the home page; Abacus palette for signal colours. */
:root {
  --bg: #000;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --soft: #b8b8b8;
  --line: rgba(255,255,255,.16);
  --accent: #c9a96e;
  --confident: #10B981;
  --neutral: #E5E7EB;
  --friction: #EF4444;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "SF Mono", Monaco, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 18px var(--gutter); background: rgba(0,0,0,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff0d; }
.logo { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .32em; }
.top nav { display: flex; gap: 28px; }
.crumb, .btn, .eyebrow, .label, .top nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; }
.top nav a, .crumb { color: var(--muted); transition: color .3s; }
.top nav a:hover, .crumb:hover { color: var(--fg); }
.btn { display: inline-block; border: 1.5px solid var(--fg); padding: 14px 26px; background: none; color: var(--fg); cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: var(--fg); color: #000; }
.btn.solid { background: var(--fg); color: #000; }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.btn.small { padding: 10px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Shared section rhythm ---------- */
section { position: relative; padding: 16vh var(--gutter); }
.wrap { max-width: 1240px; margin: 0 auto; }
.eyebrow { color: var(--muted); display: block; margin-bottom: 16px; }
.eyebrow b { color: var(--accent); font-weight: 500; }
h1, h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: .95; }
h1 { font-size: clamp(64px, 11vw, 150px); letter-spacing: .01em; }
h2 { font-size: clamp(38px, 5.4vw, 72px); }
h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; font-weight: 300; color: #d0d0d0; max-width: 560px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tag { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: #ffffffb3;
       border: 1px solid #ffffff40; padding: 5px 9px; background: #0007; backdrop-filter: blur(4px); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 1. Opening + live instrument ---------- */
.hero { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw; align-items: center; padding-top: 10vh; padding-bottom: 10vh;
        background: radial-gradient(ellipse at 75% 55%, #16201b 0%, #070807 55%, #000 80%); }
.hero .tagline { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); color: var(--accent); margin: 14px 0 20px; }
.track-stage { display: flex; list-style: none; margin: 34px 0 34px; max-width: 520px; }
.track-stage li { flex: 1; position: relative; padding-top: 18px; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); }
.track-stage li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #333; }
.track-stage li::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #333; }
.track-stage li.done { color: var(--fg); }
.track-stage li.done::before, .track-stage li.done::after { background: var(--fg); }
.track-stage li.now { color: var(--accent); }
.track-stage li.now::after { background: var(--accent); box-shadow: 0 0 0 5px #c9a96e33; }

.instrument { --glow: rgb(140,140,140); --gl: 0; --gr: 0; }
.device { position: relative; aspect-ratio: 2.25 / 1; border-radius: 9% / 20%; background: linear-gradient(170deg, #fbfbfa 0%, #e9e9e6 100%);
          box-shadow: 0 2px 0 #fff inset, 0 -6px 14px #0000001a inset, 0 50px 90px -30px #000, 0 0 120px -40px var(--glow); transform: perspective(1400px) rotateX(18deg);
          transition: box-shadow .4s; }
.device .slot { position: absolute; left: 9%; right: 9%; top: 34%; height: 22%; border-radius: 999px; background: #dcdcd8;
                box-shadow: inset 0 3px 6px #0003, 0 0 0 3px #ffffff; overflow: visible; }
.device .slot .glow { position: absolute; top: -6px; bottom: -6px; width: 50%; border-radius: 999px; filter: blur(7px); pointer-events: none; transition: opacity .4s; z-index: 0; }
.device .slot .glow.l { left: -6px; background: linear-gradient(90deg, rgba(239,68,68,.95), rgba(239,68,68,0)); opacity: calc(.18 + var(--gl) * .82); }
.device .slot .glow.r { right: -6px; background: linear-gradient(270deg, rgba(16,185,129,.95), rgba(16,185,129,0)); opacity: calc(.18 + var(--gr) * .82); }
.device .bead { position: absolute; top: 50%; width: 8.5%; aspect-ratio: 1.12 / 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1; touch-action: none; cursor: grab;
                background: radial-gradient(circle at 40% 30%, #f6f6f4, #c9c9c5 72%); box-shadow: 0 6px 8px -3px #0006, inset 0 -3px 4px #0002; transition: left .08s linear; }
.device .bead:hover { filter: brightness(1.04); }
.device .bead:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.device .slot.dragging .bead { cursor: grabbing; transition: none; }
.device .slot.settle .bead { transition: left 1.1s cubic-bezier(.45,.05,.25,1); }
.device .slot.settle .glow { transition: opacity 1.4s ease; }
.device .dots { position: absolute; top: 17%; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.device .dots i { width: 4px; height: 4px; border-radius: 50%; background: #9a9a96; }
.device .power { position: absolute; bottom: 13%; left: 50%; transform: translateX(-50%); width: 6%; aspect-ratio: 1; border-radius: 22%; border: 1.5px solid #c4c4c0; }
.readout { display: flex; justify-content: space-between; align-items: baseline; margin-top: 44px; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); }
.readout strong { font-size: 26px; letter-spacing: .04em; font-weight: 500; transition: color .3s; }
.hint { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.readout span { transition: color .3s; }
#fCount.lit { color: var(--friction); }
#cCount.lit { color: var(--confident); }

/* ---------- 2. The silence: four sourced stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 60px; }
.stat { background: #0b0b0b; padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; min-height: 340px; }
.stat .big { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 8vw, 112px); line-height: .9; }
.stat p { color: var(--soft); line-height: 1.55; max-width: 460px; }
.stat .src { margin-top: auto; font-size: 12px; color: #666; letter-spacing: .02em; }
.stat .src a { text-decoration: underline; text-underline-offset: 3px; }
.timer-sub { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--friction); min-height: 1em; opacity: 0; transition: opacity .6s; }
.timer-sub.show { opacity: 1; }
.dotgrid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; max-width: 420px; }
.dotgrid i { aspect-ratio: 1; border-radius: 50%; background: #262626; transition: background .5s; }
.dotgrid i.on { background: var(--confident); }
.bars { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.bar { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 14px; font-size: 14px; color: var(--soft); }
.bar span:last-child { font-family: var(--display); font-size: 20px; color: var(--fg); text-align: right; }
.bar .fill { height: 10px; background: #1d1d1d; border-radius: 6px; overflow: hidden; }
.bar .fill b { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.in .bar .fill b { width: var(--w); }

.stat.cost { grid-column: 1 / -1; min-height: 0; background: linear-gradient(120deg, #1a0d0d, #0b0b0b 60%); }
.stat.cost .big { color: var(--friction); }
.stat.cost p { max-width: 720px; }
.stat .aside { color: var(--muted); font-size: 15px; }

/* ---------- 3. How a gap goes unnoticed ---------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 60px; position: relative; }
.chain::before { content: ""; position: absolute; top: 7px; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--fg), var(--friction)); transition: width 2.4s ease .2s; }
.chain.in::before { width: 100%; }
.chain li { list-style: none; padding: 34px 22px 0 0; position: relative; }
.chain li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #000; border: 2px solid var(--fg); }
.chain li:last-child::before { border-color: var(--friction); background: var(--friction); }
.chain .day { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.chain li:last-child .day { color: var(--friction); }
.chain h3 { font-size: 20px; margin-bottom: 8px; }
.chain p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.zone { margin-top: 28px; display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--friction); }

/* ---------- 3b. Teacher voices ---------- */
.voices { padding-top: 10vh; }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 48px 0 40px; }
.quotes li { background: #0b0b0b; padding: 26px 24px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; color: #e6e3dc; }
.voices .lede { max-width: 720px; }
.voices h2 .salutation { display: block; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; text-transform: none; font-size: clamp(22px, 2.2vw, 30px); color: var(--accent); letter-spacing: 0; margin-bottom: 10px; }
.voices .note { margin-top: 10px; }

/* ---------- 4. The insight ---------- */
.insight { text-align: center; padding-top: 22vh; padding-bottom: 22vh; }
.insight blockquote { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(42px, 7vw, 104px); line-height: .95; max-width: 1100px; margin: 0 auto; }
.insight blockquote em { font-style: normal; color: var(--accent); }
.insight .lede { margin: 30px auto 0; text-align: center; max-width: 620px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 80px auto 0; max-width: 1240px; text-align: left; border-top: 1px solid var(--line); }
.pillars div { padding: 28px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--line); }
.pillars div:last-child { border-right: 0; }
.pillars h3 { font-size: 20px; margin-bottom: 10px; }
.pillars p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- 5. The system ---------- */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.parts figure { display: flex; flex-direction: column; }
.parts .shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0d0d; }
.parts .shot > img { width: 100%; height: 100%; object-fit: cover; }
.parts .shot .tag { position: absolute; top: 14px; left: 14px; }
.parts figcaption { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.parts .num { font-family: var(--display); color: var(--accent); font-size: 13px; letter-spacing: .14em; }
.parts h3 { margin: 10px 0 8px; }
.parts p { color: var(--muted); line-height: 1.55; font-size: 15px; }
/* live mini heatmap */
.heat { position: absolute; inset: 0; padding: 7% 7% 7% 7%; display: grid; grid-template-columns: 1fr 34%; gap: 6%; background: #f6f7f8; color: #111827; font-family: var(--body); }
.heat .grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 5px; }
.heat .grid i { border-radius: 5px; background: var(--neutral); transition: background .8s ease; }
.heat .grid i.c { background: #A7F3D0; }
.heat .grid i.f { background: #FCA5A5; }
.heat .side { display: flex; flex-direction: column; gap: 6px; font-size: 10px; }
.heat .side .t { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: #9ca3af; text-transform: uppercase; }
.heat .side .avg { font-size: 26px; font-weight: 600; line-height: 1; }
.heat .nudge { background: #fff; border-left: 3px solid var(--friction); padding: 6px 8px; border-radius: 4px; box-shadow: 0 2px 8px #0000000f;
               opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.heat .nudge.show { opacity: 1; transform: none; }
.heat .nudge b { display: block; font-size: 11px; }
.heat .nudge span { color: #6b7280; font-size: 9px; }

.trust { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: 16px; }
.trust b { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; color: var(--fg); margin-right: 8px; }

/* ---------- 6. Sketch to product ---------- */
.process { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 2px; margin-top: 60px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.process figure { scroll-snap-align: start; position: relative; background: #0d0d0d; }
.process img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.process figcaption { padding: 16px 4px 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--soft); }
.process figcaption span { color: var(--accent); margin-right: 10px; }
.process figure .tag { position: absolute; top: 12px; left: 12px; }

/* ---------- 7. Comparison ---------- */
.compare-wrap { margin-top: 60px; overflow-x: auto; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 18px 12px; text-align: center; border-bottom: 1px solid #ffffff14; }
.compare th { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 500; color: var(--muted); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--soft); }
.compare .us { background: linear-gradient(180deg, #10b98114, #10b98108); color: var(--fg); }
.compare th.us { color: var(--confident); font-size: 15px; }
.compare tbody tr { opacity: 0; transform: translateX(-10px); transition: opacity .6s, transform .6s; }
.compare.in tbody tr { opacity: 1; transform: none; }
.mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.mk.full { background: var(--confident); }
.mk.part { background: linear-gradient(90deg, var(--soft) 50%, transparent 50%); border: 1.5px solid var(--soft); }
.mk.none { border: 1.5px solid #444; }
.mk.plan { border: 1.5px dashed var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.only { margin-top: 44px; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; }
.only em { font-style: normal; color: var(--confident); }

/* ---------- 8. Proof ---------- */
.proof { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: center; }
.proof img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures div { padding: 18px 26px 18px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.figures div:last-child { border-right: 0; }
.figures strong { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.figures span { display: block; margin-top: 6px; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted); }

.student-voices { margin-top: 12vh; }
.student-voices .quotes { margin: 22px 0 14px; }
.founder { padding-top: 6vh; padding-bottom: 10vh; }
.founder-row { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.founder-row img { width: clamp(96px, 11vw, 150px); aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 50%; filter: grayscale(.2) contrast(1.05); }
.founder blockquote { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 60px); line-height: 1; margin-bottom: 14px; }
.founder .label { color: var(--accent); }
.founder-line { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; font-weight: 300; color: #d0d0d0; max-width: 640px; margin-bottom: 16px; }

/* ---------- 9. Roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 60px; }
.phase { background: #0b0b0b; padding: 30px 26px 34px; position: relative; }
.phase .state { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); }
.phase.done .state { color: var(--fg); }
.phase.now { background: linear-gradient(180deg, #1a1712, #0b0b0b); box-shadow: inset 0 2px 0 var(--accent); }
.phase.now .state { color: var(--accent); }
.phase h3 { margin: 12px 0 16px; font-size: 26px; }
.phase ul { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--soft); font-size: 15px; }
.phase li::before { content: "—"; color: #555; margin-right: 8px; }

/* ---------- 10. Closing ---------- */
.closing { text-align: center; padding-top: 20vh; padding-bottom: 20vh; background: radial-gradient(ellipse at 50% 100%, #142019 0%, #000 65%); }
.closing h2 { max-width: 900px; margin: 0 auto 22px; }
.closing .lede { margin: 0 auto 40px; text-align: center; }
.closing .btn-row { justify-content: center; }
.sources { padding: 6vh var(--gutter) 8vh; border-top: 1px solid #111; }
.sources h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.sources ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: #777; font-size: 13px; line-height: 1.5; max-width: 900px; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
footer { padding: 34px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--display);
         text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); border-top: 1px solid #111; }

/* ---------- Video lightbox ---------- */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; width: min(1100px, 92vw); max-width: none; overflow: visible; }
.lightbox::backdrop { background: #000e; }
.lightbox .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lightbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox .close-lb { position: absolute; top: -48px; right: 0; background: none; border: 0; color: var(--fg); font-size: 34px; line-height: 1; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 8vh; }
  .hero .instrument { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .stats { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain::before { top: 0; left: 7px; width: 2px !important; height: 0; transition: height 2.4s ease .2s; }
  .chain.in::before { height: 100%; }
  .chain li { padding: 0 0 30px 40px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars div:nth-child(2) { border-right: 0; }
  .parts { grid-template-columns: 1fr; gap: 44px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top .btn { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillars div { border-right: 0; margin-right: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .road { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .founder-row { flex-direction: column; align-items: flex-start; }
  .figures { grid-template-columns: 1fr 1fr 1fr; }
  .figures div { padding-right: 12px; margin-right: 12px; }
  .bar { grid-template-columns: 96px 1fr 40px; }
  .stat { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .compare tbody tr { opacity: 1; transform: none; transition: none; }
}
