/* Cover row: a row of album covers on a 3D cylinder passes behind a phone that shows the album
   behind it. Built and driven by cover-row.js; notes in 01_apps/web/landing/prototype-cover-row/NOTES.md. */

/* Pinned section. cover-row.js sets its height: 100vh plus the pinned scroll (the phone rising in, then
   SCROLL_ALBUMS albums). After the pin it scrolls away with the phone.
   --cover-row-phone-scroll: vh of pinned scroll that raises the phone in; 0 shows the phone from the start.
   --cover-row-pin-albums: albums the row moves while pinned; 0 = no pin, the row follows the page scroll.
   --cover-row-phone-zoom: the phone's scale while the section is low on screen; it grows to 1 on scroll. */
.cover-row { --cover-row-phone-scroll: 40; --cover-row-pin-albums: 3; --cover-row-phone-zoom: 1; }
/* touch-action: vertical swipes scroll the page; sideways swipes go to cover-row.js and move the row. */
.cover-row-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; touch-action: pan-y pinch-zoom; }
/* One shared camera for every card. The row sits 8vh above the centre; the stage moves as a whole,
   so the camera stays level with the row. */
.cover-row-stage { position: absolute; inset: 0; perspective: 1100px; translate: 0 -8vh; }
/* Square sleeves, no rounded corners (AGENTS.md artwork rule). */
.cover-row-card { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; background: #e7e7e7;
                  visibility: hidden; border: 0; padding: 0; cursor: pointer; }
.cover-row-card:focus-visible { outline: 2px solid #090d0e; outline-offset: 4px; }
.cover-row-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Phone from the landing blog CTA (public/blog/blog.css), centred at 68% of the screen height (Andy, 2026-11-13: 75% was too big, 60% too small). */
.cover-row-phone { position: absolute; left: 50%; top: 50%; height: 68vh; aspect-ratio: 1261 / 2611;
                   translate: -50% -50%; z-index: 1; pointer-events: none;
                   filter: drop-shadow(0 calc(68vh * .0172) calc(68vh * .0504) rgba(0, 0, 0, .1)); }
.cover-row-phone img { position: absolute; display: block; }
.cover-row-frame { left: 0; top: 0; width: 99.8015%; height: 99.7759%; }
.cover-row-backing { left: 3.7599%; top: 1.5064%; width: 92.2793%; height: 96.7625%; }
/* Mask inlined as a data URI: a url() mask from file:// fails CORS and hides the screen. */
.cover-row-screen { position: absolute; left: 3.7204%; top: 1.4903%; width: 92.3622%; height: 96.7942%;
                    mask: url("data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjIwNS42ODciIGhlaWdodD0iNDQ2LjcwMyIgdmlld0JveD0iMCAwIDIwNS42ODcgNDQ2LjcwMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggaWQ9Ik1hc2siIGQ9Ik0zMy4wNzczIDQ0Ni41OTJDMjIuMjc0NSA0NDUuOTEzIDE1LjAxNDcgNDQzLjA1IDkuMjAzNzcgNDM3LjE3OEMzLjM2ODQ0IDQzMS4yODEgMC40OTc0NzcgNDIzLjM3NSAwLjA3MDAxNTcgNDEyLjAyN0MwLjAzMTY0MTkgNDExLjAwOCAwLjAwMDI0NTA1NCAzMjUuNjY5IDAuMDAwMjQ1MDU0IDIyMi4zODVDMC4wMDAyNDUwNTQgMjMuMTU2OSAtMC4wMzY2NzAxIDMyLjIxOCAwLjc5NTY2MSAyNy4xNDIyQzIuMzA3MDEgMTcuOTI1NCA2LjQ5NzE3IDEwLjk1NTIgMTMuNDk1NyA2LjAxNTk4QzE1LjAzMzcgNC45MzA1MiAxOC44NzYyIDMuMDU0MTUgMjAuOTkzMiAyLjM1NDg1QzI0LjUwMSAxLjE5NjA4IDI3LjcwNDEgMC42MjkwNDMgMzIuOTAwOSAwLjI0Njg5M0MzNy4zODQzIC0wLjA4Mjc5NzcgMTY4LjkwOCAtMC4wODIwNTkgMTczLjA1OSAwLjI0NzY4QzE4My4zODQgMS4wNjc2NiAxODkuNTc1IDMuNDA2NDcgMTk1LjUyMyA4LjczNDUzQzE5OS44MjEgMTIuNTgzNyAyMDMuMTEgMTguNTk3MSAyMDQuNDU5IDI1LjA2OTFDMjA0LjgyOCAyNi44MzkgMjA1LjIxOCAyOS41OTIgMjA1LjM0NSAzMS4zMzE3QzIwNS40MDYgMzIuMTU2NCAyMDUuNDk4IDMzLjE0ODcgMjA1LjU0OSAzMy41MzY4QzIwNS42OTYgMzQuNjM5NiAyMDUuNzQ1IDQwNi4xNjYgMjA1LjU5OSA0MTAuNTI3QzIwNS4zOTMgNDE2LjY2OCAyMDQuOTY2IDQyMC4wNjggMjAzLjkwNSA0MjMuOTk4QzIwMS45NDcgNDMxLjI1NSAxOTcuNDE3IDQzNy40ODYgMTkxLjMxOCA0NDEuMzEzQzE4Ny4wMTUgNDQ0LjAxMyAxODIuNDMzIDQ0NS40OTggMTc1LjcwNiA0NDYuMzcxQzE3My41OTEgNDQ2LjY0NiAxNjguMDI5IDQ0Ni42NzEgMTA0LjM0NyA0NDYuN0M2Ni4zNjE3IDQ0Ni43MTcgMzQuMjkwMSA0NDYuNjY5IDMzLjA3NzMgNDQ2LjU5MloiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=") center / 100% 100% no-repeat; }
.cover-row-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero option 2 places the cover row below the hero copy. The row follows the page scroll. */
html:is([data-preview-hero="2"], [data-preview-hero="3"]) .hero-art,
html:is([data-preview-hero="2"], [data-preview-hero="3"]) main > .hero .proof { display: none; }
/* The phone ends at 84vh. Measure the gap from the phone's bottom. */
:is(.cover-row, .cover-wall) + .proof {
  position: relative;
  margin-top: calc(144px - 16vh);
  padding-top: 0;
  gap: 28px;
}
.cover-wall + .proof { margin-top: 72px; }
:is(.cover-row, .cover-wall) + .proof .cover-row-tagline {
  display: block;
  flex-basis: 100%;
  padding-inline: 24px;
  text-align: center;
  text-wrap: balance;
}
:is(.cover-row, .cover-wall) + .proof .rating { padding-inline: 24px; }
:is(.cover-row, .cover-wall) + .proof .rating-star { width: 17px; height: 17px; }
:is(.cover-row, .cover-wall) + .proof .rating-value { font-size: 24px; }
:is(.cover-row, .cover-wall) + .proof .rating-count { font-size: 11px; line-height: 1.15; }
:is(.cover-row, .cover-wall) + .proof .laurel { height: 35px; }
html:is([data-preview-hero="2"], [data-preview-hero="3"]) .masthead { min-height: 0; }
html:is([data-preview-hero="2"], [data-preview-hero="3"]) main > .hero,
html:is([data-preview-hero="2"], [data-preview-hero="3"]) main > .hero .hero-primary { margin-top: 0; transform: none; }
/* The same gap above the headline (the masthead adds 20px) and under the store buttons; on desktop it grows with screen height (720px tall: 72px, 900px: 126px), so short screens still show the row.
   The phone's visible top sits 16vh + (1 - 0.85) x 34vh = 21.1vh below the section's top,
   so the margin pulls the section up by that. */
html:is([data-preview-hero="2"], [data-preview-hero="3"]) { --hero2-gap: 72px; }
@media (min-width: 900px) { html:is([data-preview-hero="2"], [data-preview-hero="3"]) { --hero2-gap: clamp(72px, 30vh - 144px, 140px); } }
html:is([data-preview-hero="2"], [data-preview-hero="3"]) main > .hero { padding-top: calc(var(--hero2-gap) - 20px); }
html[data-preview-hero="2"] .cover-row { --cover-row-phone-scroll: 0; --cover-row-pin-albums: 0; --cover-row-phone-zoom: 0.85;
                                         margin-top: calc(var(--hero2-gap) - 21.1vh); }
/* A small "PLASTIC" over the headline at every width (Andy, 2026-11-13: orange, upper case, medium weight), in the
   feature pages' eyebrow style; then "more saturated and darker, closer to title": burnt orange, 8px above the headline.
   The hidden attribute keeps it out of option 1. On desktop it sits in the gap above the headline (16px + 8px), so the
   headline and the phone keep their places. */
html:is([data-preview-hero="2"], [data-preview-hero="3"]) .hero-eyebrow { display: block; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .08em;
                                            text-transform: uppercase; color: #c24e00; margin-bottom: -8px; }
@media (min-width: 900px) {
  html:is([data-preview-hero="2"], [data-preview-hero="3"]) .hero-eyebrow { font-size: 16px; }
  html:is([data-preview-hero="2"], [data-preview-hero="3"]) main > .hero { padding-top: max(32px, var(--hero2-gap) - 44px); }
}
/* On the homepage the cookie banner (z-index 100, full width) covers the settings button's corner. */
body .preview-settings { --preview-layer: 110; }
