/* ============================================================
   331audio — style.css
   EASY ADJUSTMENT ZONE — all design tokens live here
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,600;0,700;0,800;0,900;1,700&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  /* ── Palette ── */
  --col-bg:          #080807;
  --col-surface:     #0e0d0c;
  --col-surface-2:   #141310;
  --col-border:      rgba(255, 255, 255, 0.07);
  --col-border-warm: rgba(200, 160, 80, 0.2);
  --col-accent:      #c9933a;       /* warm amber / analog gold */
  --col-accent-dim:  #8a6020;
  --col-accent-glow: rgba(201, 147, 58, 0.18);
  --col-red:         #c03535;       /* danger / metal red */
  --col-text:        #e8e4dc;
  --col-muted:       #7a7568;
  --col-muted-2:     #4e4b44;

  /* ── Hero / Nav overlay text (lighter than --col-muted — sits on dark photo) ── */
  --col-muted-overlay: #f6eddc;

  /* ── Typography ── */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Fira Mono', monospace;

  /* ── Sizes ── */
  --max-width:    1240px;
  --gutter:       clamp(16px, 4vw, 40px);
  --section-gap:  clamp(64px, 10vw, 120px);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  /* ── Hero ── */
  --hero-min-height:        88vh;
  --hero-bg-overlay-start:  rgba(8,8,7,0.55);
  --hero-bg-overlay-end:    rgba(8,8,7,0.92);
  --hero-bg-image:          url('images/background.jpg');     /* ← swap your image */

  /* ── Room cards ── */
  --room-card-height:       380px;
  --room-img-mixroom-a:     url('images/mixroom-a.jpg');    /* ← swap */
  --room-img-mixroom-b:     url('images/mixroom-b.jpg');    /* ← swap */
  --room-img-liveroom-a:    url('images/liveroom-a.jpg');   /* ← swap */
  --room-img-liveroom-b:    url('images/liveroom-b.jpg');   /* ← swap */
  --room-img-mastering:     url('images/mastering.jpg');    /* ← swap */

  /* ── Gallery ── */
  --gallery-img-1: url('images/ssl.jpg');
  --gallery-img-2: url('images/studer2.jpg');
  --gallery-img-3: url('images/drums.jpg');
  --gallery-img-4: url('images/mics.jpg');
  --gallery-img-5: url('images/rack.jpg');
  --gallery-img-6: url('images/synths.jpg');
  --gallery-img-7: url('images/guitars.jpg');
  --gallery-img-8: url('images/cabs.jpg');
  --gallery-img-9:  url('images/stomps.jpg');       /* ← Guitar stomps        */
  --gallery-img-10: url('images/studer-stereo.jpg'); /* ← Stereo Studer tape   */
  --gallery-img-11: url('images/siemens.jpg');       /* ← Siemens vintage pres */
  --gallery-img-12: url('images/mastering-rack.jpg');/* ← Mastering rack gear  */
  --gallery-img-13: url('images/atc.jpg');           /* ← Mastering ATC monit. */
  --gallery-img-14: url('images/lexicon.jpg');       /* ← Cymbals              */

  /* ── Team / founder portrait placeholders ── */
  --portrait-alexey:    url('images/alexey.jpg');           /* ← swap */
  --portrait-alexandr:  url('images/alexandr.jpg');         /* ← swap */
  --portrait-member-1:  url('images/yuri.jpg');   /* ← swap */
  --portrait-member-2:  url('images/andrew.jpg'); /* ← swap */
  --portrait-member-3:  url('images/anton.jpg');  /* ← swap */
  --portrait-member-4:  url('images/roman.jpg'); /* ← swap */

  /* ── Animations ── */
  --transition-base:  0.25s ease;
  --transition-slow:  0.5s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--col-bg);
  color: var(--col-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   UTILITY
   ============================================================ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.label-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--col-accent);
  opacity: 0.85;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--col-accent);
  flex-shrink: 0;
}

.muted { color: var(--col-muted); }

/* ============================================================
   NOISE OVERLAY (subtle texture)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.site-nav.scrolled {
  background: rgba(8, 8, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--col-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-logo span { color: var(--col-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-muted-overlay);
  transition: color var(--transition-base);
}

.nav-links a:hover { color: var(--col-text); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--col-accent);
  color: #000 !important;
  font-weight: 500;
  transition: opacity var(--transition-base);
}

.nav-cta:hover { opacity: 0.85; }

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--col-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(8, 8, 7, 0.97);
    padding: 40px var(--gutter);
    gap: 32px;
    align-items: flex-start;
  }

  .nav-links.open a {
    font-size: 1.1rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: var(--hero-min-height);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 6s ease-out;
  will-change: transform;
}

.hero-bg.loaded { transform: scale(1); }

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    var(--hero-bg-overlay-start) 0%,
    transparent 40%,
    var(--hero-bg-overlay-end) 80%
  );
}

/* subtle animated scanlines */
/*
 * ── HOW TO TURN OFF THE SCANLINES ───────────────────────────────────
 * Option A (CSS only — recommended):
 *   In the :root block above, add:
 *     --hero-scanlines-opacity: 0;
 *   Then change the .hero-scanlines rule below to use it:
 *     opacity: var(--hero-scanlines-opacity, 0.4);
 *
 * Option B (simplest):
 *   Delete the <div class="hero-scanlines"> element from index.html.
 *
 * Option C (quick toggle in browser DevTools for testing):
 *   Select .hero-scanlines and set opacity to 0.
 * ────────────────────────────────────────────────────────────────────
 */
.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  opacity: 0.4; /* ← set to 0 to hide scanlines, or remove this element from HTML */
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s 0.2s forwards;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--col-accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 14ch;
  opacity: 0;
  padding-top: 60px;
  transform: translateY(16px);
  animation: fade-up 0.7s 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--col-accent);
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--col-muted-overlay);
  max-width: 52ch;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s 0.5s forwards;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 36px;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s 0.65s forwards;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.stat-val span { color: var(--col-accent); }

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--col-muted-overlay);
  margin-top: 4px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.7s 0.8s forwards;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--col-accent);
  color: #000;
}

.btn-primary:hover {
  background: #e0a840;
  box-shadow: 0 0 28px var(--col-accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--col-text);
  border: 1px solid var(--col-border);
}

.btn-ghost:hover {
  border-color: var(--col-border-warm);
  color: var(--col-accent);
  transform: translateY(-1px);
}

/* Full-width variant — stretches to fill its container */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--col-border);
  margin: 0;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section {
  padding: var(--section-gap) 0;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
}

.section-header p {
  color: var(--col-muted);
  max-width: 58ch;
  margin-top: 12px;
  line-height: 1.7;
}

/* ============================================================
   ABOUT / FOUNDERS
   ============================================================ */
#about {
  background: var(--col-surface);
  border-top: 1px solid var(--col-border);
  border-bottom: 1px solid var(--col-border);
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--col-border);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
}

.founder-card {
  background: var(--col-surface-2);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: background var(--transition-base);
}

.founder-card:hover { background: #161410; }

.founder-portrait {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: var(--col-surface);
  background-size: cover;
  background-position: center top;
  border: none;
  outline: 1px solid var(--col-border-warm);
  outline-offset: -1px;
  position: relative;
  overflow: hidden;
}

/* placeholder gradient if no image */
.founder-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--col-accent-dim), #2a1a05);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.founder-portrait.no-img::after { opacity: 1; }

.founder-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.1;
}

.founder-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--col-muted);
  margin: 3px 0 10px;
}

.founder-bio { color: var(--col-muted); font-size: 0.9rem; line-height: 1.6; }

.section-header--team {
  margin-top: 48px;
  margin-bottom: 20px;
}

/* Team members — same design language as founder cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--col-border);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.team-card {
  background: var(--col-surface-2);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background var(--transition-base);
}

.team-card:hover { background: #161410; }

.team-portrait {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-color: var(--col-surface);
  background-size: cover;
  background-position: center top;
  border: none;
  outline: 1px solid var(--col-border-warm);
  outline-offset: -1px;
  position: relative;
  overflow: hidden;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.1;
}

.team-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--col-muted);
  margin: 3px 0 10px;
}

.team-bio { color: var(--col-muted); font-size: 0.88rem; line-height: 1.6; }

@media (max-width: 680px) {
  .founders-grid { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
}

/* ============================================================
   ROOMS
   ============================================================ */
#rooms { background: var(--col-bg); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: var(--room-card-height) var(--room-card-height);
  gap: 8px;
}

.room-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--col-surface-2);
  cursor: zoom-in;
}

/* All 4 rooms equal width — each occupies one column */

.room-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}

.room-card:hover .room-bg {
  transform: scale(1.04);
}

/* assign bg images — set by JS lazy loader via data-lazy attribute */

.room-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 20%);
}

.room-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}

.room-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--col-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.room-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.room-detail {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .rooms-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .room-card { height: 200px; }
}

@media (max-width: 540px) {
  .rooms-grid { grid-template-columns: 1fr; }
  .room-card  { height: 180px; }
}

/* ============================================================
   GEAR
   ============================================================ */
#gear { background: var(--col-surface); border-top: 1px solid var(--col-border); border-bottom: 1px solid var(--col-border); }

/* ── SSL + Studer unified hero cards ───────────────────────── */
.gear-hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.gear-hero-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--col-border-warm);
  background: var(--col-surface-2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.gear-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--col-accent), transparent);
  z-index: 1;
}

.gear-hero-card-photo {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform var(--transition-slow);
  cursor: zoom-in;
}

.gear-hero-card:hover .gear-hero-card-photo {
  transform: scale(1.04);
}

/* gear hero card photos — set by JS lazy loader via data-lazy attribute */

.gear-hero-card-body {
  padding: 28px 32px 32px;
}

/* ── gal-item base ─────────────────────────────────────────── */
.gal-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--col-surface-2);
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
}

.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: background var(--transition-base);
}

.gal-item:hover::after { background: rgba(0,0,0,0.1); }

.gal-caption {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 3px;
}

/* gear photo grid image assignments */

/* ── gallery-item photo: image set via JS from data-img attr ── */
/* (JS reads data-img, looks up CSS var, sets background-image)  */

/* Gallery section */
#gallery { background: var(--col-bg); border-top: 1px solid var(--col-border); border-bottom: 1px solid var(--col-border); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--col-border);
  background: var(--col-surface-2);
  cursor: zoom-in;
  transition: border-color var(--transition-base);
}

.gallery-item:hover { border-color: var(--col-border-warm); }

/* ╔══════════════════════════════════════════════════════════════╗
   ║  GALLERY PHOTO ADJUSTMENTS — easy crop & height controls    ║
   ╠══════════════════════════════════════════════════════════════╣
   ║  height           → how tall the photo area is.             ║
   ║                     Increase to show more, decrease to crop ║
   ║                     more. Desktop default: 240px.           ║
   ║                     Mobile override below at max-width:700  ║
   ║                                                             ║
   ║  background-position → where the frame is anchored.        ║
   ║    "center"          → dead centre (default)               ║
   ║    "center top"      → show top of photo, crop bottom       ║
   ║    "center bottom"   → show bottom, crop top                ║
   ║    "center 20%"      → shift frame 20% down from top        ║
   ║                                                             ║
   ║  To override per-item, add a style attr to the             ║
   ║  .gallery-item-photo div in index.html, e.g.:              ║
   ║    style="background-position: center top"                  ║
   ╚══════════════════════════════════════════════════════════════╝ */
.gallery-item-photo {
  width: 100%;
  height: 250px;                   /* ← ADJUST: photo crop height (desktop) */
  background-size: cover;
  background-position: center;     /* ← ADJUST: center | center top | center bottom | center 20% */
  background-color: var(--col-surface);
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-item-photo {
  transform: scale(1.04);
}

.gallery-item-text {
  padding: 14px 16px 16px;
}

.gallery-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.gallery-item-desc {
  font-size: 0.8rem;
  color: var(--col-muted);
  line-height: 1.5;
}

.gear-hero-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}

.gear-hero-desc { color: var(--col-muted); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 900px) {
  .gear-hero-pair  { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .gallery-item-photo { height: 180px; } /* ← ADJUST: photo crop height (mobile) */
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   DRUM LIBRARIES / SPLICE
   ============================================================ */
#libraries { background: var(--col-surface); }

.lib-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* Pack cards */
.pack-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pack-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.pack-card:hover, .pack-card.active {
  border-color: var(--col-border-warm);
  background: var(--col-surface-2);
}

.pack-card.active .pack-num { color: var(--col-accent); }

.pack-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--col-muted-2);
  line-height: 1;
  transition: color var(--transition-base);
}

.pack-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.pack-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--col-muted);
  margin-top: 3px;
  letter-spacing: 0.06em;
}

.pack-bpm {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--col-muted-2);
  text-align: right;
}

/* Player */
.player-panel {
  position: sticky;
  top: 80px;
  background: var(--col-surface-2);
  border: 1px solid var(--col-border-warm);
  border-radius: var(--radius-md);
  padding: 28px;
  overflow: hidden;
}

.player-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--col-accent), transparent);
}

.player-track-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.player-track-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--col-accent);
  letter-spacing: 0.1em;
  margin-top: 4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Waveform canvas */
.waveform-wrap {
  height: 60px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.waveform-bars {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
  padding: 0 8px;
}

.wv-bar {
  flex: 1;
  border-radius: 2px;
  background: var(--col-border);
  min-height: 4px;
  transition: background var(--transition-base);
}

.wv-bar.active { background: var(--col-accent); }

/* animated bars when playing */
@keyframes pulse-bar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.playing .wv-bar {
  animation: pulse-bar 0.6s ease-in-out infinite;
}
.playing .wv-bar:nth-child(2n)   { animation-delay: 0.05s; }
.playing .wv-bar:nth-child(3n)   { animation-delay: 0.1s; }
.playing .wv-bar:nth-child(4n)   { animation-delay: 0.15s; }
.playing .wv-bar:nth-child(5n)   { animation-delay: 0.2s; }
.playing .wv-bar:nth-child(6n)   { animation-delay: 0.25s; }
.playing .wv-bar:nth-child(7n)   { animation-delay: 0.3s; }

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--col-accent);
  border: none;
  display: grid;
  place-items: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.play-btn:hover {
  background: #e0a840;
  box-shadow: 0 0 20px var(--col-accent-glow);
  transform: scale(1.05);
}

.play-btn svg { fill: #000; }

.player-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--col-muted);
}

.player-splice-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.splice-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--col-muted);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .lib-layout { grid-template-columns: 1fr; }
  .player-panel { position: static; }
}

/* ============================================================
   GALLERY
   ============================================================ */
@media (max-width: 700px) {
  .gear-photo-grid .gear-photo-item .gal-item { height: 160px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--col-muted);
  transition: color var(--transition-base);
}

.lightbox-close:hover { color: #fff; }

/* ============================================================
   CONTACT / CTA BAND
   ============================================================ */
#contact {
  background: var(--col-bg);
  border-top: 1px solid var(--col-border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start; /* left and right columns start at the same top edge */
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.cf-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cf-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-accent);
}

.cf-input {
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-sm);
  color: var(--col-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 14px;
  transition: border-color var(--transition-base), background var(--transition-base);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cf-input:focus {
  border-color: var(--col-accent-dim);
  background: var(--col-surface-2);
}

.cf-input::placeholder { color: var(--col-muted-2); }

.cf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cf-select option { background: var(--col-surface); }

.cf-textarea { resize: vertical; min-height: 100px; }

.cf-submit { margin-top: 6px; }

.cf-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 10px;
  min-height: 1.2em;
  color: var(--col-accent);
}

.cf-status.error { color: var(--col-red); }

/* Links inside the right CTA column */
.contact-aside-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 24px;
}

.contact-layout .muted {
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--col-surface);
  border: 1px solid var(--col-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.contact-link:hover {
  border-color: var(--col-border-warm);
  background: var(--col-surface-2);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(201, 147, 58, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-accent);
}

.contact-link-value { color: var(--col-text); font-size: 0.95rem; }

.cta-band {
  background: var(--col-surface-2);
  border: 1px solid var(--col-border-warm);
  border-radius: var(--radius-md);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--col-accent), transparent);
}

.cta-band h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cta-band p { color: var(--col-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }

.contact-service {
  padding: 16px 0;
  border-bottom: 1px solid var(--col-border);
}
.contact-service:first-child { padding-top: 0; }
.contact-service:last-child { border-bottom: none; padding-bottom: 0; }

.contact-service-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-accent);
  margin-bottom: 4px;
}

.contact-service-desc {
  font-size: 0.9rem;
  color: var(--col-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--col-surface);
  border-top: 1px solid var(--col-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.footer-logo span { color: var(--col-accent); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--col-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--col-muted);
  transition: color var(--transition-base);
}

.footer-links a:hover { color: var(--col-accent); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-group.visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 0.08s; }
.reveal-group.visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 0.16s; }
.reveal-group.visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 0.24s; }
.reveal-group.visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 0.32s; }
.reveal-group.visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 0.40s; }
.reveal-group.visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: 0.48s; }
.reveal-group.visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: 0.56s; }
.reveal-group.visible > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: 0.64s; }
.reveal-group.visible > *:nth-child(10) { opacity: 1; transform: none; transition-delay: 0.72s; }
.reveal-group.visible > *:nth-child(11) { opacity: 1; transform: none; transition-delay: 0.80s; }
.reveal-group.visible > *:nth-child(12) { opacity: 1; transform: none; transition-delay: 0.88s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero h1, .hero-kicker, .hero-sub, .hero-stats, .hero-ctas {
    opacity: 1 !important;
    transform: none !important;
  }
}