/* ==========================================================================
   RISN — coming soon
   Tokens mirror the app's DESIGN.md: matte charcoal, warm off-white,
   Volt for effort, Iris for recovery. Barlow declares. Inter explains and acts. Geist Mono labels
   and measures. Only Barlow leans.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --canvas: #1E1E1E;
  --surface: #252525;
  --inset: #2C2C2C;
  --ink: #F5F4EF;
  --muted: #C8BBC5;
  --meta: #A0949E;
  --rule: #383838;
  --volt: #E8FF86;
  --iris: #A596FF;
  --live: #FF8686; /* recording sessions only */
  --fixed-ink: #1E1E1E;
  --chalk: #F6F5F1;
  --rail: #303030;
  --graphite: #6B6F77;
  --error: #FF4D2E;
  --dim: #4A4648;
  --raised: #3A3A3A;
  --bar: #3F3F3F;
  --pressed: #363636;
  --selected-tile: #2A2A2A;
  --faint: #6C666A;
  --device: #0B0B0B;
  --device-edge: #3A3C40;
  --device-bezel: #26282B;
  --header-veil: rgba(30, 30, 30, .94);
  --scrim: rgba(12, 12, 12, .78);
  --rule-on-volt: rgba(30, 30, 30, .25);

  --fs-display: clamp(56px, min(8.6vw, 13svh), 160px);
  --fs-headline: clamp(56px, 8vw, 140px);
  --fs-title: clamp(44px, 5.6vw, 88px);
  --fs-lede: clamp(17px, 1.35vw, 20px);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--volt); color: var(--fixed-ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.join :focus-visible, .marquee :focus-visible, .program-more :focus-visible { outline-color: var(--fixed-ink); }
.join .join-panel :focus-visible { outline-color: var(--volt); }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 12px 16px; border-radius: 14px; background: var(--volt); color: var(--fixed-ink); font-weight: 800; transform: translateY(-160%); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
  padding-right: .06em; /* italic overhang */
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow em { font-style: normal; color: var(--meta); margin-left: .6em; }
.muted { color: var(--meta); }
.unit { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--meta); }


/* ---------- Rail (the app's progress bar) ---------- */
.rail {
  --h: 12px;
  height: var(--h);
  padding: 2px;
  border-radius: 999px;
  background: var(--rail);
  box-shadow: inset 0 0 0 1px var(--graphite);
}
.rail i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--volt);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 999px);
}
.rail-sm { --h: 10px; }
/* Iris: recovery and the long view (rest timers, steps, walks, rest days, streaks). */
.rail-iris i { background: var(--iris); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--volt);
  --fg: var(--fixed-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font: 800 14px/1 var(--body);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { --bg: var(--inset); --fg: var(--meta); cursor: progress; }
.btn-ink { --bg: var(--fixed-ink); --fg: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn-block { width: 100%; }
/* Label rolls up to a copy of itself on hover (copy drawn with text-shadow). */
.btn-label { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.btn-roll { display: inline-block; text-shadow: 0 1.3em 0 currentColor; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn-roll { transform: translateY(-1.3em); } }
.btn-icon { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .btn:hover .btn-icon { transform: translateX(4px); } }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--volt);
  color: var(--fixed-ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out);
}
.no-intro .loader { display: none; }
.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-logo {
  width: min(72vw, 680px);
  height: auto;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 5;
  stroke-dasharray: 2700;
  stroke-dashoffset: 2700;
  animation: logo-draw 1.1s var(--ease-in-out) forwards, logo-fill .45s .85s ease forwards;
}
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill: currentColor; } }
.loader-foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 26px);
  display: flex; justify-content: space-between;
  font: 600 12px/1 var(--mono); letter-spacing: .12em;
}
.loader-rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); background: rgba(30, 30, 30, .14); box-shadow: none; }
.loader-rail i { background: var(--fixed-ink); }

/* ---------- Chrome ---------- */
.scroll-rail { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; pointer-events: none; }
.scroll-rail i { display: block; height: 100%; background: var(--volt); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: var(--header-veil); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden:focus-within { transform: none; }
.brand { justify-self: start; display: block; padding: 10px 0; color: var(--ink); }
.brand svg { width: 104px; height: auto; fill: currentColor; }
.site-header .btn { justify-self: end; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; white-space: nowrap; }
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; }
  .status-pill { display: none; }
}
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); flex: none; }
.pulse-iris { background: var(--iris); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .cursor {
    position: fixed; left: 0; top: 0; z-index: 120; display: block;
    pointer-events: none; mix-blend-mode: difference;
  }
  .cursor span {
    display: block; width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1.5px solid var(--ink); border-radius: 50%;
    transition: transform .35s var(--ease-out), background-color .25s, opacity .3s;
  }
  .cursor.is-hover span { transform: scale(1.8); background: var(--ink); }
  .cursor.is-hidden span { opacity: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(24px, 5vh, 56px)) 0 clamp(72px, 10vh, 112px);
  display: flex;
  align-items: center;
}
.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: var(--fs-display); }
.line { display: block; overflow: hidden; padding: 0 .1em .04em 0; margin: 0 -.1em -.06em 0; }
.line > span { display: inline-block; }
.volt-dot { font-style: inherit; color: var(--volt); }
.lede { max-width: 34em; margin-top: clamp(22px, 3vh, 32px); font-size: var(--fs-lede); color: var(--muted); }

.quick-join {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-top: clamp(28px, 4vh, 40px);
}
.quick-join input, .field input[type="email"], .field input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  transition: border-color .2s, background-color .2s;
}
.quick-join input::placeholder, .field input::placeholder { color: var(--meta); }
.quick-join input:hover, .field input:hover { border-color: var(--graphite); }
.quick-join input:focus, .field input:focus { outline: none; border-color: var(--volt); background: var(--inset); }
.quick-join input[aria-invalid="true"], .field input[aria-invalid="true"] { border-color: var(--error); }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--meta); }
.fineprint:empty { display: none; }
.fineprint.is-error { color: var(--error); }
.fineprint.is-done { color: var(--volt); }

/* Week tour: seven days, each with a phone scene. Autoplays while in view. */
.tour { margin-top: clamp(36px, 5vh, 56px); max-width: 640px; }
.tour-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tour-day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 76px; padding: 8px 2px 14px;
  border: 1px solid var(--rule); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  transition: background-color .25s, border-color .25s;
}
.tour-day .eyebrow { font-size: 11px; color: var(--meta); }
.tour-day .display { font-size: clamp(22px, 2vw, 30px); font-variant-numeric: tabular-nums; }
.tour-day i { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); }
.tour-day i.is-iris { background: var(--iris); }
.tour-day i.is-live { background: var(--live); }
.tour-day[aria-selected="true"] { background: var(--selected-tile); border-color: var(--graphite); }
.tour-day[aria-selected="true"]::after { content: ""; position: absolute; bottom: 6px; width: 18px; height: 3px; border-radius: 3px; background: var(--volt); }
@media (hover: hover) { .tour-day:hover { border-color: var(--graphite); } }
.tour-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 10px; }
.tour-rail { --h: 8px; padding: 1.5px; }
.tour-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); }
.tour-toggle svg { width: 16px; height: 16px; }
.tour-toggle .tour-play, .tour-toggle.is-paused .tour-pause { display: none; }
.tour-toggle.is-paused .tour-play { display: block; }
.tour-copy { margin-top: 18px; min-height: 172px; }
.tour-kind { margin-top: 14px; color: var(--volt); }
.tour-kind.is-iris { color: var(--iris); }
.tour-kind.is-live { color: var(--live); }
.tour-head { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 12px; }
.tour-body { max-width: 34em; color: var(--muted); font-size: 17px; }
.tour-copy.is-changing > * { animation: tour-in .5s var(--ease-out) both; }
.tour-copy.is-changing .tour-body { animation-delay: .04s; }
.tour-copy.is-changing .tour-kind { animation-delay: .08s; }
@keyframes tour-in { from { opacity: 0; transform: translateY(10px); } }

.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-cap { color: var(--meta); font-size: 11px; }

.js [data-hero-in] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.is-loaded [data-hero-in] { opacity: 1; transform: none; }
.is-loaded .lede { transition-delay: .75s; }
.is-loaded .quick-join { transition-delay: .85s; }
.is-loaded .fineprint { transition-delay: .95s; }
.is-loaded .tour { transition-delay: 1.05s; }
.is-loaded .hero-stage { transition-delay: .3s; }
.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
.is-loaded .hero-title .line > span { transform: none; }
.is-loaded .hero-title .line:nth-child(1) > span { transition-delay: .25s; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .33s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .41s; }

@media (max-width: 960px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 8px; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 16.4vw; }
  .tour-days { gap: 4px; }
  .tour-day { min-height: 68px; border-radius: 12px; }
  .tour-day .display { font-size: 22px; }
  .tour-copy { min-height: 200px; }
  .tour-body { font-size: 16px; }
}
@media (max-width: 520px) {
  .quick-join { flex-direction: column; }
  .quick-join .btn { width: 100%; }
}

/* ---------- Phone (built in HTML; sized off a 300px screen, so 1px ≈ 0.333cqi) ---------- */
.phone {
  width: clamp(260px, min(25vw, calc((100svh - var(--header-h) - 90px) * 300 / 650)), 340px);
  aspect-ratio: 300 / 650;
  padding: 3.2%;
  border-radius: 17% / 7.8%;
  background: var(--device);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 5px var(--device), inset 0 0 0 6px var(--device-bezel);
}
.p-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 14% / 6.5%;
  background: var(--canvas);
  color: var(--ink);
  container-type: inline-size;
  font-family: var(--body);
  line-height: 1.3;
}
.p-screen svg { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.12em; }
.p-screen p { margin: 0; }
.p-status { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 12cqi; padding: 0 8cqi; font-weight: 600; font-size: 4.8cqi; }
.p-island { position: absolute; left: 50%; top: 3cqi; width: 30cqi; height: 9cqi; margin-left: -15cqi; border-radius: 99px; background: #000; }
.p-sig { display: flex; gap: 1.2cqi; align-items: flex-end; }
.p-sig i { width: 1.4cqi; border-radius: .4cqi; background: currentColor; }
.p-sig i:nth-child(1) { height: 1.6cqi; } .p-sig i:nth-child(2) { height: 2.4cqi; } .p-sig i:nth-child(3) { height: 3.2cqi; }
.p-sig b { position: relative; width: 7cqi; height: 3.6cqi; border: .5cqi solid currentColor; border-radius: 1.2cqi; }
.p-sig b::after { content: ""; position: absolute; inset: .4cqi 1.6cqi .4cqi .4cqi; border-radius: .4cqi; background: currentColor; }

.p-scene {
  position: absolute;
  inset: 12cqi 0 0;
  padding: 2cqi 5cqi 26cqi;
  display: flex; flex-direction: column; gap: 3.4cqi;
  opacity: 0; visibility: hidden;
  transform: translateY(4cqi);
  transition: opacity .4s ease, transform .6s var(--ease-out), visibility 0s .4s;
}
.p-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .05s ease, transform .7s .05s var(--ease-out), visibility 0s; }
.p-scene-bleed { inset: 0; padding: 0 0 26cqi; gap: 0; }

.p-m { font: 600 3.3cqi/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.p-d { font-family: var(--display); font-style: italic; font-weight: 700; line-height: 1; padding-right: .06em; }
.p-meta { color: var(--meta); }
.p-volt { color: var(--volt); }
.p-iris { color: var(--iris); }
.p-gap { margin-top: 2cqi; }
.p-ttl { font: italic 700 8.4cqi/.9 var(--display); text-transform: uppercase; padding-right: .06em; }
.p-ttl.p-xl { font-size: 11cqi; }
.p-ttl.p-sm { font-size: 6cqi; }
.p-txt { font-size: 3.9cqi; color: var(--muted); line-height: 1.4; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; }
.p-card { padding: 4.6cqi; border-radius: 6cqi; background: var(--surface); }
.p-card-sm { padding: 3.6cqi 4cqi; }
.p-card-edge { box-shadow: inset 0 0 0 .4cqi var(--graphite); }
.p-card-volt { background: var(--volt); color: var(--fixed-ink); }
.p-stack { display: flex; flex-direction: column; gap: 2.6cqi; }
.p-btn { display: flex; align-items: center; justify-content: center; gap: 2cqi; height: 12.4cqi; border-radius: 4.4cqi; background: var(--volt); color: var(--fixed-ink); font: 800 3.5cqi/1 var(--body); letter-spacing: .25cqi; text-transform: uppercase; }
.p-rail { height: 3.4cqi; padding: .6cqi; border-radius: 99px; background: var(--rail); box-shadow: inset 0 0 0 .3cqi var(--graphite); }
.p-rail i { display: block; height: 100%; border-radius: 99px; background: var(--volt); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 99px); transition: clip-path .6s var(--ease-out); }
.p-rail-iris i { background: var(--iris); }
.p-seg { display: flex; gap: 1cqi; padding: 1cqi; border-radius: 3.6cqi; background: var(--inset); }
.p-seg span { flex: 1; padding: 2cqi 0; border-radius: 2.8cqi; text-align: center; font-size: 3.5cqi; color: var(--muted); }
.p-seg .is-on { background: var(--ink); color: var(--fixed-ink); font-weight: 600; }
.p-chip { display: inline-flex; align-items: center; padding: 1.6cqi 3cqi; border-radius: 99px; background: var(--inset); font-size: 3.4cqi; }

.p-live { display: inline-flex; align-items: center; gap: 1.6cqi; width: max-content; padding: 1cqi 2.8cqi; border-radius: 99px; background: var(--live); color: var(--fixed-ink); font: 600 3.1cqi/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.p-live > span:first-child { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; background: var(--fixed-ink); }

/* Mon */
.p-set { display: grid; grid-template-columns: 7cqi 1fr 1fr 7cqi; align-items: center; gap: 2cqi; padding: 2.2cqi 0; border-bottom: .3cqi solid var(--rule); font-size: 4cqi; }
.p-set b { font: 600 3.2cqi/1 var(--mono); color: var(--meta); }
.p-set i { display: grid; place-items: center; width: 6cqi; height: 6cqi; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); font-size: 3.6cqi; }
.p-stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqi; }
.p-stepper > div { display: flex; flex-direction: column; align-items: center; gap: 1.4cqi; padding: 2.4cqi; border-radius: 4cqi; background: var(--inset); }
.p-sv { display: flex; align-items: center; gap: 2.4cqi; font: italic 700 8cqi/1 var(--display); }
.p-sv i { display: grid; place-items: center; width: 7.6cqi; height: 7.6cqi; border-radius: 2.4cqi; background: var(--surface); font: 400 4.4cqi/1 var(--body); color: var(--ink); }
.p-next { margin-top: 1cqi !important; font-size: 4.2cqi; }

/* Tue */
.p-iv { display: flex; align-items: flex-end; gap: 1cqi; height: 14cqi; }
.p-iv i { position: relative; flex: var(--w, 1); height: var(--h, 60%); overflow: hidden; border-radius: 1cqi; box-shadow: inset 0 0 0 .4cqi var(--c, var(--volt)); }
.p-iv i.is-walk { --c: var(--iris); }
.p-iv i.is-done { background: var(--c, var(--volt)); }
.p-iv i b { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, .42) * 100%); background: var(--c, var(--volt)); }
.p-count { font: italic 700 27cqi/.85 var(--display); font-variant-numeric: tabular-nums; padding-right: .06em; }
.p-mets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; }
.p-v { font: italic 700 7.6cqi/1 var(--display); font-variant-numeric: tabular-nums; }
.p-route { height: 30cqi; border-radius: 5cqi; overflow: hidden; background: var(--surface); }
.p-route svg { width: 100%; height: 100%; }
.p-road { fill: none; stroke: var(--raised); stroke-width: 9; stroke-linecap: round; }
.p-trail { fill: none; stroke: var(--volt); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.p-here { fill: var(--live); stroke: var(--canvas); stroke-width: 3; }
.p-upnext { display: flex; align-items: center; gap: 3cqi; font-size: 4cqi; }
.p-upnext > div { flex: 1; min-width: 0; }
.p-up-icon { display: grid; place-items: center; flex: none; width: 10cqi; height: 10cqi; border-radius: 3cqi; background: var(--iris); color: var(--fixed-ink); font-size: 5cqi; }
.p-hold span { flex: 1; display: grid; place-items: center; height: 11cqi; border-radius: 4cqi; background: var(--inset); font: 800 3.3cqi/1 var(--body); letter-spacing: .25cqi; text-transform: uppercase; }
.p-hold span:last-child { flex: 1.4; background: var(--surface); box-shadow: inset 0 0 0 .3cqi var(--graphite); }

/* Wed / Fri */
.p-appbar { display: flex; align-items: center; gap: 2.4cqi; }
.p-screen .p-logo { width: 21cqi; height: auto; margin-right: auto; fill: var(--ink); }
.p-rb { display: grid; place-items: center; width: 10.6cqi; height: 10.6cqi; border-radius: 50%; background: var(--surface); font-size: 4.6cqi; }
.p-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.p-week div { position: relative; display: flex; flex-direction: column; align-items: center; gap: .8cqi; padding: 1.6cqi 0 2.4cqi; border-radius: 3.4cqi; }
.p-week b { font: 600 2.9cqi/1 var(--mono); color: var(--meta); }
.p-week span { font-size: 4.8cqi; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-week .is-sel { background: var(--selected-tile); box-shadow: inset 0 0 0 .35cqi var(--graphite); }
.p-week .is-sel::after { content: ""; position: absolute; bottom: 1.2cqi; width: 4cqi; height: .8cqi; border-radius: 1cqi; background: var(--volt); }
.p-week .is-done span::after, .p-week .is-rest span::after { content: ""; display: block; width: 2.4cqi; height: 2.4cqi; margin: .8cqi auto 0; border-radius: 50%; background: var(--volt); }
.p-week .is-rest span::after { background: var(--iris); }
.p-steps { margin: 1.6cqi 0 !important; }
.p-steps .p-d { font-size: 11cqi; font-variant-numeric: tabular-nums; }
.p-q { font-size: 3.9cqi; font-weight: 600; }
.p-done { display: flex; align-items: center; gap: 3.4cqi; }
.p-done .p-ttl { font-size: 7.6cqi; }
.p-done-tick { display: grid; place-items: center; flex: none; width: 12cqi; height: 12cqi; border-radius: 50%; background: var(--fixed-ink); color: var(--volt); font-size: 6cqi; }
.p-done-copy { margin-top: 1cqi !important; font-size: 3.5cqi; line-height: 1.35; }
.p-pb { display: inline-flex; align-items: center; gap: 1.4cqi; width: max-content; padding: 1cqi 2.4cqi; border-radius: 2cqi; background: var(--volt); color: var(--fixed-ink); font: 600 3.3cqi/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.p-big { font-size: 10cqi; }
.p-big small { font-size: 4.4cqi; }
.p-pad { padding: 0 1cqi; }
.p-plan { padding: 3.6cqi 4cqi; }
.p-plan b { font-size: 4cqi; }
.p-plan .p-m { font-size: 3cqi; }

/* Thu */
.p-sheet-title { font-size: 4.2cqi; }
.p-spacer { width: 12cqi; }
.p-name { font-size: 4.6cqi; }
.p-where { font-size: 4cqi; }
.p-bars { display: flex; flex-direction: column; gap: 2cqi; }
.p-bars > div { display: grid; grid-template-columns: 20cqi 1fr 9cqi; align-items: center; gap: 2cqi; font-size: 3.5cqi; }
.p-foot { font-size: 3.6cqi; }

/* Sat */
.p-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.6cqi; min-height: 46cqi; padding: 4.6cqi 5cqi; background: #111; overflow: hidden; }
.p-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.p-cover > :not(img) { position: relative; }
.p-cover .p-m { color: var(--muted); }
.p-inner { display: flex; flex-direction: column; gap: 3.4cqi; padding: 3.4cqi 5cqi 0; }
.p-map { position: relative; height: 40cqi; border-radius: 5cqi; overflow: hidden; background: #20262A; }
.p-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-pin { position: absolute; left: 52%; top: 36%; display: grid; place-items: center; width: 9cqi; height: 9cqi; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); font-size: 4.4cqi; box-shadow: 0 0 0 1.4cqi rgba(232, 255, 134, .25); }
.p-meet { display: flex; align-items: center; gap: 3cqi; padding: 3.6cqi; font-size: 4.2cqi; }
.p-meet .p-txt { font-size: 3.6cqi; }
.p-date { flex: none; width: 11cqi; text-align: center; }
.p-date .p-d { display: block; font-size: 9cqi; }

/* Sun */
.p-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; }
.p-trio .p-d { display: block; font-size: 9cqi; }
.p-trio small { font-size: 4cqi; }
.p-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9cqi; }
.p-grid i { aspect-ratio: 1; border-radius: .9cqi; background: var(--inset); }
.p-grid i.is-light { background: #8A8A8A; }
.p-grid i.is-on { background: var(--volt); }
.p-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqi; }
.p-glance .p-big { display: block; margin-top: 1cqi; }
.p-mile { display: block; margin-top: 1.4cqi; font-size: 3.8cqi; line-height: 1.3; }

.p-tabbar {
  position: absolute; z-index: 4;
  left: 4cqi; right: 4cqi; bottom: 4.4cqi;
  display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center;
  height: 16.5cqi; padding: 0 2.4cqi;
  border-radius: 99px;
  background: var(--inset);
  box-shadow: inset 0 0 0 .3cqi var(--rule);
}
.p-tabbar > span { display: flex; flex-direction: column; align-items: center; gap: .6cqi; font-size: 2.6cqi; font-weight: 600; color: var(--meta); transition: color .3s; }
.p-tabbar > span svg { font-size: 5.4cqi; }
.p-tabbar > span.is-on { color: var(--ink); }
.p-tabbar .p-start { display: grid; place-items: center; width: 13cqi; height: 13cqi; margin: 0 1.6cqi; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); font-size: 5.6cqi; transition: background-color .3s; }
.p-tabbar .p-start.is-live { background: var(--live); }

/* ---------- Screens (real screenshots) ---------- */
.screens { padding: clamp(112px, 16vh, 200px) 0 clamp(64px, 10vh, 120px); }
.screens-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.screens-title { font-size: var(--fs-headline); }
.screens-lede { margin-top: 24px; max-width: 30em; color: var(--muted); font-size: var(--fs-lede); }
.screens-nav { display: flex; gap: 8px; flex: none; }
.screens-btn { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--ink); transition: background-color .2s, border-color .2s, opacity .2s; }
.screens-btn svg { width: 22px; height: 22px; }
.screens-btn[data-shots-prev] svg { transform: scaleX(-1); }
.screens-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .screens-btn:not(:disabled):hover { border-color: var(--graphite); background: var(--inset); } }
.shots {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(36px, 5vh, 56px);
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline-offset: -2px; border-radius: 8px; }
.shot { flex: 0 0 clamp(250px, 26vw, 360px); scroll-snap-align: start; }
.shot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: var(--surface); }
.shot-title { margin-top: 14px; font-weight: 600; }
.shot-sub { margin-top: 2px; color: var(--meta); font-size: 15px; }
@media (max-width: 600px) {
  .screens { padding: 88px 0 48px; }
  .screens-nav { display: none; }
  .screens-lede { margin-top: 18px; }
  .shot { flex-basis: min(78vw, 320px); }
}

/* ---------- Everywhere ---------- */
.everywhere { padding: clamp(96px, 14vh, 180px) 0 0; }
.everywhere-title { font-size: var(--fs-headline); margin-bottom: clamp(40px, 6vh, 72px); }
.every-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .every-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .every-grid { grid-template-columns: 1fr; } }
.every { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 22px; border: 1px solid var(--rule); border-radius: 20px; background: var(--surface); }
.every:nth-child(3n+2) { transition-delay: .06s; } .every:nth-child(3n) { transition-delay: .12s; }
.every h3 { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.every p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.every-viz { display: flex; align-items: center; height: 80px; }
.viz-watch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 66px; height: 78px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 3px var(--device-bezel); }
.viz-watch .eyebrow { font-size: 11px; color: var(--live); }
.viz-watch .display { font-size: 24px; }
.viz-island { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 9px; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px var(--device-bezel); }
.viz-island-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); }
.viz-island-icon svg { width: 16px; height: 16px; }
.viz-island .eyebrow { font-size: 11px; color: var(--muted); }
.viz-island .display { font-size: 24px; color: var(--iris); font-variant-numeric: tabular-nums; }
.viz-widget { display: flex; flex-direction: column; justify-content: space-between; width: 78px; height: 78px; padding: 10px 12px; border-radius: 20px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--rule); }
.viz-widget .eyebrow { font-size: 11px; color: var(--iris); }
.viz-widget .display { font-size: 32px; }
.viz-widget small { font-size: 13px; }
.viz-icon { width: 46px; height: 46px; }
.viz-heart { color: var(--ink); }
.viz-moon { color: var(--iris); }
.viz-mac { width: 84px; height: 46px; fill: none; stroke: var(--muted); stroke-width: 2.4; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--volt);
  color: var(--fixed-ink);
  padding: clamp(10px, 1.4vw, 20px) 0 clamp(6px, 1vw, 14px);
  border-block: 1px solid var(--volt);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(20px, 2.4vw, 40px);
  padding-right: clamp(20px, 2.4vw, 40px);
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-headline);
  line-height: .9;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track b { font-size: .34em; font-style: normal; font-family: var(--body); font-weight: 800; transform: translateY(-.1em); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Clubs ---------- */
.clubs { padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 160px); overflow: clip; }
.clubs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 1000px) { .clubs-grid { grid-template-columns: 1fr; } }
.clubs-title { font-size: var(--fs-headline); }
.clubs-lede { margin: 28px 0 44px; max-width: 30em; color: var(--muted); font-size: var(--fs-lede); }
.club-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
@media (max-width: 560px) { .club-features { grid-template-columns: 1fr; } }
.club-features li { padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.club-features li:nth-child(2n) { transition-delay: .06s; }
.club-features .eyebrow { color: var(--volt); }
.club-features p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.clubs-stage { position: relative; padding: 28px 0 0; }
.board { position: relative; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--rule); border-radius: 24px; background: var(--surface); }
.board-head { margin-bottom: 18px; }
.board-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.board-head .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--meta); font-size: 11px; }
.board-title { font-size: 44px; margin-top: 10px; }
.board-ends { padding: 8px 12px; border-radius: 999px; background: var(--inset); color: var(--muted); font-size: 11px; white-space: nowrap; }
.board-list { position: relative; display: grid; gap: 6px; }
.board-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--canvas);
}
.board-row.me { background: var(--inset); box-shadow: inset 0 0 0 1.5px var(--iris); }
.board-row .rank { font-size: 30px; text-align: center; color: var(--meta); padding: 0; }
.board-row:first-child .rank { color: var(--iris); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--inset); color: var(--ink); font: 600 12px/1 var(--mono); letter-spacing: .06em; flex: none; }
.board-row.me .avatar { background: var(--iris); color: var(--fixed-ink); }
.row-main { display: grid; gap: 8px; min-width: 0; }
.row-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name em { font: 600 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--iris); color: var(--fixed-ink); }
.row-main .rail { --h: 8px; padding: 1.5px; }
.row-main .rail i { background: var(--iris); transition: clip-path .9s var(--ease-out); }
.row-val { font: 600 14px/1 var(--mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; min-width: 6ch; }
.board-row.bump .row-val { animation: bump .6s var(--ease-out); }
@keyframes bump { 30% { color: var(--iris); transform: translateY(-2px); } }

.post {
  position: relative;
  z-index: 2;
  width: min(440px, 92%);
  margin: -36px 0 0 auto;
  margin-right: clamp(-24px, -2vw, 0px);
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--canvas);
  animation: float 7s ease-in-out infinite;
}
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .eyebrow { color: var(--meta); font-size: 11px; margin-top: 4px; }
.post-user { font-weight: 600; }
.post-body { margin: 14px 0; color: var(--muted); font-size: 15px; }
.post-activity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); }
.post-activity .display { font-size: 34px; font-variant-numeric: tabular-nums; }
.post-activity .eyebrow { color: var(--meta); font-size: 11px; margin-top: 6px; }
.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.post-actions > .eyebrow { color: var(--meta); font-size: 11px; }
.kudos {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--inset); color: var(--ink);
  font-weight: 600; font-size: 14px;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease-out);
}
.kudos svg { width: 18px; height: 18px; color: var(--muted); transition: color .25s, transform .4s var(--ease-out); }
.kudos:hover { border-color: var(--graphite); }
.kudos:active { transform: scale(.95); }
.kudos[aria-pressed="true"] { background: var(--volt); border-color: var(--volt); color: var(--fixed-ink); }
.kudos[aria-pressed="true"] svg { color: var(--fixed-ink); animation: kudos-pop .5s var(--ease-out); }
@keyframes kudos-pop { 40% { transform: scale(1.45); } }

.invite-chip {
  position: absolute;
  bottom: 56px;
  left: clamp(-16px, -1.2vw, 0px);
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 12px 16px 10px;
  border-radius: 16px;
  background: var(--volt);
  color: var(--fixed-ink);
  animation: float 6s .6s ease-in-out infinite;
}
.invite-chip .eyebrow { font-size: 11px; }
.invite-chip .display { font-size: 30px; letter-spacing: .04em; }
@media (max-width: 560px) {
  .post { width: 100%; margin: 14px 0 0; }
  .invite-chip { position: relative; bottom: auto; left: auto; display: inline-grid; margin-top: 14px; }
  .board-row { grid-template-columns: 26px 36px minmax(0, 1fr) auto; gap: 10px; }
  .avatar { width: 36px; height: 36px; font-size: 11px; }
  .board-row .rank { font-size: 26px; }
}

/* ---------- Numbers ---------- */
.numbers { padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 160px); }
.numbers-title { font-size: var(--fs-headline); margin-bottom: clamp(56px, 8vh, 96px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.stat { border-top: 1px solid var(--rule); padding-top: 20px; }
.stat dt { color: var(--meta); }
.stat dd { margin-top: 18px; }
.stat-value { display: block; font-size: var(--fs-headline); font-variant-numeric: tabular-nums; }
.stat:first-child .stat-value { color: var(--volt); }
.stat-copy { display: block; margin-top: 16px; max-width: 22em; color: var(--muted); font-size: 16px; }
.stat:nth-child(2) { transition-delay: .08s; } .stat:nth-child(3) { transition-delay: .16s; } .stat:nth-child(4) { transition-delay: .24s; }
@media (max-width: 1080px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 600px) {
  .stat-grid { column-gap: 16px; row-gap: 36px; }
  .stat dd { margin-top: 12px; }
  .stat-copy { margin-top: 10px; font-size: 14px; line-height: 1.45; }
  .stat dt { font-size: 11px; }
}

/* ---------- Programs ---------- */
.programs { position: relative; }
.programs-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
  padding-top: calc(var(--header-h) * .6);
}
.programs-head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
.programs-title { font-size: var(--fs-headline); }
.programs-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.programs-rail { width: clamp(140px, 18vw, 260px); }
.programs-swipe { display: none; color: var(--meta); }
.programs-track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.program {
  position: relative;
  flex: 0 0 auto;
  width: clamp(250px, 24vw, 380px);
  aspect-ratio: 4 / 5.3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}
.program img { position: absolute; inset: 0 0 26% 0; width: 100%; height: 74%; object-fit: cover; filter: grayscale(.55) contrast(1.05); transform: scale(1.04); transition: filter .6s, transform 1s var(--ease-out); }
@media (hover: hover) { .program:hover img { filter: none; transform: scale(1.09); } }
.program-meta { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.program-meta .eyebrow { padding: 7px 10px; border-radius: 999px; background: var(--canvas); font-size: 11px; }
.program h3 { position: relative; min-height: 26%; padding: 18px 20px 20px; background: var(--surface); font-size: 34px; }
.program-more { justify-content: space-between; padding: 24px; background: var(--volt); color: var(--fixed-ink); }
.program-more .display { font-size: var(--fs-headline); }
.program-more-copy { font-size: 16px; line-height: 1.45; }
.programs.is-static { height: auto !important; }
.programs.is-static .programs-pin { position: relative; height: auto; overflow: visible; padding: clamp(72px, 10vh, 120px) 0 clamp(48px, 8vh, 96px); gap: 28px; }
.programs.is-static .programs-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding-bottom: 12px; scrollbar-width: none; transform: none !important; }
.programs.is-static .programs-track::-webkit-scrollbar { display: none; }
.programs.is-static .program { scroll-snap-align: start; width: min(78vw, 340px); }
.programs.is-static .programs-head { grid-template-columns: 1fr; }
.programs.is-static .programs-meta { margin: 22px 0 0; }
.programs.is-static .programs-swipe { display: inline; }
.programs.is-static .programs-rail { flex: 1; max-width: 220px; }

/* ---------- Lab ---------- */
.lab { padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 160px); }
.lab-title { font-size: var(--fs-headline); }
.lab-lede { margin: 24px 0 clamp(48px, 7vh, 80px); color: var(--muted); max-width: 30em; font-size: var(--fs-lede); }
.lab-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2vw, 28px); }
.lab-grid > :nth-child(2) { transition-delay: .1s; }
@media (max-width: 1000px) { .lab-grid { grid-template-columns: 1fr; } }
.tool {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--surface);
}
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool-head h3 { color: var(--volt); }
.tool-head .muted { font-size: 11px; }
.tool-value { display: flex; align-items: baseline; gap: 10px; }
.tool-value .display { font-size: var(--fs-headline); font-variant-numeric: tabular-nums; }
.tool-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font-weight: 600; font-size: 18px; }
.tool-readout .eyebrow { color: var(--meta); }
.tool-foot { font-size: 14px; color: var(--meta); }
.tool-hint { color: var(--muted); margin-top: -6px; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--inset); }
.seg button { min-width: 52px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .25s, color .25s; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--fixed-ink); }

.barbell { height: clamp(150px, 16vw, 210px); }
.barbell svg { width: 100%; height: 100%; overflow: hidden; }
.plate { transform-box: fill-box; transform-origin: center; }
.plate.enter { animation: plate-in .55s var(--ease-out) both; }
.plate.enter.r { animation-name: plate-in-r; }
@keyframes plate-in { from { opacity: 0; transform: translateX(-36px) scaleY(.7); } }
@keyframes plate-in-r { from { opacity: 0; transform: translateX(36px) scaleY(.7); } }

.range {
  --p: .36;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--volt) calc(var(--p) * 100%), var(--rail) 0); box-shadow: inset 0 0 0 1px var(--graphite); }
.range::-moz-range-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--volt) calc(var(--p) * 100%), var(--rail) 0); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 6px solid var(--canvas); transition: transform .2s; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 6px solid var(--canvas); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline-offset: 6px; border-radius: 8px; }

.reps { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.rep-row { display: grid; grid-template-columns: 1fr 48px 72px 48px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.rep-row .eyebrow { color: var(--meta); }
.rep-row button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--inset); color: var(--ink); transition: background-color .2s, transform .2s; }
.rep-row button:hover { background: var(--pressed); }
.rep-row button:active { transform: scale(.94); }
.rep-row button svg { width: 20px; height: 20px; }
.rep-row output { text-align: center; font-size: 44px; font-variant-numeric: tabular-nums; }
.next { padding: 22px; border-radius: 20px; background: var(--canvas); }
.next .eyebrow { color: var(--meta); }
.next-value { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 8px; }
.next-value .display { font-size: var(--fs-title); color: var(--volt); font-variant-numeric: tabular-nums; }
.next-value .display.flip { animation: flip .5s var(--ease-out); }
@keyframes flip { from { transform: translateY(30%); opacity: 0; } }
.next-why { color: var(--muted); }

/* ---------- Share studio ---------- */
.studio { padding: clamp(80px, 12vh, 160px) 0; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-title { font-size: var(--fs-headline); }
.studio-lede { margin: 24px 0 40px; color: var(--muted); max-width: 30em; font-size: var(--fs-lede); }
.studio-controls { display: grid; gap: 24px; max-width: 460px; }
.field { display: grid; gap: 10px; position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.field .eyebrow { color: var(--muted); }
legend.eyebrow { padding: 0; margin-bottom: 10px; }
.field-hint { position: absolute; right: 16px; bottom: 19px; font: 600 11px/1 var(--mono); color: var(--meta); pointer-events: none; }
.control { display: grid; gap: 10px; }
.control > .eyebrow { color: var(--muted); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 10px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); font-weight: 600; font-size: 15px; transition: border-color .2s, background-color .2s; }
.swatches button i { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(245, 244, 239, .25); }
.swatches [data-theme="volt"] i { background: var(--volt); }
.swatches [data-theme="ink"] i { background: var(--fixed-ink); }
.swatches [data-theme="chalk"] i { background: var(--chalk); }
.swatches button[aria-checked="true"] { border-color: var(--ink); background: var(--inset); }

.studio-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 1200px; }
.share-card {
  --ar: .8;
  --h: min(620px, 72svh, calc((100vw - 2 * var(--gutter)) / var(--ar)));
  --bg: var(--volt);
  --fg: var(--fixed-ink);
  height: var(--h);
  width: calc(var(--h) * var(--ar));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--h) * var(--ar) * .07); /* the card is its own container, so cq units here would read the viewport */
  border-radius: 24px;
  background: var(--bg);
  color: var(--fg);
  container-type: size;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: background-color .5s, color .5s, transform .5s var(--ease-out);
  box-shadow: inset 0 0 0 1px rgba(30, 30, 30, .3);
}
.share-card.is-tilting { transition: background-color .5s, color .5s, transform .1s linear; }
.share-card.is-reformatting { animation: card-settle .5s var(--ease-out); }
@keyframes card-settle { from { opacity: .35; transform: scale(.96); } }
.share-card[data-theme="ink"] { --bg: var(--fixed-ink); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--graphite); }
.share-card[data-theme="chalk"] { --bg: var(--chalk); --fg: var(--fixed-ink); }
.share-card[data-format="square"] { --ar: 1; }
.share-card[data-format="story"] { --ar: .5625; padding-block: calc(var(--h) * .1); }
.share-top { display: flex; align-items: center; justify-content: space-between; }
.share-logo { width: 34cqw; height: auto; fill: currentColor; }
.share-url { font: 600 max(11px, 3.4cqw)/1 var(--mono); letter-spacing: .08em; }
.share-mid { border-top: 2px solid currentColor; padding-top: 5cqw; }
.share-kind { font: 600 max(11px, 3.6cqw)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3cqw; }
.share-headline { font: italic 700 17cqw/.86 var(--display); text-transform: uppercase; padding-right: .06em; overflow-wrap: anywhere; min-height: .86em; }
.share-card[data-format="square"] .share-headline { font-size: 15cqw; }
.share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; border-top: 2px solid currentColor; padding-top: 4cqw; }
.share-num { font: italic 700 12cqw/.9 var(--display); padding-right: .06em; font-variant-numeric: tabular-nums; }
.share-unit { margin-top: 1.5cqw; font: 600 max(11px, 3.2cqw)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 12vh, 160px) 0 clamp(120px, 16vh, 200px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-title { font-size: var(--fs-headline); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px; padding: 20px 0;
  list-style: none; cursor: pointer;
  font-size: var(--fs-lede); font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); transition: background-color .3s, transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; border-radius: 3px; background: currentColor; transition: transform .5s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--volt); color: var(--fixed-ink); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
@media (hover: hover) { .faq summary:hover i { background: var(--inset); } .faq details[open] summary:hover i { background: var(--volt); } }
.faq details p { max-width: 38em; padding: 0 0 28px; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Join ---------- */
.join { background: var(--volt); color: var(--fixed-ink); padding: clamp(96px, 14vh, 180px) 0; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 1000px) { .join-grid { grid-template-columns: 1fr; } }
.join-title { font-size: var(--fs-headline); }
.js .join-title .line > span { transform: translateY(108%); transition: transform 1.3s var(--ease-out); }
.js .join-title.is-in .line > span { transform: none; }
.js .join-title.is-in .line:nth-child(2) > span { transition-delay: .08s; }
.join-lede { max-width: 28em; margin: 32px 0 36px; font-size: var(--fs-lede); line-height: 1.5; }
.join-list { border-top: 1.5px solid var(--fixed-ink); max-width: 30em; }
.join-list li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1.5px solid var(--rule-on-volt); font-weight: 600; }

.join-panel { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--canvas); color: var(--ink); }
.join-form { display: grid; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 14px;
  background: var(--surface);
  font-weight: 600; font-size: 15px;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out);
  pointer-events: none;
}
.choice:hover span { border-color: var(--graphite); }
.choice input:checked + span { background: var(--volt); border-color: var(--volt); color: var(--fixed-ink); }
.choice input[type="checkbox"]:checked + span::before { content: ""; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.choice input:active + span { transform: scale(.97); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Invisible unless Cloudflare needs an interaction; negative margins cancel the grid gap while empty. */
.turnstile-slot { margin-block: -11px; }
.turnstile-slot iframe { max-width: 100%; }
.form-status { min-height: 1.4em; font-size: 15px; font-weight: 500; margin-top: -8px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-legal { font-size: 14px; color: var(--meta); line-height: 1.5; }
.is-busy .btn-icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.join-done { display: grid; justify-items: start; gap: 16px; padding: 12px 0; }
.join-done[hidden] { display: none; }
.join-done:focus { outline: none; }
.join-done .eyebrow { color: var(--volt); }
.done-check { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--volt); color: var(--fixed-ink); }
.done-check svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.join-done:not([hidden]) .done-check { animation: pop .6s var(--ease-out) both; }
.join-done:not([hidden]) .done-check svg { animation: check 0.6s .25s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes check { to { stroke-dashoffset: 0; } }
.done-title { font-size: var(--fs-title); }
.done-copy { color: var(--muted); max-width: 26em; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--meta); font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Sheet ---------- */
.sheet {
  width: min(600px, calc(100vw - 24px));
  max-height: min(92svh, 860px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: var(--canvas);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .5s var(--ease-out), overlay .5s allow-discrete, display .5s allow-discrete;
}
.sheet:not([open]) { opacity: 0; transform: translateY(40px); }
@starting-style { .sheet[open] { opacity: 0; transform: translateY(40px); } }
.sheet::backdrop { background: rgba(12, 12, 12, 0); transition: background-color .4s, overlay .4s allow-discrete, display .4s allow-discrete; }
.sheet[open]::backdrop { background: var(--scrim); }
@starting-style { .sheet[open]::backdrop { background: rgba(12, 12, 12, 0); } }
.sheet-inner { padding: clamp(22px, 3vw, 36px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; color: var(--volt); }
.sheet-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--inset); color: var(--ink); }
.sheet-close svg { width: 22px; height: 22px; transform: rotate(45deg); }
.sheet-title { font-size: var(--fs-title); margin: 18px 0 10px; }
.sheet-lede { color: var(--muted); margin-bottom: 26px; }
.sheet-inner:has(.join-done:not([hidden])) :is(.sheet-title, .sheet-lede) { display: none; }
.sheet .join-done { padding-top: 20px; }
html.sheet-open { overflow: hidden; }
@media (max-width: 600px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 94svh; }
  .sheet:not([open]) { transform: translateY(100%); }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(96px, 14vh, 160px) 0 24px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer-line { font-size: var(--fs-headline); }
.footer-links { display: grid; gap: 0; justify-items: end; font-size: 18px; font-weight: 500; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease-out); }
.footer-links a:hover { background-size: 100% 1.5px; }
@media (max-width: 600px) { .footer-links { justify-items: start; } }
.footer-mark { position: relative; margin: clamp(56px, 10vh, 120px) var(--gutter) 24px; }
.footer-mark svg { width: 100%; height: auto; fill: var(--surface); }
.footer-mark svg + svg { position: absolute; inset: 0; fill: var(--volt); clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-in-out); }
.footer-mark.is-in svg + svg { clip-path: inset(0 0 0 0); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; color: var(--meta); }

/* ---------- Document pages (privacy, support, invite, 404) ---------- */
.doc-page { min-height: 100svh; display: flex; flex-direction: column; }
.doc-header { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.doc-header .brand img { width: 104px; height: auto; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.doc-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--meta); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: color .2s, background-color .2s; }
.doc-nav a:hover { color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--inset); color: var(--ink); }
.doc { flex: 1; max-width: 920px; margin: 0; padding-top: clamp(56px, 10vh, 120px); padding-bottom: clamp(80px, 12vh, 140px); }
@media (min-width: 1000px) { .doc { margin-left: max(0px, calc((100vw - var(--max)) / 2)); } }
.doc-title { font-size: var(--fs-headline); }
.doc-lede { max-width: 36em; margin: 32px 0 56px; font-size: var(--fs-lede); line-height: 1.55; }
.doc section { padding: 28px 0 30px; border-top: 1px solid var(--rule); }
.doc section h2 { color: var(--volt); margin-bottom: 14px; }
.doc section p { max-width: 42em; color: var(--muted); }
.doc section p + p { margin-top: 14px; }
.doc a:not(.btn) { color: var(--ink); text-decoration-color: var(--volt); text-decoration-thickness: 1.5px; }
.doc a:not(.btn):hover { color: var(--volt); }
.doc-steps { counter-reset: s; display: grid; gap: 10px; max-width: 42em; }
.doc-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; color: var(--muted); }
.doc-steps li::before { content: "0" counter(s); font: 600 12px/1 var(--mono); letter-spacing: .1em; color: var(--volt); }
.doc-updated { margin-top: 40px; color: var(--meta); }
.invite-actions { display: grid; justify-items: start; gap: 18px; }
.join-code { display: inline-grid; gap: 6px; margin: -24px 0 36px; padding: 16px 22px 14px; border-radius: 20px; background: var(--volt); color: var(--fixed-ink); }
.join-code .display { font-size: 44px; letter-spacing: .06em; }
.doc-note { max-width: 32em; color: var(--meta); font-size: 15px; }
.doc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--rule); color: var(--meta); }
.doc-footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; }
.doc-footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.doc-footer-links a:hover { color: var(--ink); }

/* Home footer: policy links */
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--meta); text-decoration: none; font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Phones & touch ---------- */
@media (hover: none) {
  .program img { filter: none; transform: none; }
}
button, a, summary, label { -webkit-tap-highlight-color: transparent; }

@media (max-width: 1000px) {
  /* Clubs: show the live leaderboard straight after the intro */
  .clubs-grid { row-gap: 0; }
  .clubs-copy { display: contents; }
  .clubs-title { order: 1; }
  .clubs-lede { order: 2; margin: 22px 0 36px; }
  .clubs-stage { order: 3; margin-bottom: 48px; padding-top: 0; }
  .club-features { order: 4; }
}

@media (max-width: 960px) {
  /* Share studio: card first, then the controls that change it */
  .studio-grid { row-gap: 0; }
  .studio-copy { display: contents; }
  .studio-title { order: 2; }
  .studio-lede { order: 3; margin: 22px 0 32px; }
  .studio-stage { order: 4; margin-bottom: 32px; }
  .studio-controls { order: 5; max-width: none; }
}

@media (max-width: 600px) {
  .clubs { padding: 88px 0 56px; }
  .numbers { padding: 88px 0 56px; }
  .numbers-title { margin-bottom: 44px; }
  .lab { padding: 88px 0 56px; }
  .lab-lede { margin: 18px 0 36px; }
  .studio { padding: 72px 0; }
  .faq { padding: 64px 0 88px; }
  .join { padding: 80px 0; }
  .join-lede { margin: 24px 0 28px; }
  .site-footer { padding-top: 80px; }
  .footer-mark { margin: 48px var(--gutter) 20px; }

  .club-features li { padding: 16px 0 18px; }
  .club-features p { font-size: 15px; }
  .board { padding: 16px; border-radius: 20px; }
  .board-row { min-height: 58px; }
  .post { padding: 16px; }
  .post-activity .display { font-size: 30px; }
  .post { width: 100%; margin: 12px 0 0; }
  .invite-chip { position: relative; bottom: auto; left: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 12px; padding: 14px 18px; }

  .tool { gap: 16px; }
  .tool-value .display { font-size: 84px; }
  .rep-row { grid-template-columns: 1fr 48px 60px 48px; }
  .next { padding: 18px; }

  .sheet-inner { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .share-card { --h: min(380px, 54svh, calc((100vw - 2 * var(--gutter)) / var(--ar))); border-radius: 20px; }
  .swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches button { justify-content: center; padding: 0 10px; gap: 8px; }
  .swatches button i { width: 20px; height: 20px; border-radius: 8px; }
}

@media (max-width: 380px) {
  .board-head .board-ends { display: none; }
  .board-row { grid-template-columns: 22px 32px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px 8px 8px; }
  .board-row .rank { font-size: 26px; }
  .avatar { width: 32px; height: 32px; font-size: 11px; }
  .row-name { font-size: 14px; gap: 6px; }
  .row-val { font-size: 12px; min-width: 0; }
  .post-activity .display { font-size: 26px; }
  .rep-row { grid-template-columns: 1fr 44px 52px 44px; gap: 6px; }
  .rep-row button { width: 44px; height: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: .2s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .loader { display: none; }
  .js [data-reveal], .js [data-hero-in] { opacity: 1; transform: none; }
  .js .hero-title .line > span, .js .join-title .line > span { transform: none; }
  .post, .invite-chip { animation: none; }
  .footer-mark svg + svg { clip-path: none; }
}
