/* ============================================
   ALEX PEREZ JR. — Artist Portfolio
   Record Label Quality Design
   ============================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jbmono.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060804;
  --bg-warm: #0a0d08;
  --bg-card: #0f120c;
  --bg-card-hover: #161a12;
  --text: #f5f1eb;
  --text-secondary: #c2bbb0;
  --text-muted: #908a7f;
  --accent: #d4883f;
  --accent-light: #e4a86c;
  --accent-dim: rgba(212, 136, 63, 0.15);
  --accent-line: rgba(212, 136, 63, 0.24);
  --border: #1e2018;
  --border-light: #2a2d24;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 3rem;
  --section-y: clamp(80px, 12vh, 160px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* No color-scheme: dark here on purpose. A dark page scheme makes browsers paint an
   opaque white backdrop behind the (light-scheme) Spotify embeds. Scrollbars are themed directly. */
html {
  scrollbar-color: #2a2d24 #060804;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}

html.menu-open { overflow: hidden; }

img, picture, iframe, video, svg { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

/* Film grain — lightweight static noise (no SVG filter) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABnRSTlMAESIzRFVEt8FUAAAASUlEQVQ4y2NghgEGBgYFBQUGBgYnJycGRkZGV1dXRiYmJnd3dyZmZmYPDw8WFhYWLy8vVlZWVm9vb3Z2dnYfHx9eXl7eAQkAEm0NFEIXCfAAAAAASUVORK5CYII=");
  background-repeat: repeat;
  contain: strict;
}

a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(212, 136, 63, 0.3);
}

.label::before {
  content: '';
  flex: none;
  width: 30px;
  height: 1px;
  background: var(--accent);
  transform-origin: left center;
}

.label-num { color: var(--text-muted); text-shadow: none; }

.label--center { justify-content: center; }
.label--center::after {
  content: '';
  flex: none;
  width: 30px;
  height: 1px;
  background: var(--accent);
  transform-origin: right center;
}

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid transparent;
  transition: padding 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(6, 8, 4, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: var(--border);
}

.nav-name {
  position: relative;
  z-index: 110;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s;
}

.nav.scrolled .nav-name,
.nav.menu-open .nav-name,
.nav-name:focus-visible { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.nav-links a:not(.nav-listen)::after {
  content: '';
  position: absolute;
  bottom: 0.2rem; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current] { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-num { display: none; }

.nav-links .nav-listen {
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(212, 136, 63, 0.55);
  border-radius: 999px;
  color: var(--accent-light);
  letter-spacing: 0.16em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.nav-links .nav-listen:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.nav-listen svg { width: 14px; height: 14px; flex: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px; height: 44px;
  margin-right: -10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  transform: translate3d(0, var(--parallax, 0px), 0);
}

.hero-bg picture { width: 100%; height: 100%; }

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.7);
  transform: scale(1.06);
}

/* Soft breathing glow where the stage light falls */
.hero-beam {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 22% 55% at 38% 0%, rgba(228, 168, 108, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 30% at 52% 62%, rgba(212, 136, 63, 0.07), transparent 70%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,8,4,0.3) 0%, rgba(6,8,4,0) 30%, rgba(6,8,4,0.6) 70%, rgba(6,8,4,1) 100%),
    radial-gradient(ellipse 60% 50% at 30% 80%, rgba(196,120,63,0.08) 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 3rem;
}

.hero-content { max-width: 900px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(212, 136, 63, 0.4);
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.4rem;
  text-shadow: 0 0 80px rgba(212, 136, 63, 0.08);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}
.hero-title .line > span { display: block; }

.hero-title em {
  font-style: italic;
  color: var(--accent-light);
  font-weight: 300;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.hero-sub li { display: flex; align-items: center; gap: 1.5rem; }
.hero-sub li + li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1rem 2.6rem;
  border-radius: 0;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 10px 30px rgba(196,120,63,0.22);
}

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(240,235,227,0.06); border-color: var(--accent-light); }

.btn-small {
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* Latest single card in the hero */
.hero-single {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(360px, 100%);
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  background: rgba(10, 13, 8, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--text);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.hero-single:hover { border-color: rgba(212, 136, 63, 0.6); background: rgba(16, 19, 12, 0.75); }

.hero-single picture { flex: none; }
.hero-single img {
  width: 64px; height: 64px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(212, 136, 63, 0.25);
}

.hero-single-text { display: flex; flex-direction: column; min-width: 0; gap: 0.15rem; }

.hero-single-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-light);
}
.hero-single-kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(212, 136, 63, 0.9);
}

.hero-single-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-single-cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
}

.hero-scroll span:first-child {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px; height: 35px;
  position: relative;
  overflow: hidden;
  background: var(--border-light);
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  transform: translateY(-100%);
}

/* ---- DIVIDER ---- */
.divider {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ---- MUSIC ---- */
.music {
  padding: var(--section-y) var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 3rem;
}

.release-grid--flip .release-media { order: 2; justify-self: end; }

.release-separator {
  height: 1px;
  margin: clamp(5rem, 10vw, 9rem) 0;
  background: linear-gradient(90deg, transparent, rgba(212,136,63,0.35), transparent);
}

.release-media {
  position: sticky;
  top: 7rem;
  width: 84%;
  isolation: isolate;
}

/* Record sleeve: the disc peeks out from behind the cover */
.vinyl {
  position: absolute;
  top: 3%; left: 3%;
  width: 94%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(0,0,0,0.6) 17.4% 18.4%, transparent 18.8% 47%, rgba(255,255,255,0.05) 48.5%, transparent 49.5%),
    repeating-radial-gradient(circle, #1b1c18 0 1px, #0c0d0a 1.5px 3px);
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 50px -10px rgba(212, 136, 63, 0.18),
    inset 0 0 0 1px rgba(212, 136, 63, 0.22),
    inset 0 0 0 3px rgba(0, 0, 0, 0.6);
  transform: translateX(var(--peek, 19%));
  transition: transform 1.2s var(--ease) 0.15s;
}
.release-grid--flip .vinyl { --peek: -19%; }

.vinyl-sheen,
.vinyl-label {
  position: absolute;
  border-radius: 50%;
}

.vinyl-sheen {
  inset: 0;
  background: conic-gradient(from 20deg, transparent 0 6%, rgba(255,240,220,0.11) 12%, transparent 20% 52%, rgba(255,240,220,0.08) 60%, transparent 68%);
}

.vinyl-label {
  inset: 32%;
  background-color: var(--accent);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.vinyl-label::after {
  content: '';
  position: absolute;
  inset: 46%;
  border-radius: 50%;
  background: var(--bg);
}
.vinyl--itta .vinyl-label {
  background-image: url('../images/opt/i-want-to-talk-again-thumb-144.webp');
  background-image: image-set(url('../images/opt/i-want-to-talk-again-thumb-144.avif') type('image/avif'), url('../images/opt/i-want-to-talk-again-thumb-144.webp') type('image/webp'));
}
.vinyl--ymoom .vinyl-label {
  background-image: url('../images/opt/you-missed-out-on-me-thumb-144.webp');
  background-image: image-set(url('../images/opt/you-missed-out-on-me-thumb-144.avif') type('image/avif'), url('../images/opt/you-missed-out-on-me-thumb-144.webp') type('image/webp'));
}

.release-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,0.6),
    0 0 80px -20px rgba(212, 136, 63, 0.15),
    0 0 0 1px rgba(212,136,63,0.15);
}

.release-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.release-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,136,63,0.22), transparent 40%, transparent 60%, rgba(212,136,63,0.12));
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.release-media:hover .release-art::before { opacity: 1; }

.release-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,136,63,0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

.release-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.9rem;
  font-style: italic;
  text-shadow: 0 0 40px rgba(212, 136, 63, 0.1);
}

.release-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.release-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 34em;
}
.release-description:last-of-type { margin-bottom: 2rem; }

.release-description em {
  color: var(--text);
  font-style: normal;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.now-playing-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.now-playing-bars span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  transform-origin: bottom center;
}
.now-playing-bars span:nth-child(1) { height: 6px; }
.now-playing-bars span:nth-child(2) { height: 10px; }
.now-playing-bars span:nth-child(3) { height: 4px; }
.now-playing-bars span:nth-child(4) { height: 8px; }

.spotify-embed {
  position: relative;
  min-height: 152px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.spotify-embed iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
}

.stream-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stream-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.stream-link svg { width: 16px; height: 16px; flex: none; }

.stream-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-dim);
}

/* ---- ABOUT ---- */
.about {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.about-bg picture { width: 100%; height: 100%; }
.about-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.15) saturate(0.5);
}

.about-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,8,4,0.95) 0%, rgba(6,8,4,0.7) 50%, rgba(6,8,4,0.95) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 8rem;
  padding: 0 14px 0 0;
}

.about-photo-mat {
  position: relative;
  isolation: isolate;
}

/* Offset brass frame behind the photo */
.about-photo-mat::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid rgba(212, 136, 63, 0.35);
  border-radius: 2px;
}

.about-photo-frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196,120,63,0.12);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  filter: contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.about-photo figcaption {
  margin-top: 2rem;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.about-text h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(212, 136, 63, 0.08);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-text p em { color: var(--text); }

.about-quote {
  position: relative;
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem 1.5rem 2.25rem;
  margin: 2.5rem 0;
  background: rgba(212, 136, 63, 0.05);
  border-radius: 0 8px 8px 0;
}

.about-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.35em; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  pointer-events: none;
}

.about-quote p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 0 30px rgba(212, 136, 63, 0.1);
}

.about-quote footer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.fact:hover { border-color: rgba(212, 136, 63, 0.3); background: rgba(255,255,255,0.035); }

.fact dd {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--accent);
  font-weight: 400;
  text-shadow: 0 0 20px rgba(212, 136, 63, 0.2);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* ---- CONTACT ---- */
.contact {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background: var(--bg-warm);
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 45% 70% at 50% 0%, rgba(212, 136, 63, 0.1), transparent 70%);
  pointer-events: none;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 auto 2.5rem;
  max-width: 32em;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 4.6vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text);
  overflow-wrap: anywhere;
  padding-bottom: 0.2em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color 0.3s, background-size 0.5s var(--ease);
}
.contact-email:hover { color: var(--accent-light); background-size: 100% 2px; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.copy-status {
  min-height: 1.6em;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-left {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1.75rem;
}

.footer-socials a,
.back-to-top {
  display: inline-block;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-socials a:hover,
.back-to-top:hover { color: var(--accent-light); }

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.footer-credit a { color: var(--text-secondary); transition: color 0.3s; }
.footer-credit a:hover { color: var(--accent-light); }

/* ---- AMBIENT ORBS ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.orb-1 {
  width: 400px; height: 400px;
  background: rgba(196,120,63,0.05);
  top: 60%; left: -100px;
}
.orb-2 {
  width: 300px; height: 300px;
  background: rgba(196,120,63,0.04);
  top: 20%; right: -50px;
}

/* ---- 404 ---- */
.notfound {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem var(--gutter);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.notfound .hero-bg img { filter: brightness(0.22) saturate(0.6); }
.notfound h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: 1rem; }
.notfound h1 em { color: var(--accent-light); }
.notfound p { color: var(--text-secondary); margin: 0 auto 2.5rem; max-width: 30em; }

/* =============================================
   MOTION — only when the visitor allows it
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
  }

  /* Hero entrance */
  .hero-bg picture { animation: heroSettle 2.4s var(--ease) both; }
  .hero-beam { animation: beamBreath 7s ease-in-out 1.2s infinite alternate both; }
  .hero-eyebrow { animation: fadeUp 0.9s var(--ease) 0.1s both; }
  .hero-title .line > span { animation: lineUp 1s var(--ease) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.26s; }
  .hero-sub { animation: fadeUp 0.9s var(--ease) 0.5s both; }
  .hero-cta { animation: fadeUp 0.9s var(--ease) 0.62s both; }
  .hero-single { animation: fadeUp 1s var(--ease) 0.85s both; }
  .hero-scroll { animation: fadeIn 1s ease 1.2s both; }
  .scroll-line::after { animation: scrollPulse 2.5s ease-in-out 2s infinite; }
  .hero-single-kicker::before { animation: pulseDot 2.4s ease-in-out infinite; }

  .orb-1 { animation: orbFloat 15s ease-in-out infinite; }
  .orb-2 { animation: orbFloat 20s ease-in-out infinite reverse; }

  .now-playing-bars span { animation: barPulse 1.2s ease-in-out infinite; }
  .now-playing-bars span:nth-child(2) { animation-delay: 0.2s; }
  .now-playing-bars span:nth-child(3) { animation-delay: 0.4s; }
  .now-playing-bars span:nth-child(4) { animation-delay: 0.1s; }

  /* Hover lifts */
  .btn:hover,
  .hero-single:hover { transform: translateY(-2px); }
  .release-media:hover .release-art img { transform: scale(1.03); }
  .about-photo:hover img { transform: scale(1.02); }
  .vinyl-sheen { animation: spin 3.2s linear infinite paused; }
  .release-media:hover .vinyl-sheen { animation-play-state: running; }
  .release-media:hover .vinyl { transform: translateX(calc(var(--peek, 19%) * 1.25)); }

  /* Scroll reveals (JS adds .js to <html>; without JS everything stays visible) */
  .js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js .reveal.visible { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.1s; }
  .js .reveal-d2 { transition-delay: 0.2s; }
  .js .reveal-d3 { transition-delay: 0.3s; }
  .js .reveal-d4 { transition-delay: 0.4s; }

  .js .label.reveal::before,
  .js .label.reveal::after { transform: scaleX(0); transition: transform 1s var(--ease) 0.25s; }
  .js .label.reveal.visible::before,
  .js .label.reveal.visible::after { transform: scaleX(1); }

  .js .release-media.reveal .vinyl { transform: translateX(0); }
  .js .release-media.reveal.visible .vinyl { transform: translateX(var(--peek, 19%)); }
  .js .release-media.reveal.visible:hover .vinyl { transform: translateX(calc(var(--peek, 19%) * 1.25)); }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes heroSettle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes beamBreath { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 50%, 100% { transform: translateY(100%); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes barPulse { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.3); } }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 30px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { to { transform: scaleX(1); } }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-single { margin-top: 0.5rem; }
  .hero-scroll { display: none; }
}

/* Tablet: stack the two-column sections so art and copy both get room */
@media (max-width: 960px) {
  .release-grid,
  .release-grid--flip { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .release-media,
  .release-grid--flip .release-media {
    position: relative;
    top: auto;
    order: 0;
    width: min(66%, 440px);
    justify-self: start;
    margin-left: 2%;
  }
  .release-grid--flip .release-media { justify-self: end; margin: 0 2% 0 0; }
  .release-description { max-width: 40em; }

  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .about-photo { position: relative; top: auto; width: min(88%, 560px); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  :root { --gutter: 1.25rem; --section-y: 64px; }

  /* Grain off on small screens for performance */
  body::after { display: none; }

  /* Nav */
  .nav, .nav.scrolled { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .nav-name { font-size: 1rem; letter-spacing: 0.16em; }
  .nav-toggle { display: flex; }

  .nav.menu-open {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
    padding: 6rem var(--gutter) 3rem;
    background:
      radial-gradient(ellipse 80% 45% at 20% 0%, rgba(212, 136, 63, 0.09), transparent 70%),
      var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav.menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s var(--ease);
  }

  .nav-links a:not(.nav-listen) {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:not(.nav-listen)::after { display: none; }
  .nav-links a[aria-current]:not(.nav-listen) { color: var(--accent-light); }

  .nav-num {
    display: inline;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent);
  }

  .nav-listen-item { margin-top: 2rem; }
  .nav-links .nav-listen {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero { padding: 7rem var(--gutter) 3.5rem; }
  .hero-bg img { object-position: 42% 30%; }
  .hero-beam {
    background: radial-gradient(ellipse 45% 50% at 28% 0%, rgba(228, 168, 108, 0.16), transparent 70%);
  }
  .hero-title { font-size: clamp(3.2rem, 17vw, 4.6rem); margin-bottom: 1.2rem; }
  .hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.24em; margin-bottom: 1rem; }
  .hero-sub {
    gap: 0.4rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }
  .hero-sub li { gap: 1rem; }
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .hero-cta .btn { width: 100%; padding: 1rem 1.5rem; }
  .hero-single { width: 100%; }

  /* Music */
  .release-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 2rem; }
  .release-media { position: relative; top: auto; width: 78%; justify-self: start; margin-left: 2%; }
  .release-grid--flip .release-media { order: 0; justify-self: end; margin: 0 2% 0 0; }
  .release-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .release-meta { font-size: 0.72rem; gap: 0.4rem 1rem; }
  .release-description { font-size: 1rem; line-height: 1.8; max-width: none; }
  .stream-links { gap: 0.5rem; }
  .stream-link { padding: 0.6rem 1.1rem; font-size: 0.72rem; }
  .release-separator { margin: 4rem 0; }

  /* About */
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .about-photo { position: relative; top: auto; width: 92%; padding-right: 10px; }
  .about-photo-mat::before { inset: 10px -10px -10px 10px; }
  .about-photo figcaption { padding-left: 10px; }
  .about-text h2 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .about-text p { font-size: 1rem; line-height: 1.8; }
  .about-quote { padding: 1.5rem 1.25rem 1.25rem 1.4rem; margin: 2rem 0; }
  .about-quote p { font-size: 1.35rem; }
  .about-quote::before { font-size: 4.5rem; right: 0.75rem; }
  .fact { padding: 0.85rem 0.9rem; }
  .fact dd { font-size: 1.3rem; }
  .fact dt { font-size: 0.68rem; letter-spacing: 0.12em; }

  /* Contact */
  .contact-sub { font-size: 1rem; margin-bottom: 2rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 2.5rem var(--gutter) 3rem;
  }
  .footer-left { font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .hero-sub li + li::before { display: none; }
  .hero-sub { gap: 0.35rem 1.1rem; }
  .about-facts { gap: 0.5rem; }
  .fact dd { font-size: 1.15rem; }
}

/* Larger text from the OS or browser zoom: keep nav single-line */
@media (min-width: 769px) and (max-width: 960px) {
  .nav-links { gap: 1.6rem; }
  .nav-links .nav-listen span.nav-listen-text { display: none; }
}

@media (forced-colors: active) {
  .btn, .stream-link, .hero-single, .fact { border: 1px solid CanvasText; }
  .label::before, .label--center::after, .vinyl, .orb, .hero-beam { forced-color-adjust: auto; }
}

@media print {
  body::after, .nav, .hero-bg, .hero-beam, .orb, .scroll-progress, .spotify-embed, .vinyl { display: none !important; }
  body { background: #fff; color: #000; }
}

[tabindex="-1"]:focus { outline: none; }

/* Looping effects stop while their section is off screen (set from site.js) */
.is-idle,
.is-idle *,
.is-idle *::before,
.is-idle *::after { animation-play-state: paused !important; }

/* Phones and touch tablets: no frosted-glass blur, no drifting blurred orbs, no breathing glow.
   These are redrawn by the GPU on every frame and were the cause of scroll lag on phones. */
@media (hover: none), (max-width: 768px) {
  .nav.scrolled {
    background: rgba(6, 8, 4, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-single {
    background: rgba(10, 13, 8, 0.9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .orb { display: none; }
  .hero-beam { animation: none !important; opacity: 0.85; }
}
