/* =============================================================
   Red Mile Records — home.css  (homepage-only styles)
   ============================================================= */

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.52) 40%,
    rgba(0,0,0,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-20);
}

.hero-inner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  justify-content: center;
}

.waveform-wrap {
  width: 600px;
  max-width: 90vw;
  margin: var(--space-8) auto 0;
  display: block;
}

.waveform-wrap canvas {
  display: block;
  width: 100%;
}

#waveform-canvas {
  width: 100%;
  height: 80px;
  display: block;
}

/* ── Social Proof Bar ─────────────────────────────────────── */
.proof-bar {
  background-color: var(--color-surface);
  border-top:    1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.proof-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.proof-bar__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.proof-bar__sep {
  width: 1px;
  height: 20px;
  background: var(--color-border-mid);
  flex-shrink: 0;
}

.proof-bar__stars {
  display: flex;
  gap: 2px;
  color: #f5c518;
}

.proof-bar__stars svg {
  width: 16px;
  height: 16px;
}

.proof-bar__rating {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.proof-bar__rating strong {
  color: var(--color-text);
}

.proof-bar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-left: auto;
  transition: color var(--duration-base) var(--ease-smooth);
}

.proof-bar__link:hover {
  color: var(--color-text);
  opacity: 1;
}

@media (max-width: 640px) {
  .proof-bar__link { margin-left: 0; }
  .proof-bar__sep  { display: none; }
}

/* ── Services Section ─────────────────────────────────────── */
.services-section {
  background-color: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color var(--duration-base) var(--ease-smooth),
    transform    var(--duration-slow) var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--color-border-mid);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-text);
  opacity: 0.85;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
  margin: 0;
}

.service-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
  margin: 0;
  flex: 1;
  max-width: none;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-base) var(--ease-smooth),
              gap   var(--duration-base) var(--ease-smooth);
  margin-top: auto;
}

.service-card__link:hover {
  color: var(--color-text);
  gap: var(--space-3);
  opacity: 1;
}

/* ── Equipment Tickers ────────────────────────────────────── */
.ticker-section {
  padding: var(--space-12) 0;
  background-color: var(--color-surface);
  border-top:    1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.ticker-section--pod {
  background-color: var(--color-surface-2);
  margin-top: 0;
}

.ticker-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-6);
}

.ticker-outer {
  overflow: hidden;
  /* Edge fade */
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image:         linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.ticker-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: var(--space-8);
  will-change: transform;
}

.ticker-outer {
  contain: layout style;
}

/* Forward (left) — recording studio: fast */
.ticker-track--fwd {
  animation: ticker-fwd 20s linear infinite;
}

/* Reverse (right) — podcast: slower (fewer items) */
.ticker-track--rev {
  animation: ticker-rev 30s linear infinite;
}

@keyframes ticker-fwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ticker-rev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track--fwd,
  .ticker-track--rev {
    animation: none;
  }
  .ticker-track {
    flex-wrap: wrap;
    width: 100%;
    padding: 0 var(--gutter);
  }
}

.ticker-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  width: 200px;
}

.ticker-item img {
  width: 200px;
  height: 140px;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.05);
  transition: filter var(--duration-base) var(--ease-smooth);
}

.ticker-item img:hover {
  filter: brightness(1) contrast(1.1);
}

.ticker-item__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  text-align: center;
  line-height: 1.3;
}

/* ── Artist Credits ───────────────────────────────────────── */
.artists-section {
  background-color: var(--color-bg);
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (max-width: 768px) {
  .artists-grid { grid-template-columns: 1fr; max-width: 380px; }
}

.artist-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color var(--duration-base) var(--ease-smooth),
    transform    var(--duration-slow) var(--ease-smooth);
}

.artist-card:hover {
  border-color: var(--color-border-mid);
  transform: translateY(-3px);
}

.artist-card__image-wrap {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-surface-2);
  overflow: hidden;
}

.artist-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
}

.artist-card__placeholder svg {
  width: 64px;
  height: 64px;
}

.artist-card__info {
  padding: var(--space-5) var(--space-6);
}

.artist-card__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.artist-card__track {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: none;
}

.artist-card__spotify {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: #1db954;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.artist-card__spotify:hover {
  opacity: 0.78;
}

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-section {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color var(--duration-base) var(--ease-smooth),
    transform    var(--duration-slow) var(--ease-smooth);
}

.review-card:hover {
  border-color: var(--color-border-mid);
  transform: translateY(-2px);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: #f5c518;
}

.review-card__stars svg {
  width: 14px;
  height: 14px;
}

.review-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
  flex: 1;
  max-width: none;
  font-style: normal;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.review-card__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-style: normal;
  color: var(--color-text);
}

.review-card__source {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-subtle);
}

.reviews-footer {
  margin-top: var(--space-10);
  text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section {
  background-color: var(--color-bg);
}

.faq-list {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--duration-base) var(--ease-smooth);
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '+';
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-smooth),
              color     var(--duration-base) var(--ease-smooth);
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(45deg);
  color: var(--color-text);
}

.faq-item[open] .faq-item__q {
  color: var(--color-text);
}

.faq-item__a {
  padding-bottom: var(--space-5);
}

.faq-item__a p {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-loose);
  max-width: none;
}

.faq-item__a a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.cta-banner__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner__h2 {
  font-size: clamp(var(--font-size-2xl), 3.5vw, var(--font-size-4xl));
  margin-bottom: var(--space-4);
}

.cta-banner__sub {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Mobile tweaks ────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .waveform-wrap { display: block; } /* Show waveform on mobile */
}

/* ── Spinning Microphone Badge ─────────────────────────── */
.hero-mic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-mic-badge__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  animation: mic-spin 8s linear infinite;
}

.hero-mic-badge__icon svg {
  width: 40px;
  height: 40px;
}

@keyframes mic-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-mic-badge__text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* =============================================================
   Hero — interactive U87 microphone (homepage only)
   Reuses existing design tokens. Desktop = interactive,
   mobile / reduced-motion = static. No layout shift.
   ============================================================= */
.hero-section--mic { background: var(--color-bg); }

.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 70% 44%, var(--color-orange-soft), rgba(232,119,58,0) 62%),
    radial-gradient(70% 50% at 62% 116%, rgba(232,119,58,0.10), rgba(0,0,0,0) 60%);
}

.hero-section--mic .hero-content { position: relative; z-index: 1; width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: var(--space-12);
  width: 100%;
}

/* Copy column (left-aligned on desktop; reuses .hero-h1/.hero-sub/.hero-ctas) */
.hero-copy { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy .hero-sub  { margin-left: 0; margin-right: 0; }
.hero-copy .hero-ctas { justify-content: flex-start; }
.hero-copy .waveform-wrap { margin-left: 0; }

/* Orange accent on the studio badge */
.hero-section--mic .hero-mic-badge {
  border-color: rgba(232,119,58,0.40);
  box-shadow: 0 0 0 1px rgba(232,119,58,0.10), 0 6px 24px rgba(232,119,58,0.08);
}
.hero-section--mic .hero-mic-badge__icon svg circle { stroke: rgba(232,119,58,0.55); }
.hero-section--mic .hero-mic-badge__icon svg rect,
.hero-section--mic .hero-mic-badge__icon svg path,
.hero-section--mic .hero-mic-badge__icon svg line { stroke: var(--color-orange); }
.hero-section--mic .hero-mic-badge__icon svg rect { fill: var(--color-orange); }

/* Mic stage */
.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; perspective: 1400px; }
.hero-mic {
  position: relative;
  height: min(74svh, 760px);
  transform-style: preserve-3d;
  will-change: transform;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-mic__tilt {
  position: relative; height: 100%;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
  will-change: transform;
  --mic-mask: url("/assets/images/hero/red-mile-records-neumann-u87-microphone-calgary.webp");
}
.hero-mic__img {
  height: 100%; width: auto; display: block; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)) drop-shadow(0 0 30px rgba(232,119,58,0.18));
}
.hero-mic__layer {
  position: absolute; inset: 0; height: 100%; width: 100%; pointer-events: none;
  -webkit-mask: var(--mic-mask) center / contain no-repeat;
          mask: var(--mic-mask) center / contain no-repeat;
}
.hero-mic__rim {
  opacity: .55;
}
.hero-mic__rim::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(232,119,58,0) 58%, rgba(232,119,58,0.55) 100%);
  mix-blend-mode: screen;
}
.hero-mic__sheen {
  opacity: .95; overflow: hidden;
}
/* mix-blend lives on the pseudo-element, NOT on the masked element above —
   iOS Safari renders nothing when mask + mix-blend-mode are on the same box. */
.hero-mic__sheen::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -78%; width: 60%;
  background: linear-gradient(108deg,
    transparent 0%, rgba(255,255,255,0) 28%,
    rgba(255,255,255,0.90) 50%, rgba(255,232,205,0.45) 63%, transparent 92%);
  mix-blend-mode: screen;
  transform: translateX(0); will-change: transform;
  animation: heroSheen 6s ease-in-out infinite;
}
.hero-mic__glint { mix-blend-mode: screen; background: transparent; }

@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes heroSheen { 0% { transform: translateX(0); } 55% { transform: translateX(320%); } 100% { transform: translateX(320%); } }
@keyframes heroGlowPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

/* Tablet / mobile: single column, centered. Lightweight motion only —
   no JS runs here; the shimmer and scroll drift are GPU-composited. */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); min-height: auto; }
  .hero-copy { text-align: center; align-items: center; }
  .hero-copy .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-ctas { justify-content: center; }
  .hero-copy .waveform-wrap { margin-left: auto; }
  .hero-stage { perspective: none; }
  .hero-mic { height: min(50svh, 480px); animation: heroFloat 8s ease-in-out infinite; }
  .hero-mic__img { filter: drop-shadow(0 16px 26px rgba(0,0,0,0.5)); } /* lighter paint */
  .hero-mic__tilt { transition: transform .1s linear; } /* JS applies the scroll drift here */
  .hero-mic__sheen { opacity: .95; }   /* full-strength shimmer on mobile */
  .hero-mic__sheen::before { animation-duration: 2.2s; } /* livelier shimmer on mobile */
  .hero-mic__glint { display: none; }  /* cursor glint needs JS — off on mobile */
  .hero-glow { animation: heroGlowPulse 5.5s ease-in-out infinite; } /* always-visible breathing glow */
  .hero-copy .hero-h1 { font-size: clamp(2rem, 7.5vw, 3rem); overflow-wrap: break-word; }
  .hero-copy .hero-h1 br { display: none; } /* let the headline wrap naturally on small screens */
}

/* Mobile scroll drift is handled by js/hero-mic.js (a tiny passive,
   rAF-gated handler), since iOS Safari does not yet support
   animation-timeline. The handler only sets a transform — no layout cost. */

@media (prefers-reduced-motion: reduce) {
  .hero-mic { animation: none; }
  .hero-mic__sheen::before { animation: none; }
  .hero-glow { animation: none; }
  .hero-mic__tilt { transition: none; }
}
