/* Hasta La Vista Records — static rebuild
   Same DNA as the old theme (dark, Arial, photo-led), with more weight and scale. */

:root {
  /* Palette taken from the red-sun key art */
  --bg: #0b0706;
  --bg-2: #150c0a;
  --bg-3: #21130f;
  --fg: #f2ebe6;
  --fg-dim: #ab9a92;
  --line: rgba(255, 214, 196, .13);
  --accent: #dd1901;        /* the sun */
  --accent-deep: #8a1c03;   /* the sky */
  --accent-2: #ffb000;      /* lab amber */
  --phosphor: #7cff9b;      /* lab terminal green */
  --radius: 4px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  position: relative;
  font: 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0));
  transition: background .3s;
}
.site-header.solid { background: rgba(8,8,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.brand img { height: 40px; width: auto; }
.brand .brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: #fff; font-size: 13px; letter-spacing: 0; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(12px, 2vw, 28px); }
.nav a { text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--fg-dim); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); font: 700 12px var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; border-radius: var(--radius); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: rgba(8,8,10,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
}

/* ---------- backgrounds (media set in assets/js/backgrounds.js) ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #000; }
.bg-layer video, .bg-media img { width: 100%; height: 100%; object-fit: cover; max-width: none; display: block; }
.bg-media { position: absolute; inset: -4%; }
.bg-layer::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(11,7,6,var(--dim, 0)), rgba(11,7,6,var(--dim, 0))), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(11,7,6,.9)); }
.video-toggle { position: fixed; right: var(--gutter); bottom: 18px; z-index: 40; background: rgba(0,0,0,.55); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
.video-toggle:hover { border-color: var(--accent); }

/* Home: slow drift, glowing sun, darkens as you scroll */
.fx-drift .bg-media { inset: 0; transform-origin: 12% 33%; animation: drift 60s ease-in-out infinite alternate; }
.fx-drift .bg-media img { object-position: 18% 50%; }
@media (max-width: 899px) { .fx-drift .bg-media img { object-position: 8% 50%; } }
.fx-drift::after { background: linear-gradient(rgba(0,0,0,calc(var(--scrolldim, 0) * .75)), rgba(0,0,0,calc(var(--scrolldim, 0) * .75))), linear-gradient(to left, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(11,7,6,.95) 100%); }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.1); } }
.sun-glow { position: absolute; width: calc(var(--r, 40px) * 7); height: calc(var(--r, 40px) * 7); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,90,30,.75) 0%, rgba(255,40,0,.3) 14%, rgba(221,25,1,.10) 32%, rgba(221,25,1,0) 60%); animation: sunpulse 6s ease-in-out infinite; }
@keyframes sunpulse { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }

/* Bio etc: scratch photo, parallax + tilt + RGB scratch glitch */
.fx-scratch .bg-media { transform: translate3d(var(--tx, 0), calc(var(--sy, 0px) + var(--ty, 0px)), 0) scale(1.12); transition: transform .25s ease-out; will-change: transform; }
.fx-scratch .bg-media img { object-position: 60% 40%; filter: brightness(1.5) contrast(1.05); }
.fx-scratch .ghost { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.fx-scratch .ghost-r { filter: brightness(1.6) sepia(1) saturate(8) hue-rotate(-30deg); }
.fx-scratch .ghost-c { filter: brightness(1.6) sepia(1) saturate(6) hue-rotate(150deg); }
.fx-scratch.glitch .ghost { opacity: .55; }
.fx-scratch.glitch .ghost-r { transform: translateX(-14px); clip-path: inset(18% 0 52% 0); animation: slice .22s steps(2) infinite; }
.fx-scratch.glitch .ghost-c { transform: translateX(12px); clip-path: inset(48% 0 22% 0); animation: slice .18s steps(2) infinite reverse; }
.fx-scratch.glitch .bg-media img { transform: translateX(6px) skewX(-3deg); }
@keyframes slice { 0% { clip-path: inset(10% 0 70% 0); } 50% { clip-path: inset(55% 0 20% 0); } 100% { clip-path: inset(30% 0 45% 0); } }

@media (prefers-reduced-motion: reduce) {
  .fx-drift .bg-media, .sun-glow { animation: none; }
  .fx-scratch .bg-media { transform: scale(1.05); transition: none; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: end; padding: 120px var(--gutter) clamp(48px, 10vh, 110px); position: relative; }
.hero-title { margin: 0; text-transform: uppercase; font-weight: 900; line-height: .82; letter-spacing: -.045em; font-size: clamp(64px, 15.5vw, 260px); }
.hero-title span { display: block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--fg); }
@supports not (-webkit-text-stroke: 2px #fff) { .hero-title .outline { color: var(--fg); } }
.hero-title .records { font-size: .32em; letter-spacing: .38em; line-height: 1.6; margin-top: .25em; color: var(--accent); -webkit-text-stroke: 0; }
.hero-sub { max-width: 560px; margin: 24px 0 0; color: var(--fg-dim); font-size: clamp(16px, 1.6vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 90px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-dim); text-decoration: none; }
@media (max-width: 600px) { .scroll-cue { display: none; } .hero-title { font-size: 21vw; } .hero-title .outline { -webkit-text-stroke-width: 1.4px; } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); border: 1px solid var(--fg); background: transparent; color: var(--fg); font: 700 13px var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--fg); color: #000; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn.small { padding: 8px 12px; font-size: 11px; }

/* ---------- page heads & sections ---------- */
main { display: block; }
.page-head { padding: 150px 0 40px; }
.eyebrow { font: 700 12px var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.page-title { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; font-size: clamp(48px, 10vw, 140px); }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--fg-dim); max-width: 720px; }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.section-title { font-size: clamp(28px, 4.5vw, 52px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin: 0 0 32px; }
.solid-bg { background: var(--bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- featured release ---------- */
.release-card { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.release-card .cover { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--bg-3); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
@media (max-width: 700px) { .release-card { grid-template-columns: 1fr; } }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- music player ---------- */
.player { background: rgba(10,10,12,.82); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(10px); overflow: hidden; }
.player-now { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.player-now .art { width: 120px; height: 120px; object-fit: cover; background: var(--bg-3); }
.player-now h2 { margin: 0; font-size: clamp(20px, 3vw, 30px); line-height: 1.1; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.player-now .artist { color: var(--fg-dim); margin: 4px 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctrl { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.ctrl:hover { border-color: var(--fg); }
.ctrl.play { width: 56px; height: 56px; background: var(--accent); border-color: var(--accent); }
.ctrl svg { width: 18px; height: 18px; fill: currentColor; }
.ctrl.play svg { width: 22px; height: 22px; }
.seek { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--fg-dim); }
.seek input[type=range] { flex: 1; accent-color: var(--accent); height: 4px; }
.player-msg { padding: 10px 20px; font-size: 13px; color: var(--accent-2); border-bottom: 1px solid var(--line); }
.player-msg[hidden] { display: none; }
.tracklist { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.track { display: grid; grid-template-columns: 36px 48px 1fr auto; gap: 14px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.track:last-child { border-bottom: 0; }
.track:hover { background: rgba(255,255,255,.04); }
.track.active { background: rgba(227,38,47,.12); }
.track .num { font: 13px var(--font-mono); color: var(--fg-dim); text-align: right; }
.track.active .num { color: var(--accent); }
.track img { width: 48px; height: 48px; object-fit: cover; background: var(--bg-3); }
.track button.title { all: unset; cursor: pointer; display: block; min-width: 0; }
.track button.title:focus-visible { outline: 2px solid var(--accent); }
.track .t-name { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-artist { font-size: 13px; color: var(--fg-dim); display: block; }
.store-links { display: flex; gap: 6px; }
.store-links, .now-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.now-links { justify-content: flex-start; margin-top: 12px; }
.store { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-dim); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.store:hover { color: #fff; border-color: #fff; }
.store-apple:hover { border-color: #fa2d48; }
.store-amazon:hover { border-color: #ff9900; }
.store-soundcloud:hover { border-color: #ff5500; }
.store-spotify:hover { border-color: #1ed760; }
@media (max-width: 600px) {
  .player-now { grid-template-columns: 84px 1fr; gap: 14px; padding: 16px; }
  .player-now .art { width: 84px; height: 84px; }
  .track { grid-template-columns: 24px 1fr auto; gap: 10px; padding: 10px 14px; }
  .track img { display: none; }
  .track { grid-template-columns: 24px 1fr; }
  .track .store-links { grid-column: 2; justify-content: flex-start; }
  .store { padding: 4px 8px; font-size: 10px; }
}

/* ---------- prose ---------- */
.prose { max-width: 720px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 28px; text-transform: uppercase; letter-spacing: -.01em; margin: 1.8em 0 .5em; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-size: 1.15em; color: #fff; }
.prose img, .prose iframe { margin: 1.5em 0; border-radius: var(--radius); }

/* ---------- bio ---------- */
.bio-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.bio-grid { align-items: start; }
.bio-hero figure { margin: 0; position: relative; }
.bio-hero img { width: 100%; height: auto; aspect-ratio: 782/676; object-fit: cover; object-position: 35% 60%; filter: brightness(1.35) contrast(1.1); background: var(--bg-3); }
.bio-hero figcaption { font-size: 12px; color: var(--fg-dim); margin-top: 8px; }
@media (max-width: 800px) { .bio-hero { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 32px 0 0; }
.facts div { background: var(--bg); padding: 18px; }
.facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); }
.facts dd { margin: 4px 0 0; font-weight: 900; font-size: 20px; text-transform: uppercase; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.timeline .year { font: 900 32px/1 var(--font); letter-spacing: -.02em; }
.timeline h3 { margin: 6px 0 4px; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.timeline p { margin: 0; color: var(--fg-dim); max-width: 640px; }

/* ---------- lab: experiments window ---------- */
.lab-body { background: #050806; }
.lab-window { margin-bottom: clamp(56px, 9vw, 120px); border: 1px solid #2b3a2f; border-radius: 8px; background: #0b100c; box-shadow: 0 0 0 1px #000, 0 40px 120px rgba(0,0,0,.7), 0 0 80px rgba(124,255,155,.05) inset; overflow: hidden; }
.lab-titlebar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #121a14; border-bottom: 1px solid #2b3a2f; font: 12px var(--font-mono); color: #8fb49a; }
.lab-titlebar .dots { display: flex; gap: 6px; }
.lab-titlebar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2b3a2f; }
.lab-titlebar .dots i:first-child { background: var(--accent); }
.lab-titlebar .dots i:nth-child(2) { background: var(--accent-2); }
.lab-titlebar .path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-console { position: relative; padding: 22px; font: 14px/1.6 var(--font-mono); color: var(--phosphor); min-height: 150px; border-bottom: 1px solid #2b3a2f; }
.lab-console::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px); }
.lab-console pre { margin: 0; white-space: pre-wrap; font: inherit; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--phosphor); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.lab-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-bottom: 1px solid #2b3a2f; font-family: var(--font-mono); }
.chip { background: transparent; border: 1px solid #2b3a2f; color: #8fb49a; font: 12px var(--font-mono); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--phosphor); color: #041007; border-color: var(--phosphor); }
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: #1b261e; }
.exp { background: #0b100c; display: flex; flex-direction: column; }
.exp[hidden] { display: none; }
.exp .media { position: relative; aspect-ratio: 4/3; background: #000; overflow: hidden; }
.exp .media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: transform .5s, filter .5s; }
.exp:hover .media img { transform: scale(1.04); filter: none; }
.exp .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.exp .play-yt { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 0; cursor: pointer; color: #fff; }
.exp .play-yt span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); }
.exp .play-yt svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.exp .tag { position: absolute; left: 10px; top: 10px; font: 11px var(--font-mono); background: rgba(0,0,0,.7); color: var(--phosphor); padding: 3px 8px; border: 1px solid #2b3a2f; z-index: 1; }
.exp .info { padding: 16px 18px 20px; }
.exp h3 { margin: 0 0 6px; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.exp p { margin: 0; color: #9db3a4; font-size: 14px; line-height: 1.6; }
.exp .spec { margin-top: 10px; font: 12px var(--font-mono); color: #5f7d68; }
.exp code, .lab-console code { font-family: var(--font-mono); }
.asm { margin: 0; padding: 16px; height: 100%; font: 12px/1.5 var(--font-mono); color: var(--phosphor); background: #0d1a40; color: #a5b4ff; overflow: auto; }

/* ---------- gallery ---------- */
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery a { display: block; margin: 0 0 12px; break-inside: avoid; }
.gallery img { width: 100%; height: auto; background: var(--bg-3); transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.92); }
dialog.lightbox img { max-height: 90vh; width: auto; }
dialog.lightbox button { position: fixed; top: 16px; right: 16px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.02); }
.contact-card h3 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.contact-card p { margin: 0 0 16px; color: var(--fg-dim); font-size: 15px; }
.email-reveal { font: 700 clamp(18px, 3vw, 28px) var(--font); word-break: break-all; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.socials a:hover { border-color: var(--fg); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- news / blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post-list li { background: var(--bg); }
.post-list a { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px; text-decoration: none; }
.post-list a:hover { background: var(--bg-2); }
.post-list time { font: 13px var(--font-mono); color: var(--fg-dim); }
.post-list h2 { margin: 0 0 6px; font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; }
.post-list p { margin: 0; color: var(--fg-dim); }
@media (max-width: 600px) { .post-list a { grid-template-columns: 1fr; gap: 6px; } }
.post-meta { font: 13px var(--font-mono); color: var(--fg-dim); }

/* ---------- footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 13px; color: var(--fg-dim); }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer .legal { font-size: 12px; max-width: 760px; }
.footer-brand { font: 900 22px var(--font); text-transform: uppercase; letter-spacing: -.01em; color: var(--fg); }

/* ---------- page surfaces over the background ---------- */
.solid-bg { background: rgba(11,7,6,.72); }
.section.alt { background: rgba(21,12,10,.8); }
.hero-right .scroll-cue { display: none; }

/* Home hero sits on the dark ruins (right), leaving the sun and riders visible */
@media (min-width: 900px) {
  .hero.hero-right { justify-items: end; text-align: right; }
  .hero.hero-right .hero-sub { margin-left: auto; }
  .hero.hero-right .hero-cta { justify-content: flex-end; }
}
.hero-title .outline { -webkit-text-stroke-color: var(--fg); }
.hero-title .records { text-shadow: 0 0 40px rgba(221,25,1,.45); }

/* Lab keeps its terminal look but on the warm palette */
.lab-body { background: transparent; }

/* =====================================================================
   FX layer (first pass). Everything here switches off with
   "reduce motion" and degrades to the plain site without JavaScript.
   ===================================================================== */

/* CRT scanlines + film grain over the whole page */
html::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite; }
body::after { content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.1) 2px 3px); mix-blend-mode: multiply; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }

/* C64 typewriter headings */
.typing .tw-cursor { display: inline-block; width: .5em; height: .78em; margin-left: .06em; background: var(--accent); vertical-align: baseline; animation: blink .8s steps(1) infinite; }
.typed .tw-cursor { display: none; }

/* RGB glitch on hover for big type */
.page-title, .hero-title span, .section-title { position: relative; }
.page-title:hover, .hero-title span:hover, .section-title:hover { animation: rgbsplit .35s steps(3) 2; }
@keyframes rgbsplit {
  0%   { text-shadow: 3px 0 rgba(221,25,1,.9), -3px 0 rgba(0,220,255,.7); transform: translateX(0); }
  33%  { text-shadow: -4px 1px rgba(221,25,1,.9), 4px -1px rgba(0,220,255,.7); transform: translateX(2px) skewX(-4deg); }
  66%  { text-shadow: 2px -1px rgba(221,25,1,.9), -2px 1px rgba(0,220,255,.7); transform: translateX(-2px); }
  100% { text-shadow: none; transform: none; }
}

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Custom cursor ring (mouse/trackpad only, native cursor stays) */
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 95; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; mix-blend-mode: screen; transition: width .2s, height .2s, margin .2s, background .2s, opacity .3s; opacity: 0; }
.cursor-ring.on { opacity: 1; }
.cursor-ring.hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(221,25,1,.15); }
.cursor-ring.down { width: 18px; height: 18px; margin: -9px 0 0 -9px; }

/* Music player visualizer */
.player-now { position: relative; overflow: hidden; }
.player-now > * { position: relative; z-index: 1; }
.player-now canvas.viz { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html::after { animation: none; }
  .page-title:hover, .hero-title span:hover, .section-title:hover { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.wrap.page-head { padding-left: var(--gutter); padding-right: var(--gutter); }
/* keep hero text readable over bright video frames */
.hero .eyebrow, .hero-sub, .page-head .eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.9); }
.bg-sevensouls::after, .bg-music::after { background: linear-gradient(rgba(11,7,6,var(--dim, 0)), rgba(11,7,6,var(--dim, 0))), linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(11,7,6,.9)); }

/* Music: player on the left, turntable video visible on the right */
@media (min-width: 900px) {
  .music-left { max-width: none; margin: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .music-left > * { max-width: min(640px, 48vw); }
  .bg-music video { object-position: 70% 50%; }
  .bg-music::after { background: linear-gradient(rgba(11,7,6,.25), rgba(11,7,6,.25)), linear-gradient(to right, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 70%), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(11,7,6,.9)); }
}
.t-label { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--accent); color: var(--accent); border-radius: 3px; font: 700 10px/1.6 var(--font); letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; }
.now-title .t-label { font-size: 11px; }

/* ---------- Lab background: darkened home art + green phosphor terminal ---------- */
.fx-terminal .bg-media { inset: -6%; }
.fx-terminal .bg-media img { object-position: 30% 50%; filter: brightness(.55) saturate(.7); transform: translate3d(var(--px, 0), var(--sky, 0), 0); transition: transform .3s ease-out; }
.fx-terminal .bg-media .rocks { position: absolute; inset: 0; clip-path: inset(62% 0 0 0); filter: brightness(.7) saturate(.8); transform: translate3d(var(--rx, 0), var(--rock, 0), 0) scale(1.06); }
.fx-terminal::after { background: linear-gradient(rgba(2,8,4,var(--dim, .7)), rgba(2,8,4,var(--dim, .7))), radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); z-index: 3; }
.term { position: absolute; inset: 6vh 4vw; z-index: 1; display: flex; align-items: flex-end; justify-content: flex-end; border-radius: 3vw / 4vh; overflow: hidden;
  box-shadow: inset 0 0 120px rgba(124,255,155,.10), inset 0 0 0 1px rgba(124,255,155,.15);
  background: radial-gradient(ellipse at center, rgba(124,255,155,.06), rgba(0,0,0,0) 70%);
  transform: perspective(1200px) scale(1.01); animation: crt 4s infinite steps(60); transition: opacity .1s; }
.term pre { margin: 0; padding: 4vh 3vw; font: clamp(11px, 1.05vw, 16px)/1.45 var(--font-mono); color: var(--phosphor); text-shadow: 0 0 6px rgba(124,255,155,.8), 0 0 18px rgba(124,255,155,.35); white-space: pre; opacity: .9; }
.term::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.35) 2px 3px); pointer-events: none; }
.term.off { opacity: 0; }
.term.flick { opacity: .35; }
@keyframes crt { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } 52% { filter: brightness(.9); } }
.fx-terminal .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity .25s;
  filter: grayscale(1) sepia(1) hue-rotate(75deg) saturate(3) brightness(.8); mix-blend-mode: screen; }
.fx-terminal .scene.show { opacity: .55; }
.tglitch { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(to bottom, rgba(124,255,155,.0) 0 6px, rgba(124,255,155,.18) 6px 9px, rgba(0,0,0,.5) 9px 14px); mix-blend-mode: screen; }
.tg-on .tglitch { opacity: 1; animation: tgl .42s steps(5); }
.tg-on .term, .tg-on .scene.show { transform: translateX(-12px) skewX(-6deg); filter: hue-rotate(60deg) brightness(1.6); }
@keyframes tgl { 0% { clip-path: inset(10% 0 70% 0); transform: translateX(-20px); } 25% { clip-path: inset(40% 0 30% 0); transform: translateX(16px); }
  50% { clip-path: inset(70% 0 5% 0); transform: translateX(-8px); } 75% { clip-path: inset(0 0 60% 0); transform: translateX(24px); } 100% { clip-path: inset(30% 0 40% 0); transform: none; } }
@media (max-width: 800px) { .term { inset: 10vh 3vw; } .term pre { font-size: 9px; padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .term { animation: none; } }
/* the modern console boxes sit on top, solid enough to read */
.lab-body .lab-window { background: rgba(8,12,9,.92); backdrop-filter: blur(3px); }
.lab-body .page-head { text-shadow: 0 2px 12px rgba(0,0,0,.9); }
/* Bio: no inset photo, title + facts on the left over the background */
.bio-hero.bio-hero-left { grid-template-columns: minmax(0, 720px); justify-content: start; min-height: 62vh; align-content: end; }
.bio-hero-left .page-title, .bio-hero-left .lead { text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.bio-hero-left .facts { max-width: 640px; }
.term { align-items: flex-start; }
.bio-hero.bio-hero-left { grid-template-columns: minmax(0, 980px); }
.bio-hero-left .lead { max-width: 720px; }
/* page-level boxes no longer paint their own darker panel; the background layer's dim does that */
main.wrap.solid-bg { background: transparent; }
@media (max-width: 800px) { .term { align-items: flex-end; } .term pre { opacity: .45; } }
.t-year { color: var(--fg-dim); opacity: .7; font-size: 12px; }
.track.soon { opacity: .5; }
.track.soon button.title { cursor: default; }
.t-artist .t-label { font-size: 9px; }
.track .t-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.site-header .nav, .site-header .nav-toggle { margin-left: auto; }
/* lab scenes are now wrappers: a 16:9 box that covers the screen */
.fx-terminal .scene { position: absolute; inset: auto; left: 50%; top: 50%; width: max(100vw, 177.78vh); height: max(56.25vw, 100vh); transform: translate(-50%, -50%); container-type: inline-size; }
.fx-terminal .scene > img { width: 100%; height: 100%; display: block; }
.tg-on .scene.show { transform: translate(-50%, -50%) translateX(-12px) skewX(-6deg); }
.tmp { position: absolute; overflow: hidden; border-radius: 1.8cqw; padding: .9cqw 1.1cqw; display: flex; flex-direction: column; gap: .4cqw;
  background: radial-gradient(ellipse at center, rgba(124,255,155,.10), rgba(0,0,0,.2) 75%); }
.tmp-bar { font: 700 .82cqw/1.3 var(--font-mono); background: #7cff9b; color: #000; padding: .1cqw .4cqw; white-space: pre; overflow: hidden; }
.tmp-src { margin: 0; flex: 1; font: .95cqw/1.38 var(--font-mono); color: #7cff9b; white-space: pre; overflow: hidden; text-transform: lowercase; }
