/* Soomcha — brand site
   Black / signal red. Type system shared with portfolio.soomcha.com:
   Roboto Slab 900 display, Inter 900 headings, JetBrains Mono labels. */

:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1c1c1f;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .06);
  --text: #f5f5f7;
  --text-2: #b4b4ba;
  --text-3: #7c7c84;
  --red: #e60012;
  --red-hi: #ff2a3a;       /* red used as text on black */
  --red-deep: #b0000e;
  --r-card: 28px;
  --r-tile: 18px;
  --display: "Roboto Slab", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --header-bg: rgba(11, 11, 12, .78);
  --track: rgba(255, 255, 255, .08);
  --art: rgba(255, 255, 255, .22);
  --stage: transparent;
  --stage-glow: transparent;
  --stage-ink: var(--text-3);
  --glow: rgba(230, 0, 18, .28);
  color-scheme: dark;
}

/* light theme: white paper, red as the only accent — follows the OS unless the visitor picks one */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff; --panel: #ffffff; --panel-2: #ffffff;
    --line: rgba(11, 11, 12, .12); --line-2: rgba(11, 11, 12, .1);
    --text: #0b0b0c; --text-2: #48484e; --text-3: #85858b;
    --red-hi: #e60012;
    --header-bg: rgba(255, 255, 255, .84);
    --track: rgba(11, 11, 12, .08);
    --art: rgba(11, 11, 12, .28);
    --stage: transparent; --stage-glow: transparent; --stage-ink: rgba(255, 255, 255, .85);
    --glow: rgba(230, 0, 18, .1);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #ffffff; --panel: #ffffff; --panel-2: #ffffff;
  --line: rgba(11, 11, 12, .12); --line-2: rgba(11, 11, 12, .1);
  --text: #0b0b0c; --text-2: #48484e; --text-3: #85858b;
  --red-hi: #e60012;
  --header-bg: rgba(255, 255, 255, .84);
  --track: rgba(11, 11, 12, .08);
  --art: rgba(11, 11, 12, .28);
  --stage: transparent; --stage-glow: transparent; --stage-ink: rgba(255, 255, 255, .85);
  --glow: rgba(230, 0, 18, .1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.label { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-hi); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--text-3); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: #fff; color: #000; padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }

/* ───────── opening (portfolio-style red panel + running momchi) ─────────
   0–1.0s  momchi runs in from the right, mark pops
   1.0–1.6s  stops next to the mark, out of breath
   1.6–2.1s  panel lifts away */
.opening {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: inset 0 -18px 70px rgba(0, 0, 0, .2);
  transform-origin: top center; cursor: pointer; overflow: hidden;
  animation: opening-out 2.1s cubic-bezier(.7, 0, .1, 1) forwards;
}
.opening.skip { animation: opening-skip .5s cubic-bezier(.7, 0, .1, 1) forwards; }
.opening-stage { display: flex; align-items: flex-end; gap: clamp(8px, 1.6vw, 24px); }
.opening-mark { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 11vw, 160px); line-height: .85; letter-spacing: -.05em; animation: opening-mark .7s var(--ease) .15s both; }
.opening-mark b { color: #000; }
.runner { --rh: clamp(132px, 19vw, 260px); position: relative; flex-shrink: 0; width: calc(var(--rh) * 231 / 240); height: var(--rh); margin-bottom: calc(var(--rh) * -.04); animation: run-in 1s cubic-bezier(.25, .8, .35, 1) both; }
.runner-sprite { position: absolute; inset: 0; background: url("/assets/img/momchi-run.webp") 0 0 / 400% 100% no-repeat; animation: run-cycle .32s steps(4) 0s 3, pant .26s ease-in-out 1s 3; transform-origin: 50% 100%; }
.sweat { position: absolute; width: 9%; aspect-ratio: .7; background: #fff; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; opacity: 0; animation: sweat .6s ease-out both; }
.sweat.s1 { left: 6%; top: 8%; --x: -60%; --y: -70%; --r: -30deg; animation-delay: 1.02s; }
.sweat.s2 { left: 78%; top: 2%; --x: 70%; --y: -80%; --r: 30deg; animation-delay: 1.12s; }
.sweat.s3 { left: 40%; top: -4%; --x: 0%; --y: -110%; --r: 0deg; animation-delay: 1.26s; }
.huff { position: absolute; left: 50%; top: -22%; transform: translateX(-50%); font-family: var(--mono); font-size: clamp(10px, 1vw, 13px); letter-spacing: .2em; white-space: nowrap; opacity: 0; animation: huff 1s ease-out 1.05s both; }
.opening-cap { position: absolute; bottom: 44px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.opening-bar { position: absolute; left: 50%; bottom: 30px; width: 120px; height: 2px; margin-left: -60px; background: rgba(255,255,255,.3); overflow: hidden; }
.opening-bar i { display: block; height: 100%; background: #fff; transform-origin: left; animation: opening-bar 1.6s var(--ease) forwards; }
.seen .opening { display: none; }
@keyframes opening-out {
  0%, 76% { transform: translateY(0) scaleY(1); border-radius: 0; }
  100% { transform: translateY(-105%) scaleY(.92); border-radius: 0 0 48px 48px; }
}
@keyframes opening-skip { to { transform: translateY(-105%) scaleY(.92); border-radius: 0 0 48px 48px; } }
@keyframes opening-mark { from { opacity: 0; transform: translateY(28px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes run-in { from { transform: translateX(70vw); } to { transform: none; } }
@keyframes run-cycle { to { background-position: 133.333% 0; } }
@keyframes pant { 50% { transform: translateY(3%) scale(1.04, .93); } }
@keyframes sweat { 0% { opacity: 0; transform: none; } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@keyframes huff { 0% { opacity: 0; transform: translate(-50%, 8px); } 25%, 70% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@keyframes opening-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hero entrance runs after the opening; --o is the opening offset */
:root { --o: 1.85s; }
.seen { --o: 0s; }
.enter { opacity: 0; animation: enter .9s var(--ease) forwards; animation-delay: calc(var(--o) + var(--d, 0s)); }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; transform: translateY(110%); animation: line-up 1s var(--ease) forwards; animation-delay: calc(var(--o) + var(--d, 0s)); }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(110%) rotate(2deg); } to { transform: none; } }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ───────── header ───────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -.02em; line-height: 1; }
.logo b { color: var(--red); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--text-2); white-space: nowrap; transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--text); background: var(--track); }
.site-nav a[aria-current="page"] { color: var(--text); }
.theme-toggle { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme-now="dark"] .theme-toggle .sun { display: block; }
:root[data-theme-now="dark"] .theme-toggle .moon { display: none; }
.site-nav a[aria-current="page"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; }

/* ───────── buttons, pills, tags ───────── */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: transform .35s var(--ease), background .2s, border-color .2s; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover .arr.ne { transform: translate(3px, -3px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border: 1px solid var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-white { background: #fff; color: #000; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.pill-red { background: var(--red); color: #fff; }
.pill-line { border: 1px solid var(--line); color: var(--text-2); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
@keyframes blink { 50% { opacity: .3; } }

.app-icon { width: 80px; height: 80px; border-radius: 22%; background: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }

/* ───────── home hero ───────── */
.hero { position: relative; padding: 128px 0 0; overflow: hidden; isolation: isolate; }
.hero::after { /* single red glow, no grid */
  content: ""; position: absolute; z-index: -1; right: -20vw; top: -30vw; width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero-top { display: flex; justify-content: space-between; gap: 16px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; margin-top: 12px; }
.hero-title { margin: 0 0 0 -.04em; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: min(15.2vw, 222px); line-height: .86; letter-spacing: -.045em; }
.hero-title .stop { color: var(--red); }
.hero-side { padding-bottom: 14px; }
.hero-statement { margin: 0; font-size: clamp(28px, 3.1vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; word-spacing: .06em; }
.hero-statement em { font-style: normal; color: var(--red-hi); }
.hero-desc { margin: 20px 0 28px; color: var(--text-2); font-size: 17px; line-height: 1.7; max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* stat strip — what the apps measure */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { padding: 24px 24px 26px 0; }
.strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.strip .v { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; }
.strip .v small { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .04em; color: var(--text-3); margin-left: 6px; }
.strip .k { margin-top: 10px; color: var(--text-2); font-size: 14px; }

/* marquee — plain CSS loop */
.marquee { margin-top: 96px; background: var(--red); color: #fff; overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.03em; padding-inline: .3em; white-space: nowrap; }
.marquee-track span::after { content: "/"; margin-left: .6em; color: rgba(0,0,0,.35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── sections ───────── */
.section { padding-top: 140px; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: end; margin-bottom: 48px; }
.head h2 { margin: 16px 0 0; font-size: clamp(44px, 6.4vw, 96px); font-weight: 900; line-height: .98; letter-spacing: -.055em; word-spacing: .06em; }
.head p:not(.label) { margin: 0; max-width: 400px; color: var(--text-2); font-size: 17px; line-height: 1.7; }

/* app showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 20px; margin-bottom: 20px; }
.showcase-copy { padding: 24px 20px 20px; display: flex; flex-direction: column; }
.showcase-copy .top { display: flex; align-items: center; gap: 16px; }
.showcase-copy .label { margin-top: 36px; }
.app-name { margin: 12px 0 0; font-size: clamp(44px, 5vw, 72px); font-weight: 900; line-height: 1; letter-spacing: -.06em; word-spacing: .08em; }
.app-lead { margin: 20px 0 0; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -.03em; word-spacing: .05em; }
.app-lead em { font-style: normal; color: var(--red-hi); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.showcase-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 36px; }
.stage { position: relative; border-radius: 20px; background: var(--stage); min-height: 560px; display: grid; place-items: center; padding: 40px 24px; overflow: hidden; isolation: isolate; }
.stage::before { display: none; }

/* ───────── workout card (Soomcha Swim data) ───────── */
.wcard { width: min(100%, 380px); background: #fff; color: #0f172a; border-radius: 26px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); transform: rotate(-2deg); }
.wcard .w-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wcard .w-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.wcard .w-date { font-family: var(--mono); font-size: 11px; color: #64748b; }
.wcard .w-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.wcard .w-stats div { background: #f1f5f9; border-radius: 14px; padding: 12px 10px; text-align: center; }
.wcard .w-stats b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.wcard .w-stats span { display: block; margin-top: 4px; font-size: 11px; color: #64748b; }
.wcard ol { list-style: none; margin: 18px 0 0; padding: 0; }
.wcard li { display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #e2e8f0; }
.wcard li i { align-self: stretch; border-radius: 4px; background: var(--c); }
.wcard li small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); font-weight: 500; }
.wcard li b { font-size: 14px; font-weight: 700; }
.wcard li em { font-style: normal; font-family: var(--mono); font-size: 12px; color: #334155; }
.wcard .w-cta { margin-top: 14px; height: 46px; border-radius: 14px; background: #2563eb; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.wcard.alt { position: absolute; transform: rotate(6deg) translate(34%, 18%); width: min(70%, 260px); opacity: .9; }

/* ───────── activity HUD (Soomcha data) ───────── */
.hud { width: min(100%, 400px); display: grid; gap: 10px; }
.hud-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.hud-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hud .big { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .95; letter-spacing: -.03em; }
.hud .big small { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--text-3); margin-left: 6px; letter-spacing: .04em; }
.meter { margin-top: 14px; height: 10px; border-radius: 10px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width 1.6s var(--ease); }
.in .meter i, .enter .meter i { width: var(--w); }
.enter .meter i { transition-delay: calc(var(--o) + .5s); }
.hud-arrow { display: flex; align-items: center; gap: 10px; padding: 0 22px; color: var(--stage-ink); }
.hud-arrow::before { content: ""; width: 2px; height: 18px; background: linear-gradient(var(--red), transparent); }
.hud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hud-grid .hud-card b { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.hud-grid .hud-card b.red { color: var(--red-hi); }

/* ───────── principles ───────── */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 32px; min-height: 0; display: flex; flex-direction: column; }
.principle .n { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--red); letter-spacing: -.03em; }
.principle h3 { margin: 0; padding-top: 56px; font-size: 24px; font-weight: 800; letter-spacing: -.04em; word-spacing: .06em; line-height: 1.25; }
.principle p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* ───────── app page hero ───────── */
.page-hero { position: relative; padding: 112px 0 0; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; left: -20vw; top: -35vw; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.crumb { color: var(--text-3); transition: color .2s; }
.crumb:hover { color: var(--text); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; margin-top: 36px; }
.page-title { margin: 28px 0 0; font-size: min(10.6vw, 148px); font-weight: 900; letter-spacing: -.065em; line-height: .9; }
.page-title .stop { color: var(--red); }
.page-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-lead { margin: 28px 0 0; font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.04em; word-spacing: .06em; line-height: 1.25; }
.page-lead em { font-style: normal; color: var(--red-hi); }
.page-desc { margin: 16px 0 0; max-width: 540px; color: var(--text-2); font-size: 17px; line-height: 1.7; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.note { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.page-hero .stage { min-height: 600px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; min-height: 300px; }
.step .k { display: flex; justify-content: space-between; align-items: center; }
.step .k b { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
.step .k b.red { color: var(--red); }
.step h3 { margin: 28px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.04em; word-spacing: .06em; line-height: 1.25; }
.step p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.step .tags { margin-top: auto; padding-top: 22px; }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 42px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px; }

/* goals list */
.goals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.goal { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-tile); padding: 22px; transition: border-color .3s, transform .4s var(--ease); }
.goal:hover { border-color: var(--red); transform: translateY(-4px); }
.goal .mono { color: var(--red-hi); }
.goal b { display: block; margin-top: 30px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.goal span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* feature list */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature .mono { color: var(--text-3); }
.feature h3 { margin: 18px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.035em; word-spacing: .06em; }
.feature p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* record card */
.record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; }
.record > div { padding: 30px 28px; }
.record > div + div { border-left: 1px solid var(--line); }
.record .v { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5.4vw, 80px); line-height: 1; letter-spacing: -.035em; }
.record .v small { font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--text-3); margin-left: 6px; letter-spacing: .04em; }
.record .k { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.rpe { display: flex; gap: 4px; margin-top: 14px; }
.rpe i { flex: 1; height: 8px; border-radius: 3px; background: var(--track); }
.rpe i.on { background: var(--red); }

/* places */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.place { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 30px; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.place svg { position: absolute; z-index: -1; left: 0; right: 0; bottom: 96px; width: 100%; height: 120px; }
.place svg path { fill: none; stroke: var(--art); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.place svg path.red { stroke: var(--red); }
.place h3 { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: -.055em; }
.place .tags { margin-top: auto; }

/* stats */
.grow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.grow-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 32px; }
.grow-card h3 { margin: 14px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.04em; word-spacing: .06em; }
.stats { display: grid; gap: 18px; margin-top: 26px; }
.stat .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stat b { font-size: 17px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--text-3); }
.stat .meter { height: 8px; margin-top: 8px; }
.formula { margin-top: 26px; display: grid; gap: 12px; }
.formula > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.formula b { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -.02em; }
.formula span { color: var(--text-2); font-size: 15px; }

/* cta */
.cta { margin-top: 140px; background: var(--red); border-radius: var(--r-card); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta .label { color: rgba(255,255,255,.75); }
.cta h2 { margin: 16px 0 0; font-size: clamp(36px, 5vw, 72px); font-weight: 900; letter-spacing: -.055em; word-spacing: .06em; line-height: 1.04; }
.cta p:not(.label) { margin: 16px 0 0; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.7; max-width: 540px; }

/* ───────── footer ───────── */
.site-footer { padding-top: 140px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.foot-top h2 { margin: 16px 0 0; font-size: clamp(32px, 4.2vw, 58px); font-weight: 900; letter-spacing: -.05em; word-spacing: .06em; line-height: 1.12; }
.foot-links { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 15px; }
.foot-links a { color: var(--text-2); transition: color .2s; }
.foot-links a:hover { color: var(--red-hi); }
.foot-word { display: flex; justify-content: space-between; margin: 64px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: min(calc((100vw - 2 * var(--gutter)) / 5.4), 230px); line-height: .8; letter-spacing: -.04em; }
.foot-word span { display: inline-block; transition: transform .5s var(--ease), color .3s; }
.foot-word span:hover { transform: translateY(-12%); color: var(--red); }
.foot-word .stop { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 26px 34px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--text-3); }

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .hero-grid, .page-grid, .showcase, .grow, .head { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(88px, 27vw, 260px); }
  .page-title { font-size: clamp(64px, 18vw, 190px); }
  .hero-side { max-width: 640px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stage { min-height: 500px; }
  .page-hero .stage { min-height: 540px; }
  .principles, .places { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n)::after { display: none; }
  .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .places > :last-child:nth-child(odd), .principles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .goals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .record { grid-template-columns: 1fr 1fr; }
  .record > div:nth-child(3) { border-left: 0; }
  .record > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .opening-stage { flex-direction: column-reverse; align-items: center; gap: 4px; }
  .runner { margin-bottom: 0; }
  .site-header .wrap { gap: 12px; }
  .logo { font-size: 20px; }
  .site-nav a { padding: 8px 9px; font-size: 13px; }
  .site-nav .opt, .site-nav .full { display: none; }
  .hero { padding-top: 96px; }
  .hero-top .mono { display: none; }
  .hero-title { font-size: clamp(84px, 28vw, 160px); }
  .strip { margin-top: 48px; }
  .strip > div { padding: 18px 12px 20px 0; }
  .strip > div + div { padding-left: 14px; }
  .strip > div:nth-child(3) { padding-left: 0; }
  .marquee { margin-top: 72px; padding-block: 14px; }
  .section { padding-top: 96px; }
  .head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .showcase { padding: 12px; border-radius: 24px; }
  .showcase-copy { padding: 16px 10px 12px; }
  .app-icon { width: 68px; height: 68px; }
  .app-lead { font-size: 18px; }
  .stage { min-height: 0; padding: 32px 16px; border-radius: 16px; }
  .wcard { padding: 18px; border-radius: 22px; }
  .wcard.alt { display: none; }
  .hud .big { font-size: 52px; }
  .principles, .places, .steps, .goals, .features, .record { grid-template-columns: 1fr; }
  .principle, .step, .place { min-height: 0; padding: 26px; }
  .principle h3 { padding-top: 28px; }
  .step::after { display: none; }
  .place { min-height: 280px; }
  .feature, .feature:nth-child(2n) { padding: 24px 0; border-left: 0; }
  .record > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .page-hero { padding-top: 92px; }
  .page-title { font-size: clamp(60px, 18.5vw, 120px); }
  .page-hero .stage { min-height: 0; }
  .grow-card { padding: 24px; }
  .cta { grid-template-columns: 1fr; margin-top: 96px; border-radius: 24px; }
  .site-footer { padding-top: 96px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .foot-word { margin-top: 44px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .opening { display: none; }
  .enter, .line > span, .js .rv { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Product media and launch waitlist */
#apps, #waitlist, #swim-name, #soomcha-name { scroll-margin-top: 90px; }
.product-screen { width: min(100%, 290px); height: auto; }
.stage-video { display: flex; align-items: center; justify-content: center; padding-block: 28px; background: transparent; }
.stage-video::before { display: none; }
.promo-media { position: relative; width: min(100%, 304px); margin: 0 auto; }
.promo-media video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: #080808; }
.waitlist-form { min-width: 0; }
.waitlist-form > label { display: block; font-size: 14px; font-weight: 600; }
.waitlist-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.waitlist-fields input { width: 100%; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.waitlist-fields .btn { width: 100%; justify-content: center; cursor: pointer; font: inherit; font-weight: 700; }
.waitlist-form .waitlist-consent { display: flex; gap: 10px; margin-top: 18px; align-items: start; font-size: 12px; font-weight: 400; color: var(--text-2); }
.waitlist-consent input { flex-shrink: 0; margin: 4px 0 0; accent-color: var(--red); }
.waitlist-consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { min-height: 24px; font-size: 14px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button:disabled { opacity: .6; cursor: wait; }

.video-toggle { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); cursor: pointer; }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.video-toggle .video-play, .video-toggle.is-paused .video-pause { display: none; }
.video-toggle.is-paused .video-play { display: block; }

/* Keep signup with the product; mobile follows copy, video, signup. */
.soomcha-showcase, .soomcha-intro { grid-template-areas: "copy media" "signup media"; row-gap: 24px; }
.soomcha-showcase .showcase-copy, .soomcha-intro-copy { grid-area: copy; }
.soomcha-showcase .stage-video, .soomcha-intro .stage-video { grid-area: media; }
.signup-block { grid-area: signup; min-width: 0; width: 100%; max-width: 540px; }
.soomcha-showcase .signup-block { padding: 0 20px 24px; }
.soomcha-showcase .showcase-copy { padding-bottom: 0; }
.signup-block .waitlist-fields { flex-wrap: nowrap; }
.signup-block .waitlist-fields input { flex: 1; width: 0; }
.signup-block .waitlist-fields .btn { border: 0; flex: 0 0 auto; width: auto; padding-inline: 20px; font-size: 14px; }
.signup-block .form-status:empty { display: none; }
.launch-note { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.launch-note .label { display: block; margin-bottom: 6px; }
.launch-note a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.showcase-copy .launch-note { margin-top: 24px; }
.signup-secondary { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1080px) {
  .soomcha-showcase, .soomcha-intro { grid-template-areas: "copy" "media" "signup"; }
  .signup-block { max-width: 640px; }
}
@media (max-width: 720px) {
  .soomcha-showcase .signup-block { padding: 0 10px 16px; }
  .signup-block .waitlist-fields { flex-wrap: wrap; }
  .signup-block .waitlist-fields input { flex: auto; width: 100%; }
  .signup-block .waitlist-fields .btn { width: 100%; }
}

.site-header .theme-toggle { margin-left: auto; }

/* Aquach uses the same copy/media proportions as the adjacent product. */
.aquach-showcase .showcase-copy { display: flex; }
.aquach-deck { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.13; align-self: center; justify-self: center; isolation: isolate; overflow: hidden; touch-action: pan-y; cursor: grab; }
.aquach-deck:active { cursor: grabbing; }
.deck-card { position: absolute; top: 50%; left: 50%; width: 44%; opacity: 1; visibility: hidden; transform: translate(-50%, -50%) scale(.84); pointer-events: none; transition: transform .65s cubic-bezier(.22,1,.36,1); will-change: transform; }
.deck-card img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.deck-card[data-position="0"] { z-index: 3; visibility: visible; transform: translate(-50%, -50%); pointer-events: auto; }
.deck-card[data-position="-1"] { z-index: 2; visibility: visible; transform: translate(-94%, -46%) rotate(-4deg) scale(.86); pointer-events: auto; }
.deck-card[data-position="1"] { z-index: 2; visibility: visible; transform: translate(-6%, -46%) rotate(4deg) scale(.86); pointer-events: auto; }
.deck-card[data-position="-2"], .deck-card[data-position="-3"] { transform: translate(-116%, -46%) rotate(-4deg) scale(.86); }
.deck-card[data-position="2"], .deck-card[data-position="3"] { transform: translate(16%, -46%) rotate(4deg) scale(.86); }
@media (max-width: 720px) {
 .aquach-deck { max-width: 430px; aspect-ratio: 1 / 1.3; }
 .deck-card { width: 58%; }
 .deck-card[data-position="-1"] { transform: translate(-81%, -46%) rotate(-4deg) scale(.84); }
 .deck-card[data-position="1"] { transform: translate(-19%, -46%) rotate(4deg) scale(.84); }
}
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } }
