/* SLYYCE landing — the web expression of the product's r04 "Splitscreen / Cut" system.
   Dark at play. Paper for reading. One yellow seam between them. Square corners on every product surface;
   the only cut corners are the product's own. Motion: one orchestrated entrance per page, quiet reveals
   on scroll, feedback on touch. Nothing loops. Reduced motion gets the final state at once. */

/* Latin subsets as WOFF (built with fontTools from the OFL originals kept alongside); the full TTFs remain as fallback. */
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-Regular.woff") format("woff"), url("assets/fonts/ChakraPetch-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-SemiBold.woff") format("woff"), url("assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-Bold.woff") format("woff"), url("assets/fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("assets/fonts/MartianMono-Variable.woff") format("woff"), url("assets/fonts/MartianMono-Variable.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --stage: #0d0d12; --raised: #15151b; --line: #2c2d36; --line-strong: #5b6070;
  --on-stage: #ffffff; --on-stage-2: #c3c3cb; --on-stage-3: #a4a4b0;
  --paper: #e6e8ec; --card: #ffffff; --ink: #14151a; --ink-2: #5b6070; --paper-line: #cfd3da;
  --crust: #ffd23f; --crust-hi: #ffdc62; --crust-ink: #725700; --social: #6c3be0; --social-text: #b79bff; --social-ink: #5b2fc4;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --hud: "Martian Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --wrap: 1120px;
  --top-h: 56px;
  --phone-h: clamp(560px, calc(100vh - 176px), 920px);   /* the in-page phone: as tall as the viewport allows under the header, head row and hint */
  --cut: 14px;                                   /* the product's cut corner */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);     /* arriving: decelerate */
  --ease-in: cubic-bezier(0.5, 0, 0.9, 0.4);      /* leaving: accelerate */
  --d-fast: 160ms; --d-base: 320ms; --d-slow: 480ms; --d-hero: 720ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stage); color: var(--ink); font: 400 17px/1.5 var(--display); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption, dd { text-wrap: pretty; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--crust); outline-offset: 3px; }
.paper :focus-visible, .hero-copy :focus-visible, .tour-panel :focus-visible { outline-color: var(--crust-ink); }  /* yellow on paper is ~1.2:1; dark gold reads */
[hidden] { display: none !important; }
html:not(.js) #try-demo, html:not(.js) #tour-start { display: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--crust); color: var(--stage); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.kicker { font: 500 12px/1.3 var(--hud); letter-spacing: 0.14em; text-transform: uppercase; color: var(--crust-ink); }
.stage .kicker, .founding .kicker { color: var(--crust); }
h1 { font: 700 clamp(36px, 4.3vw, 58px)/1.04 var(--display); letter-spacing: -0.012em; margin-top: 12px; }
h1 .l { display: block; }
h2 { font: 700 clamp(30px, 3.4vw, 42px)/1.08 var(--display); letter-spacing: -0.01em; margin-top: 12px; }
h3 { font: 600 21px/1.2 var(--display); }
.sub { margin-top: 18px; font: 600 clamp(17px, 1.5vw, 20px)/1.3 var(--display); }
.sub::before { content: ""; display: block; width: 48px; height: 5px; background: var(--crust); margin-bottom: 10px; }
.lede { font: 400 clamp(18px, 1.55vw, 20px)/1.45 var(--display); }
.lede strong, .body strong { font-weight: 600; }
.body { color: var(--ink-2); }
.stage .body { color: var(--on-stage-2); }
.stage .lede strong, .stage .body strong { color: var(--on-stage); }
.fine { font: 400 14px/1.5 var(--display); color: var(--ink-2); }
.fine a { color: inherit; }
.fine.on-stage { color: var(--on-stage-3); margin-top: 28px; }

/* ---------- buttons: square, like every control in the product ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border: 2px solid transparent; font: 600 16px/1 var(--display); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 80ms; }
.btn-yellow { background: var(--crust); border-color: var(--crust); color: var(--stage); }
.btn-yellow:hover { background: var(--crust-hi); border-color: var(--crust-hi); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.stage .btn-ghost, .btn-ghost.on-stage { border-color: var(--on-stage); color: var(--on-stage); }
.stage .btn-ghost:hover, .btn-ghost.on-stage:hover { background: var(--on-stage); color: var(--stage); }
.btn-small { padding: 10px 14px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- top bar: the app header, on the web ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 28px; padding: 0 24px; background: var(--stage); color: var(--on-stage); border-bottom: 1px solid var(--line); }
.brand { flex: none; }
.brand img { height: 24px; width: auto; }
.top-nav { display: flex; gap: 22px; margin-left: 8px; font: 500 15px/1 var(--display); }
.top-nav a { position: relative; text-decoration: none; color: var(--on-stage-2); padding: 8px 0; transition: color var(--d-fast) var(--ease-out); }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--crust); transition: right var(--d-base) var(--ease-out); }
.top-nav a:hover { color: var(--on-stage); }
.top-nav a:hover::after { right: 0; }
.top-cta { margin-left: auto; }
.switch { display: inline-flex; border: 1px solid var(--line-strong); flex: none; }
.switch a { padding: 9px 12px; font: 600 11.5px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-stage-2); text-decoration: none; transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out); }
.switch a.on { background: var(--paper); color: var(--ink); }
.switch a:not(.on):hover { color: var(--on-stage); background: var(--raised); }

/* ---------- surfaces ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.paper { background: var(--paper); color: var(--ink); }
.stage { background: var(--stage); color: var(--on-stage); }
/* the stage carries the product's faint dot grid */
.stage.section, .hero, .choose { background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.2px); background-size: 24px 24px; background-position: 12px 12px; }
.paper-fill { fill: var(--paper); }
.seam { stroke: var(--crust); stroke-width: 4px; }
.cutc { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* ---------- entrance and reveals (JS adds html.js; without it everything is simply visible) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
/* section seams are cut across the page as they scroll in; the hero's cut slides in with the page */
html.js .strip { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out); }
html.js .strip.in { clip-path: inset(0 0 0 0); }
html.js .hero .rise { opacity: 0; transform: translateY(18px); }
html.js .hero.is-ready .rise { animation: rise var(--d-hero) var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 60ms); }
html.js .hero .hero-cut { transform: translateX(-6%); }   /* paper looks like paper from the first frame; only its position settles */
html.js .hero.is-ready .hero-cut { animation: cut-in 900ms var(--ease-out) both; }
html.js .hero.entered .rise, html.js .choose.entered .rise, html.js .hero.entered .hero-cut { animation: none; opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cut-in { from { transform: translateX(-6%); } to { transform: none; } }

/* ---------- hero: paper for reading left, stage for play right, split by the cut ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); min-height: min(calc(100vh - var(--top-h)), 1400px); background-color: var(--stage); color: var(--ink); overflow: hidden; }
.hero-cut { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy, .tour-panel { position: relative; z-index: 1; padding: clamp(28px, 5vh, 64px) 28px 40px clamp(24px, 5vw, 72px); max-width: 600px; align-self: center; }
.hero-copy .lede { margin-top: 18px; font-size: clamp(16.5px, 1.3vw, 18px); }
.hero-copy .body { margin-top: 10px; max-width: 480px; font-size: 15.5px; }
.hero-copy .cta-row { margin-top: 20px; gap: 10px; }
.hero-copy .cta-row .btn { padding: 12px 18px; font-size: 15px; }
.hero-copy .fine { margin-top: 14px; max-width: 440px; font-size: 13px; }
.hero-demo { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 24px 18px 8px; color: var(--on-stage); }
.hero-demo .strip { display: none; }
.demo-head { width: max(calc(var(--phone-h) * 9 / 18.5), 300px); display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.demo-head > * { flex: none; white-space: nowrap; }
.demo-head .tab { margin-right: auto; }
.demo-head .full-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); color: var(--on-stage-3); text-decoration: none; transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out); }
.demo-head .full-link .icon { width: 16px; height: 16px; }
.demo-head .full-link:hover { color: var(--on-stage); border-color: var(--on-stage-3); }
.demo-head .tab, .demo-head .btn { height: 36px; display: inline-flex; align-items: center; box-sizing: border-box; }
.demo-head .tab { padding: 0 10px; }
.demo-head .btn { padding: 0 12px; }
.tab { display: inline-block; font: 500 11px/1 var(--hud); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 9px; background: var(--crust); color: var(--stage); }
.demo-hint { margin-top: 8px; font: 400 11px/1.4 var(--hud); letter-spacing: 0.03em; color: var(--on-stage-3); text-align: center; }
.demo-noscript { color: var(--on-stage-2); max-width: 320px; text-align: center; }

/* ---------- the phone: a device prop around the product's own surfaces ---------- */
.demo { position: relative; }
.phone { position: relative; scroll-margin-top: calc(var(--top-h) + 8px); height: var(--phone-h); height: round(down, var(--phone-h), 1px); aspect-ratio: 9 / 18.5; background: #000; border: 9px solid #1c1d25; border-radius: 34px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px #2c2d36; }
.app { position: absolute; inset: 0; background: var(--stage); color: var(--on-stage); font-size: 14px; }
.app-top { position: absolute; top: 0; left: 0; right: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 12px; background: var(--stage); border-bottom: 1px solid var(--line); z-index: 3; }
.app-top img { height: 24px; width: auto; }
.app-top .icons { display: flex; gap: 16px; color: var(--on-stage-2); }
.app-top .icons span { position: relative; display: block; width: 22px; height: 22px; }
.icon { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

.feed { position: absolute; top: 52px; bottom: 56px; left: 0; right: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed:focus-visible { outline: none; }
.phone:has(.feed:focus-visible) { outline: 3px solid var(--crust); outline-offset: 3px; }
.feed::-webkit-scrollbar { display: none; }
.card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--raised); }
.cover { position: absolute; inset: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 18, 0.12) 0%, rgba(13, 13, 18, 0) 28%, rgba(13, 13, 18, 0.55) 62%, rgba(13, 13, 18, 0.96) 100%); }
.chip.store { position: absolute; top: 12px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.85); background: rgba(13, 13, 18, 0.55); font: 600 11px/1 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-stage); text-decoration: none; }
a.chip.store:hover { background: var(--on-stage); color: var(--stage); }
.meta { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; width: 76%; pointer-events: none; }  /* room for avatar + name + FOLLOW on one line in a 290 px phone; the Play corner only reaches this far at the very bottom */
.meta button { pointer-events: auto; }
.creator { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--raised); display: grid; place-items: center; font: 600 13px/1 var(--display); }
.creator .name { font: 500 13.5px/1 var(--display); white-space: nowrap; }
.follow { border: 1px solid transparent; border-radius: 999px; padding: 6px 10px; white-space: nowrap; background: var(--social); color: #fff; font: 700 10.5px/1 var(--hud); letter-spacing: 0.04em; cursor: pointer; transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out); }
.follow:hover { background: var(--social-ink); }
.follow:active { transform: scale(0.96); }
.follow[aria-pressed="true"] { background: var(--raised); color: var(--social-text); border: 1px solid var(--social); }
.title { font: 700 26px/1.1 var(--display); color: var(--on-stage); }
.tags { margin-top: 6px; font: 600 11px/1 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--crust); }
.desc { margin-top: 8px; font: 400 13.5px/1.4 var(--display); color: var(--on-stage-2); }
.actions { display: flex; gap: 18px; margin-top: 14px; }
.actions button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: var(--on-stage); cursor: pointer; font: 600 14px/1 var(--display); }
.actions button .icon { transition: transform var(--d-base) var(--ease-out), fill var(--d-fast) var(--ease-out), stroke var(--d-fast) var(--ease-out); }
.actions button:hover .icon { transform: scale(1.1); }
.actions button:active .icon { transform: scale(0.85); }
.actions button[aria-pressed="true"] .icon { fill: #ff4d6d; stroke: #ff4d6d; }
.actions button.pop .icon { animation: pop 360ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(0.8); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.actions .count:empty { display: none; }
.play-corner { position: absolute; right: 0; bottom: 0; z-index: 3; width: min(36%, 150px); height: auto; aspect-ratio: 128 / 111; border: 0; padding: 0; background: var(--crust); clip-path: polygon(100% 0, 100% 100%, 0 100%); cursor: pointer; transform-origin: 100% 100%; transition: transform var(--d-base) var(--ease-out), background-color var(--d-fast) var(--ease-out); }
.play-corner:hover { transform: scale(1.04); background: var(--crust-hi); }
.play-corner:active { transform: scale(0.98); }
.play-corner .play-label { position: absolute; right: 14px; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--stage); font: 700 12px/1 var(--hud); letter-spacing: 0.14em; }
.play-corner .icon { width: 26px; height: 26px; }
.play-corner.nudge { animation: nudge 0.5s var(--ease-out) 3; }
@keyframes nudge { 50% { transform: translate(-4px, -4px); } }
/* the corner's clip-path would swallow an outline, so keyboard focus moves to its label */
.play-corner:focus-visible { outline: none; }
.play-corner:focus-visible .play-label { outline: 2px solid var(--stage); outline-offset: 3px; }

/* the last card: the slot */
.card.slot { background: var(--stage); display: grid; place-items: center; padding: 24px; }
.slot-inner { border: 2px dashed var(--crust); padding: 28px 22px; text-align: center; }
.slot-inner .kicker { color: var(--crust); }
.slot-inner .slot-title { margin-top: 10px; font: 700 28px/1.1 var(--display); color: var(--on-stage); }
.slot-inner p { margin-top: 12px; font: 400 14px/1.45 var(--display); color: var(--on-stage-2); }
.slot-inner .cta-row { justify-content: center; margin-top: 20px; }
.slot-inner .btn { padding: 11px 14px; font-size: 14px; }
.slot-inner .btn-ghost { border-color: var(--on-stage); color: var(--on-stage); }

/* tab bar: Slyyces · Posts (concept) · Messages · You */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--stage); border-top: 1px solid var(--line); z-index: 3; }
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; font: 500 10px/1 var(--display); color: var(--on-stage-3); position: relative; cursor: pointer; transition: color var(--d-fast) var(--ease-out); }
.tabs button .icon { width: 20px; height: 20px; }
.tabs button:hover { color: var(--on-stage-2); }
.tabs .on { color: var(--crust); }
.tabs .on::before { content: ""; position: absolute; top: -1px; left: 14%; right: 14%; height: 2px; background: var(--crust); }

/* the other tabs: scrolling panels in the same frame as the feed */
.view.panel { position: absolute; top: 52px; bottom: 56px; left: 0; right: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 20px; background: var(--stage); background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1.2px); background-size: 22px 22px; scrollbar-width: none; }
.view.panel::-webkit-scrollbar { display: none; }
.view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.view-head h3 { font: 700 24px/1.1 var(--display); color: var(--on-stage); }
.view-head p { margin-top: 4px; font: 400 12px/1.4 var(--display); color: var(--on-stage-3); }
.chip.store .icon { width: 11px; height: 11px; }
.cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity var(--d-base) var(--ease-out); }
.cover-video.on { opacity: 1; }
.view.slide-in-right { animation: pane-in-right var(--d-base) var(--ease-out) both; }
.view.slide-in-left { animation: pane-in-left var(--d-base) var(--ease-out) both; }
.view.slide-out-left { animation: pane-out-left var(--d-base) var(--ease-out) both; }
.view.slide-out-right { animation: pane-out-right var(--d-base) var(--ease-out) both; }
@keyframes pane-in-right { from { transform: translateX(100%); } }
@keyframes pane-in-left { from { transform: translateX(-100%); } }
@keyframes pane-out-left { to { transform: translateX(-100%); } }
@keyframes pane-out-right { to { transform: translateX(100%); } }
.chips { display: flex; gap: 6px; margin-bottom: 10px; }
.chips button { padding: 7px 9px; border: 1px solid var(--line-strong); background: none; color: var(--on-stage-2); font: 600 10px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.chips button.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.composer { display: flex; gap: 8px; margin-bottom: 8px; }
.composer input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--on-stage); font: 400 13px/1 var(--display); }
.composer button { width: 40px; display: grid; place-items: center; border: 0; background: var(--crust); color: var(--stage); cursor: pointer; }
.composer button .icon { width: 18px; height: 18px; }
.panel .sample-tag { font: 500 9.5px/1.3 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--crust); margin: 6px 0 10px; }
.post { background: var(--raised); border: 1px solid var(--line); padding: 12px; margin-bottom: 10px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.post-head { display: flex; align-items: center; gap: 9px; }
.post-head .avatar { width: 28px; height: 28px; font-size: 12px; }
.post-who { display: block; font: 600 13px/1.2 var(--display); color: var(--on-stage); }
.post-when { display: block; font: 500 10px/1.4 var(--hud); color: var(--on-stage-3); }
.post-text { margin-top: 9px; font: 400 13.5px/1.45 var(--display); color: var(--on-stage-2); }
.attach { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 8px; border: 1px solid var(--line-strong); background: var(--stage); color: var(--on-stage); text-align: left; cursor: pointer; }
.attach img { width: 44px; height: 56px; object-fit: cover; }
.attach-title { font: 600 13px/1.2 var(--display); }
.attach-title small { display: block; margin-top: 3px; font: 600 9.5px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--crust); }
.attach-play { padding: 8px 10px; background: var(--crust); color: var(--stage); font: 700 11px/1 var(--hud); letter-spacing: 0.12em; }
.post-media-row { display: grid; gap: 6px; margin-top: 10px; }
.post-media-row.cols-2 { grid-template-columns: 1fr 1fr; }
.post-media { position: relative; margin: 0; }
.post-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line); }
.post-media img.pos-1 { object-position: 50% 80%; }
.media-label { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--crust); color: var(--stage); font: 700 11px/1 var(--hud); }
.post-media figcaption { margin-top: 5px; font: 500 10px/1.3 var(--hud); color: var(--on-stage-3); }
.chips.wrap-chips { flex-wrap: wrap; margin-bottom: 4px; }
.composer.search { margin-bottom: 10px; }
.composer input[type="search"] { appearance: none; }
.tile span small { display: block; margin-top: 3px; font: 600 9px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--crust); }
.maker-name { flex: 1; color: var(--on-stage); font-weight: 600; }
.maker-name small { display: block; margin-top: 3px; font: 500 10px/1.2 var(--hud); color: var(--on-stage-3); font-weight: 500; }
.post-actions { display: flex; gap: 16px; margin-top: 10px; }
.post-actions button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; color: var(--on-stage-2); font: 600 13px/1 var(--display); cursor: pointer; }
.post-actions button .icon { width: 18px; height: 18px; }
.post-actions button[aria-pressed="true"] .icon { fill: #ff4d6d; stroke: #ff4d6d; }
.post-actions button.pop .icon { animation: pop 360ms var(--ease-out); }
.threads li button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--on-stage); text-align: left; cursor: pointer; }
.threads .avatar { width: 34px; height: 34px; }
.thread-who { display: block; font: 600 14px/1.2 var(--display); }
.thread-last { display: block; margin-top: 3px; font: 400 12.5px/1.3 var(--display); color: var(--on-stage-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.thread-when { font: 500 10px/1 var(--hud); color: var(--on-stage-3); }
.thread-head { align-items: center; }
.thread-head .avatar { width: 30px; height: 30px; }
.back-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--on-stage); cursor: pointer; }
.bubbles { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 12px; }
.bubble { max-width: 82%; padding: 9px 11px; font: 400 13.5px/1.4 var(--display); }
.bubble.them { align-self: flex-start; background: var(--raised); color: var(--on-stage); border: 1px solid var(--line); }
.bubble.you { align-self: flex-end; background: var(--paper); color: var(--ink); }
.profile-head { display: flex; align-items: center; gap: 12px; }
.avatar.big { width: 52px; height: 52px; font-size: 20px; }
.profile h3 { font: 700 22px/1.1 var(--display); color: var(--on-stage); }
.handle { margin-top: 3px; font: 500 11px/1.4 var(--hud); color: var(--on-stage-3); }
.bio { margin-top: 10px; font: 400 13.5px/1.45 var(--display); color: var(--on-stage-2); }
.stat-row { display: flex; gap: 16px; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--hud); color: var(--on-stage-3); }
.stat-row b { color: var(--on-stage); font-weight: 700; margin-right: 4px; }
.sub-head { margin: 16px 0 8px; font: 600 11px/1 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--crust); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; padding: 0; border: 1px solid var(--line); background: var(--raised); color: var(--on-stage); text-align: left; cursor: pointer; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.tile span { display: block; padding: 7px 8px; font: 600 12px/1.2 var(--display); }
.plain li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 400 13px/1.4 var(--display); color: var(--on-stage-2); }
.plain .avatar { width: 26px; height: 26px; font-size: 11px; }
.comment-on { flex: none; font: 500 9.5px/1.3 var(--hud); letter-spacing: 0.06em; text-transform: uppercase; color: var(--crust); }
.empty { font: 400 12.5px/1.45 var(--display); color: var(--on-stage-3); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats > div { padding: 10px; border: 1px solid var(--line); background: var(--raised); }
.stats small { display: block; font: 500 9.5px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-stage-3); }
.stats b { display: block; margin-top: 6px; font: 700 22px/1 var(--hud); color: var(--on-stage); }
.gates { grid-column: 1 / -1; border: 1px solid var(--line); padding: 6px 10px; }
.gates li { display: flex; justify-content: space-between; padding: 5px 0; font: 500 11px/1.2 var(--hud); color: var(--on-stage-2); border-bottom: 1px solid var(--line); }
.gates li:last-child { border-bottom: 0; }
.uploads li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 600 13px/1.2 var(--display); color: var(--on-stage); }
.up-ver { font: 500 10px/1 var(--hud); color: var(--on-stage-3); }
.status { padding: 5px 7px; font: 700 9px/1 var(--hud); letter-spacing: 0.1em; background: var(--stage); border-left: 3px solid var(--crust); }
.status.live { border-left-color: #2fbf71; }
.note-tag { color: var(--on-stage-3); text-transform: none; letter-spacing: 0; }

/* phones: the hero shows a launcher; the demo lives on its own page */
.demo-full-link { margin-top: 10px; text-align: center; font: 500 12px/1.4 var(--hud); }
.demo-full-link a { color: var(--on-stage-3); }
.demo-full-link a:hover { color: var(--on-stage); }

/* demo.html: the phone is the page */
.demo-page { background: var(--stage); }
.demo-bar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: var(--stage); color: var(--on-stage); border-bottom: 1px solid var(--line); }
.demo-bar img { height: 24px; width: auto; }
.back-link { font: 600 14px/1 var(--display); color: var(--on-stage-2); text-decoration: none; white-space: nowrap; }
.back-link:hover { color: var(--on-stage); }
.demo-full { height: calc(100dvh - var(--top-h)); }
.demo-full .phone.full { width: 100%; max-width: 480px; margin: 0 auto; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
@media (min-width: 901px) { .demo-full .phone.full { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* game layer (over the feed, like the product's session screen) */
.stage-layer { position: absolute; inset: 0; z-index: 5; background: #000; animation: fade-in var(--d-base) var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } }
.game-top { position: absolute; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 4px; z-index: 2; background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.game-top button { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 0; background: none; color: var(--on-stage); font: 700 12px/1 var(--hud); letter-spacing: 0.1em; cursor: pointer; }
.game-top .game-title { font: 600 13px/1 var(--display); color: var(--on-stage-2); }
.game-frame { position: absolute; inset: 0; }
.game-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; transform-origin: 0 0; }
/* Loading: the whole frame, over the game, until the game says it is ready (or 4 s). The poster keeps the card's picture on screen. */
.loading { position: absolute; inset: 0; z-index: 4; display: grid; place-items: end center; background: var(--stage); color: var(--on-stage); }
.loading-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: blur(2px) saturate(0.8); }
.loading-card { position: relative; width: 100%; padding: 0 22px 44px; text-align: center; background: linear-gradient(180deg, rgba(13, 13, 18, 0) 0%, rgba(13, 13, 18, 0.85) 45%); padding-top: 80px; }
.loading-title { font: 700 20px/1.2 var(--display); }
.loading-sub { margin-top: 4px; font: 500 11px/1.4 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-stage-3); }
.loading-bar { position: relative; height: 4px; margin-top: 14px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.loading-bar i { position: absolute; top: 0; left: 0; height: 100%; width: 45%; background: var(--crust); animation: load-slide 1.1s var(--ease-out) infinite; }
@keyframes load-slide { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
@keyframes load-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rail { position: absolute; top: 46px; right: 10px; z-index: 3; min-width: 150px; background: var(--raised); border: 1px solid var(--line); padding: 6px 0; animation: drop var(--d-fast) var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.rail button, .rail a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; color: inherit; font: 500 13px/1 var(--display); text-align: left; text-decoration: none; cursor: pointer; transition: background-color var(--d-fast) var(--ease-out); }
.rail button:hover, .rail a:hover { background: var(--stage); }
.rail .icon { width: 18px; height: 18px; }
.rail [aria-pressed="true"] .icon { fill: #ff4d6d; stroke: #ff4d6d; }
.rail li.dim { color: var(--on-stage-3); }
.rail li.dim small { margin-left: auto; font: 500 9px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--crust); }

/* comments sheet */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; z-index: 6; background: var(--stage); border-top: 1px solid var(--line); display: flex; flex-direction: column; animation: sheet-up var(--d-base) var(--ease-out); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sheet-head .sheet-title { margin: 0; font: 600 16px/1.2 var(--display); }
.sheet-head small { display: block; margin-top: 3px; font: 500 9.5px/1.3 var(--hud); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-stage-3); }
.sheet-head button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--on-stage); display: grid; place-items: center; cursor: pointer; }
.sheet-list { flex: 1; overflow-y: auto; padding: 8px 14px; }
.sheet-list .sample-tag { font: 500 10px/1.3 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--crust); padding: 8px 0 4px; }
.cmt { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmt .who { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--display); }
.cmt .who .avatar { width: 24px; height: 24px; font-size: 11px; }
.cmt .who .creator-badge { font: 600 9px/1 var(--hud); letter-spacing: 0.1em; text-transform: uppercase; color: var(--social-text); }
.cmt .who .you { font: 500 10px/1 var(--hud); color: var(--on-stage-3); }
.cmt .flags { display: flex; flex-direction: column; gap: 4px; font: 500 9.5px/1 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--crust); margin-bottom: 7px; }
.cmt .flags .heart { color: #ff4d6d; }
.cmt .text { font: 400 13px/1.45 var(--display); color: var(--on-stage-2); margin-top: 6px; }
.cmt.reply { margin-left: 22px; padding-left: 10px; border-left: 2px solid var(--line-strong); }
.sheet-input { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.sheet-input input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--on-stage); font: 400 13px/1 var(--display); }
.sheet-input button { padding: 0 14px; border: 0; background: var(--crust); color: var(--stage); font: 700 12px/1 var(--hud); letter-spacing: 0.08em; cursor: pointer; }
.sheet-foot { padding: 0 14px 10px; font: 400 10.5px/1.4 var(--hud); color: var(--on-stage-3); }

/* ---------- tour: a numbered list of what the feed shows, a marker on the phone, a quiet spotlight for details ----------
   No pulsing outlines. Card steps get a thin frame and the step number; detail steps (a comment, the stats) dim the rest. */
.lens { position: absolute; z-index: 7; pointer-events: none; border: 0; transition: left var(--d-base) var(--ease-out), top var(--d-base) var(--ease-out), width var(--d-base) var(--ease-out), height var(--d-base) var(--ease-out); }
.lens.marker-only { border: 0; box-shadow: none; }
.lens.outline { border: 2px solid rgba(230, 232, 236, 0.9); }
.lens.spot { border: 0; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(13, 13, 18, 0.74), 0 0 18px 8px rgba(13, 13, 18, 0.74); }   /* a spotlight: the phone dims except the target */
.lens.spot .marker { display: none; }
body.touring .feed, body.touring .view.panel { overflow: hidden; touch-action: none; }   /* the tour drives the phone */
body.touring .app > :not(.lens):not(.coach) { pointer-events: none; }
.lens.outline .marker { left: auto; right: -10px; top: -14px; }   /* off the text: the reply's avatar and the first tile sit top-left */
.marker { position: absolute; left: -16px; top: -16px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--crust); color: var(--stage); font: 700 13px/1 var(--hud); clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%, 0 74%); }

/* the chapter (desktop hero): a big number on the paper, one title, one line, a progress row and arrows */
.chapter .step-no { font: 500 12px/1 var(--hud); letter-spacing: 0.14em; text-transform: uppercase; color: var(--crust-ink); }
.chapter .num { margin-top: 10px; font: 700 clamp(72px, 9vw, 120px)/1 var(--hud); color: var(--crust); letter-spacing: -0.04em; }
.chapter h2 { margin-top: 6px; font-size: clamp(30px, 3.4vw, 44px); }
.chapter .chapter-text { margin-top: 16px; max-width: 480px; font-size: 19px; line-height: 1.45; color: var(--ink); }
.chapter .bars { display: flex; gap: 8px; margin-top: 28px; }
.chapter .bars i { width: 34px; height: 4px; background: var(--paper-line); transition: background-color var(--d-base) var(--ease-out); }
.chapter .bars i.on { background: var(--crust); }
.chapter .bars i.done { background: var(--ink); }
.chapter .arrows { display: flex; align-items: center; gap: 10px; margin-top: 44px; }
.chapter .arrow { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); background: none; color: var(--ink); font: 700 22px/1 var(--hud); cursor: pointer; transition: transform var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out); }
.chapter .arrow:hover { transform: translateY(-1px); }
.chapter .arrow.on { background: var(--crust); border-color: var(--crust); }
.chapter .arrow:disabled { opacity: 0.35; cursor: default; transform: none; }
.chapter .tour-skip { margin-left: 6px; }
.chapter { animation: rise var(--d-base) var(--ease-out); }
.hero-demo .demo { position: relative; z-index: 3; }
.hero-demo .demo-head, .hero-demo .demo-hint, .hero-demo .demo-full-link { position: relative; z-index: 1; }
.hero-demo.vignette::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 52%, transparent 44%, rgba(13, 13, 18, 0.74) 76%); animation: fade-in var(--d-slow) var(--ease-out); }

/* the coach card (phones and the full-screen demo): paper on the stage, never the same colour as a control */
.coach { position: absolute; left: 10px; right: 10px; bottom: 66px; z-index: 8; background: var(--paper); color: var(--ink); padding: 12px 40px 10px 12px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); animation: rise var(--d-base) var(--ease-out); }
.coach-no { font: 600 10px/1 var(--hud); letter-spacing: 0.12em; text-transform: uppercase; color: var(--crust-ink); }
.coach-title { margin-top: 6px; font: 700 15px/1.2 var(--display); }
.coach-text { margin-top: 5px; font: 400 12.5px/1.4 var(--display); color: var(--ink); }
.coach-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.coach .dots { display: flex; gap: 5px; }
.coach .dots i { width: 7px; height: 7px; background: var(--paper-line); }
.coach .dots i.on { background: var(--ink); }
.coach .dots i.done { background: var(--ink-2); }
.coach-btns { display: flex; gap: 6px; }
.coach-btns button { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 11px/1 var(--hud); letter-spacing: 0.1em; padding: 9px 11px; cursor: pointer; }
.coach-btns button:not(.next) { background: none; color: var(--ink); }
.coach-skip { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.coach-skip .icon { width: 16px; height: 16px; }
.app.coaching .feed, .app.coaching .view.panel { bottom: calc(76px + var(--coach-h, 150px)); }   /* tab bar + gap + the measured card + gap: the feed and the Play corner stay above the card */
.app.coaching .sheet { height: auto; top: 18%; bottom: calc(76px + var(--coach-h, 150px)); }
.tour-panel { color: var(--ink); }
.tour-panel .step-no { font: 500 12px/1 var(--hud); letter-spacing: 0.12em; text-transform: uppercase; color: var(--crust-ink); }
.tour-list { margin-top: 18px; border-top: 2px solid var(--ink); }
.tour-list li { border-bottom: 1px solid var(--paper-line); }
.tour-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border: 0; background: none; text-align: left; font: 600 16px/1.25 var(--display); color: var(--ink-2); cursor: pointer; transition: color var(--d-fast) var(--ease-out); }
.tour-list li.on button { color: var(--ink); font-size: 20px; }
.tour-list li.done button { color: var(--ink-2); }
.tour-list .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--paper-line); color: var(--ink); font: 700 13px/1 var(--hud); clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%, 0 74%); }
.tour-list li.on .n { background: var(--crust); }
.tour-list li.done .n { background: var(--ink); color: var(--paper); }
.tour-list p { padding: 0 0 16px 42px; max-width: 480px; font-size: 17px; color: var(--ink); animation: rise var(--d-base) var(--ease-out); }
.tour-panel .tour-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.tour-panel .tour-skip { margin-left: 4px; background: none; border: 0; padding: 10px 6px; text-decoration: underline; color: var(--ink-2); cursor: pointer; }
.tour-step { animation: rise var(--d-base) var(--ease-out); }
body.touring .hero-copy { display: none; }

/* ---------- sections ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.steps::before { content: ""; position: absolute; left: 34px; right: 10%; top: 17px; height: 1px; background: var(--paper-line); }
.steps .n { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--crust); color: var(--stage); font: 700 14px/1 var(--hud); clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%, 0 74%); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

.pitch { margin-top: 34px; border-left: 5px solid var(--crust); padding-left: 24px; max-width: 900px; }
.pitch .lede + .lede { margin-top: 16px; }
/* benefits as a ledger, not a card grid */
.ledger { margin-top: 56px; border-top: 2px solid var(--on-stage); }
.ledger li { display: grid; grid-template-columns: 2fr 3fr; gap: 24px 48px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger h3 { font-size: 22px; }
.ledger p { color: var(--on-stage-2); max-width: 560px; }
/* the three screens: a triptych with a dropped middle, not three equal tiles */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; align-items: start; }
.screens img { border: 1px solid #3b3c47; }
.screens figcaption { margin-top: 12px; font-size: 14.5px; color: var(--on-stage-2); }
.screens figcaption strong { color: var(--on-stage); }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; margin-top: 40px; }
.col-title { margin-bottom: 14px; }
.spec li { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--paper-line); }
.spec li:first-child { border-top: 2px solid var(--ink); }
.spec .lab { font: 500 11.5px/1.4 var(--hud); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 4px; }
.spec p { color: var(--ink-2); }
.spec p strong { color: var(--ink); font-weight: 600; }
.flow { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; font: 500 11px/1 var(--hud); letter-spacing: 0.06em; white-space: nowrap; }
.flow .chip { padding: 8px 9px; background: var(--stage); color: #fff; border-left: 4px solid var(--crust); }
.flow .chip.live { border-left-color: #2fbf71; }
.flow .arrow { color: var(--ink-2); }
.two-col .body + .body { margin-top: 12px; }
.note { margin-top: 22px; background: var(--card); border-left: 5px solid var(--crust); padding: 14px 18px; color: var(--ink); }
.note strong { font-weight: 600; }
.talk { margin-top: 44px; background: var(--card); border-left: 5px solid var(--social); padding: 26px 28px 16px; }
.talk ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 14px; }
.talk li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.talk li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--social); clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%, 0 70%); }
.talk li strong { font-weight: 600; }

.founding { position: relative; padding-top: clamp(96px, 12vw, 150px); }
.strip { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 80px); display: block; }
.founding-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: end; }
.founding .lede { margin-top: 22px; max-width: 600px; }
.founding .body { margin-top: 12px; }
.contacts { display: grid; gap: 14px; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.contacts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.contacts dt { font: 500 10.5px/1.6 var(--hud); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-stage-3); }
.contacts dd a { font: 500 14px/1.6 var(--hud); color: var(--on-stage); text-decoration: none; overflow-wrap: anywhere; }
.contacts dd a:hover { text-decoration: underline; }

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-list details { border-top: 1px solid var(--paper-line); padding: 6px 0; }
.faq-list details:first-child { border-top: 2px solid var(--ink); }
.faq-list summary { cursor: pointer; padding: 12px 0; font: 600 18px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: color var(--d-fast) var(--ease-out); }
.faq-list summary:hover { color: var(--crust-ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; align-self: flex-start; font: 400 22px/1 var(--hud); color: var(--crust-ink); transition: transform var(--d-base) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 16px; color: var(--ink-2); max-width: 600px; animation: rise var(--d-base) var(--ease-out); }

/* ---------- the choice: which side of the screen are you on ---------- */
.choose { --split-top: 56%; --split-bottom: 44%; position: relative; min-height: min(calc(100vh - var(--top-h)), 1400px); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background-color: var(--stage); }
.choose::before, .choose::after { content: ""; position: absolute; inset: 0; transition: clip-path 0.45s var(--ease-out), transform var(--d-hero) var(--ease-out), opacity var(--d-hero) var(--ease-out); }
.choose::before { background: var(--crust); clip-path: polygon(0 0, calc(var(--split-top) + 0.45%) 0, calc(var(--split-bottom) + 0.45%) 100%, 0 100%); }
.choose::after { background: var(--paper); clip-path: polygon(0 0, var(--split-top) 0, var(--split-bottom) 100%, 0 100%); }
html.js .choose:not(.is-ready)::before, html.js .choose:not(.is-ready)::after { transform: translateX(-8%); }  /* slides in; no fade, so paper and seam never mix into tan */
.choose:has(.side-dev:hover), .choose:has(.side-dev:focus-visible) { --split-top: 62%; --split-bottom: 50%; }
.choose:has(.side-player:hover), .choose:has(.side-player:focus-visible) { --split-top: 50%; --split-bottom: 38%; }
.choose-q { position: absolute; top: 28px; left: 0; right: 0; z-index: 2; margin: 0; padding: 0 16px; text-align: center; }
.choose-q span { display: inline-block; background: var(--crust); color: var(--stage); padding: 7px 12px; font: 600 12px/1.35 var(--hud); letter-spacing: 0.12em; text-transform: uppercase; }
.side { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: clamp(120px, 21vh, 200px) clamp(24px, 5vw, 80px) 80px; text-decoration: none; }
.side-dev { color: var(--ink); padding-right: max(48px, 12vw); }
.side-player { color: var(--on-stage); padding-left: max(48px, 12vw); }
.side-player .kicker { color: var(--crust); }
.side h2 { font-size: clamp(34px, 4.1vw, 56px); max-width: 560px; }
.side p { margin-top: 16px; max-width: 440px; font-size: clamp(17px, 1.5vw, 20px); }
.side-dev p { color: var(--ink-2); }
.side-player p { color: var(--on-stage-2); }
.side .kicker { margin: 0; }
.side .btn { margin-top: 28px; }
.side-player .btn-ghost { border-color: var(--on-stage); color: var(--on-stage); }
.side-player:hover .btn-ghost { background: var(--on-stage); color: var(--stage); }
.side-dev:hover .btn-yellow { background: var(--crust-hi); border-color: var(--crust-hi); }
/* keyboard focus on a whole half: the ring goes on its button, where it can be seen */
.side:focus-visible { outline: none; }
.side:focus-visible .btn { outline: 3px solid var(--crust); outline-offset: 4px; }
.side-dev:focus-visible .btn { outline-color: var(--ink); }
.side-dev:focus-visible .btn-yellow { background: var(--crust-hi); border-color: var(--crust-hi); }
.side-player:focus-visible .btn-ghost { background: var(--on-stage); color: var(--stage); }
html.js .choose .rise { opacity: 0; transform: translateY(18px); }
html.js .choose.is-ready .rise { animation: rise var(--d-hero) var(--ease-out) both; animation-delay: calc(200ms + var(--i, 0) * 90ms); }
.about .lede { margin-top: 24px; max-width: 760px; }
.about .body { margin-top: 14px; max-width: 640px; }

/* ---------- footer, toast, misc pages ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.foot-logo { width: 200px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; justify-self: end; font: 500 14px/1 var(--display); }
.foot nav a { color: var(--on-stage-2); text-decoration: none; transition: color var(--d-fast) var(--ease-out); }
.foot nav a:hover { color: var(--on-stage); }
.foot-line { grid-column: 1 / -1; font: 400 12px/1.6 var(--hud); letter-spacing: 0.04em; color: var(--on-stage-3); }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 90; background: var(--card); color: var(--ink); padding: 12px 18px; font: 600 14px/1 var(--display); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: rise var(--d-base) var(--ease-out); }
.credits-title { margin-top: 40px; }
main.paper h1 { font: 700 clamp(30px, 3.4vw, 42px)/1.08 var(--display); letter-spacing: -0.01em; margin-top: 12px; }
main.paper .lede, main.paper .body, main.paper .spec { max-width: 760px; }
main.paper h1 + .lede { margin-top: 20px; }
.notfound { min-height: 100vh; display: grid; align-items: center; }
.notfound h1 + .body { margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-copy, .tour-panel { padding-left: 24px; }
  .steps { gap: 28px; }
  .two-col, .faq-grid, .founding-grid { gap: 36px; }
  .ledger li { grid-template-columns: 1fr 1.6fr; }
}
@media (max-width: 900px) {
  .top { gap: 12px; }
  .top-nav { display: none; }
  .switch a { padding: 8px 9px; font-size: 10.5px; }
  .choose { grid-template-columns: 1fr; }
  .choose::before { clip-path: polygon(0 0, 100% 0, 100% 45.5%, 0 54.5%); }
  .choose::after { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 54%); }
  .side { min-height: 50vh; padding: 72px 24px 40px; justify-content: center; }
  .side h2 { font-size: clamp(34px, 5.4vw, 46px); }
  .side-dev { padding-bottom: 80px; }
  .side-player { padding-top: 80px; }
  .choose-q { top: 14px; }
  .hero { display: block; min-height: 0; }
  .hero-cut { display: none; }
  .hero-copy, .tour-panel { max-width: none; padding: 48px 24px 44px; background: var(--paper); }
  .hero-demo { padding: 0 16px 28px; }
  .hero-demo .strip { display: block; position: relative; height: 40px; margin: 0 -16px; width: calc(100% + 32px); }
  .demo-head { width: 100%; padding: 16px 0 12px; margin: 0; }
  .demo { width: 100%; }
  .demo-hint { display: none; }
  .demo-full-link { display: none; }
  body.no-phone .hero-demo { display: none; }
  body.touring .hero-copy { display: block; }
  .steps, .screens, .two-col, .faq-grid, .founding-grid, .talk ul, .foot-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .ledger li { grid-template-columns: 1fr; gap: 8px; }
  .founding-grid { align-items: start; }
  .foot nav { justify-self: start; }
  .spec li { grid-template-columns: 92px 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .screens figcaption { font-size: 13.5px; }
}
@media (max-width: 480px) {
  .demo-bar img { display: none; }   /* the phone's own header carries the logo right below */
  .top { padding: 0 16px; }
  .top-cta { display: none; }   /* the same call to action sits in the hero; the logo and the switch need the room */
  .choose-q span { font-size: 11px; letter-spacing: 0.06em; }
  .phone { height: min(84svh, 700px); }
  .flow { flex-wrap: wrap; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .brand img { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .hero .rise, html.js .choose .rise { opacity: 1; transform: none; }
  html.js .hero .hero-cut { opacity: 1; transform: none; }
  html.js .hero.is-ready .rise, html.js .hero.is-ready .hero-cut, html.js .choose.is-ready .rise { animation: none; }
  html.js .strip { clip-path: none; }
  .play-corner.nudge { animation: none; }
  .lens { transition: none; }
}

/* Page to page (landing <-> demo.html): a short cross-document transition where the browser supports it. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 280ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .view.slide-in-right, .view.slide-in-left, .view.slide-out-left, .view.slide-out-right { animation: none; }
  .loading-bar i { animation: none; width: 60%; }
}
