/* === LOADER SCREEN === */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #0D1529 0%, #1B305C 50%, #162347 100%);
}

/* === HERO SCENE === */
.hero-scene {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: var(--perspective, 1200px);
}

.hero-scene__darkness {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 10;
  pointer-events: none;
}

.hero-scene__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 5;
}

/* --- Hero Bottles Carousel --- */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.hero-carousel__track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: clamp(40px, 8vw, 100px);
  padding: 0 5vw;
  will-change: transform;
  animation: carouselSlide 35s linear infinite;
}

.hero-carousel__bottle {
  height: clamp(350px, 55vh, 600px);
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)) brightness(0.6);
  opacity: 0.15;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

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

.hero-scene__content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 3vh, 28px);
  width: min(calc(100% - 40px), 900px);
}

.hero-scene__eyebrow {
  opacity: 0;
}

.hero-scene__headline {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: var(--text-display, clamp(4rem, 12vw, 10rem));
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  overflow: hidden;
}

.hero-scene__line {
  display: block;
  overflow: hidden;
}

.hero-scene__line .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-scene__rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-rose, #DA1B5C), transparent);
}

.hero-scene__sub {
  font-size: var(--text-body-lg, 1.125rem);
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.6;
  opacity: 0;
}

.hero-scene__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
}


/* === MARQUEE === */
.marquee-section {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 0;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-serif, serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.15);
  padding: 0 clamp(20px, 4vw, 60px);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.marquee-item--dot {
  font-style: normal;
  font-size: 0.6em;
  color: var(--color-accent-rose, #DB1B5C);
  opacity: 0.5;
}

/* === PHILOSOPHY WORD REVEAL === */
.philosophy-scene {
  position: relative;
  min-height: 300vh;
  padding: 0;
}

.philosophy-scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 80px);
}

.philosophy-scene__eyebrow {
  margin-bottom: 32px;
}

.philosophy-scene__text {
  font-family: var(--font-serif, serif);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  color: rgba(255,255,255,0.08);
}

.philosophy-scene__text .word {
  display: inline;
  transition: color 0.4s ease;
}

.philosophy-scene__text .word.is-active {
  color: #fff;
}

.philosophy-scene__text .word.is-past {
  color: var(--color-accent-rose, #DB1B5C);
}

/* === BOTTLE CAROUSEL (Centered 3D) === */
.bottle-showcase {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0;
  overflow: hidden;
}

.bottle-showcase__header {
  text-align: center;
  margin-bottom: clamp(24px, 4vh, 48px);
  padding: 0 24px;
}

.bottle-showcase__title {
  font-family: var(--font-serif, serif);
  font-size: var(--text-display-sm, clamp(3rem, 8vw, 6rem));
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 16px;
}

/* --- Carousel Stage --- */
.bottle-carousel {
  position: relative;
  height: clamp(600px, 88vh, 960px);
  perspective: 1200px;
}

.bottle-carousel__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* --- Individual Slide --- */
.bottle-slide {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 100px);
  will-change: transform, opacity;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.bottle-slide__image {
  height: clamp(440px, 72vh, 780px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
  pointer-events: none;
}

/* --- Info Panel (below active bottle) --- */
.bottle-carousel__info {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max(280px, 30vw);
}

.bottle-carousel__country {
  font-family: var(--font-sans, sans-serif);
  font-size: var(--text-caption, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-rose, #DA1B5C);
}

.bottle-carousel__name {
  font-family: var(--font-serif, serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

.bottle-carousel__desc {
  font-size: var(--text-body-sm, 0.875rem);
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  max-width: 420px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Footer --- */
.bottle-showcase__footer {
  text-align: center;
  margin-top: clamp(32px, 5vh, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}

.bottle-showcase__count {
  font-size: var(--text-body-sm, 0.875rem);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* === STATS SCENE === */
.stats-scene {
  padding: clamp(80px, 15vh, 160px) 0;
  position: relative;
  overflow: hidden;
}

.stats-scene__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 60px);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stat-item__number {
  font-family: var(--font-serif, serif);
  font-size: var(--text-display, clamp(4rem, 12vw, 10rem));
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: var(--text-caption, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* === TASTING SCENE (clip-path reveal) === */
.tasting-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tasting-scene__image-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 42% 0 42%);
}

.tasting-scene__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.tasting-scene__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tasting-scene__title {
  font-family: var(--font-serif, serif);
  font-size: var(--text-huge, clamp(2.5rem, 6vw, 5rem));
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tasting-scene__body {
  font-size: var(--text-body, 1rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* === TRADE SCENE === */
.trade-scene {
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.trade-scene__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.trade-scene__title {
  font-family: var(--font-serif, serif);
  font-size: var(--text-huge, clamp(2.5rem, 6vw, 5rem));
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}

.trade-scene__body {
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 32px;
}

.trade-scene__features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trade-feature {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-body-sm, 0.875rem);
  position: relative;
  padding-left: 24px;
  transition: color 0.4s ease, padding-left 0.4s ease;
}

.trade-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-rose, #DA1B5C);
  opacity: 0.5;
  transition: opacity 0.4s ease, box-shadow 0.4s ease;
}

.trade-feature:hover {
  color: #fff;
  padding-left: 32px;
}

.trade-feature:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px rgba(218,27,92,0.4);
}

/* === FOOTER SPACER === */
.footer-spacer {
  height: 100vh;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-scene__headline {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }
  .stats-scene__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .stat-item__number {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .trade-scene__grid {
    grid-template-columns: 1fr;
  }
  .bottle-carousel {
    height: clamp(500px, 75vh, 720px);
  }
  .bottle-slide__image {
    height: clamp(360px, 60vh, 540px);
  }
  .footer-spacer {
    display: none;
  }
}

/* ============================================
   WEB-ART EFFECTS
   ============================================ */

/* --- Particle Constellation Canvas --- */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* --- Scroll-Reactive Background Gradient --- */
.main-content {
  transition: background-color 1.2s ease;
}

/* --- Magnetic Button Effect --- */
.btn {
  will-change: transform;
}

/* --- Text Scramble --- */
.eyebrow[data-scramble-done] {
  /* no extra styling needed, just a marker */
}

/* --- Slot Machine Stats Enhancement --- */
.stat-item__number {
  will-change: contents;
}

/* --- Reduced Motion Override --- */
@media (prefers-reduced-motion: reduce) {
  .hero-particles-canvas {
    display: none;
  }
  .btn {
    will-change: auto;
  }
}
