/* Tiebreak — main stylesheet */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VT323"; src: url("../fonts/vt323-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Jost stands in for Futura Md BT until a web licence is in place.
   Once licensed, add the Futura woff2 files to /assets/fonts and uncomment:
@font-face { font-family: "Futura Md BT"; src: url("../fonts/futura-md-bt-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Futura Md BT"; src: url("../fonts/futura-bt-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
*/
@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --lavender: #EAD9EB;
  --wisteria: #B49FCC;
  --grape: #6D466B;
  --midnight: #412234;
  --onyx: #141414;
  --black: #020202;
  --white: #FFFFFF;
  --muted-on-dark: #D9C8E0;

  --font-head: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Futura Md BT", "Jost", Futura, "Century Gothic", system-ui, sans-serif;
  --font-mono: "VT323", "Courier New", monospace;

  --track-head: -0.05em;
  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--wisteria); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--lavender); color: var(--onyx); padding: 10px 16px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 22px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

/* Section colourways */
.bg-lavender { background: var(--lavender); color: var(--onyx); }
.bg-midnight { background: var(--midnight); color: var(--white); }
.bg-onyx { background: var(--onyx); color: var(--white); }
.bg-wisteria { background: var(--wisteria); color: var(--onyx); }
.bg-grape { background: var(--grape); color: var(--white); }

/* Grain texture */
.grain { isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("../img/grain.webp"); background-size: 128px 128px;
  opacity: .6; mix-blend-mode: overlay;
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { background-position: 0 0; } 25% { background-position: -40px 22px; }
  50% { background-position: 18px -36px; } 75% { background-position: -26px -10px; } 100% { background-position: 0 0; }
}

/* Scanline divider */
.scan {
  height: 10px;
  background: repeating-linear-gradient(to bottom, var(--onyx) 0 2px, var(--grape) 2px 4px);
  background-size: 100% 4px;
  animation: scan-roll 1.6s linear infinite;
}
@keyframes scan-roll { to { background-position: 0 4px; } }

/* ---------- Type ---------- */
.label {
  font-family: var(--font-mono); font-size: clamp(19px, 2vw, 24px); line-height: 1.1;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px;
}
.label::before { content: "■ "; }
.label--muted-dark { color: var(--wisteria); }
.label--grape { color: var(--grape); }
.h-display, .h-section {
  font-family: var(--font-head); font-weight: 400; letter-spacing: var(--track-head);
  line-height: .9; margin: 0; text-transform: uppercase;
}
.h-display { font-size: clamp(64px, 9.5vw, 128px); color: var(--lavender); }
.h-section { font-size: clamp(60px, 7vw, 96px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 520px; margin: 18px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lavender); --fg: var(--onyx); --bd: var(--lavender);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-family: var(--font-mono); font-size: 25px; letter-spacing: .04em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); animation: rgb-split .45s steps(3) 1; }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--lavender); --bd: var(--lavender); }
.btn--ghost:hover { --bg: var(--lavender); --fg: var(--onyx); }
.btn--grape { --bg: var(--grape); --fg: var(--white); --bd: var(--grape); }
.btn--grape:hover { --bg: var(--midnight); --bd: var(--midnight); }
.btn--onyx { --bg: var(--onyx); --fg: var(--lavender); --bd: var(--onyx); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
@keyframes rgb-split {
  0% { text-shadow: 2px 0 rgba(255,0,80,.7), -2px 0 rgba(0,200,255,.7); }
  50% { text-shadow: -2px 0 rgba(255,0,80,.7), 2px 0 rgba(0,200,255,.7); }
  100% { text-shadow: none; }
}
.pill {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--grape); border-radius: 999px; color: var(--grape);
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background-color .2s, color .2s, transform .25s var(--ease-out);
}
.pill:hover { background: var(--grape); color: var(--white); transform: translateY(-2px); }

/* Icon links */
.icons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.icon-link {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--grape);
  display: flex; align-items: center; justify-content: center; color: var(--lavender);
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out);
}
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }
.icon-link:hover { background: var(--lavender); border-color: var(--lavender); color: var(--onyx); transform: translateY(-2px) rotate(-6deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,20,20,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--midnight);
  transition: transform .4s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand img { height: 28px; width: auto; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-mono); font-size: 23px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--lavender); text-decoration: none; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wisteria);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-toggle {
  display: none; min-height: 44px; padding: 0 14px; background: transparent; color: var(--lavender);
  border: 1px solid var(--grape); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 23px; letter-spacing: .05em; cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--onyx);
  display: flex; flex-direction: column; padding: 18px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease-out), visibility 0s .55s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease-out), visibility 0s; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.mobile-menu nav { margin-top: 8vh; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: block; font-family: var(--font-head); font-size: 64px; line-height: 1; letter-spacing: var(--track-head);
  color: var(--lavender); text-decoration: none; padding: 6px 0;
  opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .06s); }
.mobile-menu .icons { margin-top: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--black); padding: clamp(12px, 3vw, 32px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero .container { max-width: 1280px; }
.screen { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.screen video, .screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .poster { z-index: 0; }
.screen video { z-index: 1; }
.screen__osd {
  position: absolute; z-index: 2; top: 13%; font-family: var(--font-mono); color: var(--lavender);
  font-size: clamp(14px, 2.2vw, 30px); letter-spacing: .08em; line-height: 1; text-shadow: 0 0 8px rgba(234,217,235,.5);
  pointer-events: none;
}
.screen__osd--left { left: 11%; }
.screen__osd--right { right: 11%; }
.screen__osd .blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Scanlines + rolling tracking bar over the screen */
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.screen::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(234,217,235,.07) 45%, rgba(255,255,255,.12) 50%, rgba(234,217,235,.07) 55%, transparent);
  animation: tracking-bar 7s linear 3s infinite;
}
@keyframes tracking-bar { 0% { top: -20%; } 60%, 100% { top: 110%; } }

/* Static burst shown during power-on */
.screen__static {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: #111 url("../img/grain.webp"); background-size: 96px;
  mix-blend-mode: screen;
}
.js .crt-intro .screen__static { animation: static-burst 2.6s steps(1) both, grain-shift .25s steps(3) infinite; }
@keyframes static-burst {
  0%, 30% { opacity: 0; } 32% { opacity: .9; } 40% { opacity: .5; } 46% { opacity: .85; } 52% { opacity: .25; }
  58% { opacity: .6; } 64% { opacity: .1; } 70% { opacity: .35; } 78%, 100% { opacity: 0; }
}

/* CRT power-on: dot, line, open, overshoot, flicker, settle */
.js .screen.crt-intro { animation: crt-on 2.6s var(--ease-out) both; transform-origin: center; }
@keyframes crt-on {
  0%   { transform: scale(.002, .004); filter: brightness(10) saturate(0); opacity: 0; }
  6%   { transform: scale(.002, .004); filter: brightness(10) saturate(0); opacity: 1; }
  20%  { transform: scale(1, .004); filter: brightness(8) saturate(0); }
  30%  { transform: scale(1, .004); filter: brightness(8) saturate(0); }
  44%  { transform: scale(1, 1.08); filter: brightness(2.6) saturate(.3) contrast(1.4); }
  52%  { transform: scale(1, .95); filter: brightness(1.6) saturate(.6); }
  58%  { transform: scale(1, 1.02); filter: brightness(1.2); }
  62%  { opacity: .55; }
  64%  { opacity: 1; transform: scale(1, 1) translateX(-6px); filter: hue-rotate(20deg) brightness(1.4); }
  66%  { transform: translateX(5px); filter: hue-rotate(-15deg); }
  68%  { transform: translateX(0); filter: none; opacity: .75; }
  70%  { opacity: 1; }
  100% { transform: scale(1, 1); filter: none; opacity: 1; }
}
.js .crt-intro .screen__osd { animation: osd-in .4s steps(2) 2.1s both; }
@keyframes osd-in { from { opacity: 0; } to { opacity: 1; } }

.hero__copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: clamp(24px, 4vw, 40px); }
.hero__copy .label { color: var(--wisteria); min-height: 1.1em; }
.typed::after { content: "▌"; margin-left: 2px; animation: blink 1s steps(2, start) infinite; }
.typed.is-done::after { content: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Headline line reveal */
.split-line { display: block; overflow: hidden; padding-bottom: .04em; }
.split-line > span { display: inline-block; }
.js .split-line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }

.hero__icons { display: none; }

/* Desktop: let the TV fill the viewport */
@media (min-width: 901px) {
  .hero { padding-top: 14px; }
  .hero .container { max-width: 1800px; padding: 0 clamp(16px, 2vw, 32px); }
  .screen { width: min(100%, calc((100svh - 68px - 28px) * 16 / 9)); margin: 0 auto; }
  .screen video, .screen .poster { transform: scale(1.06); }
  .hero__copy { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 clamp(0px, 2vw, 8px); }
}

/* ---------- Album ---------- */
.album-section { overflow: hidden; }
.album { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 80px); }
.album__art { position: relative; flex: 1 1 360px; max-width: 520px; margin-right: clamp(0px, 6vw, 90px); }
.album__cover { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px rgba(65,34,52,.35); }
.record {
  position: absolute; z-index: 1; top: 3%; left: 3%; width: 94%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--grape) 0 15%, var(--onyx) 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #1b1b1b 0 1px, #0d0d0d 1px 3px);
  box-shadow: inset 0 0 0 2px #000, 0 20px 40px rgba(0,0,0,.3);
  --shift: 22%;
  transform: translateX(0) rotate(0deg);
  transition: transform 1.4s var(--ease-out) .25s;
}
.record::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,.08) 14%, transparent 20% 60%, rgba(255,255,255,.06) 64%, transparent 70%); }
.album__art.is-in .record { transform: translateX(var(--shift)) rotate(200deg); }
.album__art.is-in.is-spinning .record { animation: spin 6s linear infinite; transition: none; }
@keyframes spin { from { transform: translateX(var(--shift)) rotate(200deg); } to { transform: translateX(var(--shift)) rotate(560deg); } }
.album__body { flex: 1 1 420px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.player {
  position: relative; max-width: 560px; border-radius: 14px; overflow: hidden; background: var(--onyx);
  box-shadow: 0 24px 50px -20px rgba(65,34,52,.6), inset 0 0 0 1px rgba(234,217,235,.08);
}
.player__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 21px; letter-spacing: .06em; color: var(--lavender);
  border-bottom: 1px solid var(--midnight);
}
.player__bar .rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; margin-right: 8px; box-shadow: 0 0 8px #ff3b5c; animation: blink 1.2s steps(2, start) infinite; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; background: var(--wisteria); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.player__screen { position: relative; padding: 10px; }
.player__screen::after { /* scanlines over the embed */
  content: ""; position: absolute; inset: 10px; border-radius: 12px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
}
.player iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; background: #282828; }
.player__loading { height: 352px; border-radius: 12px; display: grid; place-items: center; background: #1d1d1d; font-family: var(--font-mono); font-size: 24px; color: var(--wisteria); }
.player__placeholder { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--lavender); }
.player__placeholder .play { width: 46px; height: 46px; border-radius: 50%; background: var(--lavender); color: var(--onyx); display: grid; place-items: center; flex: none; }
.player__placeholder strong { font-family: var(--font-mono); font-weight: 400; font-size: 24px; display: block; line-height: 1.1; }
.player__placeholder span { font-size: 14px; color: var(--wisteria); }

/* ---------- Gigs ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.text-link { font-family: var(--font-mono); font-size: 23px; letter-spacing: .04em; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bg-midnight .text-link { color: var(--lavender); }
.bg-lavender .text-link { color: var(--grape); }
.gigs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grape); }
.gig { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 26px 0; border-bottom: 1px solid var(--grape); position: relative; }
.gig::before { content: ""; position: absolute; inset: 0 -12px; background: rgba(234,217,235,.04); opacity: 0; transition: opacity .25s; pointer-events: none; }
.gig:hover::before { opacity: 1; }
.gig__date { width: 150px; font-family: var(--font-mono); line-height: 1; display: flex; flex-direction: column; }
.gig__day { font-size: 20px; color: var(--wisteria); letter-spacing: .1em; }
.gig__dm { font-size: 44px; color: var(--lavender); }
.gig__where { flex: 1 1 280px; }
.gig__venue { display: block; font-size: 25px; line-height: 1.2; }
.gig__town { display: block; font-size: 16px; color: var(--muted-on-dark); }
.gigs-empty { padding: 32px 0; border-bottom: 1px solid var(--grape); }
.gigs-empty p { margin: 0 0 18px; font-size: 19px; max-width: 520px; }
.gigs-loading { font-family: var(--font-mono); font-size: 24px; color: var(--wisteria); padding: 26px 0; }

/* ---------- Shop ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.product { background: var(--white); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.product:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(65,34,52,.55); }
.product__media { aspect-ratio: 1; overflow: hidden; background: var(--wisteria); display: grid; place-items: center; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product:hover .product__media img { transform: scale(1.05); }
.product__media .ph { font-family: var(--font-mono); font-size: 26px; letter-spacing: .1em; color: var(--onyx); }
.product__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product__name { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.25; }
.product__price { font-family: var(--font-mono); font-size: 26px; }
.product__meta { margin: 0; font-size: 15px; line-height: 1.45; color: var(--midnight); }
.product__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.size-picker { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; }
.size-picker legend { font-family: var(--font-mono); font-size: 19px; margin-bottom: 6px; color: var(--midnight); }
.size-picker label { position: relative; }
.size-picker input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-picker span {
  display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border: 2px solid var(--wisteria);
  border-radius: var(--radius); font-family: var(--font-mono); font-size: 21px; color: var(--onyx); transition: background-color .15s, border-color .15s;
}
.size-picker input:checked + span { background: var(--onyx); border-color: var(--onyx); color: var(--lavender); }
.size-picker input:focus-visible + span { outline: 3px solid var(--grape); outline-offset: 2px; }
.size-picker input:disabled + span { opacity: .35; text-decoration: line-through; }

/* ---------- Video ---------- */
.video { max-width: 1000px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .4s; }
.video__btn::before { /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.2) 0 1px, transparent 1px 3px);
}
.video__btn::after { /* static noise on hover */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("../img/grain.webp"); background-size: 128px; opacity: 0; mix-blend-mode: screen;
  animation: grain-shift .5s steps(3) infinite; transition: opacity .3s;
}
.video__btn:hover img { transform: scale(1.03); filter: saturate(1.2) contrast(1.05); }
.video__btn:hover::after { opacity: .9; }
.video__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: rgba(20,20,20,.75); border: 2px solid var(--lavender); color: var(--lavender); display: grid; place-items: center;
  transition: transform .35s var(--ease-out), background-color .2s;
}
.video__play svg { width: 30px; height: 30px; margin-left: 5px; fill: currentColor; }
.video__btn:hover .video__play { transform: scale(1.1); background: var(--grape); }
.video__btn .rec { position: absolute; z-index: 2; left: 22px; top: 18px; font-family: var(--font-mono); font-size: 22px; color: var(--lavender); letter-spacing: .08em; }
.video__caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-top: 18px; }
.video__title { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 500; line-height: 1.3; color: var(--lavender); }
.video__caption .text-link { color: var(--wisteria); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 80px); }
.about__photo { flex: 1 1 320px; max-width: 460px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.about__body { flex: 1 1 420px; }
.about__body .lead { margin-bottom: 28px; }

/* ---------- Signup ---------- */
.signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px 64px; }
.signup__intro { flex: 1 1 420px; }
.signup__form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.signup__form label { font-family: var(--font-mono); font-size: 22px; letter-spacing: .04em; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__row input {
  flex: 1 1 240px; min-height: 54px; padding: 0 16px; border: 2px solid var(--lavender); border-radius: var(--radius);
  background: var(--midnight); color: var(--white); font-family: var(--font-body); font-weight: 500; font-size: 17px;
}
.signup__row input::placeholder { color: #CDB8D2; }
.signup__note { margin: 0; font-size: 14px; line-height: 1.5; color: #F3EAF3; }
.signup__note a { color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__form .btn[disabled] { opacity: .7; cursor: progress; }
.signup__form.is-sent .signup__status { animation: rgb-split .5s steps(3) 1; }
.signup__status { font-family: var(--font-mono); font-size: 22px; min-height: 1.2em; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--onyx); color: var(--lavender); padding: 64px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-top img { height: 42px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--midnight); margin-top: 36px; padding-top: 24px; font-family: var(--font-mono); font-size: 21px; letter-spacing: .04em; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--lavender); }
.footer-bottom small { font-size: inherit; color: var(--wisteria); }

/* ---------- Content pages ---------- */
.page-hero { background: var(--black); padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.page-hero .container { position: relative; }
.crumbs { font-family: var(--font-mono); font-size: 19px; letter-spacing: .04em; color: var(--wisteria); margin-bottom: 26px; }
.crumbs a { color: var(--wisteria); }
.crumbs [aria-current] { color: var(--lavender); }
.answer { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; max-width: 760px; margin: 22px 0 0; color: var(--white); }
.answer a, .prose a, .lead a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-hero .answer a { color: var(--lavender); }
.updated { font-family: var(--font-mono); font-size: 18px; color: var(--wisteria); margin: 18px 0 0; letter-spacing: .04em; }
.prose p { font-size: 18px; line-height: 1.65; max-width: 640px; margin: 0 0 18px; }
.prose--dark p { color: var(--white); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 80px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn--ghost-dark { --bg: transparent; --fg: var(--onyx); --bd: var(--onyx); }
.btn--ghost-dark:hover { --bg: var(--onyx); --fg: var(--lavender); }
.table-wrap { overflow-x: auto; margin-top: 28px; }
.facts { width: 100%; border-collapse: collapse; font-size: 17px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--grape); }
.facts th { font-family: var(--font-mono); font-weight: 400; font-size: 21px; letter-spacing: .04em; color: var(--wisteria); width: 34%; white-space: nowrap; }
.facts td { color: var(--white); }
.facts a { color: var(--lavender); }
.facts--light th { color: var(--grape); }
.facts--light td { color: var(--onyx); }
.facts--light a { color: var(--grape); }
.facts--light th, .facts--light td { border-color: var(--wisteria); }
.venues thead th { font-size: 18px; color: var(--midnight); border-bottom: 2px solid var(--grape); }
.venues tbody th { font-family: var(--font-body); font-weight: 500; font-size: 18px; color: var(--onyx); white-space: normal; letter-spacing: 0; }
.tracklist { list-style: none; counter-reset: t; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--grape); }
.tracklist li { counter-increment: t; display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--grape); font-size: 19px; color: var(--white); }
.tracklist li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: 22px; color: var(--wisteria); min-width: 30px; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px solid var(--grape); border-radius: 10px; color: var(--white); text-decoration: none; transition: background-color .25s, transform .35s var(--ease-out), border-color .25s; }
.link-card .label { margin: 0; font-size: 18px; }
.link-card strong { font-family: var(--font-head); font-weight: 400; font-size: 44px; line-height: .95; letter-spacing: var(--track-head); color: var(--lavender); text-transform: uppercase; }
.link-card span:last-child { color: var(--muted-on-dark); font-size: 15px; }
.link-card:hover { background: var(--midnight); border-color: var(--wisteria); transform: translateY(-4px); }
.faq-list { max-width: 860px; }
.faq { border-bottom: 1px solid var(--wisteria); }
.faq:first-child { border-top: 1px solid var(--wisteria); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 34px; color: var(--grape); transition: transform .3s var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__q { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: var(--track-head); text-transform: uppercase; color: var(--onyx); }
.faq__a p { margin: 0 0 24px; font-size: 18px; line-height: 1.65; max-width: 700px; }
.faq__a a { color: var(--grape); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.press-item { display: flex; flex-direction: column; gap: 10px; color: var(--lavender); text-decoration: none; font-family: var(--font-mono); font-size: 20px; }
.press-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: transform .6s var(--ease-out), filter .3s; }
.press-item:hover img { transform: scale(1.03); filter: saturate(1.15); }
.logo-dl { display: grid; gap: 14px; margin-top: 28px; }
.logo-tile { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 10px; text-decoration: none; font-family: var(--font-mono); font-size: 20px; }
.logo-tile img { max-width: 320px; }
.logo-tile--dark { background: var(--onyx); color: var(--lavender); }
.logo-tile--light { background: var(--lavender); color: var(--onyx); }
.plain-links { list-style: none; margin: 24px 0 0; padding: 0; }
.plain-links li { border-bottom: 1px solid var(--grape); }
.plain-links a { display: block; padding: 14px 0; color: var(--lavender); text-decoration: none; font-size: 18px; transition: padding-left .3s var(--ease-out), color .2s; }
.plain-links a:hover { padding-left: 8px; color: var(--white); }
.gigs-list--past .gig { padding: 16px 0; }
.gigs-list--past .gig__dm { font-size: 32px; }
.gigs-list--past .gig__venue { font-size: 20px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.footer-nav a { color: var(--lavender); text-decoration: none; font-size: 16px; }
.footer-nav a:hover { text-decoration: underline; }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; width: min(92vw, 520px); transform: translate(-50%, 140%); background: var(--lavender); color: var(--onyx); border-radius: 10px; padding: 18px 22px; box-shadow: 0 20px 40px rgba(0,0,0,.4); font-size: 16px; transition: transform .6s var(--ease-out); }
.toast strong { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 26px; letter-spacing: .04em; }
.toast.is-in { transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .h-section.reveal.is-in { animation: chroma-settle 1s var(--ease-out) both; }
@keyframes chroma-settle {
  0% { text-shadow: 6px 0 rgba(255,0,80,.55), -6px 0 rgba(0,200,255,.55); }
  100% { text-shadow: 0 0 rgba(255,0,80,0), 0 0 rgba(0,200,255,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav, .site-header .icons { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .hero__icons { display: flex; justify-content: space-between; margin-top: 26px; }
  .hero__icons .icon-link { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 8px; }
  .hero .container { padding: 0; }
  .hero__copy { padding: 0 var(--gutter); }
  .hero__actions { width: 100%; }
  .hero__icons { padding: 0 var(--gutter); }
  .hero__actions .btn { flex: 1 1 0; padding: 0 12px; }
  .gig { gap: 12px 16px; padding: 20px 0; }
  .gig__date { width: 92px; }
  .gig__dm { font-size: 32px; }
  .gig__where { flex: 1 1 160px; }
  .gig .btn { width: 100%; }
  .album__art { margin-right: 0; width: 86%; }
  .record { --shift: 16%; }
  .products { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-bottom: 8px; }
  .product { flex: 0 0 82%; scroll-snap-align: start; }
  .about__body .btn { width: 100%; }
  .signup__row .btn { flex: 1 1 100%; }
  .footer-bottom ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split-line > span { opacity: 1; transform: none; filter: none; }
  .screen video { display: none; }
  .album__art .record { transform: translateX(var(--shift)); }
}
