/* ────────────────────────────────────────────────────────────
   phritz — style.css
   ──────────────────────────────────────────────────────────── */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --bg:           #f4f3f0;
  --text:         #1a1a1a;
  --text-muted:   #909090;
  --border:       rgba(26, 26, 26, 0.1);

  /* DM Sans: display/artist name  |  Urbanist: body/nav/UI */
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body:    'Urbanist', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, serif;

  --pad-x:        clamp(28px, 5vw, 80px);
  --pad-section:  clamp(64px, 9vw, 128px);
  --grid-gap:     clamp(10px, 1.5vw, 20px);

  --header-h:     64px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  /* No background-color here — body must stay transparent so the fixed
     .hero-bg at z-index:-1 isn't painted over. Only html & #main carry bg. */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Loader ───────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 19px;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}

/* ── Floating header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  display: flex;
  /* flex-end + explicit item heights = reliable placement below Dynamic Island.
     align-items:center with env() padding has a Safari rendering quirk where
     it centres within the full height rather than the padded content box. */
  align-items: flex-end;
  justify-content: flex-end;
  padding: env(safe-area-inset-top, 0px) var(--pad-x) 0;
  pointer-events: none; /* let clicks pass through empty space */
  transition: background 0.45s ease, box-shadow 0.45s ease, transform 0.32s ease;
}


/* ── Notch / Dynamic Island cover — always on top, independent of header ── */
#notch-cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: rgba(244, 243, 240, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 150; /* above header (100) and social-menu (160-1) */
  pointer-events: none;
  transition: background 0.45s ease, backdrop-filter 0.45s ease;
}

/* On hero: dark to match the hero photo + Dynamic Island hardware */
#notch-cover.on-hero {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Off-hero: extend frosted background to the full header bar */
.site-header:not(.on-hero) {
  background: rgba(244, 243, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

/* Logo: left-aligned, hidden by default; fades in off-hero */
.header-logo {
  position: absolute;
  left: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  line-height: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Off hero: fade in, vertically centred within the non-safe-area strip */
.site-header:not(.on-hero) .header-logo {
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) / 2);
  opacity: 1;
}

.header-logo img {
  width: 19px;
  display: block;
  transition: width 0.45s ease;
}

/* Off hero: smaller to sit comfortably in the compact bar */
.site-header:not(.on-hero) .header-logo img {
  width: 13px;
}

/* ── X (Twitter) + Patreon inline SVG icons ─────────────────── */
.social-x-icon,
.social-patreon-icon {
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.social-float .social-x-icon,
.social-float .social-patreon-icon {
  width: 14.3px;
  height: 14.3px;
}

.social-menu-links li a .social-x-icon,
.social-menu-links li a .social-patreon-icon {
  width: 22px;
  height: 22px;
  fill: var(--text-muted);
}

/* Socials: right side */
.social-float {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.1vw, 23px);
  pointer-events: auto;
  height: var(--header-h);
}

.social-float a {
  /* Default: dark (on main content) */
  color: #2f2f2f;
  font-size: 14.3px; /* +10% from 13px */
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.social-float a:hover {
  color: var(--text);
}

/* On the dark hero photo: white social icons */
.site-header.on-hero .social-float a {
  color: rgba(255, 255, 255, 0.72);
}

.site-header.on-hero .social-float a:hover {
  color: rgba(255, 255, 255, 1);
}

/* ── Vertical ellipsis toggle (mobile/tablet only) ───────────── */
.menu-toggle {
  display: none; /* shown via media query below */
  /* Absolutely positioned so the ⋮ sits at exactly safe-area + header-h/2
     regardless of Safari's env() flex quirks */
  position: absolute;
  right: var(--pad-x);
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) / 2);
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  pointer-events: auto;
  font-size: 28px;
  line-height: 1;
  letter-spacing: normal;
  color: var(--text);
  transition: color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
}

/* On the dark hero: white ellipsis */
.site-header.on-hero .menu-toggle {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Slide-in social menu ────────────────────────────────────── */
.social-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 82vw);
  height: 100%;
  height: 100dvh;
  background-color: var(--bg);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 32px 40px 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.social-menu.open {
  transform: translateX(0);
}

/* Close button inside panel */
.social-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 6px;
  margin-bottom: 48px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.social-menu-close:hover { color: var(--text); }

/* Social links list inside the panel */
.social-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.social-menu-links li a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--text);
  min-height: 56px; /* comfortable touch target */
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.social-menu-links li:first-child a {
  border-top: 1px solid var(--border);
}

.social-menu-links li a:hover { color: var(--text-muted); }

.social-menu-links li a i {
  width: 22px;
  text-align: center;
  font-size: 21px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Backdrop overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 155;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Hero ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  height: 100lvh;
}

/* Fixed press photo background */
.hero-bg {
  position: fixed;
  inset: 0;
  background: url('../imgs/pic2023opt.jpg') center center / cover no-repeat;
  z-index: -1;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.1s linear;
  pointer-events: none;
  user-select: none;
}

.scroll-hint span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.scroll-hint-line {
  width: 1.5px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), transparent);
  animation: line-drop 1.7s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.35));
}

@keyframes line-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  65%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ── Hero logo — fixed so it fades in place rather than scrolling away ── */
#hero-logo {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h) / 2 + 20px);
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  pointer-events: none; /* header logo handles clicking off-hero */
  z-index: 90; /* below header (100) */
  transition: opacity 0.06s linear;
}

#hero-logo img {
  width: 18px;
  display: block;
}

/* ── Main content ─────────────────────────────────────────────── */
#main {
  position: relative;
  z-index: 1;
  background-color: var(--bg);
}

/* ── Fade-in utility ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Info section ─────────────────────────────────────────────── */
.info-section {
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-section) var(--pad-x);
  /* offset so content isn't hidden behind fixed header */
  padding-top: calc(var(--pad-section) + var(--header-h) + env(safe-area-inset-top, 0px));
}

.info-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  width: 100%;
}

/* Left column: all text + nav */
.info-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Right column: promo photo */
.info-image {
  flex: 0 0 clamp(220px, 40%, 480px);
}

.info-image img {
  width: 100%;
  height: auto;
  display: block;
}

.artist-name {
  font-family: var(--font-display);
  font-weight: 300; /* DM Sans Light */
  font-size: clamp(24px, 4.1vw, 52px);
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
  margin-bottom: clamp(14px, 2vw, 24px);
}

.artist-bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 3vw, 36px);
}

/* ── Artist bio text ──────────────────────────────────────────── */
.artist-bios {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(32px, 5vw, 60px);
}

.bio-en p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  color: var(--text);
  text-align: left;
}

.bio-es {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

/* ── Main nav ─────────────────────────────────────────────────── */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  padding: 7px 2px;
  position: relative;
  display: inline-block;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 0.5px;
  background-color: var(--text);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}


/* ── Discography section ──────────────────────────────────────── */
.discography-section {
  padding: var(--pad-section) var(--pad-x);
}

/* Filter bar */
#filter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.filter-btn {
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  padding: 10px 0;
  margin-right: clamp(20px, 3vw, 40px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Releases grid */
#releases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap);
}

/* Release tile */
.release-tile {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: rgba(26, 26, 26, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.release-tile.tile-visible {
  opacity: 1;
  transform: translateY(0);
}

.release-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.release-tile:hover img,
.release-tile:focus-visible img {
  transform: scale(1.04);
}

/* Hover overlay */
.release-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.25) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(8px, 1.5vw, 14px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.release-tile:hover .release-overlay,
.release-tile:focus-visible .release-overlay {
  opacity: 1;
}

.release-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
}

.release-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(9px, 1.0vw, 11px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Touch devices: overlay always partially visible */
@media (hover: none) {
  .release-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(10, 10, 10, 0.75) 0%,
      transparent 55%
    );
  }
}

/* ── Show-more button ─────────────────────────────────────────── */
.show-more-btn {
  display: block;
  margin: clamp(24px, 3.5vw, 40px) auto 0;
  background: none;
  border: 0.5px solid var(--text);
  padding: 11px 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.show-more-btn:hover {
  background: rgba(26, 26, 26, 0.06); /* subtle tint — no inversion */
}

/* Folded discography tiles */
.release-tile.tile-folded {
  display: none;
}

/* ── Other Works section ──────────────────────────────────────── */
.otherworks-section {
  padding: 0 var(--pad-x) var(--pad-section);
}

.otherworks-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--border);
}

.section-tab {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1.5px solid var(--text);
  margin-bottom: -1px;
}

/* ── Live / Clients sections ──────────────────────────────────── */
.live-section {
  padding: 0 var(--pad-x) var(--pad-section);
}

/* ── Live shows list ──────────────────────────────────────────── */
.show-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 48px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.show-row:first-child { border-top: 1px solid var(--border); }

/* Left column: artist · title */
.show-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.show-act {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
}

.show-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Marquee: title scrolls left then back when it overflows the column */
@keyframes marquee-ping {
  0%,  16%  { transform: translateX(0); }
  54%, 70%  { transform: translateX(var(--marquee-shift, 0px)); }
  100%      { transform: translateX(0); }
}

.show-title.is-marquee { text-overflow: clip; }

.show-title.is-marquee .show-title-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-ping 9s linear 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .show-title.is-marquee { text-overflow: ellipsis; }
  .show-title.is-marquee .show-title-inner { animation: none; }
}

/* Folded show rows */
.show-row.row-folded { display: none; }

/* Revealed show rows — staggered fade-in when "show all" is clicked */
@keyframes show-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.show-row.row-revealed {
  animation: show-row-in 0.38s ease both;
  animation-delay: calc(var(--row-i, 0) * 55ms);
}

@media (prefers-reduced-motion: reduce) {
  .show-row.row-revealed { animation: none; }
}

/* Right side: date · venue · tickets in a horizontal row */
.show-details {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  flex-shrink: 0;
}

.show-date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.show-venue {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.show-tickets {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-muted);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
  white-space: nowrap;
  width: fit-content;
}
.show-tickets:hover { color: var(--text); }

.show-sold-out {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.55;
}

/* Mobile: stack title above the details row */
@media (max-width: 600px) {
  .show-row {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
}

.shows-none {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-muted);
  padding: 18px 0;
}

/* Works grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px) clamp(10px, 1.5vw, 20px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-item.work-hidden {
  display: none;
}

/* 16:9 media container */
.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: rgba(26, 26, 26, 0.05);
}

.work-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.work-media > a {
  display: block;
  position: absolute;
  inset: 0;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.work-media a:hover img {
  transform: scale(1.03);
}

.work-caption {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Clients ──────────────────────────────────────────────────── */
.clients-section {
  padding: 0 var(--pad-x) var(--pad-section);
}

.clients-list {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(13px, 1.54vw, 17px);
  line-height: 1.8;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  word-spacing: 8px;
  text-align: center;
}

/* Works footnote */
.works-footnote {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  padding-top: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--border);
  line-height: 2;
}

.works-footnote strong {
  color: var(--text);
  font-weight: 400;
}

.works-footnote a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.2s;
}

.works-footnote a:hover {
  text-decoration-color: var(--text);
}

/* ── Footer ───────────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--pad-x);
  background-color: var(--bg); /* must cover the fixed hero-bg below */
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
}

/* Footer social links */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 28px);
}

.footer-social a {
  color: #2f2f2f;
  font-size: 15px;
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-social a:hover { color: var(--text); }

.footer-social .social-x-icon,
.footer-social .social-patreon-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1280px) {
  #releases-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  #releases-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid    { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet & mobile: replace social icons with hamburger; stack info columns */
@media (max-width: 768px) {
  .social-float  { display: none; }
  .menu-toggle   { display: flex; }
  .info-inner    { flex-direction: column; }
  .info-image    { display: none; }
  .artist-name   { font-size: clamp(36px, 8vw, 46px); }
  .hero-bg       { background-image: url('../imgs/armijo_bio.jpg'); }
}

@media (max-width: 640px) {
  :root {
    --grid-gap: 8px;
    --pad-x: 20px;
  }

  #releases-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid    { grid-template-columns: repeat(2, 1fr); }
  .filter-btn    { margin-right: 16px; }
}

@media (max-width: 380px) {
  #releases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* ── Lost & Found Store styles ────────────────────────────────── */

.lost-found-section {
  min-height: 100vh;
  min-height: 100lvh;
  padding: var(--pad-section) var(--pad-x);
  padding-top: calc(var(--pad-section) + var(--header-h) + env(safe-area-inset-top, 0px));
  max-width: 1200px;
  margin: 0 auto;
}

.store-header {
  max-width: 600px;
  margin-bottom: 48px;
}

.store-header-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.store-header-desc {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  color: var(--text-muted);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.store-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.store-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background-color: rgba(26, 26, 26, 0.02);
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card:hover .store-card-image img {
  transform: scale(1.05);
}

.store-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 4px 8px;
  border-radius: 2px;
  background-color: var(--bg);
  border: 0.5px solid var(--text);
  color: var(--text);
}

.store-card-badge.sold {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-muted);
  text-decoration: line-through;
}

.store-card-info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-card-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: lowercase;
}

.store-card-price {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Modal */
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.store-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.store-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.store-modal-content {
  position: relative;
  background-color: var(--bg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border: 1.5px solid var(--text);
  transform: scale(0.97) translateY(12px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-modal.open .store-modal-content {
  transform: scale(1) translateY(0);
}

.store-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px;
  transition: color 0.2s;
  z-index: 15;
}

.store-modal-close:hover {
  color: var(--text);
}

.store-modal-media {
  flex: 0 0 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: rgba(26, 26, 26, 0.02);
  border-right: 1px solid var(--border);
}

.store-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-modal-details {
  flex: 1 1 50%;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.store-modal-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: lowercase;
}

.store-modal-price {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.store-modal-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.store-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0.5px solid var(--text);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: fit-content;
  -webkit-tap-highlight-color: transparent;
}

.store-modal-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.store-modal-btn i {
  font-size: 12px;
}

.store-modal-btn.sold-btn {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.store-modal-btn.sold-btn:hover {
  background: none;
  color: var(--text-muted);
}

/* Responsiveness for Store */

@media (max-width: 1100px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .store-modal-content {
    flex-direction: column;
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
  }
  
  .store-modal-media {
    flex: 0 0 auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .store-modal-details {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .store-header {
    margin-bottom: 32px;
  }
}
