/* 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;
}

*, *::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; gap: 10px;
  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; }
.beta-tag, .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)));
}
.lang {
  margin-inline-start: auto; min-width: 48px; min-height: 40px; padding: 0 12px;
  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 ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; }
.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; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 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-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: 40px; align-items: center;
  min-height: 100svh; padding: calc(env(safe-area-inset-top, 0px) + 96px) 0 40px;
}
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--champ); }
.hero-title {
  margin-top: 16px;
  font-family: 'Beast Arabic Display', var(--sans); font-weight: 400;
  font-size: clamp(52px, 15vw, 96px); line-height: 1.08; color: var(--gold);
  text-shadow: 4px 4px 0 var(--gold-d);
}
html[lang='en'] .hero-title { font-family: var(--pixel); font-size: clamp(64px, 17vw, 120px); 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; height: min(560px, 120vw); max-width: 460px; width: 100%; margin: 0 auto;
}
.hero-stage .phone { position: absolute; width: 58%; 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; left: -4%; right: -4%; 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); }
.feat-phones { display: flex; justify-content: center; }
.feat-phones .phone { max-width: 250px; }
.feat-phones.two { position: relative; min-height: 470px; }
.feat-phones.two .phone { position: absolute; width: 58%; max-width: 240px; }
.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: 46px; opacity: 0.94; }

/* ---------- Two looks ---------- */
.looks-lead { margin-bottom: 28px; }
.look-grid { display: grid; gap: 16px; }
.look { position: relative; padding: 20px 18px 0; overflow: hidden; }
.look header { display: flex; align-items: center; gap: 10px; }
.look h3 { font-size: 26px; font-weight: 900; line-height: 1.2; }
.look-tag { font-family: var(--silk); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; padding: 3px 7px 2px; }
.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 .look-tag { background: var(--accent); color: #1a0d06; }
.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 .look-tag { color: var(--champ); border: 1px solid rgba(208, 168, 98, 0.5); border-radius: 999px; padding: 3px 10px; font-family: var(--sans); font-weight: 700; letter-spacing: 0.24em; }
.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); }

/* ---------- 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);
  transform: translate(-50%, 140%); transition: transform 320ms var(--ease-out);
}
.dock.is-on { transform: translate(-50%, 0); }
.dock .btn-ico { width: 18px; height: 18px; }

/* ---------- Wide screens ---------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-stage { height: 600px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat { grid-template-columns: 1fr 1fr; gap: 64px; padding: 96px 0; }
  .feat-flip .feat-copy { order: 2; }
  .look-grid { grid-template-columns: 1fr 1fr; }
  .steps { 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, html.motion .hero .fine { 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 .kicker .stamp { animation: stamp 420ms var(--ease-out) 260ms both; }
  html.motion.is-ready .hero-lead { animation: rise 700ms var(--ease-out) 1250ms both; }
  html.motion.is-ready .hero-cta { animation: rise 700ms var(--ease-out) 1450ms both; }
  html.motion.is-ready .hero .fine { animation: rise 700ms var(--ease-out) 1600ms 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.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; }

  /* ---- 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 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; }
  .crumb, .dock { transition: none; }
}
