/* ============================================
   Downshift Audio — Stylesheet
   ============================================ */

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

:root {
  --black: #0a0a0a;
  --dark: #141414;
  --dark-2: #1c1c1c;
  --dark-3: #2a2a2a;
  --grey: #555555;
  --grey-light: #888888;
  --white: #f0ece6;
  --white-dim: #a8a49e;
  --accent: #c8a96e;
  --accent-dim: rgba(200, 169, 110, 0.15);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  overflow-x: hidden;
}

a {
  color: var(--white);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  background: var(--black);
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.3;
  filter: brightness(0.6);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.4) 0%,
    rgba(10,10,10,0.2) 40%,
    rgba(10,10,10,0.6) 70%,
    rgba(10,10,10,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 48px;
  max-width: 820px;
}

.hero-player-embed {
  margin: 0 auto;
  max-width: 280px;
}

.hero-player-embed iframe {
  display: block;
  margin: 0 auto;
}

/* ---- Scroll Hint ---- */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- Sections ---- */
.section {
  padding: 120px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

/* ---- Portfolio Grid ---- */
.portfolio {
  background: var(--black);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

a.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover {
  border-color: rgba(200, 169, 110, 0.25);
  transform: translateY(-2px);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.85;
}

.portfolio-card:hover .card-thumb img {
  transform: scale(1.03);
  opacity: 1;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.card-play-overlay svg {
  width: 56px;
  height: 40px;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover .card-play-overlay svg {
  opacity: 1;
  transform: scale(1.08);
}

/* Card Info */
.card-info {
  padding: 14px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: baseline;
}

.card-car {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.card-engine {
  font-size: 0.75rem;
  color: var(--grey-light);
  margin-left: auto;
}

/* ---- Behind the Scenes Scroll ---- */
.bts {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--dark-3);
  border-bottom: 1px solid var(--dark-3);
  background: var(--dark);
}

.bts-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bts-scroll::-webkit-scrollbar {
  display: none;
}

.bts-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 380px;
}

.bts-item img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.4s ease;
}

.bts-item img:hover {
  filter: brightness(1);
}

@media (max-width: 768px) {
  .bts-item {
    height: 260px;
  }
}

/* ---- Client Logo Banner ---- */
.clients-banner {
  background: var(--dark);
  border-top: 1px solid var(--dark-3);
  border-bottom: 1px solid var(--dark-3);
  padding: 40px 24px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: center;
  justify-content: center;
}

.client-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0.9) grayscale(0.2);
  transition: opacity 0.3s ease, filter 0.3s ease;
  padding: 8px 0;
}

.client-logo:hover {
  opacity: 1;
  filter: brightness(1) grayscale(0);
}

/* ---- About ---- */
.about {
  background: var(--black);
}

.about-container {
  max-width: 720px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--white-dim);
  margin-bottom: 24px;
}

.about-content p:last-of-type:not(.about-sig) {
  margin-bottom: 32px;
}

.about-sig {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0;
}

/* ---- Contact ---- */
.contact {
  background: var(--dark);
  border-top: 1px solid var(--dark-3);
  text-align: center;
}

.contact-container {
  max-width: 600px;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--grey-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  margin-bottom: 24px;
}

.contact-email:hover {
  border-bottom-color: var(--accent);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact-social a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color 0.3s ease;
}

.contact-social a:hover {
  color: var(--white);
}

/* ---- Footer ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--dark-3);
  background: var(--black);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-logo-img {
  height: 20px;
  width: auto;
  opacity: 0.6;
}

.footer-soundquake {
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--grey);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .clients-grid {
    gap: 8px 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

/* ---- Animations (on scroll) ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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