/* The homepage, ported from board E of the "Marble Homepage" design canvas. Spec:
   docs/superpowers/specs/2026-10-24-homepage-design.md. Nothing hides or moves without the script (html.js), and
   nothing moves with Reduce Motion. */

:root {
  --page: #FCFCFB;
  --ink: #111;
  --muted: #6e6e73;
  --soft: #5b5b60;
  --card: #F1F1EF;
  --dark: #121212;
  --dark-card: #1C1C1E;
  --dark-muted: #a1a1a6;
  --blue: #187AF5;
  --orange: #FF9500;
  --ad-bar: #F29D3D;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.2, .8, .2, 1);
  --glass: rgba(255, 255, 255, 0.82);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', system-ui, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--blue); }
h1, h2, h3, p { margin: 0; }
.spacer { flex-grow: 1; }
.muted { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--orange); flex: none; }

/* Scroll progress, in Marble blue like the mini-player's line */
.progress { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 3px; background: rgba(0, 0, 0, 0.04); pointer-events: none; }
.progress-fill { height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* Nav */
.nav {
  position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(16, 40, 80, 0.10);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-link { text-decoration: none; font-size: 15px; color: #555; }

/* App Store buttons */
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: 100%; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; white-space: nowrap;
}
.store:hover { color: #fff; background: #000; }
.store-nav { min-height: 44px; padding: 0 18px; gap: 8px; font-size: 15px; }
.store-nav .apple { width: 16px; height: 16px; }
.store.soon { background: #2c2c2e; cursor: default; }
.store-close { background: #f5f5f7; color: var(--ink); }
.store-close:hover { background: #fff; color: var(--ink); }
.store-close.soon { background: #3a3a3c; color: #f5f5f7; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #CFE3FD 0%, #E3EEFD 34%, #F4F8FD 68%, var(--page) 100%);
  padding: 112px 16px 0; overflow: hidden;
}
.hero-text { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero h1 { font-size: clamp(48px, 6.2vw, 88px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.lead { max-width: 640px; font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: #3a3a3c; }
#download { margin-top: 4px; }

.phones {
  position: relative; max-width: 1120px; margin: -12px auto 0; height: 660px; padding-top: 60px; display: flex; justify-content: center; align-items: flex-start;
  /* The phones fade into the page rather than being cut off by the hero's edge. The padding on top keeps their
     shadows inside the mask. */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.phone { width: 270px; border-radius: 14% / 6.5%; filter: drop-shadow(0 24px 40px rgba(16, 40, 80, 0.16)); }
.phone-left { margin-right: -40px; margin-top: 70px; transform: rotate(-6deg); }
.phone-right { margin-left: -40px; margin-top: 70px; transform: rotate(6deg); }
.phone-center { position: relative; z-index: 2; width: min(330px, 80vw); filter: drop-shadow(0 30px 60px rgba(16, 40, 80, 0.24)); }

.chip { position: absolute; z-index: 3; }
.chip-1 { left: 4%; top: 100px; }
.chip-2 { right: 3%; top: 210px; }
.chip-3 { left: 9%; top: 390px; }
.chip-body {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; font-size: 15px;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(16, 40, 80, 0.14), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
.chip-body b { font-weight: 600; }
.chip-2 .chip-body { height: 44px; padding: 0 16px; border-radius: 22px; gap: 8px; font-weight: 500; }
.chip-3 .chip-body { padding: 10px 14px 10px 10px; font-size: 14px; }
.stack { display: flex; }
.stack img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.stack img + img { margin-left: -8px; }

/* The live time bar, under the subhead */
.timebar-card {
  position: relative; z-index: 4; width: min(720px, 100%); margin: 6px 0 4px; text-align: left;
  padding: 18px 22px 16px; border-radius: 26px;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 20px 60px rgba(16, 40, 80, 0.18), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}
/* The gap over the bars leaves room for the skip tag */
.tb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.tb-cover { width: 40px; height: 40px; border-radius: 8px; }
.tb-titles { flex: 1; min-width: 0; }
.tb-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-show { font-size: 13px; color: var(--muted); }
.ads-count {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.05); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.glow { width: 6px; height: 6px; border-radius: 3px; background: #3FA2FF; box-shadow: 0 0 6px 2px rgba(63, 162, 255, 0.45); }
.timebar { position: relative; height: 58px; display: flex; align-items: flex-end; gap: 4px; }
.bar { flex: 1; border-radius: 3px; background: rgba(0, 0, 0, 0.12); transition: background .25s; }
.bar.played { background: linear-gradient(180deg, #4A97F7, #387FDA); }
.bar.ad { background: var(--ad-bar); }
.h0 { height: 20px; } .h1 { height: 24px; } .h2 { height: 29px; } .h3 { height: 33px; } .h4 { height: 38px; }
.h5 { height: 42px; } .h6 { height: 47px; } .h7 { height: 52px; } .h8 { height: 56px; }
.playhead { position: absolute; top: -4px; bottom: 0; left: 62.5%; width: 2px; margin-left: -1px; border-radius: 1px; background: #3a3a3c; transition: left .11s linear; }
.skip-tag {
  position: absolute; z-index: 1; left: 50%; bottom: 64px; transform: translateX(-50%); white-space: nowrap;
  display: none; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
}
.skip-tag .dot { width: 8px; height: 8px; }
.skip-tag.show { display: flex; animation: toast 1.8s ease both; }
.tb-times { margin-top: 8px; display: flex; justify-content: space-between; font-size: 12px; color: #8a8a8e; font-variant-numeric: tabular-nums; }

/* Sections */
.cards-section, .import-section { max-width: 1200px; margin: 0 auto; padding: 160px 16px 0; }
.section-title { text-align: center; margin-bottom: 56px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.card > h3 { padding: 32px 32px 0; font-size: 26px; letter-spacing: -0.02em; }
.card > p { padding: 8px 32px 0; font-size: 16px; line-height: 1.45; color: var(--soft); }
.demo { margin: 28px 24px 0; border-radius: 24px 24px 0 0; flex-grow: 1; }

.ads-sheet { padding: 20px 18px 6px; background: #fff; box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05); }
.sheet-title { text-align: center; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.map { position: relative; height: 7px; border-radius: 4px; background: rgba(120, 120, 128, 0.18); }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--orange); }
.s1 { left: 0; width: 2.9%; } .s2 { left: 30.4%; width: 4.5%; } .s3 { left: 64.2%; width: 2.2%; } .s4 { left: 80.8%; width: 3.3%; }
.map-times, .mini-times { margin-top: 6px; display: flex; justify-content: space-between; font-size: 11px; color: #8a8a8e; font-variant-numeric: tabular-nums; }
.break-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 0.5px solid #e2e2e4; }
.break-row > div { flex: 1; }
.break-row .at { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.break-row .what { font-size: 12px; color: var(--muted); }
.break-row svg circle { fill: #000; } .break-row svg path { fill: #fff; }
.map-times { margin-bottom: 4px; }

.backto { padding: 26px 22px 28px; background: linear-gradient(180deg, #e9e9ec, #f7f7f8); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.backto-cover { width: 150px; height: 150px; border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2); }
.backpill-row { height: 34px; display: flex; align-items: center; }
.backpill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  font-size: 14px; font-weight: 500;
}
.mini-bar { position: relative; width: 100%; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.12); }
.mini-played { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; border-radius: 4px; background: var(--ink); }
.mini-ad { position: absolute; left: 60%; width: 3%; top: 0; bottom: 0; background: var(--orange); }
.mini-head { position: absolute; top: -5px; left: 42%; width: 18px; height: 18px; margin-left: -9px; border-radius: 9px; background: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.mini-times { width: 100%; margin-top: 0; }

.library { padding: 22px 20px; background: #fff; box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05); }
.lib-title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lib-cover { position: relative; }
/* Covers are lit at the edge, as every cover in the app is */
.lib-cover img, .cov { width: 100%; aspect-ratio: 1; border-radius: 9px; }
.lib-cover::after, .cov-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 9px; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.16), inset 0 1.5px 1px rgba(255, 255, 255, 0.34); pointer-events: none; }
.pin { position: absolute; z-index: 1; left: 6px; top: 6px; }
.pin circle { fill: rgba(0, 0, 0, 0.45); } .pin path { fill: #fff; }

/* Bring your shows with you */
.import { border-radius: 34px; background: linear-gradient(180deg, #EAF2FE 0%, #F5F8FC 100%); overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; min-height: 600px; }
.import-text { flex: 1 1 440px; padding: 64px; display: flex; flex-direction: column; gap: 16px; }
.import-text h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -0.035em; }
.import-text p { max-width: 440px; font-size: 19px; line-height: 1.45; color: #4a4a4f; }
.import-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; padding: 40px; }
.stage { position: relative; width: min(360px, 100%); height: 460px; }
.shot { position: absolute; top: 30px; }
.shot-1 { left: 11%; } .shot-2 { right: 11%; } .shot-3 { left: calc(50% - 55px); top: 14px; }
.shot-body { width: 110px; height: 210px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16, 40, 80, 0.16), inset 0 0 0 0.5px #c6c6c8; }
.shot-1 .shot-body { transform: rotate(-12deg); } .shot-2 .shot-body { transform: rotate(12deg); }
.shot-3 .shot-body { box-shadow: 0 14px 40px rgba(16, 40, 80, 0.2), inset 0 0 0 0.5px #c6c6c8; }
.shot-title { width: 50px; height: 6px; border-radius: 3px; background: #c7c7cc; }
.tiles { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tiles i { aspect-ratio: 1; border-radius: 6px; }
.shot-1 .tiles i:nth-child(1) { background: #ff9500; } .shot-1 .tiles i:nth-child(2) { background: #ff2d55; } .shot-1 .tiles i:nth-child(3) { background: #af52de; }
.shot-1 .tiles i:nth-child(4) { background: #30b0c7; } .shot-1 .tiles i:nth-child(5) { background: #ffcc00; } .shot-1 .tiles i:nth-child(6) { background: #5856d6; }
.shot-2 .tiles i:nth-child(1) { background: #34c759; } .shot-2 .tiles i:nth-child(2) { background: #007aff; } .shot-2 .tiles i:nth-child(3) { background: #ff3b30; }
.shot-2 .tiles i:nth-child(4) { background: #00c7be; } .shot-2 .tiles i:nth-child(5) { background: #ff9500; } .shot-2 .tiles i:nth-child(6) { background: #32ade6; }
.shot-3 .tiles i:nth-child(1) { background: #007aff; } .shot-3 .tiles i:nth-child(2) { background: #af52de; } .shot-3 .tiles i:nth-child(3) { background: #ff9500; }
.shot-3 .tiles i:nth-child(4) { background: #ff2d55; } .shot-3 .tiles i:nth-child(5) { background: #30b0c7; } .shot-3 .tiles i:nth-child(6) { background: #34c759; }
.spark { position: absolute; left: calc(50% + 24px); top: 0; width: 48px; height: 48px; border-radius: 24px; background: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.spark path { fill: #fff; }
.found { position: absolute; left: 30px; right: 30px; top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cov { box-shadow: 0 6px 16px rgba(16, 40, 80, 0.14); }
.follow { position: absolute; left: 30px; right: 30px; bottom: 20px; height: 52px; border-radius: 26px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
/* Without motion the import panel shows where its loop ends: the shows, found */
.shot, .spark { opacity: 0; }

/* Privacy and the close, dark */
.privacy {
  margin-top: 160px; padding: 150px 16px 0; color: #f5f5f7;
  background: radial-gradient(50% 40% at 50% 0%, rgba(24, 122, 245, 0.20) 0%, rgba(18, 18, 18, 0) 70%), var(--dark);
}
.privacy a { color: #8e8e93; }
.privacy-head { max-width: 1200px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.privacy-head h2 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.privacy-head p { max-width: 560px; font-size: 19px; line-height: 1.45; color: var(--dark-muted); }
.privacy-cards { max-width: 1200px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.pcard { padding: 32px; border-radius: 26px; background: var(--dark-card); display: flex; flex-direction: column; gap: 8px; }
.pcard h3 { font-size: 20px; }
.pcard p { font-size: 16px; line-height: 1.45; color: var(--dark-muted); }
.close { padding: 180px 0 140px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.close-icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 20px 70px rgba(24, 122, 245, 0.5); }
.close h2 { font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; }
.site-footer { background: var(--dark); padding: 0 16px; }
.footer-inner { max-width: 1200px; margin: 0 auto; border-top: 1px solid #2c2c2e; padding: 32px 0 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 14px; color: #8e8e93; }
.site-footer a { color: #8e8e93; text-decoration: none; }
.site-footer a:hover { color: #f5f5f7; }

/* Narrow phones: the App Store buttons keep the screen's 16-point gutter */
@media (max-width: 360px) {
  .store-hero, .store-close { padding: 0 18px; gap: 8px; font-size: 15px; }
}

/* Phone width */
@media (max-width: 760px) {
  /* Every other bar, so they stay bars rather than hairlines */
  .timebar { gap: 3px; }
  .bar:nth-child(2n) { display: none; }
  .nav-link, .phone-left, .phone-right, .chip { display: none; }
  /* Full width, so the fade doesn't clip the phone's shadow into a box */
  .phones { height: 580px; margin-left: -16px; margin-right: -16px; }
  .import-text { padding: 40px 28px 0; }
  .import-art { padding: 24px 12px 32px; }
  .stage { height: 440px; }
  .found { left: 12px; right: 12px; }
  .follow { left: 12px; right: 12px; bottom: 0; }
  /* The company's name on a row of its own, and the links together under it */
  .footer-copy { flex-basis: 100%; }
  .site-footer .spacer { display: none; }
}

/* ---- Motion: only with the script, never with Reduce Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(90px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes riseL { from { opacity: 0; transform: translateY(90px) rotate(-6deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes riseR { from { opacity: 0; transform: translateY(90px) rotate(6deg); } to { opacity: 1; transform: rotate(6deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes slip { 0%, 18% { left: 42%; } 24%, 58% { left: 86%; } 66%, 100% { left: 42%; } }
@keyframes slipPlayed { 0%, 18% { width: 42%; } 24%, 58% { width: 86%; } 66%, 100% { width: 42%; } }
@keyframes backPill { 0%, 26% { opacity: 0; transform: translateY(10px) scale(.9); } 32%, 56% { opacity: 1; transform: none; } 60% { opacity: 1; transform: scale(.94); } 66%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes shotIn { 0% { opacity: 0; transform: translateY(40px); } 8%, 44% { opacity: 1; transform: translateY(0); } 52%, 100% { opacity: 0; transform: translateY(-30px) scale(.85); } }
@keyframes sparkIn { 0%, 14% { opacity: 0; transform: scale(.4); } 20%, 44% { opacity: 1; transform: scale(1); } 52%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes covIn { 0%, 50% { opacity: 0; transform: scale(.5) translateY(30px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes followIn { 0%, 70% { opacity: 0; transform: translateY(16px); } 78%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js .phone-center { animation: rise 1.1s var(--spring) .15s both; }
  .js .phone-left { animation: riseL 1.1s var(--spring) .35s both; }
  .js .phone-right { animation: riseR 1.1s var(--spring) .5s both; }
  .js .chip { animation: pop .7s var(--spring) both; }
  .js .chip-1 { animation-delay: 1.1s; } .js .chip-2 { animation-delay: 1.4s; } .js .chip-3 { animation-delay: 1.7s; }
  .js .chip-body { animation: float 5s ease-in-out infinite; }
  .js .chip-2 .chip-body { animation-delay: -2s; } .js .chip-3 .chip-body { animation-delay: -3.5s; }

  /* Sections ease up as they arrive */
  .js .rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .card:nth-child(2) { transition-delay: .1s; } .js .card:nth-child(3) { transition-delay: .2s; }
  .js .break-row:nth-of-type(1) { transition-delay: .25s; } .js .break-row:nth-of-type(2) { transition-delay: .35s; }
  .js .break-row:nth-of-type(3) { transition-delay: .45s; } .js .break-row:nth-of-type(4) { transition-delay: .55s; }
  .js .lib-cover:nth-child(1) { transition-delay: .3s; } .js .lib-cover:nth-child(2) { transition-delay: .37s; } .js .lib-cover:nth-child(3) { transition-delay: .44s; }
  .js .lib-cover:nth-child(4) { transition-delay: .51s; } .js .lib-cover:nth-child(5) { transition-delay: .58s; } .js .lib-cover:nth-child(6) { transition-delay: .65s; }
  .js .lib-cover:nth-child(7) { transition-delay: .72s; } .js .lib-cover:nth-child(8) { transition-delay: .79s; } .js .lib-cover:nth-child(9) { transition-delay: .86s; }
  .js .pcard:nth-child(1) { transition-delay: .1s; } .js .pcard:nth-child(2) { transition-delay: .2s; } .js .pcard:nth-child(3) { transition-delay: .3s; }
  .js .close h2.rv { transition-delay: .1s; } .js .close div.rv { transition-delay: .2s; }

  /* Loops run only while on screen (.play) */
  .js .play .mini-head { animation: slip 6s cubic-bezier(.6, 0, .2, 1) infinite; }
  .js .play .mini-played { animation: slipPlayed 6s cubic-bezier(.6, 0, .2, 1) infinite; }
  .js .play .backpill { animation: backPill 6s ease infinite; }
  .js .stage .cov, .js .stage .follow { opacity: 0; }
  .js .stage.play .shot { animation: shotIn 8s var(--spring) infinite; }
  .js .stage.play .shot-2 { animation-delay: .1s; } .js .stage.play .shot-3 { animation-delay: .2s; }
  .js .stage.play .spark { animation: sparkIn 8s var(--spring) infinite; }
  .js .stage.play .cov { animation: covIn 8s var(--spring) infinite; }
  .js .stage.play .follow { animation: followIn 8s var(--spring) infinite; }
  .js .stage.play .cov:nth-child(2) { animation-delay: .07s; } .js .stage.play .cov:nth-child(3) { animation-delay: .14s; }
  .js .stage.play .cov:nth-child(4) { animation-delay: .21s; } .js .stage.play .cov:nth-child(5) { animation-delay: .28s; }
  .js .stage.play .cov:nth-child(6) { animation-delay: .35s; } .js .stage.play .cov:nth-child(7) { animation-delay: .42s; }
  .js .stage.play .cov:nth-child(8) { animation-delay: .49s; } .js .stage.play .cov:nth-child(9) { animation-delay: .56s; }
}

@media (prefers-reduced-motion: reduce) {
  .bar, .playhead { transition: none; }
  .skip-tag.show { animation: none; }
}

/* Lenis's own rules (lenis/dist/lenis.css), for its smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }
