/* ============================================
   Sonora - Dreamy Minimalist Design
   ============================================ */

/* Font Faces */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/libre-baskerville-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/libre-baskerville-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Design Tokens */
:root {
  --color-bg: #0a0a0b;
  --color-text: #e8e4df;
  --color-text-dim: #8a8580;
  --color-text-dark: #1a1918;
  --color-accent: #c4a87c;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Libre Baskerville', Georgia, serif;

  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-slow: 2s;
  --duration-medium: 1.2s;
  --duration-fast: 0.6s;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hide vertical scrollbar only, keep horizontal for carousel */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Carousel keeps its horizontal scrollbar */
.releases-carousel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.releases-carousel::-webkit-scrollbar {
  height: 4px !important;
  display: block !important;
}

.releases-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.releases-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ============================================
   Entry Gate
   ============================================ */
.entry-gate {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-gate.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-smooth);
}

.entry-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s var(--ease-smooth);
  animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(232, 228, 223, 0.2),
                0 0 40px rgba(232, 228, 223, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(232, 228, 223, 0.4),
                0 0 60px rgba(232, 228, 223, 0.2),
                0 0 80px rgba(232, 228, 223, 0.1);
  }
}

.entry-button:hover {
  transform: scale(1.08);
  animation-play-state: paused;
  box-shadow: 0 0 40px rgba(232, 228, 223, 0.5),
              0 0 80px rgba(232, 228, 223, 0.3);
}

.entry-button svg {
  width: 22px;
  height: 22px;
  color: var(--color-bg);
  margin-left: 4px;
}

/* ============================================
   Splash Screen - Simple Fade
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: splashFadeOut 2s ease-in-out 6s forwards;
}

.splash-brand {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.25em;
  color: var(--color-text);
  opacity: 0;
}

.splash.active .splash-brand {
  animation: brandFadeInOut 6s ease-in-out forwards;
}

@keyframes brandFadeInOut {
  0% { opacity: 0; }
  40% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes splashFadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Quote after splash */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 1;
}

.quote-overlay.active {
  animation: quoteOverlayFade 12s ease-in-out forwards;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--color-text);
  max-width: none;
  line-height: 1.4;
  opacity: 0;
}

.quote-overlay.active .quote-text {
  animation: quoteTextFadeIn 3s ease-in-out forwards, quoteTextFadeOut 3s ease-in-out 6s forwards;
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--color-text-dim);
  margin-top: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0;
}

.quote-overlay.active .quote-author {
  animation: quoteTextFadeIn 3s ease-in-out 0.5s forwards, quoteTextFadeOut 3s ease-in-out 6.5s forwards;
}

@keyframes quoteOverlayFade {
  0% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@keyframes quoteTextFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes quoteTextFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
}

p {
  color: var(--color-text-dim);
  max-width: 42ch;
  font-size: 0.9375rem;
  line-height: 1.85;
}

p + p {
  margin-top: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

a:hover {
  opacity: 0.6;
}

/* ============================================
   Navigation - Always dark, thin, fixed
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  color: var(--color-text);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: max(100vh, 56.25vw);
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 12vh 3rem 22vh;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--ease-smooth) 12s forwards;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10, 10, 11, 0.75) 0%,
    rgba(10, 10, 11, 0.4) 40%,
    rgba(10, 10, 11, 0.1) 100%
  );
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  opacity: 0;
  animation: contentUp var(--duration-medium) var(--ease-smooth) 12.5s forwards;
}

@keyframes contentUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-line {
  width: 50px;
  height: 1px;
  background: var(--color-accent);
  margin: 1.5rem 0;
  opacity: 0;
  animation: lineGrow var(--duration-medium) var(--ease-smooth) 13s forwards;
}

@keyframes lineGrow {
  from { opacity: 0; width: 0; }
  to { opacity: 0.7; width: 50px; }
}

.hero p {
  font-size: 0.875rem;
  max-width: 38ch;
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  }
}

/* Light hero text (default) */
.hero--light {
  color: var(--color-text);
}

.hero--light p {
  color: rgba(232, 228, 223, 0.7);
}

/* Dark hero text (for light backgrounds) */
.hero--dark {
  color: var(--color-text-dark);
}

.hero--dark p {
  color: rgba(26, 25, 24, 0.65);
}

.hero--dark .hero-line {
  background: var(--color-text-dark);
}

/* ============================================
   Content Sections
   ============================================ */
.section {
  padding: 12vh 3rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.section--dark {
  background: var(--color-bg);
  min-height: max(100vh, 56.25vw);
  padding: 20vh 3rem;
}

.section--image {
  position: relative;
  min-height: max(100vh, 56.25vw);
}

/* Text capsule for readability */
.text-capsule {
  background: rgba(10, 10, 11, 0.85);
  padding: 2.5rem 3rem;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 11, 0.7) 0%,
    rgba(10, 10, 11, 0.4) 50%,
    rgba(10, 10, 11, 0.2) 100%
  );
}

.section--right .section-bg::after {
  background: linear-gradient(
    to left,
    rgba(10, 10, 11, 0.7) 0%,
    rgba(10, 10, 11, 0.4) 50%,
    rgba(10, 10, 11, 0.2) 100%
  );
}

.section--image h1,
.section--image h2,
.section--image h3,
.section--image p,
.section--image a {
  color: var(--color-text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.section--image h3 {
  color: var(--color-text-dim);
}

.section--image p {
  color: rgba(232, 228, 223, 0.8);
}

.section-content {
  position: relative;
  z-index: 10;
  max-width: 520px;
}

/* Alternating alignment */
.section--left .section-content {
  margin-right: auto;
}

.section--right .section-content {
  margin-left: auto;
  text-align: right;
}

.section--right p {
  margin-left: auto;
}

.section--center {
  justify-content: center;
  text-align: center;
}

.section--center .section-content {
  max-width: 600px;
}

.section--center p {
  margin: 0 auto;
}

/* ============================================
   Catalog Section - Full Width
   ============================================ */
#catalog {
  overflow: visible;
}

#catalog .section-content {
  max-width: 100%;
  width: 100%;
  overflow: visible;
}

#catalog .text-capsule {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 3rem;
  padding-right: 3rem;
  border-radius: 4px;
}

/* ============================================
   Catalog Carousel
   ============================================ */
.releases-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: scroll;
  overflow-y: visible;
  padding: 2rem 0 3rem;
  margin: 2rem 0 0;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}


.release-tile {
  background: rgba(18, 17, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 1.5rem;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  color: var(--color-text);
}

.release-tile-cover {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.release-tile--upcoming {
  opacity: 0.7;
}

.release-tile-date {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.5rem;
}

.release-tile-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.release-tile-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-dim);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.release-tile-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
}


.release-tile-description {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-text-dim);
  max-width: none;
}

/* Audio Player in Tiles */
.release-tile-player {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.play-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.play-button svg {
  width: 12px;
  height: 12px;
  fill: var(--color-text);
  margin-left: 2px;
}

.play-button.playing svg {
  margin-left: 0;
}

.player-progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.player-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.1s linear;
}

.player-time {
  font-size: 0.6875rem;
  color: var(--color-text-dim);
  min-width: 32px;
  text-align: right;
}

.release-tile--upcoming .release-tile-player {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================
   Platforms Grid
   ============================================ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

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

.platform-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.platform-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.platform-icon {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.platform-tile span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(232, 228, 223, 0.5);
  text-align: center;
}

.platforms-more {
  margin-top: 3.5rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  opacity: 0.6;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-form textarea {
  resize: vertical;
  min-height: 200px;
}

.contact-form button {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.5rem 3rem;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-smooth);
  width: 100%;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 2rem 3rem;
  text-align: center;
  background: var(--color-bg);
}

.footer p {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  opacity: 0.5;
  max-width: none;
}

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

/* ============================================
   Legal Page
   ============================================ */
.legal-page {
  padding: 15vh 3rem 10vh;
  max-width: 550px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 4rem;
}

.legal-page h2 {
  font-size: 1rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p {
  font-size: 0.875rem;
}

.legal-page ul {
  list-style: none;
  margin-top: 0.75rem;
}

.legal-page li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.legal-page a {
  color: var(--color-accent);
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 14rem);
  line-height: 0.85;
  color: rgba(232, 228, 223, 0.025);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-content {
  position: relative;
  z-index: 1;
}

.error-content p {
  margin: 1rem 0 1.5rem;
}

.error-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 1.5rem;
  }

  .nav--scrolled {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-logo {
    font-size: 1.125rem;
  }

  .hero {
    padding: 15vh 1.5rem;
  }

  .section {
    padding: 10vh 1.5rem;
    min-height: auto;
  }

  .section--right .section-content {
    margin-left: 0;
    text-align: left;
  }

  .section--right p {
    margin-left: 0;
  }

  .release-tile {
    padding: 2rem;
  }

  .legal-page {
    padding: 12vh 1.5rem 8vh;
  }
}
