/* ==========================================================================
   v4 upgrades: hero card, kinetic marquee, vinyl reveals, listen section,
   stats, CTA band, ghost words, hover choreography, scrollbar
   Loaded after site.css; same layer names so the cascade stays predictable.
   ========================================================================== */
@layer components {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: linear-gradient(var(--red-deep), var(--red)); border-radius: 10px; border: 2px solid var(--bg); }

  /* hero: latest record card */
  .hero-card { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center; padding: .8rem 1.1rem .8rem .8rem; border-radius: 18px; max-width: 360px; }
  .hero-card .cv { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; position: relative; display: block; }
  .hero-card .cv img { width: 100%; height: 100%; object-fit: cover; }
  .hero-card .cv::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); border-radius: inherit; }
  .hero-card small { display: block; font-size: var(--t-micro); letter-spacing: .25em; text-transform: uppercase; color: var(--red-hot); margin-bottom: .2rem; }
  .hero-card b { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
  .hero-card .links { display: flex; gap: .3rem; margin-top: .45rem; flex-wrap: wrap; }
  .hero-card .links a { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); transition: color .3s, border-color .3s, background .3s; }
  .hero-card .links a:hover { color: #fff; border-color: transparent; background: var(--g-red); }
  @media (max-width: 860px) { .hero-card { display: none; } }
  .dots button.is-active i { background: linear-gradient(var(--g-red), var(--g-red)) no-repeat 0 0 / 0% 100%, var(--fg-3); animation: dotfill 6.5s linear forwards; }

  /* kinetic marquee */
  .kinetic { overflow: hidden; padding-block: clamp(1.5rem, 4vw, 3rem) 0; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .kinetic .row { display: flex; width: max-content; font-size: clamp(3rem, 9vw, 9rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; text-transform: uppercase; white-space: nowrap; }
  .kinetic .row span { padding-right: .45em; }
  .kinetic .row span:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .35); }
  .kinetic .row span:nth-child(even) { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .kinetic .row span i { font-style: normal; color: var(--red); -webkit-text-stroke: 0; -webkit-text-fill-color: var(--red); }
  .kinetic .row.a { animation: marquee 60s linear infinite; }
  .kinetic .row.b { animation: marquee 80s linear infinite reverse; font-size: clamp(1.4rem, 3.4vw, 3rem); margin-top: .2em; opacity: .7; }
  .kinetic:hover .row { animation-play-state: paused; }

  /* album cards: vinyl slides out from behind the cover */
  .disc { transform-style: preserve-3d; will-change: transform; }
  .disc .cover { overflow: visible; }
  .disc .cover .img { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 2; display: block; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .9); transition: transform .8s var(--ease-out); }
  .disc .cover .img img { width: 100%; height: 100%; object-fit: cover; }
  .vinyl { position: absolute; top: 2%; left: 2%; width: 96%; aspect-ratio: 1; border-radius: 50%; z-index: 1; transform: translateX(0) rotate(0deg); transition: transform 1s var(--ease-out);
    background: conic-gradient(from 200deg, rgb(255 255 255 / .16) 0deg, transparent 25deg, transparent 160deg, rgb(255 255 255 / .1) 185deg, transparent 210deg, transparent 350deg, rgb(255 255 255 / .16) 360deg), repeating-radial-gradient(circle, #141214 0 1.2px, #090809 1.2px 2.6px), radial-gradient(circle, #1a181a, #070607 70%);
    box-shadow: 0 30px 60px -25px rgb(0 0 0 / .95), inset 0 0 0 1px rgb(255 255 255 / .05); }
  .vinyl::before { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--red-hot), var(--red) 45%, var(--red-deep)); box-shadow: 0 0 0 1px rgb(0 0 0 / .6); }
  .vinyl::after { content: ""; position: absolute; inset: 48.6%; border-radius: 50%; background: #070607; }
  .disc:hover .vinyl { transform: translateX(34%) rotate(28deg); }
  .disc:hover .cover .img { transform: translateX(-4%); }
  .disc .meta { display: flex; gap: .5rem; flex-wrap: wrap; padding-inline: .25rem; }
  .disc .meta span { font-size: var(--t-micro); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); padding: .3rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; }
  .disc .meta span.on { color: var(--red-hot); border-color: rgb(216 15 26 / .45); }
  .vid, .shop-item { will-change: transform; }

  /* listen */
  .listen { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-5); align-items: center; }
  @media (max-width: 900px) { .listen { grid-template-columns: 1fr; } }
  .spotify { position: relative; border-radius: var(--r); overflow: hidden; min-height: 352px; background: var(--bg-2); cursor: pointer; }
  .spotify iframe { width: 100%; height: 352px; border: 0; display: block; position: relative; z-index: 2; }
  .spotify .cover { position: absolute; inset: 0; }
  .spotify .cover img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); }
  .spotify .inner { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; z-index: 2; }
  .spotify .inner .btn { pointer-events: none; }
  .platforms { display: grid; gap: .5rem; }
  .platforms a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .03); transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
  .platforms a:hover { border-color: rgb(216 15 26 / .5); background: rgb(216 15 26 / .08); transform: translateX(6px); }
  .platforms a b { font-weight: 600; }
  .platforms a span { font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }

  /* stats */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; margin-top: var(--s-4); }
  .stats > div { background: rgb(0 0 0 / .35); padding: 1.4rem 1.5rem; }
  .stats b { display: block; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--g-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .stats span { font-size: var(--t-micro); letter-spacing: .25em; text-transform: uppercase; color: var(--fg-2); }
  @media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

  /* CTA band */
  .cta { position: relative; overflow: clip; padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
  .cta .ghost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(6rem, 24vw, 26rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .08); white-space: nowrap; pointer-events: none; }
  .cta h2 { font-size: clamp(2.2rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -.04em; max-width: 14ch; margin-inline: auto; position: relative; }
  .cta h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .cta p { position: relative; margin: 1.2rem auto 2rem; color: var(--fg-2); max-width: 44ch; }
  .cta .flex { justify-content: center; position: relative; }

  /* ghost words behind inner page heads */
  .page-head { overflow: clip; z-index: 0; }
  .page-head .ghost { position: absolute; right: -.05em; top: 0; font-size: clamp(6rem, 22vw, 22rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .07); pointer-events: none; user-select: none; white-space: nowrap; z-index: -1; }

  /* hover choreography */
  .news-item, .event-row { position: relative; transition: padding-left .5s var(--ease-out); }
  .news-item::before, .event-row::before { content: ""; position: absolute; left: -1.2rem; right: -1.2rem; top: 0; bottom: 0; border-radius: 16px; background: linear-gradient(90deg, rgb(216 15 26 / .1), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
  .news-item:hover, .event-row:hover { padding-left: .6rem; }
  .news-item:hover::before, .event-row:hover::before { opacity: 1; }
  .member { transition: transform .4s var(--ease-out); }
  .member:hover { transform: translateX(6px); }
  .member:hover .ph { box-shadow: 0 0 0 3px rgb(216 15 26 / .35), 0 8px 20px -8px var(--red-glow); }

  /* section numerals */
  .section-head { position: relative; }
  .section-head .n { position: absolute; left: -.05em; top: -.55em; font-size: clamp(4rem, 9vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .09); pointer-events: none; z-index: -1; }

  /* album page cover with vinyl */
  .cover-wrap { position: relative; }
  .cover-wrap .vinyl { top: 2%; left: 2%; width: 96%; z-index: 0; }
  .cover-wrap:hover .vinyl { transform: translateX(30%) rotate(24deg); }
  .cover-wrap .cover { position: relative; z-index: 1; top: 0; }
  .album-layout .cover-wrap { position: sticky; top: 6.5rem; }
  @media (max-width: 860px) { .album-layout .cover-wrap { position: static; max-width: 420px; } }

  .email-big { font-size: clamp(1.4rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -.03em; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-all; }
}
@layer motion {
  @keyframes dotfill { to { background-size: 100% 100%, auto; } }
  @media (prefers-reduced-motion: reduce) { .kinetic .row { animation: none; } }
}
@layer components {
  /* on the red bands, highlighted words go white so they stay readable */
  .section.band .grad-text, .section.band .stats b, .section.band .stats2 b, .section.band .years .y b { background: linear-gradient(100deg, #fff 0%, #fff 45%, #ffd6d2 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
@layer components {
  /* header pill overhangs the content column by its own padding so the logo and nav sit on the same left edge as the page */
  .site-header .container { width: min(100% - 2 * var(--gutter) + 2.2rem, calc(1440px + 2.2rem)); }
  .site-header .bar { padding-left: 1.1rem; padding-right: .6rem; }
  .nav-ind { background: rgb(255 255 255 / .9); mix-blend-mode: normal; }
  .nav-ind.is-on { opacity: .08; }
}
@layer components {
  /* full-bleed band: same black-to-red gradient, no card edges */
  .section.band.full { margin-inline: 0; border-radius: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -1px 0 rgb(255 255 255 / .06); padding-block: clamp(4rem, 9vw, 7rem); }
  .section.band.full.alt { background: radial-gradient(60% 110% at 12% 80%, var(--red) 0%, var(--red-deep) 38%, #150204 72%, #070607 100%); }
}
@layer components {
  /* page heads bleed edge to edge; the text stays on the content column */
  .page-head.container { width: auto; max-width: none; margin-inline: 0; padding-inline: max(var(--gutter), calc(50% - 720px)); }
  .page-head .ghost { right: max(var(--gutter), calc(50% - 720px)); }
  .page-head::before { inset: 0; height: auto; }
}
@layer components {
  /* album cards must not clip, otherwise the record can never leave the sleeve */
  .disc.glass { overflow: visible; }
  .disc.glass::after { display: none; }
  .disc:hover { z-index: 5; }
  .disc .cover { z-index: 1; }
  .disc .cover .img { transition: transform .9s var(--ease-out); }
  .disc .vinyl { transition: transform 1.1s var(--ease-out); }
  .disc:hover .vinyl { transform: translateX(28%) rotate(40deg); }
  .disc:hover .cover .img { transform: translateX(-5%); }
}
@layer components {
  /* footer wordmark, v2: the full name in one crisp line, white with the last word in red, fading only at the very bottom */
  .footer-big { font-size: clamp(2.6rem, 9.3vw, 9.4rem); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; font-weight: 800; text-align: center; white-space: nowrap; transform: none; opacity: 1; color: #fff; background: none; -webkit-text-fill-color: #fff; padding: 0 var(--gutter) 1.2rem; -webkit-mask: linear-gradient(#000 70%, rgb(0 0 0 / .2)); mask: linear-gradient(#000 70%, rgb(0 0 0 / .2)); }
  .footer-big em { font-style: normal; color: var(--red); -webkit-text-fill-color: var(--red); }
  .site-footer:hover .footer-big { opacity: 1; }
  .footer-bottom { border-top: 1px solid var(--line-2); }
}
@layer components {
  /* cart table spacing */
  table.cart th, table.cart td { padding: 1rem .9rem; }
  table.cart th:first-child, table.cart td:first-child { padding-left: 0; width: 72px; }
  table.cart th:last-child, table.cart td:last-child { padding-right: 0; text-align: right; }
  table.cart td:nth-child(3), table.cart th:nth-child(3), table.cart td:nth-child(5), table.cart th:nth-child(5) { white-space: nowrap; }
  table.cart td:nth-child(4), table.cart th:nth-child(4) { width: 110px; }
  table.cart td .qty, table.cart input.qty[type=number] { width: 84px; min-width: 0; padding: .7em .5em; text-align: center; }
  table.cart img { width: 60px; height: 60px; border-radius: 10px; }
  table.cart td b { font-weight: 600; }
  table.cart .btn.ghost { padding: .5em .7em; }
}
@layer components {
  .disc:hover .vinyl { transform: translateX(52%) rotate(60deg); }
  .disc:hover .cover .img { transform: translateX(-8%); }
  .disc .vinyl::before { inset: 33%; }
}
@layer components {
  /* right-column cards push the record out to the left so it never leaves the viewport */
  @media (min-width: 601px) {
    .grid-2 > .disc:nth-child(even):hover .vinyl { transform: translateX(-52%) rotate(-60deg); }
    .grid-2 > .disc:nth-child(even):hover .cover .img { transform: translateX(8%); }
  }
}
@layer components {
  /* the record label is the album art, not a plain red disc */
  .vinyl::before { display: none; }
  .vinyl img { position: absolute; inset: 33%; width: 34%; height: 34%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(0 0 0 / .8), 0 0 30px rgb(0 0 0 / .6); }
  .vinyl::after { z-index: 1; width: 6%; height: 6%; inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgb(255 255 255 / .12); }
}
@layer components {
  .disc .cover .vinyl img, .cover-wrap .vinyl img { position: absolute; inset: 33%; width: 34%; height: 34%; border-radius: 50%; object-fit: cover; transition: none; box-shadow: 0 0 0 2px rgb(0 0 0 / .8), 0 0 30px rgb(0 0 0 / .6); }
}
@layer components {
  /* current page in the nav: no dot, just white text with a short red underline that sits under the label */
  .nav a[aria-current]::after { width: auto; height: 1.5px; left: .85rem; right: .85rem; bottom: .45rem; border-radius: 2px; transform: none; background: var(--red); box-shadow: none; }
}
@layer components {
  /* official logo mark: 2.55:1 */
  .logo .mark { width: 62px; height: 24px; filter: drop-shadow(0 0 12px var(--red-glow)); }
  @media (max-width: 1180px) { .logo .mark { width: 66px; height: 26px; } }
  .intro .sleeve .glyph { width: 62%; }
  .intro .record .label-glyph { width: 20%; transform: translate(-50%, -50%) translateY(-60%); }
}
@layer components {
  @media (max-width: 1180px) {
    .site-header .container { width: min(100% - 2 * var(--gutter), 1440px); }
    .site-header .bar { padding: 0 .4rem 0 .9rem; gap: .5rem; }
    .actions { gap: .2rem; }
    .menu-btn { padding: 0 .7rem; }
  }
  @media (max-width: 480px) {
    .site-header .bar { height: 56px; padding-left: .8rem; }
    .logo .mark { width: 56px; height: 22px; }
    .cart-btn { width: 40px; height: 40px; }
    .menu-btn { height: 40px; font-size: .62rem; }
  }
}
@layer components {
  /* wordmark must never be wider than the screen: it caused horizontal overflow on phones */
  .site-footer { overflow: hidden; }
  .footer-big { font-size: clamp(1.5rem, 7.4vw, 9.4rem); letter-spacing: -.05em; }
  @media (max-width: 480px) { .footer-big { font-size: 7vw; } }
  html, body { max-width: 100%; overflow-x: clip; } /* clip, not hidden: hidden would turn body into a scroll container and break position: sticky */
}
@layer components {
  .cta, .page-head, .player, .site-footer { overflow: hidden; }
  .cta .ghost { max-width: 100vw; }
  @media (max-width: 900px) { .turntable { width: min(88%, 360px); } }
}
@layer components {
  /* story band: red to dark red, never to black */
  .section.band.full.alt { background: radial-gradient(70% 120% at 12% 80%, var(--red) 0%, #9c0c18 35%, var(--red-deep) 70%, #3d0208 100%); }
  /* hero dock on phones: one tidy row */
  @media (max-width: 860px) {
    .hero-dock { grid-template-columns: auto 1fr; gap: 1rem; padding: .6rem 1rem; }
    .dock-count { white-space: nowrap; }
    .dots { justify-content: flex-end; }
    .dots button { width: 22px; }
    .hero-dock .scroll-cue { display: none; }
  }
  /* mobile menu slides in from the right */
  .menu { transform: translateX(100%); }
  .menu.is-open { transform: none; }
}
@layer components {
  @media (max-width: 600px) { .stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; } }
}
@layer components {
  /* phones: the band is tall and narrow, so a side-lit ellipse turns into one flat
     red slab. Light it from the top instead: hot behind the text, settling into
     deep red where the timeline card sits so the glass has something to sit on. */
  @media (max-width: 760px) {
    .section.band.full.alt {
      background:
        radial-gradient(140% 42% at 30% 0%, var(--red) 0%, #b00d19 32%, rgb(156 12 24 / 0) 72%),
        radial-gradient(90% 30% at 100% 55%, rgb(216 15 26 / .35) 0%, rgb(216 15 26 / 0) 70%),
        linear-gradient(180deg, #8f0a15 0%, var(--red-deep) 42%, #3d0208 78%, #2b0206 100%);
    }
    .section.band:not(.full) {
      background:
        radial-gradient(140% 45% at 70% 0%, var(--red) 0%, #9c0c18 35%, rgb(156 12 24 / 0) 72%),
        linear-gradient(180deg, #7a0610 0%, var(--red-deep) 45%, #2b0206 100%);
    }
  }
}
