/* ============================================
   Audio Lab — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --accent-primary: #ff2200;
  --accent-hover: #ff4400;
  --accent-secondary: #ff6600;
  /* Text/foreground color that sits ON TOP of an accent-colored
     background (e.g. .btn--primary). Black across every theme for
     a consistent stamped look. */
  --accent-on-color: #000000;
  /* RGB triplets for rgba() usage — JS color picker swaps these */
  --accent-rgb: 255, 34, 0;
  --accent-rgb-hover: 255, 68, 0;
  /* Click-to-pulse ring color — always white except when the
     currently-selected theme is white, then JS swaps this to red. */
  --click-rgb: 255, 255, 255;
  --text-heading: #ffffff;
  --text-body: rgba(255, 255, 255, 0.7);
  --text-subtle: rgba(255, 255, 255, 0.4);
  --glow-red: 0 0 20px rgba(var(--accent-rgb), 0.4), 0 0 40px rgba(var(--accent-rgb), 0.2);
  --glow-red-strong: 0 0 30px rgba(var(--accent-rgb), 0.6), 0 0 60px rgba(var(--accent-rgb), 0.3), 0 0 100px rgba(var(--accent-rgb), 0.1);
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
}

ul {
  list-style: none;
}

/* --- Focus Visible (keyboard accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-subtle);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.subtitle--lead {
  margin-bottom: 40px;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

/* --- Parallax Background Section --- */
.section--parallax {
  position: relative;
  background-color: #000;
  background-image: url('../images/gallery/audio/hummerL1.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark gradient overlay for text readability + theme tint */
.section--parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(10, 0, 0, 0.55) 25%,
    rgba(20, 4, 0, 0.45) 50%,
    rgba(10, 0, 0, 0.58) 75%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Red accent glow along top/bottom edges */
.section--parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12) 0%, transparent 8%),
    linear-gradient(0deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 8%);
  pointer-events: none;
  z-index: 1;
}

/* All direct children sit above the overlays */
.section--parallax > * {
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--accent-on-color);
  padding: 10px 20px;
  z-index: 2000;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: var(--accent-on-color);
}

/* --- Section Divider (cracked line) --- */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  margin: 0;
  border: none;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: var(--accent-primary);
  box-shadow: var(--glow-red);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6), 0 0 20px rgba(var(--accent-rgb), 0.3), 0 0 40px rgba(var(--accent-rgb), 0.15);
  letter-spacing: 3px;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-heading);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Color Picker (theme swap control) ---
   Nested under the Home nav link as a subheader. Positioned by JS
   which reads the Home link's bounding rect and centers the picker
   under it. Falls back to viewport center on mobile where the nav
   links are hidden behind the hamburger. */
.color-picker {
  position: fixed;
  top: calc(var(--nav-height) - 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: flex;
  gap: 5px;
  padding: 4px 7px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(var(--accent-rgb), 0.15);
  transition: box-shadow 0.4s ease;
}

.color-picker__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: var(--dot-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-picker__dot:hover,
.color-picker__dot:focus-visible {
  transform: scale(1.4);
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.color-picker__dot.active {
  border-color: #fff;
  box-shadow:
    0 0 0 1px var(--dot-color),
    0 0 8px var(--dot-color),
    0 0 14px var(--dot-color);
}

/* --- Mobile Nav Drawer --- */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.06) 40%, #000 75%),
    #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 999;
  border-top: 1px solid rgba(var(--accent-rgb), 0.25);
  overflow: hidden;
  padding: 48px 16px 120px;
}

.nav__mobile.open {
  display: flex;
}

/* Huge faded AUDIOLAB watermark behind the menu */
.nav__mobile::before {
  content: "AUDIOLAB";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(12rem, 45vw, 22rem);
  color: rgba(var(--accent-rgb), 0.035);
  letter-spacing: clamp(6px, 2vw, 14px);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  line-height: 1;
}

/* Bottom tagline */
.nav__mobile::after {
  content: "EST. 1994 — MARYSVILLE, WA";
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.nav__mobile.open::after {
  animation: mobileNavTagline 0.7s ease-out 0.55s forwards;
}

.nav__mobile a {
  display: block;
  position: relative;
  width: 280px;
  max-width: 90%;
  padding: 14px 36px 14px 60px;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: left;
  transition:
    color 0.3s ease,
    transform 0.35s cubic-bezier(.2, .8, .2, 1),
    text-shadow 0.3s ease;
  z-index: 2;
  opacity: 0;
  transform: translateX(28px);
}

.nav__mobile.open a {
  animation: mobileNavLinkIn 0.55s cubic-bezier(.2, .8, .2, 1) forwards;
}

.nav__mobile.open a:nth-child(1) { animation-delay: 0.10s; }
.nav__mobile.open a:nth-child(2) { animation-delay: 0.16s; }
.nav__mobile.open a:nth-child(3) { animation-delay: 0.22s; }
.nav__mobile.open a:nth-child(4) { animation-delay: 0.28s; }
.nav__mobile.open a:nth-child(5) { animation-delay: 0.34s; }
.nav__mobile.open a:nth-child(6) { animation-delay: 0.40s; }

/* Numbered prefix (01 / 02 / ...) */
.nav__mobile a::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(var(--accent-rgb), 0.55);
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav__mobile a:nth-child(1)::before { content: "01 /"; }
.nav__mobile a:nth-child(2)::before { content: "02 /"; }
.nav__mobile a:nth-child(3)::before { content: "03 /"; }
.nav__mobile a:nth-child(4)::before { content: "04 /"; }
.nav__mobile a:nth-child(5)::before { content: "05 /"; }
.nav__mobile a:nth-child(6)::before { content: "06 /"; }

/* Right-side accent line (grows on hover/active) */
.nav__mobile a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  box-shadow:
    0 0 10px rgba(var(--accent-rgb), 0.8),
    0 0 20px rgba(var(--accent-rgb), 0.4);
  transform: translateY(-50%);
  transition: width 0.4s cubic-bezier(.2, .8, .2, 1);
}

.nav__mobile a:hover,
.nav__mobile a.active {
  color: var(--accent-primary);
  transform: translateX(6px);
  text-shadow:
    0 0 12px rgba(var(--accent-rgb), 0.65),
    0 0 28px rgba(var(--accent-rgb), 0.4),
    0 0 50px rgba(var(--accent-rgb), 0.2);
}

.nav__mobile a:hover::before,
.nav__mobile a.active::before {
  color: var(--accent-primary);
  transform: translateY(-50%) scale(1.12);
}

.nav__mobile a:hover::after,
.nav__mobile a.active::after {
  width: 32px;
}

@keyframes mobileNavLinkIn {
  0% {
    opacity: 0;
    transform: translateX(28px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mobileNavTagline {
  0% {
    opacity: 0;
    transform: translateY(6px);
    letter-spacing: 2px;
  }
  100% {
    opacity: 0.6;
    transform: translateY(0);
    letter-spacing: 6px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-primary);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__logo {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--accent-primary);
  text-shadow: var(--glow-red-strong);
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.hero__tagline {
  font-size: 1rem;
  letter-spacing: 8px;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- Hero EQ Control Panel --- */
.hero__control {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  width: 320px;
  padding: 12px 16px 14px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(var(--accent-rgb), 0.2),
    inset 0 0 30px rgba(var(--accent-rgb), 0.04),
    0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__control::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
  animation: ledPulse 2s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8); }
  50%      { opacity: 0.5; box-shadow: 0 0 4px rgba(var(--accent-rgb), 0.4); }
}

.hero__control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 14px;
  gap: 12px;
}

/* Row used inside a mode section for label + value (e.g. FREQ | 20 Hz) */
.hero__control-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

/* Mode toggle (PULSE / MUSIC) */
.hero__control-mode {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px;
}

.mode-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.mode-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.mode-btn.active {
  background: rgba(var(--accent-rgb), 0.85);
  color: var(--accent-on-color);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* Swappable content sections */
.hero__control-section {
  padding-top: 2px;
}

.hero__control-section[hidden] {
  display: none;
}

/* --- Music Player Section --- */
.hero__control-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.player-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.85);
  color: var(--accent-on-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
  padding: 0;
}

.player-btn:hover {
  transform: scale(1.08);
  background: var(--accent-hover);
  box-shadow: 0 0 16px rgba(var(--accent-rgb-hover), 0.7);
}

.player-btn__icon {
  display: inline-block;
  line-height: 1;
  pointer-events: none;
}

.player-btn__icon--play {
  margin-left: 2px; /* optical center triangle */
}

.player-btn__icon--pause {
  font-size: 0.65rem;
  letter-spacing: 1px;
}

.player-track {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

/* Prev/next track nav buttons */
.player-nav {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.55rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.player-nav:hover,
.player-nav:focus-visible {
  color: var(--accent-primary);
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
  transform: scale(1.08);
  outline: none;
}

.player-nav:active {
  transform: scale(0.95);
}

/* Spectrum canvas */
.hero__control-spectrum {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- Inline Color Picker (nested inside the toolbox) --- */
.hero__control-colors {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.color-picker-inline {
  display: flex;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.color-picker-inline .color-picker__dot {
  width: 14px;
  height: 14px;
}

.hero__control-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.hero__control-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6), 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.hero__control-hz {
  font-size: 1.35rem;
  margin-right: 4px;
}

.hero__control-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--accent-primary) 0%,
    var(--accent-hover) var(--slider-fill, 10%),
    rgba(255, 255, 255, 0.08) var(--slider-fill, 10%),
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero__control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, var(--accent-secondary), var(--accent-primary) 60%, var(--accent-primary));
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(var(--accent-rgb), 0.9),
    0 0 24px rgba(var(--accent-rgb), 0.5),
    0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero__control-slider::-webkit-slider-thumb:hover,
.hero__control-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow:
    0 0 16px rgba(var(--accent-rgb-hover), 1),
    0 0 32px rgba(var(--accent-rgb), 0.6),
    0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero__control-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
}

.hero__control-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, var(--accent-secondary), var(--accent-primary) 60%, var(--accent-primary));
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9), 0 0 24px rgba(var(--accent-rgb), 0.5);
  cursor: grab;
}

.hero__control-slider::-moz-range-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.hero__control-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.35);
}

.hero__control-scale span:first-child { color: rgba(255, 255, 255, 0.5); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--accent-on-color);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(var(--accent-rgb-hover), 0.6);
  color: var(--accent-on-color);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn--outline:hover {
  background: var(--accent-primary);
  color: var(--accent-on-color);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* --- Button Group --- */
.btn-group {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Cards (Services, Gallery, Events) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Compact variant for dense grids (e.g., 5-service strip). Uses
   explicit breakpoints to avoid awkward 4+1 orphans — flows as
   1 col on mobile, 3 cols mid-desktop, 5 cols large desktop. */
.card-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

@media (min-width: 769px) and (max-width: 1199px) {
  .card-grid--compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .card-grid--compact {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3), 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card__image--placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.card__body {
  padding: 20px;
}

.card__body h3 {
  margin-bottom: 8px;
}

.card__body p {
  color: var(--text-body);
  font-size: 0.95rem;
}

.card__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--accent-primary);
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.card__link:hover {
  border-bottom-color: var(--accent-primary);
}

/* Card anchor reset */
a.card {
  text-decoration: none;
  color: inherit;
}

/* --- Social Proof Bar --- */
.proof-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.proof-bar__item {
  text-align: center;
}

.proof-bar__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
  display: block;
}

.proof-bar__label {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.cta-banner h2 {
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.cta-banner .btn {
  margin: 0 8px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero .subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Service Detail Layout --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.service-detail__content h2,
.service-detail__content h3 {
  margin-bottom: 12px;
  color: var(--accent-primary);
}

.service-detail__content ul {
  list-style: none;
  padding: 0;
}

.service-detail__content ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-body);
}

.service-detail__content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* --- Photo Grid (Gallery + Service pages) --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.photo-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-grid__item:hover img {
  transform: scale(1.05);
}

.photo-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--accent-rgb), 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.photo-grid__item:hover::after {
  background: rgba(var(--accent-rgb), 0.1);
}

.photo-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text-body);
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-grid__item:hover .photo-grid__caption {
  transform: translateY(0);
}

/* --- Gallery Filter --- */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.gallery-filter__btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  background: transparent;
  color: var(--text-subtle);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter__btn:hover,
.gallery-filter__btn.active {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--text-heading);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  transition: color 0.3s ease;
}

.lightbox__close:hover {
  color: var(--accent-primary);
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-body);
  font-size: 0.95rem;
  text-align: center;
}

/* --- Brands Strip --- */
.brands {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.brands--detail {
  padding-top: 20px;
  padding-bottom: 40px;
  gap: 32px;
}

.brands__item {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--text-subtle);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.brands__item:hover {
  color: var(--text-heading);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__error {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.form__success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form__success h3 {
  color: var(--accent-primary);
  margin-bottom: 8px;
}

/* --- Contact Info Sidebar --- */
.contact-info__item {
  margin-bottom: 24px;
}

.contact-info__label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info__value {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info__value a {
  color: var(--text-heading);
}

.contact-info__value a:hover {
  color: var(--accent-primary);
}

.contact-info__cta {
  margin-top: 24px;
}

/* --- Map --- */
.map-container {
  width: 100%;
  height: 350px;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* --- Events Cards --- */
.event-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.event-card__date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.event-card__body {
  padding: 20px;
}

.event-card--past {
  opacity: 0.5;
}

/* --- About Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline--narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 20px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-primary);
  letter-spacing: 2px;
}

.timeline__text {
  color: var(--text-body);
  margin-top: 4px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__text {
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__links a {
  display: block;
  color: var(--text-subtle);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-subtle);
  font-size: 0.8rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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