/* Scroll zero is a magazine cover: gym, then the masthead, then the product cut out over it,
   then the cover lines. It fades away as the scroll story starts. */
.cover { position:absolute; inset:0; z-index:5; overflow:hidden; background:#1b1411; color:#fff;
  opacity:0; visibility:hidden; transition:opacity .55s ease, visibility .55s; }
.at-hero .cover { opacity:1; visibility:visible; }
.cover .shot { position:absolute; left:0; top:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; pointer-events:none; user-select:none; }
.cover .led { animation:pair 1.4s ease-in-out infinite; }
/* the blue LED at the top of a pulse: lower is gentler (js/scroll.js has the same figure) */
@keyframes pair { 0%, 100% { opacity:0; } 50% { opacity:.55; } }
.cover::after { content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(rgba(14,9,7,.5), transparent 20%, transparent 52%, rgba(14,9,7,.84)); }

.masthead { position:absolute; left:0; right:0; top:38px; text-align:center; font-family:var(--display); font-weight:400;
  font-size:min(41vw, 60vh); line-height:.86; letter-spacing:.015em; color:var(--bg); pointer-events:none; user-select:none; }

.lines { position:absolute; z-index:2; top:52%; list-style:none; width:min(24vw, 300px); font-family:var(--display);
  font-size:clamp(22px, 2.7vw, 40px); line-height:1.02; letter-spacing:.02em; text-shadow:0 2px 14px rgba(0,0,0,.7); }
.lines li { padding:12px 0; border-top:2px solid var(--accent); }
.lines.left { left:28px; }
.lines.right { right:28px; text-align:right; }

.front { position:absolute; z-index:2; left:28px; right:28px; bottom:26px; display:flex; justify-content:space-between; align-items:flex-end; gap:24px; }
.front h1 { font-family:var(--display); font-weight:400; font-size:clamp(38px, min(5vw, 10vh), 82px); line-height:.94; letter-spacing:.02em; text-shadow:0 2px 18px rgba(0,0,0,.6); }
.front h1 em { font-style:normal; color:#ff7a52; }
.act { display:flex; flex-direction:column; align-items:flex-end; gap:12px; width:min(400px, 36vw); }
.act .signup { color:var(--text); }
.act .joined { color:#fff; font-size:15px; }
.act .joined em { font-style:normal; color:#ff7a52; }
.act .stores { margin-top:0; }
.act .stores li { border-color:rgba(255,255,255,.28); }
.act .cue { margin-top:2px; color:rgba(255,255,255,.75); }
/* while the set arrives: a hairline under the cue fills, then fades away */
.cue .meter { display:block; height:2px; margin-top:7px; border-radius:2px; overflow:hidden; background:rgba(255,255,255,.2); transition:opacity .5s ease .4s; }
.cue .meter span { display:block; height:100%; width:0; background:#ff7a52; transition:width .25s ease; }
.cue.ready .meter { opacity:0; }

@media (prefers-reduced-motion:reduce) { .cover .led { animation:none; opacity:.55; } }

@media (max-width:820px) {
  /* a phone's cover: the picture fills the upper part, the words sit on the dark below */
  .cover .shot { height:66%; }
  .cover::after { background:linear-gradient(rgba(14,9,7,.45), transparent 16%, transparent 44%, #1b1411 66%); }
  .masthead { top:62px; font-size:46vw; }
  .lines { top:34%; width:30vw; font-size:5.2vw; }
  .lines li { padding:8px 0; }
  .lines.left { left:14px; }
  .lines.right { right:14px; }
  .front { left:14px; right:14px; bottom:calc(14px + env(safe-area-inset-bottom)); flex-direction:column; align-items:center; gap:12px; text-align:center; }
  .front h1 { font-size:clamp(32px, 11vw, 56px); }
  .act { align-items:center; width:100%; gap:10px; }
  .act .stores li { min-width:0; gap:8px; padding:5px 14px 5px 5px; border-radius:14px; font-size:14px; }
  .act .stores i { width:30px; height:30px; border-radius:10px; }
  .act .cue { font-size:10px; }
}
