/* ==========================================================================
   CELESTE VEYRA - DESIGN SYSTEM & STYLE SHEET
   Created by EP Studio (2026)
   ========================================================================== */

/* --- Fonts & Importing --- */
@font-face {
  font-family: 'Cesso';
  src: url('./assets/cessotest-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Variables --- */
:root {
  /* Color Palette */
  --background: #07090A;
  --background-soft: #101314;
  --text-main: #E8E8E2;
  --text-muted: #9A9D96;
  --accent: #A7FF3D;
  --accent-soft: #7ACC2D;
  --border: rgba(167, 255, 61, 0.35);
  --border-dim: rgba(167, 255, 61, 0.15);
  --flower-white: #D8D8D2;
  
  /* Typography */
  --font-editorial: 'Cesso', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Grotesk', 'Courier New', monospace;
  
  /* Timing & Easing */
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-mono);
  overflow-x: hidden;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
}

/* --- Grain Overlay (Cinematic Film Jitter) --- */
.grain-overlay {
  position: fixed;
  top: -50px;
  left: -50px;
  width: calc(100vw + 100px);
  height: calc(100vh + 100px);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 9999;
  animation: grain-jitter 0.25s steps(4) infinite;
}

@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, -2%); }
  50% { transform: translate(-2%, 1%); }
  75% { transform: translate(1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* --- Canvas Particle Layer --- */
.petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

/* --- Editorial Sidebar Info (Hidden on Mobile) --- */
.editorial-edge {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  mix-blend-mode: difference;
  display: none;
}

.left-edge {
  left: 2rem;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}

.right-edge {
  right: 2rem;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
}

.edge-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .editorial-edge {
    display: block;
  }
}

/* --- Common Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
  z-index: 3;
  padding: 8rem 0;
  background-color: var(--background);
}

.section-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-editorial);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 4rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--background);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--background);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(167, 255, 61, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: rgba(232, 232, 226, 0.2);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: rgba(232, 232, 226, 0.05);
}

.btn-arrow {
  margin-left: 0.75rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Neon Glow Animations */
.btn-neon-glow {
  box-shadow: 0 0 0 rgba(167, 255, 61, 0);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn-neon-glow:hover {
  box-shadow: 0 0 15px rgba(167, 255, 61, 0.5);
  border-color: var(--accent);
}

/* Text glow hover */
.btn-neon-glow-text {
  color: var(--text-muted);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.btn-neon-glow-text:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(167, 255, 61, 0.6);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.9) 0%, rgba(7, 9, 10, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232, 232, 226, 0.03);
  transition: background var(--transition-fast), padding var(--transition-fast);
  padding: 1.5rem 0;
}

.site-header.scrolled {
  padding: 1rem 0;
  background-color: rgba(7, 9, 10, 0.95);
  border-bottom: 1px solid rgba(167, 255, 61, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item:hover::after {
  width: 100%;
}

.btn-header {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
  border-color: var(--border);
  color: var(--accent);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle .bar {
  width: 100%;
  height: 1.5px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: #000;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.4) contrast(1.1);
  z-index: 1;
  transform: scale(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, var(--background) 90%);
  z-index: 2;
}

.corner-detail {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  z-index: 4;
  display: none;
}

.top-left { top: 40px; left: 40px; }
.top-right { top: 40px; right: 40px; }
.bottom-left { bottom: 40px; left: 40px; }
.bottom-right { bottom: 40px; right: 40px; }

@media (min-width: 1025px) {
  .corner-detail {
    display: block;
  }
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  position: relative;
}

.hero-branding {
  margin-top: 5rem;
  position: relative;
  width: 100%;
  max-width: 900px;
}

.oval-container {
  position: relative;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}

.oval-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-height: 280px;
  pointer-events: none;
  overflow: visible;
}

.oval-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  opacity: 0.75;
  filter: drop-shadow(0 0 5px rgba(167, 255, 61, 0.4));
  animation: draw-oval 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

@keyframes draw-oval {
  to {
    stroke-dashoffset: 0;
  }
}

.artist-name {
  font-family: var(--font-editorial);
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
  text-shadow: 0 0 20px rgba(167, 255, 61, 0.2);
  margin: 0;
}

.artist-subtitle {
  display: block;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--text-main);
  text-transform: uppercase;
  margin-top: 1rem;
}

.hero-footer {
  margin-top: 4rem;
  max-width: 600px;
}

.positioning-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* --- About Section --- */
.about-section {
  background-color: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 769px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
  }
}

.about-image-wrapper {
  position: relative;
  width: 100%;
}

.about-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.85);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.03);
}

.about-image-border {
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  right: 1.5rem;
  bottom: -1.5rem;
  border: 1px solid var(--border);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper:hover .about-image-border {
  transform: translate(8px, -8px);
}

.about-image-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2rem;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  position: relative;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.manifesto-signature {
  margin-top: 3rem;
  border-top: 1px solid rgba(232, 232, 226, 0.1);
  padding-top: 2rem;
}

.sig-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sig-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
}

/* --- Album Section --- */
.album-section {
  background-color: var(--background-soft);
  border-top: 1px solid rgba(167, 255, 61, 0.05);
  border-bottom: 1px solid rgba(167, 255, 61, 0.05);
}

.album-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .album-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
  }
}

/* Artwork & Record Slide-Out Effect */
.album-art-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.album-artwork-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1/1;
  margin-bottom: 3.5rem;
}

.album-artwork-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 5;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  background-color: var(--background);
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 6;
  border: 1px solid rgba(232, 232, 226, 0.05);
}

.vinyl-record {
  position: absolute;
  top: 2%;
  left: 2%;
  width: 96%;
  height: 96%;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1112 0%, #050607 100%);
  z-index: 4;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-grooves {
  position: absolute;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.01) 2px,
    rgba(0, 0, 0, 0.2) 3px,
    rgba(0, 0, 0, 0.2) 5px
  );
}

.vinyl-label {
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid #1a1e20;
}

.vinyl-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--background);
  border-radius: 50%;
  border: 1px solid #000;
}

/* Vinyl states */
/* On hover, slide vinyl halfway out */
.album-artwork-wrapper:hover .vinyl-record {
  transform: translateX(45%) rotate(180deg);
}

/* When active/playing, slide out and spin */
.album-artwork-wrapper.playing .vinyl-record {
  transform: translateX(45%);
  animation: vinyl-spin 4s linear infinite forwards;
}

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

.album-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  opacity: 0;
  filter: blur(35px);
  z-index: 1;
  transition: opacity 0.6s ease;
}

.album-artwork-wrapper:hover .album-glow,
.album-artwork-wrapper.playing .album-glow {
  opacity: 0.12;
}

/* Audio Player UI */
.music-player-container {
  width: 100%;
  max-width: 440px;
  background-color: rgba(232, 232, 226, 0.02);
  border: 1px solid rgba(232, 232, 226, 0.05);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.player-info {
  margin-bottom: 1.5rem;
}

.now-playing-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.player-track-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.2;
}

.player-track-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.waveform-container {
  width: 100%;
  height: 48px;
  margin-bottom: 1.5rem;
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.waveform-canvas {
  width: 100%;
  height: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.time-display {
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 30px;
}

.current-time { text-align: left; }
.total-time { text-align: right; }

.progress-bar-container {
  flex-grow: 1;
  height: 4px;
  background-color: rgba(232, 232, 226, 0.1);
  position: relative;
  cursor: pointer;
}

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

.progress-handle {
  width: 10px;
  height: 10px;
  background-color: var(--text-main);
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-bar-container:hover .progress-handle {
  opacity: 1;
}

.player-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.player-btn:hover {
  color: var(--accent);
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--text-main);
  color: var(--background);
}

.play-btn:hover {
  background-color: var(--accent);
  color: var(--background);
}

.hidden {
  display: none !important;
}

/* Tracklist Column */
.album-tracks-column {
  width: 100%;
}

.tracklist-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(232, 232, 226, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.tracklist-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tracklist {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.track-item {
  display: flex;
  align-items: center;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(232, 232, 226, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.track-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 40px;
  font-weight: 600;
}

.track-title-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  flex-grow: 1;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.track-neon-indicator {
  width: 0;
  height: 2px;
  background-color: var(--accent);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent);
}

.track-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tracklist interactions */
.track-item:hover .track-title-name {
  color: var(--accent);
  padding-left: 0.5rem;
}

.track-item:hover .track-neon-indicator {
  width: 100%;
}

.track-item.active {
  background-color: rgba(167, 255, 61, 0.02);
}

.track-item.active .track-title-name {
  color: var(--accent);
  font-weight: 500;
}

.track-item.active .track-num {
  color: var(--accent);
}

.track-item.active .track-neon-indicator {
  width: 100%;
  background-color: var(--accent);
}

.album-purchase-options {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.buy-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.buy-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.buy-link {
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.buy-link:hover {
  color: var(--accent);
}

.divider {
  color: rgba(232, 232, 226, 0.2);
  font-size: 0.8rem;
}

/* --- Gallery Section --- */
.gallery-section {
  background-color: var(--background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.gallery-item.size-tall {
  aspect-ratio: 3/4;
}

.gallery-item.size-wide {
  aspect-ratio: 4/3;
}

@media (min-width: 900px) {
  .gallery-item.size-tall {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
  
  .gallery-item.size-wide {
    grid-column: span 2;
    aspect-ratio: auto;
    height: 400px;
  }
}

.gallery-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.8);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform;
}

.gallery-overlay-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 10, 0.9) 100%);
  opacity: 0.6;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.gallery-neon-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  mix-blend-mode: color;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 4;
  opacity: 0;
  transform: translateY(15px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.caption-index {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.caption-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-main);
}

/* Gallery Hover Interactions */
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
  filter: grayscale(0.5) brightness(0.9);
}

.gallery-item:hover .gallery-neon-tint {
  opacity: 0.15;
}

.gallery-item:hover .gallery-overlay-effect {
  opacity: 0.85;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tour Dates Section --- */
.tour-section {
  background-color: var(--background-soft);
  border-top: 1px solid rgba(167, 255, 61, 0.05);
}

.tour-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 900px) {
  .tour-layout {
    grid-template-columns: 1fr 1.8fr;
    gap: 6rem;
  }
}

.tour-header-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tour-notes {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.note-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent);
}

.tour-list-column {
  width: 100%;
}

.tour-table {
  display: flex;
  flex-direction: column;
}

.tour-row {
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid rgba(167, 255, 61, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.tour-row::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.4s ease;
  box-shadow: 0 0 8px var(--accent);
}

.tour-row:hover::after {
  width: 100%;
}

.tour-row:hover {
  background-color: rgba(167, 255, 61, 0.01);
}

.tour-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  flex-shrink: 0;
  text-align: center;
}

.tour-day {
  font-family: var(--font-editorial);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.tour-month {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.tour-location-col {
  flex-grow: 1;
  padding-left: 2rem;
}

.tour-city {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.2;
}

.tour-venue {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tour-status-col {
  width: 130px;
  text-align: right;
  padding-right: 1.5rem;
  display: none;
}

@media (min-width: 600px) {
  .tour-status-col {
    display: block;
  }
}

.tour-status {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.tour-status.sold-out {
  color: var(--text-muted);
  opacity: 0.5;
}

.tour-status.selling-fast {
  color: var(--accent);
  text-shadow: 0 0 5px rgba(167, 255, 61, 0.3);
}

.tour-action-col {
  flex-shrink: 0;
}

.btn-tour {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  color: var(--accent);
  background: transparent;
}

.btn-tour.disabled {
  border-color: rgba(232, 232, 226, 0.1);
  color: var(--text-muted);
  opacity: 0.4;
  pointer-events: none;
}

/* --- Newsletter Section --- */
.newsletter-section {
  background-color: var(--background);
  padding: 6rem 0 10rem 0;
}

.newsletter-box {
  background-color: var(--background-soft);
  border: 1px solid rgba(167, 255, 61, 0.15);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(167, 255, 61, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 5;
  max-width: 550px;
  width: 100%;
}

.newsletter-title {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 6vw, 3.8rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.newsletter-desc {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.5;
}

.newsletter-form {
  width: 100%;
}

.input-group {
  display: flex;
  border-bottom: 1px solid rgba(232, 232, 226, 0.2);
  padding-bottom: 0.75rem;
  transition: border-color var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--accent);
}

.newsletter-form input {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(232, 232, 226, 0.3);
}

.newsletter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.newsletter-btn:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.75rem;
  height: 15px;
  letter-spacing: 0.05em;
}

.form-feedback.success {
  color: var(--accent);
}

.form-feedback.error {
  color: #ff5c5c;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--background);
  border-top: 1px solid rgba(232, 232, 226, 0.03);
  padding: 6rem 0 3rem 0;
  position: relative;
  z-index: 5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 769px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-editorial);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-section-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(232, 232, 226, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 0.7rem;
  color: rgba(154, 157, 150, 0.5);
  letter-spacing: 0.05em;
}

.footer-creator {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.epstudio-link {
  text-decoration: none;
  font-weight: 600;
}

/* --- Reveal/Intersection Animations --- */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up-anim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up-anim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Responsive Navigation Layer --- */
@media (max-width: 900px) {
  /* Trigger layout details */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 9, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-item {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }
  
  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Audio player spacing */
  .album-grid {
    gap: 3.5rem;
  }
}
