/* gymamo.com home page (Depth Stack design). Big type at the back, the phone in the middle, app cards in front.
   Motion tokens from research/website-motion/04 §1.2. Final (reduced / no-JS) states are the defaults;
   travel is only added inside prefers-reduced-motion: no-preference. */

@font-face { font-family: Brand; font-weight: 400; font-display: swap; src: url(/fonts/sora-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Brand; font-weight: 600; font-display: swap; src: url(/fonts/sora-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Brand; font-weight: 700; font-display: swap; src: url(/fonts/sora-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Sora has no Cyrillic letters: Manrope fills them in on the Russian page. */
@font-face { font-family: Brand; font-weight: 400; font-display: swap; src: url(/fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Brand; font-weight: 600; font-display: swap; src: url(/fonts/manrope-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Brand; font-weight: 700; font-display: swap; src: url(/fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0a0a0a; --surface: #151515; --surface-2: #1f1f1f;
  --ink: #f5f5f5; --muted: #b0b0b0; --accent: #ffd60a; --on-accent: #0a0a0a;
  --green: #3ddc84; --line-input: #6b6b6b;

  --g-drive: cubic-bezier(.2, .9, .1, 1);
  --g-lock: cubic-bezier(.16, 1, .3, 1);
  --g-travel: cubic-bezier(.76, 0, .24, 1);
  --g-exit: cubic-bezier(.4, 0, 1, 1);

  --m: clamp(16px, 4vw, 80px);
  --wrap: 1280px;
  --gap: clamp(112px, 12vw, 200px);
  --t-l: clamp(30px, 3.6vw, 54px);
  --t-m: clamp(17px, 1.3vw, 20px);
  --k: .5;                        /* scale of the cut-out app cards (390 px app width → card px) */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; font: 400 17px/1.55 Brand, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2 { font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.035em; }
p, figure { margin: 0; }
.y { color: var(--accent); display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 40; background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--m)); margin-inline: auto; }

/* ---------- buttons, fields, form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: 700 17px/1 Brand, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--g-drive), background-color 180ms ease; touch-action: manipulation;
}
.btn:hover { background: #ffe14d; color: var(--on-accent); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.field {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-input); font: 400 17px/1 Brand, system-ui, sans-serif; transition: border-color 180ms ease; /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
}
.field::placeholder { color: #8f8f8f; }
.field:hover { border-color: #8f8f8f; }
.field:focus { outline: none; border-color: var(--accent); }
.join { max-width: 540px; }
.join-row { display: flex; gap: 10px; }
.status:not(:empty) { margin-top: 12px; font-weight: 600; }
.status.ok { color: var(--green); }
.status.err { color: #ff8a8d; }
.note { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 54ch; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; transition: background-color 180ms ease, box-shadow 180ms ease; }
.top.is-solid { background: rgba(10, 10, 10, .97); box-shadow: 0 1px 0 #1f1f1f; } /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
.top-in { width: min(var(--wrap), 100% - 2 * var(--m)); margin: 0 auto; display: flex; align-items: center; gap: 28px; min-height: 76px; }
.mark { display: flex; align-items: center; }
.mark-full { width: 150px; }
.mark-g { display: none; width: 36px; border-radius: 9px; }
.top-links { flex: 1; display: flex; gap: 28px; font-size: 16px; font-weight: 600; }
.top-links a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.top-links a:hover { color: var(--ink); }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sentinel { position: absolute; top: 120px; width: 1px; height: 1px; } /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */

/* ---------- the drawn phone ---------- */
.device {
  --w: min(220px, 58vw); position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .17);
  background: #1c1c1e; box-shadow: inset 0 0 0 1.5px #3a3a3c; /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
}
.device-screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .135); background: var(--bg); display: flex; flex-direction: column; isolation: isolate; }
.device-screen::before { content: ''; position: absolute; z-index: 3; top: calc(var(--w) * .028); left: 50%; width: 30%; height: calc(var(--w) * .082); transform: translateX(-50%); border-radius: 99px; background: #000; }
.device-bar { flex: none; height: calc(var(--w) * .11); padding: 0 calc(var(--w) * .1); display: flex; align-items: center; font: 600 calc(var(--w) * .042)/1 system-ui, -apple-system, sans-serif; }
.device-media { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

.scr-stack { position: relative; aspect-ratio: 390 / 844; overflow: hidden; }
.scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.scr.is-on { opacity: 1; z-index: 1; }
.device-live .live-poster { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.live-go { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); } /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
.live-go:active { transform: translateX(-50%) scale(.97); }
.device-live iframe { position: absolute; left: 0; top: 0; width: 390px; border: 0; transform-origin: 0 0; background: var(--bg); }
.device-live.is-live .live-poster, .device-live.is-live .live-go { display: none; }
html:not(.js) .live-go { display: none; }

/* ---------- cards cut from the real app screenshots ---------- */
.card { --d: 1; position: absolute; left: var(--lm, 0); top: var(--tm, 0); pointer-events: none;
  transform: translate3d(calc(var(--mx, 0px) * var(--d)), calc(var(--my, 0px) * var(--d)), 0) perspective(1400px) translateZ(var(--z, 0px)); }
.card.near { --d: 1.7; }
.card.far { --d: -.6; }
.par, .float { position: relative; }
.cut {
  position: relative; overflow: hidden; display: block;
  width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px);
  border-radius: calc(var(--k) * 30px); background: var(--bg);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, .8); /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
}
.cut img { position: absolute; max-width: none; width: calc(390px * var(--k)); height: auto; left: calc(var(--x) * var(--k) * -1px); top: calc(var(--y) * var(--k) * -1px); }
.near .cut { box-shadow: 0 40px 70px -12px rgba(0, 0, 0, .9), 0 12px 24px rgba(0, 0, 0, .55); } /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
.far .cut { filter: blur(1.2px) brightness(.72); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); } /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
.far .smp { opacity: .8; }
.smp { position: absolute; z-index: 2; top: -12px; right: 14px; padding: 3px 10px; border-radius: 999px; background: #2b2b2b; color: #ececec; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }

/* crops, in app pixels (390 wide) */
.c-streak { --x: 15; --y: 60; --w: 360; --h: 60; }
.c-week { --x: 15; --y: 252; --w: 360; --h: 101; }
.c-fatigue { --x: 15; --y: 404; --w: 360; --h: 149; }
.c-best { --x: 15; --y: 240; --w: 360; --h: 173; }
.c-others { --x: 15; --y: 422; --w: 360; --h: 241; }
.c-map { --x: 15; --y: 160; --w: 360; --h: 272; }
.c-plan { --x: 15; --y: 211; --w: 360; --h: 268; }
.c-sets { --x: 20; --y: 258; --w: 350; --h: 178; }
.c-chart { --x: 15; --y: 112; --w: 360; --h: 381; }
.c-rec { --x: 15; --y: 537; --w: 360; --h: 159; }

/* ---------- story: hero + four blocks (phone-first layout) ---------- */
.story { width: min(var(--wrap), 100% - 2 * var(--m)); margin-inline: auto; display: flex; flex-direction: column; }
.hero-txt { padding-top: clamp(16px, 4vw, 40px); position: relative; z-index: 2; }
.hero-txt h1 { font-size: clamp(40px, 10.6vw, 64px); line-height: 1; }
.lead { margin-top: 22px; font-size: var(--t-m); max-width: 40ch; }
.hero-txt .join { margin-top: 28px; }
.badge { margin-top: 20px; font-weight: 600; }
.demo-note { margin-top: 8px; color: var(--muted); font-size: 16px; }
.demo-note a { color: var(--ink); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }

.stage { position: relative; height: clamp(560px, 152vw, 660px); margin-top: 20px; }
.scene { position: absolute; inset: 0; perspective: 1100px; }
.bg-type {
  position: absolute; left: 0; right: 0; top: 46%; margin: -.4em 0 0; display: flex; justify-content: center;
  font: 700 29vw/.8 Brand, system-ui, sans-serif; letter-spacing: -.06em; color: #171717; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.bg-type span { display: block; transform: translate3d(var(--bx, 0), var(--by, 0), 0); }
.glow {
  position: absolute; left: 50%; top: 46%; width: min(130vw, 980px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 10, .15), rgba(255, 214, 10, .045) 55%, rgba(255, 214, 10, 0) 72%); /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
  pointer-events: none;
}
.rig { position: absolute; left: 50%; top: 46%; width: var(--w); transform: translate(-50%, -50%); --w: min(220px, 58vw); }
.rig .device { --w: inherit; }
.plane-phone { transform-origin: 50% 50%; transform-style: preserve-3d; pointer-events: none; }
/* When the mouse tilts the phone, this flat 3D layer would sit over the screen and eat the clicks. */
.plane-phone .device-live { pointer-events: auto; }
.plane-phone .device { transform: translate3d(calc(var(--mx, 0px) * .3), calc(var(--my, 0px) * .3), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.floor { position: absolute; left: 4%; right: 4%; bottom: -44px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .95), rgba(0, 0, 0, 0)); } /* taste-skill-ignore: depth shadow / glow asked for by the owner; field border; invisible sentinel */
.set:not([data-for="0"]) { display: none; }
.stage-cap { position: absolute; left: 0; bottom: 0; color: var(--muted); font-size: 15px; }
.still-btn { display: none; }

.block { margin-top: 112px; }
.block h2 { font-size: var(--t-l); line-height: 1.04; }
.block-txt > p { margin-top: 18px; font-size: var(--t-m); max-width: 38ch; color: var(--muted); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; font-size: var(--t-m); }
.checks li { display: flex; align-items: flex-start; gap: 14px; }
.checks svg { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.checks circle { fill: var(--ink); }
.checks path { fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.block-pic { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.lay { position: relative; --w: min(210px, 54vw); width: var(--w); perspective: 900px; }
.lay .device { --w: inherit; transform: rotateY(-9deg) rotateX(3deg); }
.block-pic figcaption { color: var(--muted); font-size: 15px; }

/* ---------- install band ---------- */
.install {
  margin-top: var(--gap); display: grid; gap: 28px;
  padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--accent); color: var(--on-accent);
}
.install h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; }
.inst-note { margin-top: 14px; max-width: 52ch; font-size: 17px; }
.inst-note a:hover { color: inherit; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inst-steps li { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 20px; border-radius: 20px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 17px; }
.inst-steps .n { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.inst-steps img { width: 48px; height: 48px; border-radius: 12px; margin-left: auto; flex: none; }

/* ---------- CTA ---------- */
.cta { margin-top: var(--gap); display: grid; gap: 40px; overflow: hidden; padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px) 0; border-radius: 28px; background: var(--surface); }
.cta h2 { font-size: var(--t-l); line-height: 1.04; }
.cta-line { margin-top: 16px; font-size: var(--t-m); }
.cta .join { margin-top: 28px; }
.cta-open { margin-top: 16px; font-weight: 700; }
.cta-open a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.cta-pic { height: 340px; display: flex; justify-content: center; padding-top: 24px; }
.cta-pic .lay { --w: 240px; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--gap); display: grid; gap: 32px; }
.faq h2 { font-size: var(--t-l); line-height: 1.04; }
.faq-list { display: grid; gap: 10px 16px; align-items: start; }
.faq details { border-radius: 18px; background: var(--surface); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 700; cursor: pointer; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--muted); transition: transform 260ms var(--g-drive); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { margin-top: var(--gap); padding-bottom: 40px; }
.ramp { display: flex; align-items: flex-end; gap: 2px; height: 44px; }
.ramp i { flex: 1; height: var(--h); background: var(--accent); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.ramp i.gap { margin-left: 10px; }
.foot-in { margin-top: 40px; display: grid; gap: 18px 32px; color: var(--muted); }
.foot-logo { width: min(420px, 70vw); }
.foot-what { color: var(--ink); font-size: var(--t-m); }
.foot-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-small { font-size: 16px; }

/* ---------- small phones ---------- */
@media (max-width: 959px) { .stage { overflow: clip; } .stage .card { --k: .42; } }
@media (max-width: 760px) {
  .top-links { display: none; }
  .top-in { justify-content: space-between; gap: 10px; min-height: 64px; }
  .join-row { flex-direction: column; }
  .join-row .btn { width: 100%; }
}
@media (max-width: 440px) {
  .mark-full { display: none; }
  .mark-g { display: block; }
  .lang { padding: 0 12px; }
  .top .btn-sm { padding: 0 16px; }
}

/* ---------- tablet + desktop, static layout (reduced motion or no JS) ---------- */
@media (min-width: 960px) {
  :root { --k: .7; }
  .story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; }
  .hero-txt { grid-column: 1; grid-row: 1; align-self: center; padding: 40px 0; }
  .step[data-step="1"] { grid-row: 2; } .step[data-step="2"] { grid-row: 3; } .step[data-step="3"] { grid-row: 4; } .step[data-step="4"] { grid-row: 5; }
  .stage { grid-column: 2; grid-row: 1; height: 760px; margin: 0; }
  .rig { --w: 290px; }
  .stage .card { left: var(--l); top: var(--t); }
  .bg-type { font-size: 21vw; }
  .block { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-top: var(--gap); }
  .block-pic { margin: 0; }
  .lay { --w: 270px; }
  .install { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 48px; }
  .inst-steps { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .inst-steps li { flex-direction: column; align-items: flex-start; min-height: 150px; padding: 22px; }
  .inst-steps li:nth-child(2) { margin-bottom: 28px; }
  .inst-steps li:nth-child(3) { margin-bottom: 56px; }
  .inst-steps img { margin: auto 0 0; }
  .cta { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .cta-txt { align-self: center; padding-bottom: clamp(36px, 5vw, 72px); }
  .cta-pic { height: 440px; padding: 0 40px 0 120px; }
  .cta-pic .lay { --w: 290px; }
  .cta-pic .card { left: var(--lm); top: var(--tm); }
  .faq { grid-template-columns: 1fr 2.4fr; gap: 40px; }
  .faq-list { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr auto; align-items: end; }
  .foot-logo { grid-column: 1 / -1; }
  .foot-small { grid-column: 1 / -1; }
  .ramp { gap: 4px; height: 56px; }
  .ramp i.gap { margin-left: 14px; }
}
@media (min-width: 960px) and (max-height: 820px) { :root { --k: .62; } }

/* =================================================================
   Motion (only when allowed)
   ================================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* hero phone starts turned away; main.js turns it to face you as you scroll */
  .js .plane-phone { transform: perspective(1400px) rotateY(-16deg) rotateX(8deg) rotateZ(1.5deg); }
  .js .stage { animation: arrive 720ms var(--g-lock) both; }
  @keyframes arrive { from { opacity: .4; transform: translateY(24px) scale(.96); } }

  /* ambient life: slow light behind the phone, cards bob a few px (pause button stops both) */
  .js .glow { animation: breathe 7s ease-in-out infinite alternate; }
  @keyframes breathe { from { opacity: .6; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
  .js .stage .float { animation: bob var(--fd, 7s) ease-in-out var(--fdl, 0s) infinite alternate; }
  @keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
  .js .still .glow, .js .still .float, .js .stage.off .glow, .js .stage.off .float { animation-play-state: paused; }
  .js .still-btn {
    display: grid; place-items: center; position: absolute; z-index: 5; right: 0; bottom: 0;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer;
    transition: transform 120ms var(--g-drive), background-color 180ms ease;
  }
  .still-btn:hover { background: #2e2e2e; }
  .still-btn:active { transform: scale(.94); }
  .still-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .still-btn .i-play { display: none; fill: currentColor; }
  .still-btn[aria-pressed="true"] .i-play { display: block; }
  .still-btn[aria-pressed="true"] .i-pause { display: none; }

  /* layered pictures (phones, CTA): cards slide out of the phone once */
  .js .lay .par { opacity: 0; transform: translateX(var(--ox, 0)) scale(.9); transition: opacity 360ms ease var(--dl, 0ms), transform var(--dt, 640ms) var(--g-lock) var(--dl, 0ms); }
  .js .lay .far .par { --dt: 520ms; }
  .js .lay .near .par { --dt: 760ms; --dl: 160ms; }
  .js .lay.in .par { opacity: 1; transform: none; }
  .js .lay .device { transition: transform 900ms var(--g-lock); transform: rotateY(-20deg) rotateX(6deg); }
  .js .lay.in .device { transform: rotateY(-9deg) rotateX(3deg); }

  /* section parts rise once (headings stay put) */
  .js .rv { opacity: .4; transform: translateY(18px); transition: opacity 480ms var(--g-drive) var(--d, 0ms), transform 480ms var(--g-drive) var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .inst-steps li.rv { transform: translateY(32px); }
  .js .inst-steps li.rv.in { transform: none; }

  /* footer ramp: 4 sets of 12 reps */
  .js .ramp i { transform: scaleY(0); transition: transform 360ms var(--g-drive) var(--d, 0ms); }
  .js .ramp.in i { transform: none; }
  .faq details[open] p { animation: fadein 180ms ease; }
  @keyframes fadein { from { opacity: 0; } }
}

/* ---------- desktop with motion: one pinned depth stage for the hero and the four blocks ---------- */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .story { width: min(var(--wrap), 100% - 2 * var(--m)); }
  .js .stage { grid-column: 1 / -1; grid-row: 1 / span 5; align-self: start; position: sticky; top: 0; height: 100svh; z-index: 0; animation: none; }
  .js .scene { perspective: 1400px; perspective-origin: 69% 50%; }
  .js .bg-type { top: 54%; }
  .js .glow { left: 69%; top: 53%; }
  .js .rig { left: 69%; top: 53%; --w: min(280px, calc((100vh - 200px) * .4)); }
  .js .hero-txt { min-height: calc(100vh - 76px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0 120px; }
  .js .hero-txt h1 { font-size: clamp(44px, 4.4vw, 66px); }
  .js .story .block { grid-column: 1; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; margin: 0; position: relative; z-index: 2; }
  .js .story .block-pic { display: none; }
  .js .story .block-txt { opacity: .4; transition: opacity 400ms ease; }
  .js .story .block.on .block-txt { opacity: 1; }
  .js .set:not([data-for="0"]) { display: block; }
  .js .stage-cap { left: 69%; bottom: 22px; transform: translateX(-50%); }
  .js .still-btn { right: 0; bottom: 14px; }

  /* the phone screen swaps per step */
  .js .scr { transform: translateY(8%); transition: transform 520ms var(--g-travel), opacity 360ms ease; }
  .js .scr.is-on { transform: none; }
  .js .scr.is-past { transform: translateY(-6%); transition: transform 520ms var(--g-travel), opacity 300ms var(--g-exit) 80ms; }

  /* each step's cards leave fast, then the new ones slide out of the phone: near cards travel further and later */
  .js .set:not([data-for="0"]) .par { opacity: 0; transform: translate(var(--ox, 0), var(--oy, 0)) scale(.86); transition: opacity 200ms var(--g-exit), transform 260ms var(--g-exit); }
  .js .stage[data-on="1"] .set[data-for="1"] .par,
  .js .stage[data-on="2"] .set[data-for="2"] .par,
  .js .stage[data-on="3"] .set[data-for="3"] .par,
  .js .stage[data-on="4"] .set[data-for="4"] .par { opacity: 1; transform: none; transition: opacity 360ms ease var(--dl, 120ms), transform var(--dt, 640ms) var(--g-lock) var(--dl, 120ms); }
  .js .set .far .par { --dt: 540ms; --dl: 60ms; }
  .js .set .near .par { --dt: 780ms; --dl: 200ms; }
}
@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  .stage { height: 720px; }
}

/* Demo on: the floating hero cards step aside so the real app can be used */
.set[data-for="0"] { transition: opacity 300ms ease, visibility 0s linear 0s; }
.stage.demo-on[data-on="0"] .set[data-for="0"] { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
