:root {
  --field: #D9D9D9; --panel: #F2F2F2; --paper: #FFFFFF; --ink: #1D1D1D; --ink-2: #6B6B6B;
  --chip: rgba(242, 242, 242, 0.72);
  --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--field); color: var(--ink);
  font: 400 1.0625rem/1.5 "Space Grotesk", system-ui, sans-serif; letter-spacing: 0;
  font-optical-sizing: auto;
}
#stage { display: none; } /* offscreen renderer; each view is copied into its own canvas in the page */
.slot canvas, .corner-slot canvas { display: block; width: 100%; height: 100%; }
#stage[hidden] { display: none; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
a { color: inherit; }

/* floating chips */
.chips { position: fixed; z-index: 10; top: 16px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; pointer-events: none; }
.chip {
  pointer-events: auto; text-decoration: none; text-transform: uppercase; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.04em; padding: 10px 14px; background: var(--chip); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.chip:hover, .chip:active { background: var(--ink); color: var(--panel); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* stage */
.intro { position: relative; z-index: 2; padding: 112px 0 56px; }
.stage { position: relative; z-index: 2; }
h1 {
  margin: 0; font-weight: 500; font-size: clamp(1.9rem, 3.7vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em;
  max-width: 24ch;
}
/* POWER UP drawn in code characters (built in main.js) */
.pu { margin: 0 0 40px; padding-right: 130px; } /* clear of the fixed corner computer */
@media (max-width: 699px) { .pu { padding-right: 80px; } }
.pu canvas { display: block; }
.sub { margin: 20px 0 0; max-width: 56ch; color: var(--ink-2); }
@media (min-width: 900px) { h1 { max-width: none; } }

.packages { display: grid; gap: 12px; padding-top: 12px; padding-bottom: 56px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .packages { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.pkg {
  appearance: none; background: transparent; border: 0; border-radius: 0; font: inherit; color: inherit; text-align: center;
  padding: 16px 16px 28px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  -webkit-tap-highlight-color: transparent; outline: 1px solid transparent; outline-offset: 0;
}
@media (hover: hover) { .pkg:hover { outline: 1px solid var(--ink); } }
.pkg:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.pkg:active { outline: 1px solid var(--ink); }
.slot { display: block; width: 100%; height: clamp(240px, 38vh, 400px); }
@media (max-width: 699px) { .slot { height: 44svh; min-height: 260px; } .pkg { min-height: 72svh; justify-content: center; } }
.no-webgl .slot { height: 24px; min-height: 0; }
.no-webgl .pkg { min-height: 0; }
.pkg-name { text-transform: uppercase; font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.03em; margin-top: 8px; }
.pkg-one { color: var(--ink-2); max-width: 32ch; }
.pkg-price { font-weight: 500; margin-top: 6px; }

/* sections */
.how, .learn, .foot { position: relative; z-index: 3; }
.how { background: var(--paper); border-top: 1px solid var(--ink); padding: 56px 0 72px; }
.how-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 2fr; gap: 40px; } }
h2 { margin: 0; font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 10px; }
.steps p { margin: 0; max-width: 34ch; }
.steps .n { font-weight: 500; color: var(--ink-2); }
@media (max-width: 899px) { .steps li { padding: 14px 0 18px; } }
.learn { background: var(--ink); color: var(--panel); padding: 64px 0 72px; }
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 60ch; }
.learn-list li { border-top: 1px solid rgba(242, 242, 242, 0.35); padding: 14px 0; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.foot { background: var(--panel); border-top: 1px solid var(--ink); padding: 40px 0 48px; }
.foot-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr; } .foot .credit { grid-column: 1 / -1; } }
.foot p { margin: 0; max-width: 64ch; }
.foot .credit { color: var(--ink-2); font-size: 0.875rem; }

/* square outlined button */
.btn {
  display: inline-block; justify-self: start; text-decoration: none; font-weight: 500; padding: 14px 20px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); width: fit-content;
}
.btn:hover, .btn:active { background: var(--ink); color: var(--panel); }
.btn.solid { background: var(--ink); color: var(--panel); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* sheet */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(29, 29, 29, 0.45); opacity: 0; }
.sheet {
  position: fixed; z-index: 21; left: 50%; bottom: 0; width: min(720px, 100%); max-height: 88vh; max-height: 88dvh; margin-left: calc(min(720px, 100%) / -2);
  background: var(--panel); color: var(--ink); overflow: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--ink); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18); will-change: transform;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet:focus { outline: none; }
.sheet-head { position: sticky; top: 0; background: var(--panel); padding: 22px var(--gut) 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; touch-action: none; cursor: grab; }
.sheet-head h2 { text-transform: uppercase; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; }
.grabber { position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; background: var(--ink-2); opacity: 0.5; }
.close { appearance: none; border: 1px solid var(--ink); background: transparent; border-radius: 0; font: inherit; font-weight: 500; padding: 6px 12px; color: var(--ink); cursor: pointer; }
.close:hover { background: var(--ink); color: var(--panel); }
.sheet-body { padding: 0 var(--gut) 28px; }
.sheet-one { margin: 0 0 18px; color: var(--ink-2); max-width: 56ch; }
.facts { margin: 0 0 18px; display: grid; gap: 0; }
.facts div { border-top: 1px solid var(--ink); padding: 10px 0; display: grid; grid-template-columns: 9rem 1fr; gap: 12px; }
.facts dt { color: var(--ink-2); } .facts dd { margin: 0; }
h3 { margin: 0 0 8px; font-weight: 500; font-size: 1rem; }
.includes { margin: 0 0 24px; padding: 0; list-style: none; }
.includes li { border-top: 1px solid var(--ink); padding: 10px 0; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 18px; }
.sheet-note { margin: 16px 0 0; font-size: 0.875rem; color: var(--ink-2); max-width: 60ch; }
.price { margin: 0; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; }

@media (prefers-reduced-transparency: reduce) { .chip { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sheet { will-change: opacity; } }

/* founders strip */
.founders { margin-top: 36px; max-width: 760px; }
.founders-label { margin: 0 0 10px; font-size: 0.8125rem; color: var(--ink-2); letter-spacing: 0.02em; }
.founder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .founder-list { grid-template-columns: 1fr 1fr; } }
.founder { border-top: 1px solid var(--ink); }
@media (max-width: 699px) { .founder:last-child { order: -1; } }
.founder-btn {
  appearance: none; background: transparent; border: 0; border-radius: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 0; -webkit-tap-highlight-color: transparent;
}
.founder-btn img { width: 56px; height: 56px; object-fit: cover; border-radius: 0; filter: grayscale(1); display: block; flex: none; }
.founder-text { display: grid; gap: 2px; }
.founder-name { font-weight: 500; }
.founder-role { color: var(--ink-2); font-size: 0.9375rem; }
.founder-btn::after { content: "+"; margin-left: auto; font-weight: 500; color: var(--ink-2); padding-right: 4px; }
.founder-btn[aria-expanded="true"]::after { content: "\2212"; }
.founder-btn:hover .founder-name { text-decoration: underline; text-underline-offset: 3px; }
.bio { overflow: hidden; }
.bio p { margin: 0; padding: 2px 0 18px; max-width: 52ch; color: var(--ink); }

/* scroll story */
.story { position: relative; z-index: 2; }
.story { overflow-x: clip; }
.js .story { pointer-events: none; } /* overlaps founders and packages; only boxes take taps */
.chapter { position: relative; display: flex; align-items: center; padding: 12px 0; }
/* with JS: a pinned stage, the boxes sit in its middle and only the wheel transform moves them (height set in main.js) */
.js .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.js .chapter { position: absolute; inset: 0; padding: 0; pointer-events: none; }
.js .chapter .box { pointer-events: auto; }
.box { width: min(560px, 100%); margin: 0 auto; padding: 28px 28px 24px; background: var(--b, #F2F2F2); will-change: transform; }
#ch-a { --b: #F2F2F2; } #ch-b { --b: #E6E6E6; } #ch-c { --b: #FFFFFF; } #ch-d { --b: #C9C9C9; } #ch-e { --b: #EDEDED; }
.js .box { visibility: hidden; }
.box h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.box p { margin: 0 0 14px; }
.box .key { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 18px; }
.box .big { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 8px; }
.box .zm { margin-top: 22px; }
.box .src { margin-top: 18px; font-size: 0.875rem; color: #4A4A4A; }
.box .src a { text-underline-offset: 3px; }
.more { appearance: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.more:hover { background: var(--ink); color: var(--panel); }
.plus { position: relative; width: 16px; height: 16px; display: block; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; left: 0; top: 7.5px; width: 16px; height: 1px; }
.plus::after { transform: rotate(90deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.extra { overflow: hidden; }
.extra > :first-child { margin-top: 18px; }
.extra > :last-child { margin-bottom: 0; }
@media (max-width: 699px) { .box { padding: 22px 20px 20px; } .wrap:has(> .box) { padding: 0 16px; } }
.bars { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 6.5rem 1fr 3.5rem; gap: 12px; align-items: center; }
.bar-track { display: block; height: 22px; }
.bar { display: block; height: 100%; border: 1px solid var(--ink); background: transparent; transform-origin: left center; }
.bar.solid { background: var(--ink); }
.bar-val { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .bars li { grid-template-columns: 5.2rem 1fr 3.2rem; gap: 8px; } }
.seq { list-style: none; margin: 4px 0 0; padding: 0; }
.seq li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding-bottom: 38px; font-size: 1.125rem; }
.seq li:last-child { padding-bottom: 0; }
.seq .n { width: 32px; height: 32px; border: 1px solid var(--ink); display: grid; place-items: center; font-weight: 500; font-size: 0.9375rem; }
.seq li > span:last-child { padding-top: 3px; }
.step-arrow { position: absolute; left: 4px; top: 34px; width: 24px; height: 36px; overflow: visible; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { border-top: 1px solid var(--ink); padding: 12px 0; }
.tasks li:last-child { border-bottom: 1px solid var(--ink); }
.step-arrow path { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* corner computer */
.corner { position: fixed; z-index: 6; top: 72px; right: var(--gut); width: 120px; pointer-events: none; text-align: right; }
.corner-slot { width: 120px; height: 120px; }
.corner { opacity: 0; }
@media (max-width: 699px) { .corner { width: 96px; top: 68px; } .corner-slot { width: 72px; height: 72px; margin-left: auto; } }
