/*
Theme Name: Ala Africa 2026
Template: astra
Text Domain: alaafrica-2026
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 7.4
Author: Ala Africa Limited
Author URI: https://alaafrica.com
Description: Astra child theme reproducing the approved Ala Africa 2026 static redesign (home, books, music, film, about, contact, privacy, 404) pixel-for-pixel, while every other page (Paystack forms, PMPro, shop, posts) continues to render unchanged through the Astra parent theme.
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
/* Ala Africa — "The Griot's Archive" design system */

@font-face {font-family: 'Anybody';font-style: normal;font-weight: 100 900;font-stretch: 50% 150%;font-display: swap;src: url(assets/fonts/Anybody-normal-latin-ext.woff2) format('woff2');unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Anybody';font-style: normal;font-weight: 100 900;font-stretch: 50% 150%;font-display: swap;src: url(assets/fonts/Anybody-normal-latin.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Instrument Serif';font-style: italic;font-weight: 400;font-display: swap;src: url(assets/fonts/InstrumentSerif-italic-latin-ext.woff2) format('woff2');unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Instrument Serif';font-style: italic;font-weight: 400;font-display: swap;src: url(assets/fonts/InstrumentSerif-italic-latin.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --night: #0F0D0B;
  --night-2: #1A1612;
  --bone: #F1E9DA;
  --bone-dim: rgba(241, 233, 218, .68);
  --rule: rgba(241, 233, 218, .18);
  --rule-on-bone: rgba(15, 13, 11, .16);
  --marigold: #F4B32B;
  --indigo: #1B2A6B;
  --palm: #1F5E3B;
  --kola: #AD2913;
  --wrap: 1240px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; max-width: 100%; }
/* clip (not hidden) so body never becomes a scroll container -- that silently broke every sticky pin */
html { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }
body {
  background: var(--night);
  color: var(--bone);
  font-family: 'Anybody', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 560px) { body { font-size: 19px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--marigold); color: var(--night); padding: .75em 1.25em;
  font-weight: 700; letter-spacing: .04em;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* ---- type ---- */
.kicker, .label-sm {
  font-variation-settings: 'wdth' 120;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--marigold);
}
.on-bone .kicker, .on-bone .label-sm { color: var(--night); opacity: .7; }

.display {
  font-variation-settings: 'wdth' 62;
  font-weight: 860;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
}
.display.xl { font-size: clamp(2.75rem, 10vw, 7.5rem); }
.display.l { font-size: clamp(2.25rem, 7vw, 4.75rem); }
.display.m { font-size: clamp(1.75rem, 4.5vw, 3rem); }

.serif-flourish {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.opener {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.4;
}

.idx {
  display: flex; align-items: baseline; gap: .75rem;
  font-variation-settings: 'wdth' 120;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .9rem; color: var(--marigold); margin: 0 0 1.25rem;
}
.on-bone .idx { color: var(--indigo); }
.idx .num { font-variation-settings: 'wdth' 70; font-weight: 860; font-size: 1.1em; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.on-bone .rule { border-top-color: var(--rule-on-bone); }

p.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--bone-dim); max-width: 42em; }
.on-bone p.lede { color: rgba(15,13,11,.72); }
/* On saturated colour bands, bone-dim/marigold text fails AA contrast — use full-opacity bone. */
.band-indigo .kicker, .band-palm .kicker, .band-kola .kicker,
.band-indigo p.lede, .band-palm p.lede, .band-kola p.lede,
.band-indigo .idx, .band-palm .idx, .band-kola .idx,
.band-indigo .link-arrow, .band-palm .link-arrow, .band-kola .link-arrow,
.band-indigo .label-sm, .band-palm .label-sm, .band-kola .label-sm,
.band-indigo .note-line, .band-palm .note-line, .band-kola .note-line { color: var(--bone); }

/* ---- buttons / links ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  border: 2px solid var(--marigold);
  color: var(--night);
  background: var(--marigold);
  padding: .85em 1.4em;
  font-weight: 700;
  font-variation-settings: 'wdth' 110;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .9rem;
  min-height: 44px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr, .btn:focus-visible .arr { transform: translateX(4px); }
.btn:hover { background: var(--night); color: var(--marigold); }

.btn.ghost {
  background: transparent; color: var(--bone);
}
.btn.ghost:hover { background: var(--marigold); color: var(--night); }
.on-bone .btn.ghost { color: var(--night); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--marigold); font-weight: 700; border-bottom: 1px solid currentColor;
  padding-bottom: .1em;
}
.on-bone .link-arrow { color: var(--indigo); }
.link-arrow .arr { transition: transform .18s ease; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---- header ---- */
.site-head {
  position: relative; z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
  gap: 1rem;
}
.brand img { width: 150px; height: 38px; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a {
  font-variation-settings: 'wdth' 110; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: .85rem;
  padding: .4em .1em; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--marigold); }
.site-nav a[aria-current="page"] { color: var(--marigold); border-bottom-color: var(--marigold); }

.menu-btn {
  display: none; background: none; border: 2px solid var(--rule); color: var(--bone);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-ico, .menu-ico::before, .menu-ico::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.menu-ico::before { content: ""; position: absolute; top: -6px; }
.menu-ico::after { content: ""; position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-ico::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night-2); border-bottom: 1px solid var(--rule);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .site-nav.open { max-height: 70vh; }
  .site-nav a { padding: 1rem clamp(1.25rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--rule); }
}
@media (scripting: none) { .site-nav { position: static; max-height: none; } }
@media (scripting: none) { .menu-btn { display: none; } }

/* ---- footer ---- */
.site-foot { background: var(--night-2); border-top: 1px solid var(--rule); padding-block: 2.5rem 2rem; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-bottom: 1.5rem; }
.foot-logo { display: inline-block; line-height: 0; }
.foot-logo img { width: clamp(180px, 22vw, 260px); height: auto; }
.foot-top nav, .foot-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.foot-top nav a, .foot-links a {
  font-size: .85rem; font-variation-settings: 'wdth' 110; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--bone-dim);
}
.foot-top nav a:hover, .foot-links a:hover { color: var(--marigold); }
.legal { font-size: .78rem; color: var(--bone-dim); max-width: 62em; line-height: 1.6; }
.copy { font-size: .78rem; color: var(--bone-dim); margin-top: .5rem; }

/* ---- bands ---- */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-night { background: var(--night); color: var(--bone); }
.band-indigo { background: var(--indigo); color: var(--bone); }
.band-palm { background: var(--palm); color: var(--bone); }
.band-kola { background: var(--kola); color: var(--bone); }
.band-bone { background: var(--bone); color: var(--night); }
.rule-top { border-top: 1px solid var(--rule); }
.on-bone { background: var(--bone); color: var(--night); }

/* ---- texture strip ---- */
.weave {
  height: 10px;
  background-image: url(assets/img/pattern.webp);
  background-size: 160px 160px;
  background-repeat: repeat-x;
  opacity: .22;
}

/* ---- hero (the indigo cloth) ----
   Base rules below are the FINAL resting state and are visible unconditionally —
   this is what no-JS and prefers-reduced-motion visitors see, with zero dependency
   on any script running (the cloth poster is a plain CSS background, no canvas needed).
   The opening-sequence rules further down only kick in once JS adds `js-hero` (motion
   allowed), and are neutralised again by `motion-done` (added on animation end or by a
   2.5s failsafe) so the page can never get stuck hidden. */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(4rem, 10vw, 7rem); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { margin-bottom: 1rem; }
.hero h1 { margin-block: .4rem 1.1rem; }
.hero h1.display.xl { font-size: clamp(2.75rem, 13vw, 7.5rem); }
@media (min-width: 1024px) {
  .hero h1.display.xl { font-size: clamp(3.5rem, 7.4vw, 8.25rem); }
  /* subtract the site header's own height so hero + header together still fit one screen */
  .hero { min-height: min(calc(100svh - 69px), 911px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; }
.hero .lede { margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- opening sequence: only while JS confirms motion is allowed and hasn't finished ---- */
html.js-hero:not(.motion-done) .hero-line > span { clip-path: inset(0 0 100% 0); transform: translateY(100%); }
html.js-hero:not(.motion-done) .hero-line.anim > span { animation: unmask .62s cubic-bezier(.2, .7, .2, 1) forwards; }
html.js-hero:not(.motion-done) .hero-line.anim:nth-of-type(1) > span { animation-delay: 0s; }
html.js-hero:not(.motion-done) .hero-line.anim:nth-of-type(2) > span { animation-delay: .1s; }
html.js-hero:not(.motion-done) .hero-line.anim:nth-of-type(3) > span { animation-delay: .2s; }
@keyframes unmask { to { clip-path: inset(0 0 0 0); transform: translateY(0); } }

/* belt-and-suspenders: if JS ever adds js-hero under reduced motion, don't hide content */
@media (prefers-reduced-motion: reduce) {
  html.js-hero:not(.motion-done) .hero-line > span { clip-path: none !important; transform: none !important; animation: none !important; }
}

/* ---- scroll reveal ---- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
@media (scripting: none) { .rv { opacity: 1; transform: none; } }

/* ---- section heads ---- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { margin: 0; }
/* the first full-bleed band after the hero rises in with an oversized index number */
.band-indigo .idx .num { font-size: 2.6em; line-height: .75; margin-right: .05em; }

/* ---- books (feature cards) ---- */
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }
.book-feature { display: grid; grid-template-rows: auto 1fr; gap: 1.25rem; }
.book-feature .cover-frame { border: 1px solid var(--rule); background: var(--night-2); }
.book-feature .cover-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.book-feature .tag { color: var(--marigold); font-weight: 700; }
.book-feature h3 { margin: .3rem 0 .6rem; }
.book-feature .by { color: var(--bone-dim); font-size: .9rem; margin-bottom: .5rem; }

/* ---- music rail ---- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.25rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x proximity; }
.rail .release-card { scroll-snap-align: start; }
@media (min-width: 900px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---- homepage music grid, squared: 2x4 mobile, 4x2 desktop (exactly 8 tiles) ---- */
.music-grid-8 { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 700px) { .music-grid-8 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.release-card { display: flex; flex-direction: column; min-width: 0; }
.release-card .body { padding: 1rem .1rem 0; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.release-card h3 { font-size: 1.05rem; margin: 0; font-variation-settings: 'wdth' 100; text-transform: none; font-weight: 700; }
.release-card .artist { color: var(--marigold); font-weight: 700; font-size: .85rem; }
.on-bone .release-card .artist { color: var(--indigo); }
.release-card .meta { color: var(--bone-dim); font-size: .82rem; }
.on-bone .release-card .meta { color: rgba(15,13,11,.6); }
.tag-pill {
  display: inline-flex; align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .3em .6em; border: 1px solid currentColor; color: var(--bone-dim);
}
.tag-pill.ai { color: var(--marigold); }
.release-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.preview-btn {
  display: inline-flex; align-items: center; gap: .4em; background: none; border: 1px solid var(--marigold);
  color: var(--marigold); padding: .4em .8em; font-size: .8rem; font-weight: 700; cursor: pointer; min-height: 44px;
}
.preview-btn:hover { background: var(--marigold); color: var(--night); }
.preview-btn[aria-pressed="true"] { background: var(--marigold); color: var(--night); }
@media (scripting: none) { .preview-btn { display: none; } }

/* ---- track list ---- */
.tracklist-toggle { font-size: .85rem; font-weight: 700; color: var(--bone); cursor: pointer; }
.on-bone .tracklist-toggle { color: var(--night); }
details.tracks summary { list-style: none; }
details.tracks summary::-webkit-details-marker { display: none; }
details.tracks summary::before { content: "▸ "; }
details.tracks[open] summary::before { content: "▾ "; }
.track-row {
  display: grid; grid-template-columns: 1.6em 1fr auto auto; align-items: center; gap: .6rem;
  padding: .5rem 0; border-top: 1px solid var(--rule);
  font-size: .9rem;
}
.on-bone .track-row { border-top-color: var(--rule-on-bone); }
.track-row .t-n { color: var(--bone-dim); }
.track-row .t-title { min-width: 0; }
.explicit-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em;
  border: 1px solid currentColor; font-size: .65rem; font-weight: 700; margin-left: .4em;
}
.track-links { display: flex; gap: .5rem; align-items: center; }
.track-links a { font-size: .78rem; font-weight: 700; color: var(--marigold); }
.on-bone .track-links a { color: var(--indigo); }

/* ---- filter chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--rule); background: transparent; color: var(--bone);
  padding: .5em 1em; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 44px;
}
.chip[aria-pressed="true"] { background: var(--marigold); color: var(--night); border-color: var(--marigold); }
@media (scripting: none) { .chips { display: none; } }

/* ---- release grid ---- */
.release-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.former-tag { color: var(--bone-dim); font-size: .72rem; }

/* ---- global preview player ---- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--night-2); border-top: 1px solid var(--rule);
  padding: .75rem clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 1rem;
}
.player-bar.visible { display: flex; }
.player-bar .pinfo { flex: 1; min-width: 0; }
.player-bar .ptitle { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .partist { color: var(--bone-dim); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .pplay, .player-bar .pclose {
  background: none; border: 2px solid var(--marigold); color: var(--marigold);
  width: 44px; height: 44px; flex-shrink: 0; cursor: pointer;
}
.player-bar .pplay:hover, .player-bar .pclose:hover { background: var(--marigold); color: var(--night); }
.player-bar .ptrack { flex: 2; height: 4px; background: var(--rule); position: relative; }
.player-bar .pbar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--marigold); width: 0%; }
body.player-open { padding-bottom: 72px; }

/* ---- video / film ---- */
.video-tile { position: relative; border: 1px solid var(--rule); background: var(--night-2); }
.video-tile .thumb-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-tile .thumb-btn img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-tile .play-ico {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,13,11,.6); border: 2px solid var(--marigold); color: var(--marigold);
  pointer-events: none;
}
.video-tile .dur {
  position: absolute; right: .5rem; bottom: .5rem; background: var(--night); color: var(--bone);
  font-size: .72rem; padding: .2em .5em; pointer-events: none;
}
.video-tile iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-tile .vbody { padding: 1rem; }
.video-tile h3 { font-size: 1rem; margin: 0 0 .3rem; font-variation-settings: 'wdth' 100; text-transform: none; font-weight: 700; }
.video-tile .vmeta { color: var(--bone-dim); font-size: .8rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

.feature-player { border: 1px solid var(--rule); background: var(--night-2); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.feature-player .thumb-btn img, .feature-player iframe { aspect-ratio: 16/9; }

.film-feature-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.feature-grid { grid-template-columns: 1fr; }
.feature-grid .feature-player { margin-bottom: 0; }
.side-list { grid-template-columns: 1fr; gap: 1rem; }
@media (max-width: 900px) { .film-feature-layout { grid-template-columns: 1fr; } }

/* ---- book detail ---- */
.book-detail { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 760px) { .book-detail { grid-template-columns: 1fr; } }
.book-art { width: 100%; border: 1px solid var(--rule); }
.author-bio { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.author-bio h3 { margin-bottom: .6rem; }
.trailer-grid { max-width: 26rem; margin: 1.5rem 0; }

/* ---- buy / select ---- */
.buy-block { border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem; }
.on-bone .buy-block { border-color: var(--rule-on-bone); }
.country-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1rem; }
.country-form label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .4rem; }
.country-form select {
  min-height: 44px; min-width: 220px; background: var(--night); color: var(--bone);
  border: 1px solid var(--rule); padding: .5em .7em; font-family: inherit; font-size: .95rem;
}
.on-bone .country-form select { background: #fff; color: var(--night); border-color: var(--rule-on-bone); }
details.all-stores summary { cursor: pointer; font-size: .85rem; font-weight: 700; margin-top: .5rem; }
.store-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.store-list a { font-size: .85rem; color: var(--marigold); border-bottom: 1px solid currentColor; }
.on-bone .store-list a { color: var(--indigo); }

/* ---- three column ---- */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (max-width: 760px) { .three-col { grid-template-columns: 1fr; } }
.three-col article { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.on-bone .three-col article { border-top-color: var(--rule-on-bone); }

/* ---- story strip ---- */
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr; } }
.strip-tile { border: 1px solid var(--rule); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.strip-tile .tag-pill { color: var(--marigold); border-color: var(--marigold); }

/* ---- sticky mobile cta ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--marigold); color: var(--night);
  padding: .9rem clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(.9rem + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  transform: translateY(100%); transition: transform .25s ease;
}
@media (max-width: 720px) {
  .sticky-cta.show { display: flex; transform: translateY(0); }
}
.sticky-cta.hide-footer { display: none !important; }
.sticky-cta a {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; min-height: 44px;
}
body.sticky-visible { padding-bottom: 64px; }

/* ---- doc pages (about/contact/privacy/404) ---- */
.doc h2 { margin-top: 2.5rem; }
.doc .wrap { max-width: 50rem; }
.doc address { font-style: normal; }

/* ---- misc ---- */
.center { text-align: center; }
.mt { margin-top: clamp(2.5rem, 5vw, 4rem); }
.note-line { color: var(--bone-dim); font-size: .85rem; margin-top: 1.5rem; }
.on-bone .note-line { color: rgba(15,13,11,.6); }
.live-status { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   V2 — "THE INDIGO CLOTH"
   ========================================================================= */

@view-transition { navigation: auto; }
.site-head .brand img { view-transition-name: ala-logo; }
main h1:first-of-type { view-transition-name: ala-page-title; }
@media (prefers-reduced-motion: reduce) {
  .site-head .brand img, main h1:first-of-type { view-transition-name: none; }
}

/* ---- film grain overlay (site-wide, decorative) ---- */
.grain-overlay {
  position: fixed; inset: 0; z-index: 998; pointer-events: none;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grain-shift 9s steps(9) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 11% { transform: translate(-2%, 1%); }
  22% { transform: translate(1%, -2%); } 33% { transform: translate(-1%, 2%); }
  44% { transform: translate(2%, 1%); } 55% { transform: translate(-2%, -1%); }
  66% { transform: translate(1%, 2%); } 77% { transform: translate(-1%, -2%); }
  88% { transform: translate(2%, -1%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grain-overlay { animation: none; } }

/* ---- custom cursor: cream ring, grows + shows a verb on hover; pointer:fine only ---- */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1.5px solid var(--bone); border-radius: 50%; pointer-events: none; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(-100px, -100px);
  transition: width .18s ease, height .18s ease, margin .18s ease, background-color .18s ease, opacity .2s ease;
}
.cursor-ring.is-visible { opacity: 1; }
.cursor-ring.is-grown {
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  background: rgba(241, 233, 218, .14); border-color: var(--marigold);
}
.cursor-ring .verb {
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone); opacity: 0; transition: opacity .15s ease;
}
.cursor-ring.is-grown .verb { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor a, html.has-cursor button, html.has-cursor [role="button"],
  html.has-cursor select, html.has-cursor summary { cursor: none; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse), (hover: none) {
  .cursor-ring { display: none !important; }
}

/* ---- cloth hero stage: poster is the CSS background from first paint;
   the canvas sits above it and fades in only once WebGL has rendered a frame. ---- */
.cloth-stage {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background-image: url("assets/img/cloth-poster.webp");
  background-size: cover; background-position: center;
}
.cloth-stage--sm { position: relative; inset: auto; min-height: clamp(16rem, 38vw, 24rem); }
.cloth-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .7s ease;
}
.cloth-canvas.is-ready { opacity: 1; }
.cloth-hint {
  position: absolute; left: 50%; bottom: clamp(1.25rem, 4vw, 2.25rem); transform: translateX(-50%);
  display: flex; align-items: center; gap: .55em;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bone-dim); opacity: 0; transition: opacity .6s ease .3s; pointer-events: none;
}
.cloth-hint.is-visible { opacity: 1; }
.cloth-hint.is-dyed { opacity: 0; transition-delay: 0s; }
.cloth-hint .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--marigold);
  animation: hint-pulse 1.8s ease-in-out infinite;
}
@keyframes hint-pulse { 0%, 100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .cloth-canvas { display: none; }
  .cloth-hint { display: none; }
  .cloth-hint .dot { animation: none; }
}
@media (pointer: coarse), (max-width: 760px) { .cloth-hint { display: none; } }

.hero.cloth-hero { padding-top: clamp(3rem, 8vw, 5.5rem); }
.hero-inner { position: relative; z-index: 1; max-width: 50rem; }
.hero-inner .lede { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-inner .kicker { text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero h1.hero-h1 { text-shadow: 0 4px 30px rgba(0,0,0,.5); }

/* ---- kinetic chapter numerals + variable-width reveal ---- */
.idx .num.kinetic { font-variation-settings: 'wdth' 50; transition: font-variation-settings .7s cubic-bezier(.2,.7,.2,1); }
.rv.in .idx .num.kinetic { font-variation-settings: 'wdth' 75; }
@media (scripting: none) { .idx .num.kinetic { font-variation-settings: 'wdth' 75; } }
.chapter-num-giant {
  display: block; position: absolute; right: 0; top: -0.3em; z-index: 0;
  font-variation-settings: 'wdth' 55; font-weight: 900; text-transform: uppercase;
  font-size: clamp(5rem, 16vw, 13rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(241, 233, 218, .22); text-stroke: 1px rgba(241, 233, 218, .22);
  pointer-events: none; user-select: none;
}
.sec-head { position: relative; }
.sec-head > div:first-child { position: relative; z-index: 1; }

/* ---- Chapter 01: CSS-3D book, spine → cover → open on scroll ---- */
.book-scene { position: relative; }
.book-pin {
  display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 5vw, 3rem) 0;
  max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); box-sizing: border-box; width: 100%;
}
@media (min-width: 860px) { .book-pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }

/* ---- square book stage: the real cover standing in 3D on an indigo/adire set ---- */
.book-stage {
  --ry: -22deg; --rx: 5deg;
  position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1; margin-inline: auto;
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  border: 1px solid var(--rule); border-radius: 4px;
  background-color: #0d1440;
  background-image:
    radial-gradient(70% 60% at 50% 42%, rgba(27, 42, 107, 0) 0%, rgba(8, 10, 32, .78) 100%),
    linear-gradient(160deg, rgba(27, 42, 107, .55), rgba(10, 14, 44, .9));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.book-stage--nothing-spoil { background-image: radial-gradient(70% 60% at 50% 42%, rgba(27,42,107,.05) 0%, rgba(8,10,32,.82) 100%), linear-gradient(160deg, rgba(27,42,107,.5), rgba(10,14,44,.88)), url("assets/img/nothing-spoil-wash.webp"); background-size: auto, auto, cover; background-position: center; }
.book-stage--go-home { background-image: radial-gradient(70% 60% at 50% 42%, rgba(27,42,107,.05) 0%, rgba(8,10,32,.82) 100%), linear-gradient(160deg, rgba(27,42,107,.5), rgba(10,14,44,.88)), url("assets/img/go-home-wash.webp"); background-size: auto, auto, cover; background-position: center; }
/* adire resist pattern, dyed into the set */
.book-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("assets/img/pattern.webp") center / 46% repeat;
  opacity: .1; mix-blend-mode: screen; filter: saturate(.7);
}
/* key light from the upper left */
.book-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(55% 45% at 30% 18%, rgba(255, 236, 200, .16), transparent 70%);
}
.book-3d {
  position: relative; z-index: 1; height: 72%; aspect-ratio: 401 / 571;
  transform-style: preserve-3d;
  transform: perspective(1500px) rotateY(var(--ry)) rotateX(var(--rx));
}
.book-stage--go-home .book-3d { aspect-ratio: 418 / 629; }
.book-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 2px 2px rgba(0,0,0,.25), 18px 30px 50px -12px rgba(0, 0, 0, .75);
  transform: translateZ(14px);
}
/* fore-edge: the stacked pages on the open side of the book */
.book-pages {
  position: absolute; top: 1.2%; bottom: 1.2%; right: 0; width: 28px;
  transform-origin: right center; transform: translateZ(14px) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #efe7d6 0 1px, #cfc4ae 1px 2px);
  border-radius: 0 2px 2px 0;
}
/* spine crease + a sheen that travels as the book turns */
.book-sheen {
  position: absolute; inset: 0; transform: translateZ(14.5px); pointer-events: none;
  border-radius: 2px 5px 5px 2px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(255,255,255,.22) 1.6%, rgba(0,0,0,.12) 3.2%, transparent 6%),
    linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, calc(100% - 100% * var(--spin, .5)) 0;
  background-repeat: no-repeat;
}
.book-floor {
  position: absolute; z-index: 0; left: 50%; bottom: 9%; width: 58%; height: 7%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent);
  filter: blur(4px);
}
.book-opener {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.4; color: var(--bone); max-width: 34rem; margin: 1rem 0 0;
  padding-left: 1rem; border-left: 2px solid var(--marigold);
}
.book-opener .label-sm { display: block; font-family: inherit; font-style: normal; color: var(--marigold); margin-bottom: .35rem; }
.book-pin-copy .idx { margin-bottom: .75rem; }
.book-pin-copy .scene-title { margin: 0 0 .4rem; }
.book-pin-copy .by { color: var(--bone); }
.book-copy-after { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); box-sizing: border-box; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.book-copy-after > * { max-width: 42rem; }
.book-copy-after .trailer-grid { max-width: 24rem; }
@media (min-width: 860px) { .book-copy-after { padding-left: calc(50% + clamp(1rem, 2.5vw, 2rem)); } .book-copy-after > * { max-width: 36rem; } }
.link-arrow.sm { font-size: .82rem; }

/* Motion: the book turns toward you as its chapter scrolls in; a fine pointer adds parallax tilt */
html.js-scenes .book-stage {
  --ry: calc(-40deg + 26deg * var(--spin, 0) + 9deg * var(--px, 0));
  --rx: calc(7deg - 4deg * var(--spin, 0) - 6deg * var(--py, 0));
}
html.js-scenes .book-3d { transition: transform .25s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
html.js-scenes .book-3d { scale: calc(.9 + .1 * var(--spin, 0)); }
@media (min-width: 860px) {
  html.js-scenes .book-scene { height: 220vh; }
  html.js-scenes .book-scene--compact { height: 160vh; }
  html.js-scenes .book-pin {
    position: sticky; top: 0; min-height: 100svh; height: 100svh; overflow: hidden;
    align-content: center; padding-block: 4.5rem 1.5rem;
  }
  .book-stage { width: min(100%, 560px, calc(100svh - 9rem)); }
}
.book-scene--compact + .book-scene--compact .book-pin { padding-top: 0; }
@media (max-width: 859px) { .book-scene { padding-bottom: clamp(2rem, 6vw, 3rem); } }

/* ---- Chapter 02: vinyl sleeve + spinning disc + visualiser ---- */
.vinyl-scene { position: relative; }
.vinyl-pin {
  max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); box-sizing: border-box;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) { .vinyl-pin { grid-template-columns: .9fr 1fr; } }
.vinyl-rig {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
}
.vinyl-viz { position: absolute; inset: -14%; width: 128%; height: 128%; display: none; }
html.js-scenes .vinyl-viz { display: block; }
.vinyl-disc {
  position: absolute; inset: 6%; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, var(--night) 0 2px, #1c1812 2px 4px),
    radial-gradient(circle at center, var(--night-2) 0 18%, var(--night) 19% 100%);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.8);
}
.vinyl-disc::after {
  content: ""; position: absolute; inset: 42%; border-radius: 50%;
  background: var(--marigold);
}
html.js-scenes .vinyl-disc { animation: vinyl-spin 5.5s linear infinite; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
.vinyl-sleeve {
  position: relative; width: 72%; aspect-ratio: 1; border: 1px solid var(--rule);
  background: var(--night-2); box-shadow: 0 25px 50px -18px rgba(0,0,0,.75);
}
.vinyl-sleeve img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.js-scenes .vinyl-sleeve {
  position: absolute; left: 50%; top: 50%;
  transform: translate(calc(-50% - var(--slide, 0) * 38%), -50%) rotate(calc(var(--slide, 0) * -4deg));
  transition: transform .05s linear;
}
.vinyl-track-list { display: grid; gap: 1rem; margin-block: 1.25rem; }
.vinyl-track { border-top: 1px solid var(--rule); padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.vinyl-track .vt-title { width: 100%; font-weight: 700; margin: 0; }
.vinyl-track .vt-artist { width: 100%; color: var(--bone); font-size: .85rem; margin: 0 0 .25rem; }
.play-vinyl {
  display: inline-flex; align-items: center; gap: .4em; background: none; border: 2px solid var(--marigold);
  color: var(--bone); padding: .5em 1em; font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 44px;
}
.play-vinyl:hover, .play-vinyl[aria-pressed="true"] { background: var(--marigold); color: var(--night); }
@media (scripting: none) { .play-vinyl { display: none; } }

/* ---- Chapter 03: film reel ---- */
.reel-scene { position: relative; }
.reel-pin { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.reel-track {
  display: flex; gap: clamp(1rem, 2.5vw, 1.75rem); list-style: none; margin: 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  position: relative;
}
.reel-track::before, .reel-track::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle, rgba(241,233,218,.35) 2.5px, transparent 2.6px);
  background-size: 22px 10px; background-repeat: repeat-x;
}
.reel-track::before { top: 0; } .reel-track::after { bottom: 0; }
.reel-frame {
  flex: 0 0 clamp(250px, 36vw, 420px); background: var(--night-2); border: 1px solid var(--rule);
}
.reel-frame--big { flex-basis: clamp(300px, 54vw, 620px); }
.reel-frame .thumb-btn { overflow: hidden; }
.reel-frame .thumb-btn img { transition: transform 6s cubic-bezier(.2,.6,.2,1); }
.reel-frame .thumb-btn:hover img, .reel-frame .thumb-btn:focus-visible img {
  transform: scale(1.12) translateY(-2%);
}
@media (prefers-reduced-motion: reduce) { .reel-frame .thumb-btn img { transition: none; } }

@media (min-width: 1024px) {
  html.js-scenes .reel-scene { height: 340vh; }
  html.js-scenes .reel-pin {
    position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden;
    padding-block: 0;
  }
  html.js-scenes .reel-track {
    flex-wrap: nowrap; transform: translateX(var(--reel-x, 0px)); will-change: transform;
    transition: transform .05s linear; padding-inline: clamp(1.5rem, 6vw, 5rem);
  }
}
@media (max-width: 1023.98px), (pointer: coarse) {
  .reel-track {
    overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    max-width: 100%;
  }
  .reel-frame { scroll-snap-align: start; }
}

/* ---- mobile full-screen cloth menu overlay ---- */
@media (max-width: 760px) {
  .site-nav {
    position: fixed; inset: 0; top: 0; z-index: 90;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    background: var(--night) url("assets/img/cloth-poster.webp") center / cover;
    max-height: none; height: 100vh; height: 100svh;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    overflow: hidden; border-bottom: 0;
  }
  .site-nav::before {
    content: ""; position: absolute; inset: 0; background: rgba(15,13,11,.72);
  }
  .menu-weave {
    position: absolute; inset: 0; background-image: url(assets/img/pattern.webp);
    background-size: 120px 120px; opacity: .1; mix-blend-mode: overlay;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .3s ease, transform .3s ease; }
  .site-nav a {
    position: relative; z-index: 1; padding: .55rem clamp(1.5rem, 8vw, 3rem);
    font-size: clamp(2.25rem, 11vw, 3.5rem); font-variation-settings: 'wdth' 62; font-weight: 860;
    text-transform: uppercase; letter-spacing: -.01em; border-bottom: 0;
  }
  .site-nav a[aria-current="page"] { border-bottom: 0; text-decoration: underline; text-underline-offset: .12em; }
}
@media (scripting: none) { .site-nav { position: static; max-height: none; height: auto; opacity: 1; visibility: visible; transform: none; background: var(--night-2); } }
@media (scripting: none) { .site-nav::before, .menu-weave { display: none; } }
@media (scripting: none) { .site-nav a { font-size: 1rem; } }

/* ---- 404: let visitors dye the cloth too ---- */
.notfound-cloth { margin-bottom: clamp(2rem, 5vw, 3rem); }
@media (min-width: 860px) { .book-scene--compact .scene-title { font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .9; } }

/* ---- album tiles: square sleeve, record peeking out of the top ---- */
.album { position: relative; margin-top: 11%; aspect-ratio: 1 / 1; isolation: isolate; }
.album-sleeve {
  position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; border-radius: 3px;
  background: var(--night-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 22px 40px -22px rgba(0, 0, 0, .9);
  transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
.album-sleeve .art { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.album-sleeve::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%), linear-gradient(0deg, rgba(0,0,0,.18), transparent 30%);
  opacity: .55; transition: opacity .5s ease;
}
.album-disc {
  position: absolute; z-index: 0; left: 5%; top: 0; width: 90%; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255,255,255,.08) 17.5% 18%, transparent 18.5%),
    repeating-radial-gradient(circle, #0b0a09 0 1.5px, #2a2520 1.5px 3px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 3px rgba(0,0,0,.6);
  transform: translateY(-15%) rotate(0deg);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.album-disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.2) 25%, transparent 32% 70%, rgba(255,255,255,.12) 75%, transparent 82%);
}
.album-disc img { position: absolute; inset: 33%; width: 34%; height: 34%; border-radius: 50%; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .release-card:hover .album-disc, .release-card:focus-within .album-disc { transform: translateY(-30%) rotate(200deg); }
  .release-card:hover .album-sleeve, .release-card:focus-within .album-sleeve { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 34px 60px -26px rgba(0, 0, 0, .95); }
  .release-card:hover .album-sleeve .art { transform: scale(1.045); }
  .release-card:hover .album-sleeve::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .album-sleeve, .album-sleeve .art, .album-disc, .album-sleeve::after { transition: none; }
  .album-sleeve { transform: none; }
}
.music-grid-8 { row-gap: clamp(1.5rem, 3vw, 2.25rem); }
/* cards now sit straight on the coloured band: lift text for AA contrast */
.band-palm .release-card .artist, .band-indigo .release-card .artist, .band-kola .release-card .artist { color: #FFD37C; }
.band-palm .release-card .meta, .band-indigo .release-card .meta, .band-kola .release-card .meta { color: rgba(241, 233, 218, .86); }
.band-palm .preview-btn, .band-indigo .preview-btn, .band-kola .preview-btn { color: #FFD37C; border-color: #FFD37C; }
.band-palm .preview-btn:hover, .band-palm .preview-btn[aria-pressed="true"] { color: var(--night); background: #FFD37C; }

/* ---- Spotify: Play on Spotify buttons, store links, track play controls, the shared dock ----
   Spotify's player only loads after one of these buttons is pressed (see app.js). */
.sp-glyph { flex-shrink: 0; display: block; }
.release-card .actions { gap: .55rem; }
.sp-play {
  --sp-cut: var(--marigold);
  position: relative; flex: 1 1 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .55em 1em;
  background: var(--marigold); color: var(--night);
  border: 2px solid var(--marigold); border-radius: 999px;
  font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  font-variation-settings: 'wdth' 108;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(244, 179, 43, .9);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sp-play:hover { background: var(--night); color: var(--marigold); --sp-cut: var(--night); transform: translateY(-1px); }
.sp-play.is-on { background: var(--night); color: var(--marigold); --sp-cut: var(--night); box-shadow: 0 0 0 1px rgba(244,179,43,.25), 0 12px 30px -12px rgba(244, 179, 43, .7); }
.sp-play.is-on::after {
  content: ""; width: 14px; height: 12px; flex-shrink: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 3px 60% no-repeat,
              linear-gradient(currentColor, currentColor) 5px 100% / 3px 100% no-repeat,
              linear-gradient(currentColor, currentColor) 10px 100% / 3px 40% no-repeat;
  animation: sp-eq 1s ease-in-out infinite alternate;
}
@keyframes sp-eq {
  0% { background-size: 3px 30%, 3px 90%, 3px 50%; }
  50% { background-size: 3px 100%, 3px 40%, 3px 80%; }
  100% { background-size: 3px 55%, 3px 100%, 3px 25%; }
}
.band-palm .sp-play, .band-indigo .sp-play, .band-kola .sp-play { --sp-cut: #FFD37C; background: #FFD37C; border-color: #FFD37C; }
.band-palm .sp-play:hover, .band-palm .sp-play.is-on, .band-indigo .sp-play:hover, .band-indigo .sp-play.is-on { background: var(--night); color: #FFD37C; --sp-cut: var(--night); }
.release-card .preview-btn { border-radius: 999px; }
.store-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .1rem 0 0; flex: 1 1 100%; }
.store-link {
  display: inline-flex; align-items: center; gap: .3em; min-height: 32px;
  font-size: .8rem; font-weight: 700; color: var(--bone);
  text-decoration: underline; text-decoration-color: rgba(244, 179, 43, .6); text-underline-offset: .25em;
}
.store-link:hover { color: var(--marigold); text-decoration-color: currentColor; }
.sp-note { font-size: .82rem; color: var(--bone-dim); margin: -1rem 0 1.5rem; max-width: 46em; }
.music-grid-8 + .sp-note { margin: 1.25rem 0 0; }
@media (scripting: none) { .sp-play, .sp-note { display: none; } }

/* track rows: [play] [title + links/duration] [30s preview] */
.track-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .5rem .6rem; }
.track-row .t-n { display: flex; align-items: center; justify-content: center; }
.t-main { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.t-main .t-title { overflow-wrap: anywhere; }
.t-main .track-links { flex-wrap: wrap; gap: .1rem .7rem; }
.t-main .t-dur { font-size: .76rem; color: var(--bone-dim); }
.sp-play--track {
  flex: none; width: 2.5rem; height: 2.5rem; min-height: 0; padding: 0; border-radius: 50%;
  background: transparent; color: var(--marigold); border: 2px solid var(--marigold); box-shadow: none;
}
.sp-play--track:hover, .sp-play--track.is-on { background: var(--marigold); color: var(--night); transform: none; }
.sp-play--track .sp-tri {
  width: 0; height: 0; margin-left: 3px;
  border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.sp-play--track.is-on .sp-tri { display: none; }
.sp-play--track.is-on::after { width: 13px; }
@media (scripting: none) { .track-row.has-sp .t-n { visibility: hidden; } }

/* the dock */
.sp-dock {
  position: fixed; z-index: 90; left: 50%; bottom: calc(.75rem + env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 1rem));
  transform: translate(-50%, calc(100% + 2rem)); opacity: 0;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.sp-dock.is-open { transform: translate(-50%, 0); opacity: 1; }
.sp-dock[hidden] { display: none; }
.sp-dock-inner {
  position: relative; overflow: hidden;
  padding: .6rem .7rem .55rem; border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(244, 179, 43, .18) 0%, transparent 45%),
    linear-gradient(140deg, #1B2A6B 0%, #141B44 45%, #0F0D0B 100%);
  border: 1px solid rgba(244, 179, 43, .35);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 60px -30px rgba(244, 179, 43, .6);
}
.sp-dock-head { display: flex; align-items: center; gap: .7rem; padding: 0 0 .5rem .2rem; min-width: 0; }
.sp-dock-kicker {
  --sp-cut: #141B44;
  display: inline-flex; align-items: center; gap: .4em; flex-shrink: 0;
  color: var(--marigold); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.sp-dock-title { flex: 1; min-width: 0; margin: 0; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-dock-title:focus { outline: none; }
.sp-dock-title:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; }
.sp-dock-name { font-weight: 700; }
.sp-dock-artist { color: rgba(241, 233, 218, .82); }
.sp-dock-close {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(15, 13, 11, .5); color: var(--bone); border: 1px solid rgba(241, 233, 218, .25);
  font-size: 1rem; transition: background .18s ease, color .18s ease;
}
.sp-dock-close:hover { background: var(--marigold); color: var(--night); border-color: var(--marigold); }
.sp-dock-frame { position: relative; height: 152px; border-radius: 12px; overflow: hidden; background: rgba(15, 13, 11, .65); }
.sp-dock-frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: transparent; }
.sp-dock-frame[data-state="loading"] iframe { opacity: 0; }
.sp-dock-frame[data-state="ready"] iframe { opacity: 1; transition: opacity .35s ease; }
.sp-skeleton { position: absolute; inset: 0; display: grid; grid-template-columns: 120px 1fr; grid-template-rows: 1fr 1fr 1fr; gap: .6rem 1rem; padding: 16px; }
.sp-skeleton span {
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(241,233,218,.06) 30%, rgba(241,233,218,.16) 50%, rgba(241,233,218,.06) 70%) 0 0 / 300% 100%;
  animation: sp-shimmer 1.4s linear infinite;
}
.sp-skeleton span:first-child { grid-row: 1 / 4; }
.sp-skeleton span:nth-child(3) { width: 60%; }
@keyframes sp-shimmer { to { background-position: -150% 0; } }
.sp-dock-frame[data-state="ready"] .sp-skeleton, .sp-dock-frame[data-state="failed"] .sp-skeleton { display: none; }
.sp-dock-frame[data-state="failed"] { height: auto; min-height: 0; background: none; }
.sp-dock-frame[data-state="failed"] iframe { display: none; }
.sp-dock-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1rem; margin: .45rem .2rem 0; font-size: .76rem; }
.sp-dock-msg { color: rgba(241, 233, 218, .86); }
.sp-dock-msg:empty { display: none; }
.sp-dock-open { margin-left: auto; color: var(--marigold); font-weight: 700; min-height: 32px; display: inline-flex; align-items: center; gap: .3em; }
.sp-dock-open:hover { text-decoration: underline; }
.sp-dock-frame[data-state="failed"] + .sp-dock-foot .sp-dock-open { margin-left: 0; font-size: .9rem; }
body.sp-open { padding-bottom: 290px; }
body.sp-open .sticky-cta { display: none; }
@media (max-width: 420px) {
  .sp-dock-kicker span { display: none; }
  .sp-skeleton { grid-template-columns: 88px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-dock { transition: none; }
  .sp-play.is-on::after, .sp-skeleton span { animation: none; }
}
.vinyl-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; }
.release-card { container-type: inline-size; }
.sp-play:not(.sp-play--track) { white-space: nowrap; }
@container (max-width: 210px) {
  .sp-play:not(.sp-play--track) { font-size: .7rem; letter-spacing: .02em; gap: .4em; padding: .5em .6em; }
  .sp-play:not(.sp-play--track) .sp-glyph { width: 15px; height: 15px; }
  .store-link { font-size: .76rem; }
}
@container (max-width: 160px) {
  .sp-play:not(.sp-play--track) { white-space: normal; line-height: 1.15; }
}
