/* ==========================================================================
   Cranked — cranked-fitness.com
   Plain CSS. No framework, no build step.
   Palette and type scale documented in the approved design plan, 9 Aug 2026.
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'CrankedDisplay';
  src: url('../fonts/display.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CrankedBody';
  src: url('../fonts/body.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #000000;
  --y: #facc15;            /* the accent. four uses only. */
  --y-dim: #713f12;
  --fg: #f4f4f5;           /* 18.4:1 on black */
  --fg-2: #a1a1aa;         /* 8.2:1 on black */
  --line: #27272a;
  --surface: #18181b;
  --surface-2: #0a0a0a;

  --display: 'CrankedDisplay', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'CrankedBody', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: 20px;
  --maxw: 1180px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-h: 84px;
}

/* ---------- reset ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* keyboard focus — functional use of the accent, not decoration */
:focus-visible {
  outline: 3px solid var(--y);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--y); color: #000; padding: 14px 20px; font-weight: 700;
}
.skip:focus { left: 0; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: 88px 0; }
@media (min-width: 900px) { section { padding: 140px 0; } }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.86;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(58px, 16vw, 150px); }
h2 { font-size: clamp(40px, 10vw, 92px); }
h3 { font-size: clamp(26px, 6vw, 40px); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
.lede { color: var(--fg-2); font-size: clamp(17px, 4.4vw, 21px); max-width: 34ch; }
.eyebrow {
  font-family: var(--body);
  font-size: 16px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-2); margin: 0 0 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 28px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 19px; letter-spacing: 0.02em;
  border-radius: 14px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; width: 100%;
  transition: transform .12s ease;
}
@media (min-width: 640px) { .btn { width: auto; } }
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--y); color: #000; }      /* accent use 1 */
.btn-ghost { background: transparent; color: var(--fg-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-2); }

/* ==========================================================================
   1 — HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 56px; }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 38%, rgba(0,0,0,.88) 78%, #000 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; align-items: center; } }

/* the ghost number — signature element, appearance 1 */
.ghost {
  font-family: var(--body); font-size: 16px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
  margin: 0 0 6px;
}
.ghost-num { font-family: var(--display); font-weight: 800; color: var(--y); font-size: 30px; line-height: 1; }

/* scroll-driven reveal, modern browsers */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media img {
      animation: heroRise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 90%;
    }
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 38%;
    }
  }
}
@keyframes heroRise { from { transform: scale(1.12) translateY(-2%); } to { transform: scale(1) translateY(3%); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* IntersectionObserver fallback */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
    .reveal.is-in { opacity: 1; transform: none; }
  }
}

/* ==========================================================================
   2 — THE DEMO
   ========================================================================== */
.demo-shell { display: grid; gap: 34px; align-items: center; }
@media (min-width: 940px) { .demo-shell { grid-template-columns: 380px 1fr; gap: 72px; } }

.phone {
  width: 100%; max-width: 330px; margin: 0 auto;
  border: 2px solid var(--line); border-radius: 34px; background: #000;
  padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.9);
}
.phone-screen { border-radius: 26px; overflow: hidden; background: #000; }
.phone-chrome { width: 100%; display: block; }
.phone-body { padding: 16px 14px 18px; }

.set-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); }
.set-row .ghost { font-size: 13px; letter-spacing: .14em; margin-bottom: 4px; }
.set-row .ghost-num { font-size: 22px; }             /* accent use 3 — the numbers */

.inputs { display: flex; gap: 10px; margin-top: 12px; }
.field { flex: 1; position: relative; }
.field label {
  display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-2); font-weight: 700; margin-bottom: 5px;
}
.field input {
  width: 100%; min-height: 52px; background: #000; color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em;
  text-align: center;
}
.field input::placeholder { color: #52525b; }

.demo-log {
  margin-top: 12px; width: 100%; min-height: 50px;
  background: transparent; color: var(--fg); border: 1px solid var(--line);
  border-radius: 12px; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; font-size: 17px; letter-spacing: .04em; cursor: pointer;
}
.demo-log:hover { border-color: var(--fg-2); }

.pb-flag {
  margin-top: 12px; display: none; align-items: center; gap: 8px;
  background: var(--y); color: #000;                    /* accent use 2 — the PB moment */
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 16px; letter-spacing: .04em; padding: 10px 14px; border-radius: 10px;
}
.pb-flag.show { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) {
  .pb-flag.show { animation: pbIn .42s cubic-bezier(.2,.8,.3,1) both; }
}
@keyframes pbIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.demo-hint { color: var(--fg-2); font-size: 16px; text-align: center; margin: 16px 0 0; }
.history { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.history li {
  list-style: none; display: flex; justify-content: space-between;
  font-size: 16px; color: var(--fg-2); padding: 6px 0;
}
.history ul { margin: 0; padding: 0; }
.history li b { font-family: var(--display); font-weight: 800; color: var(--fg); font-size: 18px; }
.history li.is-pb b { color: var(--y); }

/* ==========================================================================
   3 — THREE TRUTHS
   ========================================================================== */
.truths { display: grid; gap: 8px; margin-top: 44px; }
@media (min-width: 900px) { .truths { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.truth { border-top: 1px solid var(--line); padding: 26px 0 8px; }
@media (min-width: 900px) { .truth { padding: 26px 0 0; } }
.truth h3 { margin-bottom: 12px; }
.truth p { color: var(--fg-2); margin: 0; }

/* ==========================================================================
   4 — THE LEDGER
   ========================================================================== */
.ledger-form { display: grid; gap: 14px; margin: 34px 0 12px; }
@media (min-width: 700px) { .ledger-form { grid-template-columns: repeat(3, 1fr) auto; align-items: end; } }
@media (min-width: 700px) { #lg-extra.ledger-form { grid-template-columns: repeat(3, 1fr); } }
.sel, .num {
  width: 100%; min-height: 56px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 17px;
  font-family: var(--body);
}
.num { font-family: var(--display); font-weight: 800; font-size: 24px; }

.toggles { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.toggle {
  min-height: 48px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--fg-2);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.toggle[aria-pressed="true"] { border-color: var(--y-dim); color: var(--fg); background: rgba(250,204,21,.06); }
.toggle:hover { color: var(--fg); }

.board { border-top: 1px solid var(--line); margin-top: 20px; }
.board-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.board-row .who { font-size: 17px; color: var(--fg-2); }
.board-row .val { font-family: var(--display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.board-row.you .who, .board-row.you .val { color: var(--y); }   /* accent use 3 */
.board-row.you .who { font-weight: 700; }

.ledger-note { color: var(--fg-2); font-size: 16px; margin-top: 18px; max-width: 62ch; }
.ledger-note a { color: var(--fg-2); }

@media (prefers-reduced-motion: no-preference) {
  .board-row { transition: transform .5s cubic-bezier(.2,.8,.3,1); }
}

/* ==========================================================================
   5 — HOW A SESSION GOES
   ========================================================================== */
.steps { counter-reset: s; margin: 44px 0 0; padding: 0; }
.step {
  list-style: none; counter-increment: s;
  border-top: 1px solid var(--line); padding: 30px 0;
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-weight: 900; font-size: 32px;
  color: var(--fg-2); line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--fg-2); margin: 0; }

/* ==========================================================================
   6 — THE LIBRARY
   ========================================================================== */
.count { font-family: var(--display); font-weight: 900; font-size: clamp(80px, 26vw, 220px); line-height: .8; color: var(--y); } /* accent use 3 */
.marquee { overflow: hidden; margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 68s linear infinite; }
  .marquee-b .marquee-track { animation-duration: 84s; animation-direction: reverse; }
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 26px; letter-spacing: -0.01em; color: var(--y); white-space: nowrap; opacity: .9;
}
.marquee-b { border-top: 0; }
.marquee-b .marquee-track span { color: var(--fg-2); opacity: .55; }

/* ==========================================================================
   7 — FOUNDING MEMBERS
   ========================================================================== */
.quiet { border: 1px solid var(--line); border-radius: 20px; padding: 36px 26px; background: var(--surface-2); margin-top: 34px; }
.quiet p { color: var(--fg-2); max-width: 46ch; }
.quiet p:last-child { margin-bottom: 0; }

/* ==========================================================================
   8 — QUESTIONS
   ========================================================================== */
.qa { margin-top: 40px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 5vw, 27px); letter-spacing: -0.01em; min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 30px; color: var(--fg-2); font-weight: 400; line-height: 1;
}
.qa details[open] summary::after { content: '\2212'; }
.qa .answer { padding: 0 0 24px; color: var(--fg-2); max-width: 62ch; }

/* ==========================================================================
   9 — DOWNLOAD
   ========================================================================== */
.final { text-align: left; }
.final .ghost-block { margin-bottom: 26px; }
.qr { margin-top: 26px; display: none; align-items: center; gap: 16px; }
.qr.show { display: flex; }
.qr img, .qr canvas { width: 132px; height: 132px; background: #fff; padding: 8px; border-radius: 10px; }
.qr p { color: var(--fg-2); font-size: 16px; margin: 0; max-width: 22ch; }

/* ---------- sticky bar ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(0,0,0,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  transform: translateY(120%);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.sticky.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }
.sticky-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.sticky .btn { flex: 1; min-height: 52px; font-size: 18px; }
.sticky .word { display: none; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 24px; letter-spacing: -0.01em; }
@media (min-width: 700px) { .sticky .word { display: block; } .sticky .btn { flex: 0 0 auto; margin-left: auto; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 24px 0 calc(92px + var(--safe-b)); }
footer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
footer nav { display: flex; gap: 24px; }
footer a { color: var(--fg-2); text-decoration: none; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--fg); text-decoration: underline; }
footer .mark { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 20px; letter-spacing: -0.01em; }
footer small { color: var(--fg-2); font-size: 16px; margin-left: auto; }
@media (max-width: 620px) { footer small { margin-left: 0; flex-basis: 100%; } }

/* ---------- legal pages ---------- */
.legal { padding-top: 56px; }
.legal h1 { font-size: clamp(44px, 12vw, 92px); margin-bottom: 26px; }
.legal h2 { font-size: clamp(24px, 6vw, 34px); margin: 44px 0 12px; }
.legal p, .legal li { color: var(--fg-2); max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg-2); text-decoration: none; font-size: 17px; }
.back:hover { color: var(--fg); }

/* ---------- view transitions between pages ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- reduced motion, global stop ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
}


/* ==========================================================================
   PHOTOGRAPHY — added 10 Aug 2026 after review
   ========================================================================== */

/* full-bleed band between sections */
.band { width: 100%; overflow: hidden; }
.band img { width: 100%; height: 52vw; max-height: 620px; object-fit: cover; }
@media (min-width: 900px) { .band img { height: 42vw; } }

/* text beside a picture */
.split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
  .split-reverse > *:first-child { order: 2; }
  .split-reverse > *:last-child { order: 1; }
}
.split-media img { width: 100%; height: auto; border-radius: 18px; }
.split-media.square img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 900px) {
  .sticky-media { position: sticky; top: 8vh; }
}

/* section 9 sits over a photograph */
.final-sec { position: relative; overflow: hidden; }
.final-media { position: absolute; inset: 0; z-index: 0; }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.final-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.72) 34%, rgba(0,0,0,.86) 70%, #000 100%);
}
.final-sec .wrap { position: relative; z-index: 1; }

/* ==========================================================================
   DEMO — end workout and the completion screen, mirroring the app
   ========================================================================== */
.demo-end {
  margin-top: 14px; width: 100%; min-height: 48px;
  background: transparent; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 16px; letter-spacing: .06em; cursor: pointer;
}
.demo-end:hover { color: var(--fg); border-color: var(--fg-2); }

.phone-screen { position: relative; }
.complete { position: absolute; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 3; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.complete-card {
  position: relative; z-index: 2; width: 100%;
  background: var(--surface); border: 2px solid var(--y); border-radius: 18px;
  padding: 20px 18px; text-align: center;
}
.complete-time {
  display: inline-block; background: #000; border: 3px solid var(--y);
  border-radius: 14px; padding: 8px 20px; margin-bottom: 12px;
}
.complete-time p { margin: 0; }
.complete-time p:first-child {
  font-size: 16px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-2); font-weight: 700;
}
.complete-time .t { font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--y); line-height: 1.05; }
.complete-card h3 { font-size: 22px; margin-bottom: 6px; }
.complete-sum { color: var(--fg-2); font-size: 16px; margin: 0 0 14px; }
.pb-line {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: rgba(250,204,21,.08); border: 1px solid var(--y-dim);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 16px;
}
.pb-line .star { color: var(--y); }
.pb-line span:not(.star) { flex: 1; min-width: 0; }
.pb-line b { margin-left: auto; color: var(--y); font-family: var(--display); font-weight: 800; font-size: 18px; white-space: nowrap; }
.complete-card .btn { margin-top: 6px; min-height: 48px; font-size: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .complete { animation: fadeIn .28s ease both; }
  .complete-card { animation: cardIn .34s cubic-bezier(.2,.8,.3,1) both; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.demo-hint { color: var(--fg-2); font-size: 16px; margin: 16px 0 0; }

/* ==========================================================================
   REBUILD — 10 Aug 2026, after Kelvin's review
   ========================================================================== */

/* ---------- hero: give the top some air, let it grow past the fold ------- */
.hero {
  min-height: 100svh;
  padding-top: clamp(84px, 14svh, 160px);
  padding-bottom: clamp(40px, 7svh, 80px);
  align-items: stretch;
}
.hero-media::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.5) 16%, rgba(0,0,0,0) 34%);
}
.hero-inner { display: grid; gap: 34px; align-content: start; }
@media (min-width: 940px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; align-content: center; }
  .hero { align-items: center; }
}
.hero-copy { align-self: center; }

/* ---------- the phone ---------------------------------------------------- */
.device { width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 940px) { .device { max-width: 330px; margin: 0 0 0 auto; } }

.device-frame {
  position: relative;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(150deg, #3f3f46 0%, #18181b 22%, #0a0a0a 52%, #18181b 82%, #52525b 100%);
  box-shadow: 0 40px 90px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.05);
}
.device-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}
/* side buttons */
.device-frame::before, .device-frame::after {
  content: ''; position: absolute; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #3f3f46, #18181b);
}
.device-frame::before { left: -3px; top: 27%; height: 8%; }
.device-frame::after  { right: -3px; top: 24%; height: 13%; }

/* status bar drawn properly, not a bitmap */
.status {
  position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; pointer-events: none;
}
.status .clock {
  font-family: var(--body); font-size: 16px; font-weight: 600;
  color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  transform: translateY(2px);
}
.status .icons { display: flex; align-items: center; gap: 6px; transform: translateY(2px); }
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 30px; border-radius: 16px; background: #000; z-index: 5;
}
.home-bar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 122px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); z-index: 5;
}

/* ---------- carousel inside the phone ------------------------------------ */
.slides {
  position: absolute; inset: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; }
.slide-app { padding: 52px 12px 22px; height: 100%; overflow: hidden; }

.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dots button i {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background .2s, width .2s;
}
.dots button[aria-current="true"] i { background: var(--y); width: 22px; border-radius: 4px; }

/* ---------- app screens replicated inside the phone ---------------------- */
.ap-head { border-bottom: 2px solid var(--y); padding: 0 4px 10px; margin-bottom: 12px; }
.ap-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.ap-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 17px; letter-spacing: 0.01em; }
.ap-btns { display: flex; gap: 5px; }
.ap-pill {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 10px; letter-spacing: .1em; border-radius: 9px; padding: 6px 8px;
}
.ap-pill.out { border: 2px solid var(--y); color: var(--y); }
.ap-pill.solid { background: var(--y); color: #000; }
.ap-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ap-hud div { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 4px 0; text-align: center; }
.ap-hud p { margin: 0; }
.ap-hud .k { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); font-weight: 700; }
.ap-hud .v { font-family: var(--display); font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.ap-hud .v.y { color: var(--y); }

.ap-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px; margin: 0 4px 9px; }
.ap-ex { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 14px; margin-bottom: 7px; }
.ap-last { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); font-weight: 700; }
.ap-lastv { font-family: var(--display); font-weight: 800; color: var(--y); font-size: 16px; margin: 1px 0 7px; }
.ap-inputs { display: flex; gap: 6px; }
.ap-inputs div {
  flex: 1; background: #000; border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 0; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 17px;
}
.ap-inputs div span { display: block; font-family: var(--body); font-size: 9px; letter-spacing: .16em; color: var(--fg-2); font-weight: 700; }
.ap-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-2); padding: 4px 0; }
.ap-row b { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--fg); }

.ap-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); background: rgba(0,0,0,.94); padding: 8px 0 18px;
}
.ap-nav span { text-align: center; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--fg-2); }
.ap-nav span.on { color: var(--y); }

/* ---------- horizontal steps -------------------------------------------- */
.steps-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 22px; margin-top: 40px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.steps-rail::-webkit-scrollbar { display: none; }
.stepcard {
  flex: 0 0 78%; scroll-snap-align: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 20px 26px; min-height: 220px; display: flex; flex-direction: column;
}
@media (min-width: 700px) { .stepcard { flex-basis: 40%; } }
@media (min-width: 1050px) { .stepcard { flex-basis: 0; flex-grow: 1; min-width: 0; } .steps-rail { overflow: visible; } }
.stepcard .n {
  font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1;
  color: var(--y); margin-bottom: 14px;
}
.stepcard h3 { font-size: 24px; margin-bottom: 10px; }
.stepcard p { color: var(--fg-2); margin: 0; font-size: 16px; }
.swipe-hint { color: var(--fg-2); font-size: 16px; margin: 0; }
@media (min-width: 1050px) { .swipe-hint { display: none; } }

/* ---------- quiet source disclosure ------------------------------------- */
.src { margin-top: 18px; }
.src summary {
  list-style: none; cursor: pointer; color: var(--fg-2); font-size: 16px;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}
.src summary::-webkit-details-marker { display: none; }
.src summary::after { content: '+'; color: var(--fg-2); font-size: 20px; }
.src[open] summary::after { content: '\2212'; }
.src .body { color: var(--fg-2); font-size: 16px; max-width: 62ch; padding-top: 6px; }

/* ==========================================================================
   ROUND 3 — 10 Aug 2026
   ========================================================================== */

/* ---------- tighter rhythm between sections ----------------------------- */
section { padding: 62px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }

/* ---------- top bar with the wordmark ----------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 95;
  padding: 12px 0; transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-style: italic; letter-spacing: -0.02em; font-size: 27px; color: var(--y);
  text-decoration: none; line-height: 1; display: inline-flex; align-items: center;
  min-height: 44px;
}
.topbar .nav-cta {
  min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 10px;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: .04em; background: var(--y); color: #000; text-decoration: none;
  display: inline-flex; align-items: center;
}
@media (max-width: 600px) { .topbar .nav-cta { display: none; } }

/* ---------- hero: text above the fold, phone peeking below --------------- */
.hero { padding-top: clamp(96px, 15svh, 170px); align-items: start; }
.hero h1 { font-size: clamp(50px, 14.5vw, 150px); }
.hero .lede { font-size: clamp(16px, 4.2vw, 21px); }
.hero-inner { gap: 26px; }
@media (min-width: 940px) { .hero-inner { gap: 60px; align-items: center; } .hero { align-items: center; } }

/* the background is the carousel now */
.hero-media .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-media .layer.on { opacity: 1; }
.hero-media .layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (prefers-reduced-motion: reduce) { .hero-media .layer { transition: none; } }

/* ---------- a section layered over a photograph -------------------------- */
.layered { position: relative; overflow: hidden; }
.layered > .bg { position: absolute; inset: 0; z-index: 0; }
.layered > .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.layered > .bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.7) 60%, #000 100%);
}
@media (min-width: 900px) {
  .layered > .bg::after {
    background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 42%, rgba(0,0,0,.35) 78%, rgba(0,0,0,.55) 100%);
  }
}
.layered .wrap { position: relative; z-index: 1; }
.layered .holder { max-width: 34rem; }

/* form guide list */
.fg-list { margin: 30px 0 0; padding: 0; }
.fg-list li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  border-top: 1px solid var(--line); padding: 18px 0;
}
.fg-list li b { color: var(--fg); display: block; margin-bottom: 3px; font-weight: 700; }
.fg-list li span.t { color: var(--fg-2); font-size: 16px; }
.fg-list li .mark {
  flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--y-dim);
  color: var(--y); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px;
}

/* ---------- more app screens inside the phone ---------------------------- */
.ap-brand { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 24px; color: var(--y); line-height: 1; }
.ap-date { font-size: 11px; color: var(--fg-2); margin: 3px 0 0; }
.ap-units { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.ap-units span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; color: var(--fg-2); }
.ap-units span.on { background: var(--y); color: #000; }
.ap-cta { background: var(--y); color: #000; border-radius: 11px; text-align: center; padding: 11px 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; margin: 14px 0 16px; }
.ap-label { font-size: 10px; font-weight: 900; color: var(--y); text-transform: uppercase; letter-spacing: .2em; margin: 0 4px 8px; }
.ap-work { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin: 0 4px 7px; }
.ap-work b { display: block; font-size: 13px; font-weight: 700; }
.ap-work span { font-size: 10px; color: var(--fg-2); }

.ap-fg-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 4px 9px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ap-fg-head b { font-size: 14px; font-weight: 800; display: block; }
.ap-fg-head span { font-size: 10px; color: var(--y); letter-spacing: .06em; }
.ap-fg-video { aspect-ratio: 3/4; background: #050505; border: 1px solid var(--line); border-radius: 12px; margin: 0 4px 10px; display: grid; place-items: center; overflow: hidden; }
.ap-fg-video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ap-step { display: flex; gap: 8px; margin: 0 4px 7px; align-items: flex-start; }
.ap-step i { flex: none; width: 17px; height: 17px; border-radius: 5px; background: var(--y); color: #000; font-style: normal; font-size: 10px; font-weight: 900; display: grid; place-items: center; margin-top: 1px; }
.ap-step span { font-size: 11px; color: var(--fg); line-height: 1.35; }

/* ==========================================================================
   ROUND 4 — 10 Aug 2026: screen-height sections, snap, denser rhythm
   ========================================================================== */

/* every section is at least one screen, content vertically centred, and the
   dead space between them is now padding rather than empty runway */
section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}
@media (min-width: 900px) { section { padding: 80px 0; } }
section > .wrap { width: 100%; }
.hero { min-height: 100svh; }

/* snap, on pointer devices with room for it. proximity, never mandatory, so a
   long section can still be read at its own pace. */
@media (min-width: 900px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; scroll-padding-top: 72px; }
  section, .hero { scroll-snap-align: start; scroll-snap-stop: normal; }
}

/* ---------- top bar: icon + wordmark + what it is ------------------------ */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand .names { display: flex; flex-direction: column; gap: 1px; }
.brand .names .n { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.02em; font-size: 25px; color: var(--y); line-height: .95; }
.brand .names .s { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); line-height: 1; }

/* ---------- demo: let the phone breathe --------------------------------- */
.demo-shell { margin-top: 46px; }
@media (min-width: 940px) { .demo-shell { margin-top: 58px; } }

/* ---------- founding members card, two columns -------------------------- */
.quiet { display: grid; gap: 26px; }
@media (min-width: 820px) { .quiet { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 44px 40px; } }
.quiet .say p:last-child { margin-bottom: 0; }
.free-list { margin: 0; padding: 0; display: grid; gap: 10px; }
.free-list li {
  list-style: none; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #000;
  font-size: 16px;
}
.free-list li .tick { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--y); color: #000; font-weight: 900; font-size: 13px; display: grid; place-items: center; }

/* ---------- parallax / orbit background layers --------------------------- */
.deep { position: relative; overflow: hidden; }
.deep > .deepbg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.deep > .deepbg img, .deep > .deepbg video { width: 100%; height: 100%; object-fit: cover; }
.deep > .deepbg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.86) 55%, #000 100%);
}
.deep > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .deep > .deepbg { transform: none !important; } }

/* keep the demo inside one screen on a laptop */
@media (min-width: 940px) {
  .phone { max-width: 286px; }
  .demo-shell { margin-top: 40px; grid-template-columns: 330px 1fr; }
}
.quiet { align-items: start; }
@media (min-width: 820px) { .quiet { align-items: center; } }

/* ==========================================================================
   ROUND 5 — 10 Aug 2026
   ========================================================================== */

/* section was a flex ROW, which threw the marquees out beside the content.
   Stack them, and let each child hold the full width. */
section { flex-direction: column; justify-content: center; }
section > *:not(.deepbg):not(.bg) { width: 100%; }

/* scroll snapping removed. With sections that are not all exactly one screen
   tall it takes control away from the reader and drags the page back near the
   bottom, which is exactly what happened. Natural scrolling, smooth anchors. */
@media (min-width: 900px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: none; }
  section, .hero { scroll-snap-align: none; }
}

/* ---------- hero fits a laptop screen ----------------------------------- */
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 0.9; }
@media (max-width: 939px) { .hero h1 { font-size: clamp(46px, 13vw, 86px); } }
.hero .lede { margin-bottom: 24px; max-width: 30ch; }
.hero { padding-top: clamp(88px, 12svh, 130px); padding-bottom: clamp(28px, 5svh, 56px); }
.hero-cta .btn { min-height: 52px; font-size: 17px; }

/* ---------- library, rebuilt -------------------------------------------- */
.count { font-size: clamp(64px, 12vw, 132px); line-height: .82; margin: 0 0 8px; }
.lib-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .lib-grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; } }
.marquee { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.marquee-track span { font-size: clamp(20px, 3.4vw, 30px); }

/* ---------- language switcher ------------------------------------------- */
.topbar .right { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 10px 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--fg);
  font-size: 15px; font-weight: 700; background: rgba(0,0,0,.4);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--fg-2); }
.lang > summary::after { content: '▾'; color: var(--fg-2); font-size: 13px; }
.lang .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: #0a0a0a; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; z-index: 99; box-shadow: 0 20px 50px rgba(0,0,0,.9);
}
.lang .menu a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  color: var(--fg-2); text-decoration: none; border-radius: 8px; font-size: 16px;
}
.lang .menu a:hover { background: var(--surface); color: var(--fg); }
.lang .menu a[aria-current="true"] { color: var(--y); }
.lang .menu a .code { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #71717a; margin-left: auto; }
@media (max-width: 520px) { .lang > summary { padding: 10px; } .lang > summary .word { display: none; } }

/* ==========================================================================
   ROUND 6 — hero sized against the height of the screen, not just the width
   ========================================================================== */
.hero { padding-top: clamp(72px, 8svh, 118px); padding-bottom: clamp(20px, 3svh, 44px); }
.hero h1 {
  font-size: clamp(34px, min(7vw, 10.5svh), 86px);
  line-height: 0.88;
  margin-bottom: clamp(10px, 1.8svh, 22px);
}
.hero .lede {
  font-size: clamp(15px, min(1.35vw, 2.4svh), 20px);
  line-height: 1.5;
  max-width: 32ch;
  margin-bottom: clamp(14px, 2.4svh, 26px);
}
.hero-cta { gap: 10px; }
.hero-cta .btn { min-height: 48px; padding: 12px 22px; font-size: clamp(15px, 2svh, 18px); }
@media (max-width: 939px) {
  .hero h1 { font-size: clamp(38px, min(12vw, 9svh), 78px); }
  .hero .lede { font-size: clamp(15px, min(4vw, 2.2svh), 18px); }
}
/* very short windows: drop the sub-copy to two lines and tighten everything */
@media (max-height: 720px) and (min-width: 940px) {
  .hero .lede { max-width: 40ch; }
  .brand .names .n { font-size: 21px; }
  .topbar { padding: 8px 0; }
}
