/* Beast beta landing page.
   Two looks in one page: Pixel (dark, orange, gold, pixel fonts, notched corners)
   and Luxury (black, champagne gold, Cairo, soft hairlines).
   Motion follows the app's "film" kit (app/src/styles.css): the split-open splash,
   lines that write in with a hopping dot, numbers that count, sections that wipe in,
   and a section pill. Everything that moves sits under html.motion inside
   prefers-reduced-motion: no-preference, so calm users get a still, complete page. */

@font-face { font-family: 'Jersey 10'; src: url('/fonts/jersey-10-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('/fonts/silkscreen-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('/fonts/press-start-2p-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Beast Arabic Display'; src: url('/fonts/lalezar-arabic-400-normal.woff2') format('woff2'); font-display: swap; size-adjust: 92%;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #0a0c12;
  --bg-2: #0e0e11;
  --panel: #121622;
  --panel-2: #171c2b;
  --line: #232a3d;
  --line-2: #2e3650;
  --text: #f4ede2;
  --muted: #a9a294;
  --accent: #f2814a;
  --accent-d: #8a3d18;
  --gold: #ffc83d;
  --gold-d: #8a6418;
  --champ: #d0a862;
  --champ-d: #6e5428;

  --pixel: 'Jersey 10', 'Beast Arabic Display', ui-monospace, monospace;
  --silk: 'Silkscreen', 'Cairo', ui-monospace, monospace;
  --display: 'Press Start 2P', ui-monospace, monospace;
  --sans: 'Cairo', system-ui, -apple-system, Roboto, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --n: 6px;
  --notch: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
  --gutter: 16px;
  --notch-s: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-intro { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* A quiet pixel floor under everything: faint grid dots, like the app's smoke. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(242, 129, 74, 0.12), transparent 70%),
    radial-gradient(50% 35% at 0% 30%, rgba(208, 168, 98, 0.08), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1.5px) 0 0 / 16px 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--gold); color: #000; font-weight: 900; }
.skip:focus { top: 8px; }

/* ---------- Top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 0;
  max-width: 1120px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: flex-end; direction: ltr;
  font-family: var(--pixel); font-size: 34px; line-height: 0.8; letter-spacing: 0.02em;
  color: var(--accent); text-decoration: none; text-shadow: 3px 3px 0 var(--accent-d);
}
.brand-dot { width: 7px; height: 7px; margin: 0 0 1px 3px; background: var(--gold); box-shadow: 2px 2px 0 var(--gold-d); }
.brand.sm { font-size: 24px; text-shadow: 2px 2px 0 var(--accent-d); }
.brand.sm .brand-dot { width: 5px; height: 5px; }
.stamp {
  display: inline-block; padding: 3px 7px 2px; direction: ltr;
  font-family: var(--silk); font-weight: 700; font-size: 11px; line-height: 1.2; letter-spacing: 0.08em;
  color: #1a1206; background: var(--gold); clip-path: var(--notch-s, polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px)));
}
.site-nav { display: flex; align-items: center; gap: clamp(6px, 2vw, 26px); }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--muted); font-size: clamp(13px, 2vw, 15px); font-weight: 700; text-decoration: none;
}
.site-nav a:is(:hover, :focus-visible) { color: var(--gold); }
.lang {
  display: inline-grid; place-items: center; color: var(--text); text-decoration: none;
  flex: none; min-width: 44px; min-height: 44px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(18, 22, 34, 0.7);
  font-family: var(--sans); font-weight: 900; font-size: 15px; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lang:hover { border-color: var(--champ); }

/* ---------- Section pill (the app's Crumb) ---------- */
.crumb {
  position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%;
  display: flex; align-items: center; gap: 8px;
  max-width: min(260px, calc(100% - 150px)); min-height: 36px; padding: 0 14px;
  border-radius: 999px; overflow: hidden;
  background: rgba(18, 22, 34, 0.86); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-weight: 900; font-size: 14px; line-height: 1;
  opacity: 0; transform: translate(-50%, -18px); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.crumb.is-on { opacity: 1; transform: translate(-50%, 0); }
.crumb-dot { flex: none; width: 6px; height: 6px; background: var(--accent); }
.crumb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-block: 10px; }

/* ---------- Shared bits ---------- */
/* Clip sideways overflow here, not on body: a body clip passes to the viewport, and phones then
   let the flying-in phones widen the page and scroll it sideways for a moment. */
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); overflow-x: clip; overflow-clip-margin: 0px; }
section { padding: clamp(56px, 8vw, 88px) 0; scroll-margin-block-start: 48px; }
.sec-title {
  font-family: 'Beast Arabic Display', var(--sans); font-weight: 400;
  font-size: clamp(34px, 9vw, 54px); line-height: 1.15; color: var(--text);
  text-wrap: balance;
}
html[lang='en'] .sec-title { font-family: var(--pixel); font-size: clamp(42px, 11vw, 68px); line-height: 0.95; letter-spacing: 0.01em; }
.eyebrow {
  margin-bottom: 8px; font-family: var(--silk); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; color: var(--accent);
}
html[lang='ar'] .eyebrow { font-family: var(--sans); font-weight: 900; font-size: 15px; letter-spacing: 0; }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; vertical-align: 1px; background: currentColor; }
.lead { margin-top: 14px; font-size: 18px; line-height: 1.75; color: #ddd5c8; max-width: 34em; text-wrap: pretty; }
.note { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 34em; }

/* Buttons: the app's chunky pixel button, with the gold of both looks. */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row.center { justify-content: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 22px; text-decoration: none; font-weight: 900; font-size: 17px; line-height: 1.2;
  clip-path: var(--notch); transition: transform 140ms var(--ease-out), filter 140ms;
}
.btn:active { transform: translateY(3px); }
.btn:focus-visible, .dock:focus-visible { outline-offset: -5px; }
.btn-gold:focus-visible, .dock:focus-visible { outline-color: #1a1206; }
.btn-gold { color: #1a1206; background: var(--gold); box-shadow: inset 0 -5px 0 var(--gold-d); padding-bottom: 14px; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-gold b { display: block; font-size: 19px; }
.btn-gold small { display: block; font-size: 12px; font-weight: 700; opacity: 0.75; direction: ltr; text-align: start; }
html[dir='rtl'] .btn-gold small { text-align: right; }
.btn-ghost { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 2px var(--line-2), inset 0 -5px 0 #0b0e17; padding-bottom: 14px; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--champ), inset 0 -5px 0 #0b0e17; }
/* A pixel down-arrow drawn with a mask, like the app's icons. */
.btn-ico {
  flex: none; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'><path d='M4 0h3v5h2v1H8v1H7v1H6v1H5V8H4V7H3V6H2V5h2zM0 9h11v2H0z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' shape-rendering='crispEdges'><path d='M4 0h3v5h2v1H8v1H7v1H6v1H5V8H4V7H3V6H2V5h2zM0 9h11v2H0z'/></svg>") center / contain no-repeat;
}

/* Phones: the app's real screens, framed. */
.phone {
  position: relative; width: 100%; max-width: 270px; aspect-ratio: 520 / 1126;
  border-radius: 34px; padding: 7px; background: #05060a;
  box-shadow: 0 0 0 1px #2a2f40, 0 0 0 3px #05060a, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 20px 50px -30px rgba(242, 129, 74, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.phone.sm { max-width: 190px; border-radius: 26px; padding: 5px; }
.phone.sm img { border-radius: 21px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 100px) 0 clamp(40px, 6vw, 72px);
}
.kicker { color: var(--champ); font-weight: 900; font-size: 15px; }
.hero-title {
  margin-top: 10px;
  font-family: 'Beast Arabic Display', var(--sans); font-weight: 400;
  font-size: clamp(50px, 11vw, 94px); line-height: 1.04; color: var(--gold);
  text-shadow: 4px 4px 0 var(--gold-d); text-wrap: balance;
}
html[lang='en'] .hero-title { font-family: var(--pixel); font-size: clamp(58px, 12vw, 108px); line-height: 0.88; color: var(--accent); text-shadow: 4px 4px 0 var(--accent-d); }
.hero-title .ink-dot { width: 0.16em; height: 0.16em; box-shadow: 0.04em 0.04em 0 var(--gold-d); }
.hero-stage {
  position: relative; aspect-ratio: 450 / 610; max-width: 450px; width: 100%; margin: 0 auto;
}
.hero-stage::before {
  content: ''; position: absolute; inset: 8% 0 0; clip-path: var(--notch);
  background: radial-gradient(ellipse at 50% 80%, #34221c, transparent 70%),
    radial-gradient(circle, #2e3650 1px, transparent 1.5px) 0 0 / 16px 16px, #111521;
  border: 1px solid var(--line);
}
.hero-stage .phone { position: absolute; width: 55%; max-width: none; }
.phone-pixel { inset-inline-start: 6%; top: 0; transform: rotate(-4deg); z-index: 2; }
.phone-luxe { inset-inline-end: 4%; top: 7%; transform: rotate(5deg); z-index: 1; opacity: 0.92;
  box-shadow: 0 0 0 1px rgba(208, 168, 98, 0.55), 0 0 0 3px #05060a, 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 20px 60px -30px rgba(208, 168, 98, 0.45); }
html[dir='rtl'] .phone-pixel { transform: rotate(4deg); }
html[dir='rtl'] .phone-luxe { transform: rotate(-5deg); }
.hero-buddy { position: absolute; z-index: 3; inset-inline-start: -2%; bottom: 0; width: 26%; image-rendering: pixelated; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.6)); }
.hero-athlete { position: absolute; z-index: 3; inset-inline-end: -3%; bottom: 0; width: 28%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7)); }
.hero-ground { position: absolute; z-index: 4; inset-inline: 0; bottom: -3px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold) 50%, var(--champ)); box-shadow: 0 4px 0 #141824; }

/* ---------- Numbers ---------- */
.stat-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: 18px 16px;
  background: var(--panel); clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 #0b0e17;
}
.stat b { font-family: var(--pixel); font-weight: 400; font-size: 72px; line-height: 0.8; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-d); direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
html[dir='rtl'] .stat b { text-align: right; }
.stat:nth-child(2) b, .stat:nth-child(4) b { color: var(--accent); text-shadow: 3px 3px 0 var(--accent-d); }
.stat span { font-size: 14px; font-weight: 700; line-height: 1.5; color: #cfc8bd; }

/* ---------- Features ---------- */
.feat { display: grid; gap: 34px; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.feature-list { list-style: none; margin: 20px 0 0; padding: 0; max-width: 34em; }
.feature-list li {
  display: flex; align-items: baseline; gap: 12px;
  border-block-start: 1px solid var(--line); padding: 10px 0;
  color: #cfc8bd; font-size: 15px; line-height: 1.6;
}
.feature-list li::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--champ); }
.feat-phones { display: flex; justify-content: center; }
.feat-phones .phone { max-width: 250px; }
.feat-phones.two { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 460 / 572; }
.feat-phones.two .phone { position: absolute; width: 52%; }
.feat-phones.two .phone:first-child { z-index: 2; inset-inline-start: 6%; top: 0; }
.feat-phones.two .phone.back { inset-inline-end: 4%; top: 7%; opacity: 0.94; }

/* ---------- Try it: the onboarding's weight plate (app/src/onboarding.css) ---------- */
.try { display: grid; gap: 22px; align-items: center; margin-top: 18px; padding: 22px 16px 26px; background: var(--panel); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 #0b0e17; }
.try .eyebrow { margin-bottom: 4px; }
.try-h { font-family: 'Beast Arabic Display', var(--sans); font-weight: 400; font-size: 34px; line-height: 1.15; color: var(--text); }
html[lang='en'] .try-h { font-family: var(--pixel); font-size: 44px; line-height: 0.95; }
.try-p { margin-top: 8px; font-size: 15px; color: #cfc8bd; }
.try-out { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-weight: 900; font-size: 15px; color: var(--champ); }
.try-out b { font-family: var(--pixel); font-weight: 400; font-size: 54px; line-height: 0.8; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-d); font-variant-numeric: tabular-nums; direction: ltr; }
.try-out small { font-size: 15px; font-weight: 900; color: var(--gold); }
.try-n { margin-top: 6px; font-size: 13px; }
.plate-dial { direction: ltr; display: flex; align-items: center; justify-content: center; gap: 14px; }
.dial-plate {
  position: relative; flex: 0 1 auto; min-width: 0; width: min(52vw, 204px); aspect-ratio: 1; border-radius: 50%;
  touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.55);
  --plate-edge-in: #23263a; --plate-edge-hi: #3a3f5c; --plate-edge-mid: #2b2f45; --plate-edge-out: #15172a;
  --plate-face-in: #262a40; --plate-face-out: #1d2033;
  --plate-steel-in: #9aa0b5; --plate-steel-mid: #c4c8d6; --plate-steel-out: #6d7288;
}
.dial-plate.is-held { cursor: grabbing; }
.plate-disc { display: block; width: 100%; height: 100%; transition: transform 240ms var(--ease-out); will-change: transform; shape-rendering: crispEdges; }
.dial-plate.is-held .plate-disc { transition: none; }
.plate-pointer { position: absolute; z-index: 1; top: -9px; left: 50%; width: 6px; height: 18px; translate: -50% 0; background: var(--accent); clip-path: var(--notch-s); }
.plate-read { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; line-height: 1; color: #f2eee6; }
.odo { display: flex; font-family: 'Silkscreen', ui-monospace, monospace; font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.odo-col { display: block; height: 1em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.odo-strip { display: flex; flex-direction: column; transition: transform 260ms cubic-bezier(0.2, 0.9, 0.25, 1.15); will-change: transform; }
.odo-strip > span { display: block; height: 1em; line-height: 1em; text-align: center; }
.dial-plate.is-held .odo-strip { transition-duration: 140ms; }
.plate-read small { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: rgba(242, 238, 230, 0.6); }
.plate-nudge { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; color: var(--text); font-size: 22px; font-weight: 900; line-height: 1; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: var(--notch-s); cursor: pointer; transition: transform 160ms var(--ease-out); }
.plate-nudge:active:not(:disabled) { transform: scale(0.94); }
.plate-nudge:disabled { opacity: 0.35; cursor: default; }
.plate-groove { fill: none; stroke: rgba(255, 255, 255, 0.035); stroke-width: 0.6; }
.plate-step { fill: none; stroke: rgba(0, 0, 0, 0.55); stroke-width: 1.4; }
.plate-tick { stroke: rgba(242, 238, 230, 0.3); stroke-width: 1.4; stroke-linecap: round; }
.plate-tick.is-major { stroke: var(--accent); stroke-width: 2; }
.plate-collar { fill: none; stroke: rgba(0, 0, 0, 0.6); stroke-width: 3; }
.plate-grip { fill: none; stroke: rgba(0, 0, 0, 0.7); stroke-width: 2.2; }
.plate-emboss-low text, .plate-emboss text, .plate-emboss-hi text { font-family: var(--pixel); font-size: 13px; letter-spacing: 3px; }
:is(.plate-emboss-low, .plate-emboss, .plate-emboss-hi) text.is-small { font-size: 7.5px; letter-spacing: 2px; }
.plate-emboss-low { fill: rgba(0, 0, 0, 0.75); }
.plate-emboss { fill: var(--accent); }
.plate-emboss-hi { fill: rgba(255, 255, 255, 0.22); }
.plate-steel-edge { fill: none; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1.2; }
.plate-bolt { fill: #4a4f5c; stroke: rgba(0, 0, 0, 0.5); stroke-width: 0.6; }
.plate-bolt-hi { fill: rgba(255, 255, 255, 0.75); }
.plate-window-bevel { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; }
.plate-window { fill: #0a0a0d; stroke: rgba(0, 0, 0, 0.9); stroke-width: 2.4; }
.plate-light { position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(120% 120% at 26% 16%, rgba(255, 255, 255, 0.13), transparent 42%), radial-gradient(90% 90% at 78% 86%, rgba(0, 0, 0, 0.38), transparent 55%); mix-blend-mode: soft-light; }
.plate-chrome { position: absolute; z-index: 1; left: 24%; top: 24%; width: 52%; height: 52%; border-radius: 50%; pointer-events: none; opacity: 0.35;
  background: conic-gradient(from 210deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 12%, rgba(0, 0, 0, 0.35) 24%, rgba(255, 255, 255, 0.55) 38%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.3) 66%, rgba(255, 255, 255, 0.5) 82%, rgba(255, 255, 255, 0.7));
  -webkit-mask-image: radial-gradient(circle, transparent 66%, #000 67.5%, #000 98%, transparent 99.5%); mask-image: radial-gradient(circle, transparent 66%, #000 67.5%, #000 98%, transparent 99.5%); }

/* ---------- The walking buddy (app/src/journey.css) ---------- */
.walker { position: absolute; top: 0; left: 0; z-index: 15; width: 56px; height: 84px; pointer-events: none; opacity: 0; transform-origin: 50% 100%; }
.walker.is-on { opacity: 1; }
.walker img { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; translate: -50% 0; image-rendering: pixelated; transform-origin: 50% 100%; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.55)); }
.walker-shadow { position: absolute; bottom: -3px; left: 50%; width: 34px; height: 7px; translate: -50% 0; border-radius: 50%; background: rgba(0, 0, 0, 0.5); filter: blur(1px); }
.hero-buddy.is-away { visibility: hidden; }
.walk-bubble {
  position: absolute; top: 0; left: 0; z-index: 16; padding: 10px 12px 11px; pointer-events: none;
  color: var(--text); background: #121622; box-shadow: inset 0 0 0 2px var(--gold), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  clip-path: var(--notch); opacity: 0; visibility: hidden;
}
.walk-bubble.is-up { translate: 0 -100%; }
.walk-bubble.is-on { opacity: 1; visibility: visible; }
.walk-bubble strong { display: block; font-size: 15px; font-weight: 900; line-height: 1.35; color: var(--gold); }
.walk-bubble p { margin-top: 2px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: #e2dace; }

/* A clear strip above each stop, where the walking buddy stands and talks without covering anything.
   Only when he walks (motion on); calm pages keep their tighter spacing. */
html.motion .feat-phones, html.motion .try, html.motion .look-grid { margin-top: 104px; }
html.motion .install .cta-row { margin-top: 112px; }
html.motion .feat { row-gap: 10px; }

/* ---------- Him and her: four characters on one ground line ---------- */
.cast { list-style: none; margin: 26px 0 0; padding: 0 4px; display: flex; align-items: flex-end; justify-content: flex-start; gap: 10px; position: relative; max-width: 380px; }
.cast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold) 50%, var(--champ)); box-shadow: 0 4px 0 #141824; }
.cast li { flex: 1; display: flex; justify-content: center; }
.cast img { width: 100%; max-width: 76px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.cast .px img { image-rendering: pixelated; max-width: 70px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6)); }

/* ---------- Two looks ---------- */
.looks-lead { margin-bottom: 28px; }
.look-grid { display: grid; gap: 16px; }
.look { position: relative; padding: 20px 18px 0; overflow: hidden; }
.look h3 { font-size: 26px; font-weight: 900; line-height: 1.2; }
.look-body { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin-top: 18px; }
.look-body .phone.sm { margin-bottom: -60px; }
.look-art { width: 96px; flex: none; margin-bottom: 16px; }
.look-pixel {
  background: #0d1019; clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px #2a3148, inset 0 -6px 0 #070910;
}
.look-pixel h3 { font-family: 'Beast Arabic Display', var(--sans); font-weight: 400; font-size: 32px; color: var(--accent); text-shadow: 3px 3px 0 var(--accent-d); }
html[lang='en'] .look-pixel h3 { font-family: var(--pixel); font-size: 40px; line-height: 0.9; }
.look-pixel .look-art { image-rendering: pixelated; }
.look-luxe {
  background: linear-gradient(160deg, #16151a, var(--bg-2) 60%); border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(208, 168, 98, 0.35);
}
.look-luxe h3 { color: var(--champ); font-weight: 700; letter-spacing: 0.01em; }
.look-luxe .phone { box-shadow: 0 0 0 1px rgba(208, 168, 98, 0.5), 0 0 0 3px #05060a, 0 30px 60px -30px rgba(0, 0, 0, 0.9); }

/* ---------- Questions ---------- */
.faq { border-block-start: 1px solid var(--line); }
.faq-list { margin: 24px 0 0; max-width: 45em; }
.faq-list dt { border-block-start: 1px solid var(--line); padding-block-start: 14px; font-weight: 900; }
.faq-list dd { margin: 4px 0 0; padding-block-end: 14px; color: #ddd5c8; }

/* ---------- Install ---------- */
.install { text-align: start; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.step {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: var(--panel); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 #0b0e17;
}
.step > b {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--pixel); font-weight: 400; font-size: 32px; line-height: 1; color: #1a1206; background: var(--gold);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
.step h3 { font-size: 18px; font-weight: 900; line-height: 1.4; }
.step p { margin-top: 4px; font-size: 15px; color: #cfc8bd; }
.install .cta-row { margin-top: 30px; }
.beta-note { display: flex; gap: 10px; align-items: flex-start; margin: 28px auto 0; max-width: 40em; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(208, 168, 98, 0.3); color: #d9cfbd; font-size: 15px; }
.beta-note .stamp { flex: none; margin-top: 3px; }

/* ---------- Footer + dock ---------- */
.foot { max-width: 1120px; margin: 0 auto; padding: 36px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 110px); border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot a { color: var(--champ); }
.dock {
  position: fixed; z-index: 25; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 4px;
  color: #1a1206; background: var(--gold); text-decoration: none; font-weight: 900; font-size: 17px;
  clip-path: var(--notch); box-shadow: inset 0 -5px 0 var(--gold-d);
  visibility: hidden; transform: translate(-50%, 140%); transition: transform 320ms var(--ease-out);
}
.dock.is-on { visibility: visible; transform: translate(-50%, 0); }
.dock .btn-ico { width: 18px; height: 18px; }

/* ---------- /protein: the protein calculator ---------- */
.faq-more { margin-top: 18px; font-weight: 900; }
.pr-hero { padding: calc(env(safe-area-inset-top, 0px) + 88px) 0 clamp(40px, 6vw, 64px); }
.pr-hero .lead { margin-top: 8px; font-size: 16.5px; line-height: 1.7; }
.pr-title {
  margin-top: 8px; font-family: 'Beast Arabic Display', var(--sans); font-weight: 400;
  font-size: clamp(42px, 10vw, 76px); line-height: 1.08; color: var(--gold); text-shadow: 4px 4px 0 var(--gold-d); text-wrap: balance;
}
html[lang='en'] .pr-title { font-family: var(--pixel); font-size: clamp(48px, 11vw, 88px); line-height: 0.92; color: var(--accent); text-shadow: 4px 4px 0 var(--accent-d); }
.pr-calc { display: grid; gap: 20px; margin-top: 22px; padding: 18px 14px 22px; background: var(--panel); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 #0b0e17; }
.pr-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pr-goals legend { float: left; grid-column: 1 / -1; width: 100%; margin-bottom: 8px; padding: 0; font-weight: 900; font-size: 15px; color: var(--champ); }
html[dir='rtl'] .pr-goals legend { float: right; }
.pr-goal { position: relative; display: flex; flex-direction: column; gap: 0; padding: 8px 10px 9px; background: var(--panel-2); clip-path: var(--notch-s); box-shadow: inset 0 0 0 2px var(--line-2); cursor: pointer; transition: box-shadow 160ms var(--ease-out); }
.pr-goal input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pr-goal b { font-size: 14.5px; font-weight: 900; line-height: 1.35; }
.pr-goal small { font-size: 13px; font-weight: 700; color: var(--muted); }
.pr-goal:hover { box-shadow: inset 0 0 0 2px var(--champ); }
.pr-goal:has(input:checked) { box-shadow: inset 0 0 0 2px var(--gold); }
.pr-goal:has(input:checked) small { color: var(--gold); }
.pr-goal:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pr-out { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; font-weight: 900; font-size: 16px; color: var(--champ); }
.pr-out b { font-family: var(--pixel); font-weight: 400; font-size: 84px; line-height: 0.8; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-d); font-variant-numeric: tabular-nums; direction: ltr; }
.pr-out small { font-size: 18px; font-weight: 900; color: var(--gold); }
.pr-math { margin-top: 10px; font-size: 15px; font-weight: 700; color: #cfc8bd; }
.pr-sec { padding: clamp(40px, 6vw, 64px) 0; border-block-start: 1px solid var(--line); }
.pr-h2 { font-family: 'Beast Arabic Display', var(--sans); font-weight: 400; font-size: clamp(30px, 7vw, 44px); line-height: 1.2; color: var(--text); text-wrap: balance; }
html[lang='en'] .pr-h2 { font-family: var(--pixel); font-size: clamp(38px, 9vw, 56px); line-height: 0.95; }
.pr-answer { margin-top: 18px; max-width: 38em; padding: 18px 16px; background: var(--panel); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--gold); font-size: 18px; font-weight: 700; line-height: 1.8; }
.pr-why { display: grid; gap: 10px; margin: 20px 0 0; max-width: 45em; }
.pr-why > div { padding: 12px 14px 14px; background: var(--panel); clip-path: var(--notch-s); box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow 160ms var(--ease-out); }
.pr-why > div.is-on { box-shadow: inset 0 0 0 2px var(--gold); }
.pr-why dt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 900; }
.pr-why dt b { font-family: var(--pixel); font-weight: 400; font-size: 34px; line-height: 0.8; color: var(--gold); direction: ltr; }
.pr-why dd { margin: 4px 0 0; font-size: 15px; color: #cfc8bd; }
.pr-table { width: 100%; max-width: 38em; margin-top: 16px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pr-table th, .pr-table td { padding: 9px 8px; border-block-start: 1px solid var(--line); text-align: start; }
.pr-table th { font-size: 13px; line-height: 1.4; color: var(--champ); vertical-align: bottom; }
.pr-table td:first-child { color: var(--muted); font-weight: 900; white-space: nowrap; }
.pr-table tr.is-on td { background: rgba(255, 200, 61, 0.09); color: var(--gold); font-weight: 900; }
.pr .foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px); }

/* ---------- Wide screens ---------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feat-flip .feat-copy { order: 2; }
  .look-grid { grid-template-columns: 1fr 1fr; }
  .try { grid-template-columns: 1.1fr 1fr; padding: 28px 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pr-calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: 'goals plate' 'result plate'; align-items: center; row-gap: 28px; padding: 28px 32px; }
  .pr-goals { grid-area: goals; } .pr-calc .plate-dial { grid-area: plate; } .pr-result { grid-area: result; }
  .pr-hero .lead { font-size: 18px; }
  .pr-goals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pr-why { grid-template-columns: 1fr 1fr; }
  .dock { display: none; }
  .foot { padding-bottom: 36px; }
}

/* ===================================================================
   Film. Everything below moves only when html.motion is set (no reduced
   motion) and the phone does not ask for less.
   =================================================================== */

/* The opening: a set split along the ground line, as in the app's LaunchSplash. */
.intro { position: fixed; inset: 0; z-index: 90; display: none; overflow: hidden; padding: 0; border: 0; background: transparent; cursor: pointer; width: 100%; color: inherit; font: inherit; }
html.motion .intro { display: block; }
.intro-half { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.intro-half.is-top { clip-path: inset(0 0 calc(100% - var(--cut, 52%)) 0); }
.intro-half.is-floor { clip-path: inset(var(--cut, 52%) 0 0 0); }
.intro-seam { position: absolute; left: 0; right: 0; top: var(--cut, 52%); z-index: 2; height: 4px; margin-top: -2px; background: var(--gold); box-shadow: 0 0 18px 4px rgba(255, 200, 61, 0.55); transform: scaleX(0); pointer-events: none; }
.intro-half::before {
  content: ""; position: absolute; left: 50%; top: 44%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: radial-gradient(circle, #5a2d14 0 22%, #3a1f12 22% 38%, #22150f 38% 56%, transparent 56%); opacity: 0;
}
.intro-sky { position: absolute; inset: 0; }
.star { position: absolute; width: 2px; height: 2px; background: #f4ede2; }
.star.lg { width: 4px; height: 4px; background: var(--gold); }
.s1 { top: 12%; left: 16%; } .s2 { top: 18%; right: 22%; } .s3 { top: 28%; left: 74%; } .s4 { top: 8%; left: 48%; }
.s5 { top: 36%; left: 8%; } .s6 { top: 22%; right: 8%; } .s7 { top: 42%; right: 28%; }
.intro-world { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 36%; }
.intro-hero { position: relative; }
.intro-guy { display: block; height: 230px; width: 148px; image-rendering: pixelated; }
.intro-guy.is-flex { position: absolute; inset: 0; opacity: 0; }
.dust, .spark { position: absolute; display: block; opacity: 0; }
.dust { width: 6px; height: 6px; bottom: 6px; background: #c8bfb0; }
.d1 { left: 12%; --dx: -36px; --dy: -6px; } .d2 { left: 26%; --dx: -16px; --dy: -22px; background: var(--accent); }
.d3 { left: 46%; --dx: 2px; --dy: -28px; width: 4px; height: 4px; } .d4 { right: 16%; --dx: 34px; --dy: -10px; }
.d5 { right: 32%; --dx: 14px; --dy: -24px; background: var(--gold); }
.spark { width: 4px; height: 4px; left: 50%; bottom: 42%; background: var(--gold); }
.k1 { --sx: -24px; --sy: -42px; } .k2 { --sx: 18px; --sy: -50px; background: var(--accent); } .k3 { --sx: 0px; --sy: -60px; width: 6px; height: 6px; } .k4 { --sx: 30px; --sy: -16px; }
.intro-burst { position: absolute; left: 50%; bottom: 10px; width: 16px; height: 16px; margin-left: -8px; border: 3px solid var(--gold); opacity: 0; }
.intro-ground { position: relative; width: 156px; height: 6px; margin-top: 2px; background: #2a3148; box-shadow: 0 6px 0 #141824, 8px 6px 0 #141824, -8px 6px 0 #141824; transform-origin: center bottom; }
.intro-ground::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--gold); opacity: 0; }
.intro-word { display: flex; direction: ltr; gap: 2px; margin: 16px 0 0; font-family: var(--pixel); font-size: 58px; line-height: 1; }
.intro-word span { position: relative; display: block; color: var(--accent); text-shadow: 4px 4px 0 var(--accent-d); }
.intro-word span.is-gold { color: var(--gold); text-shadow: 4px 4px 0 var(--gold-d); }
.intro-word span::after { content: ""; position: absolute; left: 50%; top: -0.12em; width: 0.14em; height: 0.14em; margin-left: -0.07em; background: var(--gold); opacity: 0; }
.intro-dot { align-self: flex-end; width: 12px; height: 12px; margin: 0 0 6px 4px; background: var(--gold); box-shadow: 4px 4px 0 var(--gold-d); }
.intro-hook { margin: 10px 0 0; font-family: 'Beast Arabic Display', var(--sans); font-size: 30px; line-height: 1.2; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-d); }
html[lang='en'] .intro-hook { font-family: var(--pixel); font-size: 36px; }
.intro-hook .ink-w { display: inline-block; }

.inked .ink-w { position: relative; display: inline-block; }
.ink-keep { white-space: nowrap; }
.ink-dot { display: inline-block; width: 0.2em; height: 0.2em; margin-inline-start: 0.06em; background: var(--ink-dot, var(--gold)); }

@media (prefers-reduced-motion: no-preference) {
  /* ---- Opening timeline (ms match the app: flex 1250, split 2000, gone 2700) ---- */
  html.motion .intro-half.is-top { animation: half-up 680ms cubic-bezier(0.7, 0, 0.25, 1) 2000ms forwards; }
  html.motion .intro-half.is-floor { animation: half-down 680ms cubic-bezier(0.7, 0, 0.25, 1) 2000ms forwards; }
  html.motion .intro-seam { animation: seam-draw 220ms steps(8, end) 1780ms forwards, seam-fade 260ms linear 2060ms forwards; }
  html.motion .intro-half::before { animation: fade-on 360ms steps(4, end) 420ms forwards; }
  html.motion .star { animation: twinkle 2.4s ease-in-out infinite; }
  html.motion .s2, html.motion .s7 { animation-delay: 0.4s; } html.motion .s4 { animation-delay: 0.7s; }
  html.motion .intro-world { animation: shake 280ms ease-in-out 470ms both; }
  html.motion .intro-hero { animation: hero-drop 320ms cubic-bezier(0.55, 0, 1, 0.45) 150ms backwards, hero-land 280ms var(--ease-out) 470ms forwards, hero-hop 360ms ease-in-out 1350ms forwards; }
  html.motion .intro-guy.is-flex { animation: fade-on 1ms linear 1250ms forwards; }
  html.motion .intro-guy:not(.is-flex) { animation: fade-off 1ms linear 1250ms forwards; }
  html.motion .dust { animation: dust-out 420ms var(--ease-out) 470ms both; }
  html.motion .d2 { animation-delay: 500ms; } html.motion .d5 { animation-delay: 520ms; }
  html.motion .spark { animation: spark-up 420ms var(--ease-out) 1300ms both; }
  html.motion .k2 { animation-delay: 1340ms; } html.motion .k4 { animation-delay: 1360ms; }
  html.motion .intro-burst { animation: burst 420ms var(--ease-out) 470ms both; }
  html.motion .intro-ground { animation: ground-draw 320ms steps(10, end) both, ground-hit 240ms var(--ease-out) 470ms; }
  html.motion .intro-ground::after { animation: ground-line 760ms linear both; }
  html.motion .intro-word span { animation: letter-drop 480ms cubic-bezier(0.3, 1.5, 0.5, 1) both; animation-delay: calc(600ms + var(--i) * 80ms); }
  html.motion .intro-word span::after { animation: ink-hop 180ms steps(3, end) both; animation-delay: calc(780ms + var(--i) * 80ms); }
  html.motion .intro-dot { animation: ink-land 440ms steps(5, end) 1180ms both; }
  html.motion .intro-hook .ink-w { animation: ink-word 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + 1150ms); }
  /* A tap skips ahead: the set splits now. */
  html.motion .intro.is-skip .intro-half { animation-delay: 0ms !important; animation-duration: 420ms; }
  html.motion .intro.is-skip .intro-seam { opacity: 0; }

  /* ---- Hero, after the split ---- */
  html.motion .hero .kicker, html.motion .hero-lead, html.motion .hero-cta { opacity: 0; }
  html.motion .hero-stage > :not(.hero-ground) { opacity: 0; }
  html.motion.is-ready .hero .kicker { animation: rise 640ms var(--ease-out) 60ms both; }
  html.motion.is-ready .hero-lead { animation: rise 620ms var(--ease-out) 300ms both; }
  html.motion.is-ready .hero-cta { animation: rise 620ms var(--ease-out) 420ms both; }
  html.motion.is-ready .phone-pixel { --tx: -70px; --tr: -9deg; animation: tile-in 900ms var(--ease-out) 200ms both; }
  html.motion.is-ready .phone-luxe { --tx: 70px; --tr: 9deg; animation: tile-in 900ms var(--ease-out) 340ms both; }
  html.motion.is-ready .hero-ground { animation: ground-draw 500ms steps(12, end) 100ms both; }
  html.motion.is-ready .hero-buddy { animation: buddy-drop 520ms cubic-bezier(0.3, 1.4, 0.5, 1) 700ms both; }
  html.motion.is-ready .hero-athlete { animation: buddy-rise 800ms var(--ease-out) 860ms both; }
  /* The hero's own transforms (rotate) come back through the individual property, so tile-in can own transform. */
  html.motion .phone-pixel { transform: none; rotate: -4deg; }
  html.motion .phone-luxe { transform: none; rotate: 5deg; }
  html.motion[dir='rtl'] .phone-pixel { rotate: 4deg; }
  html.motion[dir='rtl'] .phone-luxe { rotate: -5deg; }

  /* ---- Lines that write themselves in ---- */
  html.motion .inked .ink-w, html.motion .inked .ink-dot { opacity: 0; }
  html.motion :is(.is-in, .is-ready .hero) .inked { --ink-wait: 380ms; }
  html.motion.is-ready .hero .inked { --ink-wait: 420ms; }
  html.motion :is(.is-in, .is-ready .hero) .inked .ink-w { animation: ink-word 520ms var(--ease-out) both; animation-delay: calc(var(--i) * var(--step) + var(--ink-wait)); }
  html.motion :is(.is-in, .is-ready .hero) .inked .ink-w::after {
    content: ""; position: absolute; top: -0.12em; left: 50%; width: 0.22em; height: 0.22em; margin-left: -0.11em;
    background: var(--ink-dot, var(--gold)); opacity: 0; pointer-events: none;
    animation: ink-hop calc(var(--step) * 1.4) steps(3, end) both; animation-delay: calc(var(--i) * var(--step) + var(--ink-wait));
  }
  html.motion :is(.is-in, .is-ready .hero) .inked .ink-dot { animation: ink-land 420ms steps(5, end) both; animation-delay: calc(var(--i) * var(--step) + var(--ink-wait)); }
  html.motion .hero-title .ink-w::after { width: 0.12em !important; height: 0.12em !important; margin-left: -0.06em !important; }

  /* ---- Sections wipe and rise in from the reading side ---- */
  html.motion .reveal .sec-title, html.motion .reveal .eyebrow, html.motion .reveal .note,
  html.motion .reveal .phone, html.motion .reveal .stat, html.motion .reveal .look,
  html.motion .reveal .step, html.motion .reveal .cta-row, html.motion .reveal .beta-note { opacity: 0; }
  html.motion .reveal.is-in .eyebrow { animation: rise 600ms var(--ease-out) both; }
  html.motion .reveal.is-in .sec-title { animation: title-wipe 820ms var(--ease-out) 80ms both; }
  html.motion[dir='rtl'] .reveal.is-in .sec-title { animation-name: title-wipe-rtl; }
  html.motion .reveal.is-in .note { animation: rise 700ms var(--ease-out) 1500ms both; }
  html.motion .reveal.is-in .phone { animation: tile-in 900ms var(--ease-out) 160ms both; }
  html.motion .reveal.is-in .phone.back { animation-delay: 380ms; }
  html.motion[dir='rtl'] { --flip: -1; }
  html.motion .reveal.is-in .stat { animation: set-build 640ms var(--ease-out) both; animation-delay: calc(200ms + var(--k, 0) * 110ms); }
  html.motion .reveal.is-in .stat b { animation: big-slam 480ms var(--ease-out) both; animation-delay: calc(300ms + var(--k, 0) * 110ms); }
  html.motion .reveal.is-in .look { animation: set-build 760ms var(--ease-out) both; animation-delay: calc(500ms + var(--k, 0) * 160ms); }
  html.motion .reveal .cast li { opacity: 0; }
  html.motion .reveal.is-in .cast li { animation: buddy-drop 560ms cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(1300ms + var(--k, 0) * 140ms); }
  html.motion .reveal.is-in .look-art { animation: buddy-rise 700ms var(--ease-out) both; animation-delay: calc(900ms + var(--k, 0) * 160ms); }
  html.motion .reveal.is-in .step { animation: tile-in 700ms var(--ease-out) both; animation-delay: calc(500ms + var(--k, 0) * 120ms); --tx: 0px; }
  html.motion .reveal.is-in .step > b { animation: stamp 420ms var(--ease-out) both; animation-delay: calc(700ms + var(--k, 0) * 120ms); }
  html.motion .reveal.is-in .cta-row { animation: rise 700ms var(--ease-out) 1100ms both; }
  html.motion .reveal.is-in .beta-note { animation: rise 700ms var(--ease-out) 1300ms both; }
  html.motion .reveal.is-in .beta-note .stamp { animation: stamp 420ms var(--ease-out) 1500ms both; }

  /* ---- Walking buddy: a bounce per step, a lean toward where he goes, the shadow breathing ---- */
  html.motion .walker.is-walking img { animation: buddy-step 300ms ease-in-out infinite; }
  html.motion .walker.is-walking .walker-shadow { animation: buddy-shadow 300ms ease-in-out infinite; }
  html.motion .walker.is-land img { animation: buddy-press 360ms cubic-bezier(0.3, 0, 0.3, 1); }
  html.motion .walker.is-leap img { animation: buddy-leap 560ms cubic-bezier(0.3, 0, 0.3, 1) both; }
  html.motion .walker.is-cheer img { animation: buddy-hop 700ms cubic-bezier(0.3, 0, 0.3, 1) 3; }
  html.motion .walk-bubble.is-on { animation: bubble-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both; }

  /* ---- Section pill ---- */
  html.motion .crumb-t { animation: crumb-roll 260ms var(--ease-out) both; }
  html.motion .crumb-t[data-dir='-1'] { animation-name: crumb-roll-back; }
  html.motion .crumb.is-on .crumb-dot { animation: crumb-blink 1.4s steps(1, end) infinite; }
}

@keyframes half-up { to { transform: translateY(-100%) rotate(-1.5deg); } }
@keyframes half-down { to { transform: translateY(100%) rotate(1deg); } }
@keyframes seam-draw { to { transform: scaleX(1); } }
@keyframes seam-fade { to { opacity: 0; transform: scaleX(1) scaleY(3); } }
@keyframes fade-on { to { opacity: 1; } }
@keyframes twinkle { 50% { opacity: 0.15; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translate(4px, 1px); } 50% { transform: translate(-4px, -1px); } 75% { transform: translate(2px, 0); } }
@keyframes hero-drop { from { transform: translateY(-70vh); } }
@keyframes hero-land { 0% { transform: translateY(10px) scale(1.06, 0.92); } 100% { transform: none; } }
@keyframes hero-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes dust-out { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes spark-up { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), var(--sy)); } }
@keyframes burst { 0% { opacity: 1; transform: scale(0.3); } 100% { opacity: 0; transform: scale(9); } }
@keyframes ground-draw { from { transform: scaleX(0); } }
@keyframes ground-hit { 0% { transform: scaleX(0.72); } 100% { transform: scaleX(1); } }
@keyframes ground-line { 0%, 62% { opacity: 1; } 100% { opacity: 0; } }
@keyframes letter-drop { 0% { opacity: 0; transform: translateY(-80px) scale(1.5); filter: blur(6px); } 60% { opacity: 1; transform: translateY(6px) scale(1.15, 0.85); filter: none; } 100% { opacity: 1; transform: none; } }
@keyframes ink-word { from { opacity: 0; transform: translateY(0.7em) scale(0.86); } 60% { opacity: 1; } to { opacity: 1; } }
@keyframes ink-hop { 0% { opacity: 1; transform: translateY(-0.45em); } 60% { opacity: 1; transform: translateY(-0.15em); } 100% { opacity: 0; transform: translateY(-0.3em); } }
@keyframes ink-land { 0% { opacity: 0; transform: translateY(-1.6em); } 30% { opacity: 1; } 70% { opacity: 1; transform: translateY(0.12em) scale(1.3, 0.7); } 100% { opacity: 1; transform: none; } }
@keyframes title-wipe { from { opacity: 1; clip-path: inset(-0.3em 100% -0.3em -0.3em); transform: translateY(14px); } to { opacity: 1; clip-path: inset(-0.3em -0.3em -0.3em -0.3em); transform: none; } }
@keyframes title-wipe-rtl { from { opacity: 1; clip-path: inset(-0.3em -0.3em -0.3em 100%); transform: translateY(14px); } to { opacity: 1; clip-path: inset(-0.3em -0.3em -0.3em -0.3em); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes tile-in { from { opacity: 0; transform: translate(calc(var(--tx, 0px) * var(--flip, 1)), 56px) rotate(calc(var(--tr, 0deg) * var(--flip, 1))) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes fade-off { to { opacity: 0; } }
@keyframes set-build { from { opacity: 0; transform: translateY(60px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes big-slam { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(2) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes buddy-rise { from { opacity: 0; translate: 0 90px; scale: 0.5; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes buddy-drop { 0% { opacity: 0; transform: translateY(-260px); } 55% { opacity: 1; transform: translateY(8px) scale(1.08, 0.9); } 100% { opacity: 1; transform: none; } }
@keyframes buddy-step { 0%, 100% { transform: translateY(0) rotate(calc(var(--lean, 0) * 4deg - 3deg)); } 50% { transform: translateY(-7px) rotate(calc(var(--lean, 0) * 4deg + 3deg)); } }
@keyframes buddy-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.72); opacity: 0.6; } }
@keyframes buddy-press { 0% { transform: scale(1, 1); } 40% { transform: translateY(6px) scale(1.12, 0.86); } 100% { transform: scale(1, 1); } }
@keyframes buddy-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(2px) scale(1.08, 0.92); } 50% { transform: translateY(-16px) scale(0.96, 1.04); } 85% { transform: translateY(1px) scale(1.04, 0.96); } }
@keyframes buddy-leap { 0% { transform: none; } 18% { transform: translateY(3px) scale(1.06, 0.92); } 50% { transform: translateY(-30px) scale(0.97, 1.04); } 82% { transform: translateY(2px) scale(1.06, 0.94); } 100% { transform: none; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes crumb-roll { from { opacity: 0; transform: translateY(80%); } }
@keyframes crumb-roll-back { from { opacity: 0; transform: translateY(-80%); } }
@keyframes crumb-blink { 50% { opacity: 0.25; } }

/* Calm: no opening, no movement, every word and dot already in place. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none !important; }
  .walker, .walk-bubble { display: none !important; }
  .plate-disc, .odo-strip { transition: none; }
  .crumb, .dock { transition: none; }
}
