/* Home — faithful port of mockups/01-landing.html (owner's preferred design) onto the site foundation.
   The mockup's page CSS + the brand.css pieces it uses, scoped to .home / body[data-page="home"] so nothing clashes with site.css.
   Scroll scenes only run under html.scenes (set inline in <head> when motion is allowed); without it every scene shows its end state. */

/* ============ brand.css pieces (scoped) ============ */
body[data-page="home"].stars {
  background-color: var(--void);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fffc 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 62%, #fff9 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 72%, var(--yellow) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 82%, var(--slime) 50%, transparent 51%);
  background-size: 340px 340px;
}
.home { overflow-x: clip; } /* the tilted ticker bleeds past the edges; clip (not hidden) keeps sticky scenes working */
.home section { position: relative; }

/* type (polished values from body[data-mock]) */
.home .heading-2 { font-size: 48px; line-height: 1.08; letter-spacing: -.02em; font-weight: 600; }
.home .heading-3 { font-size: 36px; line-height: 40px; letter-spacing: -.02em; font-weight: 600; }
.home .heading-6 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; font-weight: 600; }
.home .title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.home .title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.home .body-3 { font-size: 16px; line-height: 24px; }
.home .body-6 { font-size: 14px; line-height: 20px; }
.home .caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.home .caption-5 { font-size: 12px; line-height: 16px; }
@media (max-width: 560px) { .home .heading-2 { font-size: 36px; line-height: 1.1; } }
@media (max-width: 360px) { .home .heading-2 { font-size: 32px; } .home .heading-3 { font-size: 28px; line-height: 1.15; } .home :is(h1, h2) { overflow-wrap: anywhere; } }
.home .ul { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* layout */
.home .container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.home .pad { padding-block: 96px; }
.home .col { display: flex; flex-direction: column; gap: 16px; }
.home .center { text-align: center; justify-content: center; align-items: center; }
.home .row { gap: 16px; }
.home .grid { display: grid; gap: 24px; list-style: none; }
.home .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .home .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home .g3 { grid-template-columns: 1fr; } }

/* components */
.home .card { background: var(--s3); border: 2px solid var(--line); border-radius: 24px; padding: 24px; }
.home .pill { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 12px; border-radius: 999px; border: 2px solid currentColor; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.home .slime-bg { background: var(--slime); color: #000; }
.home .slime-bg :focus-visible { outline-color: #000; }

/* buttons: the mockup's glowing hard-shadow pills */
.home .btn { padding: 12px 24px; box-shadow: 0 4px 0 #000, 0 0 24px #7cff2b55; }
.home .btn.yellow { box-shadow: 0 4px 0 #000, 0 0 24px #ffe60055; }
.home .btn.ghost { --fg: var(--text); border: 3px solid var(--slime); box-shadow: none; }
.home .btn.lg { padding: 16px 32px; font-size: 18px; line-height: 28px; }
@media (hover: hover) and (pointer: fine) {
  .home .btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 #000, 0 0 40px #7cff2b99; }
  .home .btn.yellow:hover { box-shadow: 0 6px 0 #000, 0 0 40px #ffe60099; }
  .home .btn.ghost:hover { background: #7cff2b1a; box-shadow: none; border-color: var(--slime); }
}
.home .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; transition-duration: var(--d-press); }
.home .btn.ghost:active { box-shadow: none; }

/* motion vocabulary (mockup values, sine loops) */
.home .float { animation: float-m 4s var(--ease-sine) infinite alternate; }
.home .float.slow { animation-duration: 6s; }
@keyframes float-m { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
.home .beam { position: absolute; clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); background: #7cff2b2e; mix-blend-mode: screen; pointer-events: none; animation: beam-m 2.4s var(--ease-sine) infinite alternate; }
@keyframes beam-m { from { opacity: .45; } to { opacity: 1; } }
.scenes .home .reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--d-enter) var(--ease-out), transform var(--d-enter) var(--ease-out); }
.scenes .home .reveal.in { opacity: 1; transform: none; }
.scenes .home [data-words] .w { color: #f4ffe94d; transition: color .5s var(--ease-out); }
.scenes .home [data-words] .w.on { color: var(--text); }
.scenes .home [data-words] .w.on.hl { color: var(--slime); }

/* No slime drip on the final band (owner decision): plain rounded box. */
body[data-page="home"] .final.drip::after { display: none; }

/* ============ HERO — pinned scene: wordmark shrinks away, the bag rises into the beam ============ */
.home .hero { --p: 0;
  /* eased sub-ranges of --p (choreography): wordmark out, beam, bag rise, copy in; ~10% hold before unpin */
  --pw: clamp(0, var(--p) / .62, 1);          --ew: calc(var(--pw) * var(--pw) * (3 - 2 * var(--pw)));
  --pb: clamp(0, (var(--p) - .05) / .55, 1);  --eb: calc(var(--pb) * var(--pb) * (3 - 2 * var(--pb)));
  --pg: clamp(0, (var(--p) - .10) / .70, 1);  --eg: calc(var(--pg) * var(--pg) * (3 - 2 * var(--pg)));
  --pc: clamp(0, (var(--p) - .72) / .18, 1);  --ec: calc(1 - (1 - var(--pc)) * (1 - var(--pc))); }
/* The stage sits under the sticky site header, so positions inside it use its own size (cqh/cqw) instead of vh/vw. */
.home .stage { height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); min-height: 520px; overflow: hidden; display: grid; place-items: center; container-type: size; }
.home .hero { --ufo-h: min(110px, 22cqw, 11cqh); } /* saucer height; it always sits fully above the title */
.home .hero .wm { position: absolute; top: max(14cqh, calc(var(--ufo-h) + 28px)); margin: 0; font-size: clamp(56px, min(13cqw, 22cqh), 200px); text-align: center; will-change: transform;
  text-shadow: 0 .06em 0 #000, 0 .1em 0 var(--slime-deep), 0 0 .5em #7cff2b66;
  transform: scale(calc(1 - var(--ew) * .55)) translateY(calc(var(--ew) * -30cqh)); opacity: calc(1 - var(--ew)); }
.home .hero .wm span { display: block; animation: drop 1s var(--ease-out) both; }
.home .hero .wm span:nth-child(2) { animation-delay: .08s; } .home .hero .wm span:nth-child(3) { animation-delay: .16s; }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) scale(.9); } }
.home .hero .ufoWrap { position: absolute; top: max(10px, calc(max(14cqh, var(--ufo-h) + 28px) - var(--ufo-h) - 12px)); left: 50%; translate: -50% 0; transform: translateY(calc(var(--eg) * 14cqh)); will-change: transform; }
.home .hero .beam { left: 50%; top: 13cqh; width: 70cqw; height: 90cqh; translate: -50% 0; opacity: var(--eb); }
.home .hero .bag { position: absolute; bottom: 0; will-change: transform; transform: translateY(calc(70cqh - var(--eg) * 104cqh)) rotate(calc(18deg - var(--eg) * 18deg)) scale(calc(.8 + var(--eg) * .3)); }
.home .hero [data-tilt] { transition: none; }
.home .hero .copy { position: absolute; bottom: 8cqh; padding-inline: 16px; text-align: center; opacity: var(--ec); transform: translateY(calc((1 - var(--ec)) * 40px)); }
.home .hero .scrollcue { position: absolute; bottom: 24px; display: flex; align-items: center; gap: 6px; opacity: clamp(0, 1 - var(--p) * 5, 1); animation: float-m 1.6s var(--ease-sine) infinite alternate; }
.home .hero .scrollcue .i { width: 16px; height: 16px; }
.home .orbit { position: absolute; inset: 0; pointer-events: none; }
.home .orbit .ico { position: absolute; }
.scenes .home .hero { height: 260vh; }
.scenes .home .hero .stage, .scenes .home .rail .stage { position: sticky; top: var(--hdr-h); }
html:not(.scenes) .home .hero { --p: 1; }
html:not(.scenes) .home .hero .scrollcue { display: none; }

/* ============ ticker ============ */
.home .ticker { overflow: hidden; border-block: 3px solid #000; background: var(--yellow); color: #000; transform: rotate(-2deg); margin: 40px -20px; }
.home .ticker div { display: flex; gap: 48px; width: max-content; padding: 12px 0; font: 24px/1 var(--display); animation: tick 22s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

/* quick links: phones only */
.home .quick ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; list-style: none; padding: 4px 24px 8px; }
.home .quick ul::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .home .quick { display: none; } }

/* ============ tagline ============ */
.home .tagline { padding: 30vh 0; }
.home .tagline h2 { max-width: 900px; margin: auto; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; text-align: center; }
.home .tagline em { font-style: normal; }
html:not(.scenes) .home .tagline { padding: 96px 0; }
html:not(.scenes) .home .tagline em { color: var(--slime); }

/* ============ horizontal pinned flavor rail ============ */
.scenes .home .rail { height: 420vh; }
/* Mockup change: the heading sits in flow above the cards (in the mockup the first card covered "Pick your specimen"). */
.home .rail .stage { display: flex; flex-direction: column; justify-content: center; gap: 24px; place-items: initial; }
.home .rail .hud { padding-inline: 10vw; }
.home .rail .hud .heading-2 { margin-top: 12px; }
.home .track { display: flex; gap: 32px; padding-inline: 10vw; will-change: transform; }
.scenes .home .track { transform: translateX(calc(var(--p, 0) * (-220vw - 128px))); }
.home .fcard { --ink: #000; width: 60vw; height: clamp(320px, calc(100cqh - 250px), 70vh); border-radius: 40px; flex: none; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 48px; border: 3px solid #000; position: relative; overflow: hidden; background: var(--bg); color: var(--ink); }
.home .fcard h3 { font: clamp(36px, 5vw, 72px)/0.95 var(--display); color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.home .fcard h3 a { outline-offset: 6px; }
.home .fcard h3 a:focus-visible { outline-color: #000; }
.home .fcard .title-2 { margin-top: 16px; color: var(--ink); }
.home .fbuy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.home .fprice { font: 20px/1 var(--display); color: var(--yellow); background: #000; padding: 10px 14px; border-radius: 999px; }
.home .fcard .btn { --bg: #000; --fg: #fff; border-color: #000; box-shadow: 0 4px 0 #0006; }
@media (hover: hover) and (pointer: fine) { .home .fcard .btn:hover { box-shadow: 0 6px 0 #0006; } }
.home .fcard .btn:active { box-shadow: 0 1px 0 #0006; }
.home .fcard .btn:focus-visible { outline-color: #fff; }
.home .fpack { justify-self: center; }
.home .fpack [data-pack] { --w: min(24vw, 320px, 52cqh); }
.home .progress { position: absolute; bottom: 7cqh; left: 10vw; right: 10vw; height: 6px; background: #ffffff1a; border-radius: 6px; }
.home .progress i { display: block; height: 100%; border-radius: 6px; background: var(--slime); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 16px var(--slime); }
.home .rail-note { position: absolute; bottom: calc(7cqh - 28px); left: 10vw; }
@media (max-width: 760px) {
  .home .fcard { width: 84vw; height: clamp(320px, calc(100cqh - 310px), 70vh); grid-template-columns: 1fr; align-content: center; padding: 28px 24px; gap: 8px; }
  .home .fpack [data-pack] { --w: min(34vw, 30cqh); }
  .scenes .home .track { transform: translateX(calc(var(--p, 0) * (-340vw - 128px))); }
  .home .fbuy { margin-top: 16px; }
}
/* static rail (reduced motion / no JS): native horizontal scroll with snap */
html:not(.scenes) .home .rail .stage { height: auto; min-height: 0; container-type: normal; padding-block: 64px; overflow: visible; }
html:not(.scenes) .home .track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 10vw; padding-bottom: 16px; }
html:not(.scenes) .home .fcard { scroll-snap-align: start; height: auto; min-height: 420px; }
html:not(.scenes) .home .fpack [data-pack] { --w: min(24vw, 280px); }
@media (max-width: 760px) { html:not(.scenes) .home .fpack [data-pack] { --w: 34vw; } }
html:not(.scenes) .home .progress { display: none; }
html:not(.scenes) .home .rail-note { position: static; padding-inline: 10vw; }

/* ============ steps ============ */
.home .steps .card { padding: 32px; }
.home .steps .n { font: 64px/1 var(--display); color: var(--slime); }
.home .steps h3 { margin: 16px 0 8px; }
@media (hover: hover) { .home .steps h3 a:hover { color: var(--slime); } }

/* ============ Play & Win: arcade cabinet ============ */
.home .cabinet { border: 3px solid #000; border-radius: 40px; background: var(--s3); overflow: hidden; box-shadow: 0 0 0 2px #ffe60055; }
.home .cab-top { height: 18px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #000 14px 28px); border-bottom: 3px solid #000; }
.home .cab-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 48px; background-image: radial-gradient(#ffe60014 1.2px, transparent 1.4px); background-size: 14px 14px; }
.home .cab-title { font-size: clamp(44px, 7vw, 88px); line-height: .92; }
.home .cab-title span { display: inline-block; }
.home .cab-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.home .cab-steps li { display: flex; gap: 14px; align-items: flex-start; }
.home .cab-steps b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--slime); color: #000; border: 2px solid #000; font: 16px/1 var(--display); }
.home .cab-steps span { padding-top: 6px; color: var(--muted); }
.home .cab-steps strong { color: var(--text); font-weight: 600; }
.home .prize { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 32px 24px; border: 2px dashed #ffe60088; border-radius: 28px; background: #000; }
.home .prize-ico { width: 48px; height: 48px; color: var(--yellow); }
@media (max-width: 860px) { .home .cab-in { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } .home .cabinet { border-radius: 28px; } }

/* ============ Meet ZEEB (compact) ============ */
.home .zeeb-in { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 32px 40px; border: 2px solid var(--line); border-radius: 32px; background: var(--s2); }
@media (max-width: 700px) { .home .zeeb-in { grid-template-columns: 1fr; justify-items: start; padding: 28px 24px; gap: 20px; } }

/* ============ FAQ ============ */
.home .faq { max-width: 800px; }
.home details { border: 2px solid var(--line); border-radius: 16px; padding: 8px 24px; background: var(--s3); transition: border-color .3s var(--ease-out); }
.home details[open] { border-color: var(--slime); }
.home summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.home summary::-webkit-details-marker { display: none; }
.home summary:focus-visible { outline-offset: 6px; }
.home summary::after { content: "+"; color: var(--slime); font-size: 24px; transition: transform .5s var(--ease-out); }
.home details[open] summary::after { transform: rotate(45deg); }
.home details p { margin: 4px 0 8px; color: var(--muted); }

/* ============ Our Mission: calm, plain, no neon ============ */
.home .mission { padding-block: 32px 96px; }
.home .mission-in { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; padding: 48px; border-radius: 24px; background: var(--s2); border: 1px solid var(--line); }
.home .mission-in .body-3 { font-size: 18px; line-height: 1.6; max-width: 60ch; }
.home .mission-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.home .mission-link .i { width: 18px; height: 18px; }
@media (max-width: 560px) { .home .mission-in { padding: 32px 24px; } }

/* ============ spotted in stores ============ */
.home .spotted { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.home .spotted img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: 40px; border: 3px solid var(--slime); box-shadow: 0 0 0 6px #000, 0 40px 80px #000, 0 0 60px #7cff2b33; }
@media (max-width: 860px) { .home .spotted { grid-template-columns: 1fr; } }

/* ============ final band ============ */

.home .final { padding: 120px 24px; text-align: center; border-radius: 48px; --drip-c: var(--slime); }
.home .final h2 { margin: 24px auto 12px; max-width: 680px; color: #000; }
.home .final .body-3 { max-width: 520px; margin: 0 auto 32px; color: #000c; }
.home .final .body-6 { margin-top: 20px; }
.home .final .ul { color: #000; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) { .home .final { padding: 80px 20px; border-radius: 32px; } }

/* ============ reduced motion: no loops, no scroll-linked motion ============ */
@media (prefers-reduced-motion: reduce) {
  .home .float, .home .beam, .home .ticker div, .home .hero .wm span, .home .hero .scrollcue { animation: none !important; }
  .home .hero .beam { opacity: 1; }
}

/* Background UFO chase (assets/js/ufo-chase.js) sits behind the content: the page's black comes from <html>,
   so the body only paints the star dots and the tiny chase shows between the sky and everything else. */
body[data-page="home"].stars { background-color: transparent; }

/* Hero craft: detailed saucer + a tractor beam emitted from its underside (moves and floats with it). */
.home .hero .craft { position: relative; width: calc(var(--ufo-h) * 2); }
.home .hero .ufo-hero { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.home .hero .ufo-hero .rim circle { fill: #FFE600; stroke: #111; stroke-width: 1.2; }
.home .hero .ray {
  --em: calc(var(--ufo-h) * .13);                       /* half width of the emitter */
  position: absolute; left: 50%; top: calc(var(--ufo-h) * .82); width: 70cqw; height: 100cqh; translate: -50% 0;
  clip-path: polygon(calc(50% - var(--em)) 0, calc(50% + var(--em)) 0, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse 22% 9% at 50% 0, rgba(225,255,205,.75), rgba(124,255,43,0) 100%),
    repeating-linear-gradient(to bottom, rgba(190,255,150,0) 0, rgba(190,255,150,.045) 14px, rgba(190,255,150,0) 28px),
    linear-gradient(to bottom, rgba(124,255,43,.5), rgba(124,255,43,.2) 22%, rgba(124,255,43,.08) 65%, rgba(124,255,43,0));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
  mix-blend-mode: screen; pointer-events: none; opacity: calc(.7 + .3 * var(--eb, 1));
  animation: ray-flow 2.6s linear infinite, ray-breathe 3.4s var(--ease-sine, ease-in-out) infinite alternate;
}
@keyframes ray-flow { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 28px, 0 0; } }
@keyframes ray-breathe { from { filter: brightness(.85); } to { filter: brightness(1.15); } }
.home .hero .ufo-hero .rim circle { animation: rim-chase 1.6s steps(1) infinite; }
.home .hero .ufo-hero .rim circle:nth-child(2) { animation-delay: .23s; } .home .hero .ufo-hero .rim circle:nth-child(3) { animation-delay: .46s; }
.home .hero .ufo-hero .rim circle:nth-child(4) { animation-delay: .69s; } .home .hero .ufo-hero .rim circle:nth-child(5) { animation-delay: .92s; }
.home .hero .ufo-hero .rim circle:nth-child(6) { animation-delay: 1.15s; } .home .hero .ufo-hero .rim circle:nth-child(7) { animation-delay: 1.38s; }
@keyframes rim-chase { 0% { fill: #FFFBD0; } 20% { fill: #FFE600; } }
@media (prefers-reduced-motion: reduce) { .home .hero .ray, .home .hero .ufo-hero .rim circle { animation: none; } }

/* ============ PHONES & TABLETS (< 900px): compact, static hero (no scroll-story) ============
   On small screens the pinned scene put the title under the saucer and the bag through the beam, and left a tall empty
   beam with no copy. Here the hero is a plain column — saucer, title, tagline + CTA, then the bag in the beam — all in
   the first viewport, with the same art. Desktop (900px+) keeps the scroll scene unchanged. */
@media (max-height: 500px) and (max-width: 1000px) {
  .scenes .home .hero { height: auto; }
  .home .hero { --ufo-h: min(104px, 20cqw); }
  .home .hero .stage, .scenes .home .hero .stage { position: relative; top: auto; height: auto; min-height: 0; container-type: inline-size;
    display: flex; flex-direction: column; align-items: center; gap: 0; padding: 16px 16px 8px; }
  .home .hero .ufoWrap { position: relative; top: auto; left: auto; translate: none; transform: none; z-index: 1; }
  .home .hero .ray { height: 660px; opacity: .85; } /* fades out around the bag; clipped at the bottom of the hero */
  .home .hero .wm { position: relative; top: auto; margin-top: 10px; font-size: clamp(44px, 15.5cqw, 100px); transform: none; opacity: 1; will-change: auto; z-index: 1; }
  .home .hero .copy { position: relative; bottom: auto; margin-top: 18px; padding-inline: 0; gap: 14px; opacity: 1; transform: none; z-index: 2; order: 1; }
  .home .hero .copy .title-1 { font-size: 18px; line-height: 26px; max-width: 30ch; text-wrap: balance; }
  .home .hero .copy .btn.lg { padding: 12px 26px; }
  .home .hero .bag { position: relative; bottom: auto; order: 2; margin: 24px 0 0; transform: none; will-change: auto; z-index: 1; }
  .home .hero .bag [data-pack] { --w: min(240px, 50cqw) !important; rotate: -6deg; }
  .home .hero .scrollcue { display: none; }
  /* the floating aliens: small, near the edges, away from the text; one is enough on the narrowest phones */
  .home .hero .orbit .ico:nth-child(1) { --size: 34px !important; left: 4% !important; top: 34% !important; }
  .home .hero .orbit .ico:nth-child(2) { --size: 30px !important; right: 5% !important; top: 18px !important; left: auto !important; }
  .home .hero .orbit .ico:nth-child(3) { --size: 32px !important; right: 6% !important; bottom: 64px !important; top: auto !important; }
  .home .tagline, .scenes .home .tagline { padding: 18vh 0; }
}
@media (max-width: 400px) { .home .hero .orbit .ico:nth-child(1) { display: none; } }

/* quick links (phones): a tidy 2×2 grid of single-line pills */
.home .quick ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; padding: 4px 24px 8px; max-width: 560px; margin-inline: auto; }
.home .quick li { min-width: 0; }
.home .quick .chip { width: 100%; justify-content: center; white-space: nowrap; padding-inline: 12px; font-size: 15px; }
.home .quick .chip .i { width: 20px; height: 20px; }

/* phones: tighter section rhythm (64px, per the spacing scale) and evenly sized paired buttons */
@media (max-width: 560px) {
  .home .pad { padding-block: 64px; }
  .home .steps ol { margin-top: 32px !important; }
  .home .cab-copy .row > .btn, .home .spotted .row > .btn { flex: 1 1 auto; }
}

/* phones & tablets (< 900px): the flavor rail is a plain swipe row instead of a long pinned sideways scroll.
   Cards snap to the centre with the next card peeking in, so it's obvious you can swipe. */
@media (max-width: 899px) {
  .scenes .home .rail { height: auto; }
  .home .rail .stage, .scenes .home .rail .stage { position: relative; top: auto; height: auto; min-height: 0; container-type: normal; padding-block: 48px 24px; overflow: visible; }
  .home .rail .hud { padding-inline: 24px; }
  .home .track, .scenes .home .track { transform: none; will-change: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; padding: 4px 24px 16px; gap: 14px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .home .track::-webkit-scrollbar { display: none; }
  .home .fcard { width: min(82vw, 420px); height: auto; min-height: 0; scroll-snap-align: center; border-radius: 32px; padding: 24px 22px; gap: 12px; }
  .home .fcard h3 { font-size: clamp(34px, 10vw, 48px); }
  .home .fpack [data-pack] { --w: min(44vw, 200px); }
  .home .progress { display: none; }
  .home .rail-note { position: static; padding-inline: 24px; margin-top: 4px; }
}


/* ============ PHONES & TABLETS, portrait (< 900px wide): the hero scroll scene, re-choreographed for a tall screen ============
   Same story as desktop — the wordmark beams away, the tractor beam switches on, the bag rises into it, the copy lands —
   but laid out so nothing ever sits under artwork: the wordmark fades out early (gone before it would reach the saucer),
   the bag stops below the saucer, and the copy lands under the bag. A scroll cue shows from the first frame. */
@media (max-width: 899px) and (min-height: 501px) {
  .scenes .home .hero { height: 220vh; }
  .home .hero { --ufo-h: min(96px, 24cqw, 12cqh);
    --pw: clamp(0, var(--p) / .32, 1);          --ew: calc(var(--pw) * var(--pw) * (3 - 2 * var(--pw)));
    --pb: clamp(0, (var(--p) - .08) / .40, 1);  --eb: calc(var(--pb) * var(--pb) * (3 - 2 * var(--pb)));
    --pg: clamp(0, (var(--p) - .04) / .62, 1);  --eg: calc(var(--pg) * var(--pg) * (3 - 2 * var(--pg)));
    --pc: clamp(0, (var(--p) - .66) / .22, 1);  --ec: calc(1 - (1 - var(--pc)) * (1 - var(--pc))); }
  .home .hero .ufoWrap { top: 3cqh; transform: none; }
  .home .hero .ray { height: 62cqh; opacity: calc(.5 + .4 * var(--eb)); }
  .home .hero .wm { top: calc(3cqh + var(--ufo-h) + 18px); font-size: clamp(48px, 17cqw, 104px);
    transform: scale(calc(1 - var(--ew) * .25)) translateY(calc(var(--ew) * -6cqh)); opacity: calc(1 - var(--ew) * 1.4); }
  .home .hero .bag { bottom: auto; top: 100cqh;
    transform: translateY(calc(var(--eg) * -78cqh)) rotate(calc(14deg - var(--eg) * 20deg)) scale(calc(.85 + var(--eg) * .15)); }
  .home .hero .bag [data-pack] { --w: min(220px, 52cqw, 30cqh) !important; }
  .home .hero .copy { bottom: 4cqh; padding-inline: 20px; gap: 12px; }
  .home .hero .copy .title-1 { font-size: 18px; line-height: 26px; max-width: 30ch; text-wrap: balance; }
  .home .hero .copy .btn.lg { padding: 12px 26px; }
  .home .hero .scrollcue { bottom: calc(5cqh + 52px); }
  /* the floating aliens: small, near the edges, away from the text */
  .home .hero .orbit .ico:nth-child(1) { --size: 34px !important; left: 4% !important; top: 46% !important; }
  .home .hero .orbit .ico:nth-child(2) { --size: 30px !important; right: 5% !important; top: 4cqh !important; left: auto !important; }
  .home .hero .orbit .ico:nth-child(3) { --size: 32px !important; right: 6% !important; bottom: 30% !important; top: auto !important; }
  .home .tagline, .scenes .home .tagline { padding: 18vh 0; }
}
@media (max-width: 400px) and (min-height: 501px) { .home .hero .orbit .ico:nth-child(1) { display: none; } }
