/* Motion Graphics, Glassware Animations & Scroll Timelines */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

.frame-path {
  fill: none;
  stroke: url(#goldStroke);
  stroke-width: 1.2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-frame 2.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0.65;
}

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

.logo-crop {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: hero-rise 1.4s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.logo-crop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(249, 229, 164, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen-sweep 7s 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen-sweep {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge-row {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 1.2s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

/* Interactive Pouring Glasses Showcase */
.glasses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 3.25rem);
  max-width: 52rem;
  margin: clamp(2.25rem, 5vw, 4rem) auto 0;
}

.glass {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.65rem) clamp(0.65rem, 1.8vw, 1.25rem);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.06) 0%, rgba(12, 10, 6, 0.65) 100%);
  border: 1px solid rgba(217, 164, 65, 0.2);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  user-select: none;
}

.glass:hover,
.glass.is-active {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: 0 18px 40px -16px rgba(217, 164, 65, 0.28);
}

.glass svg {
  width: clamp(5.2rem, 13vw, 8.2rem);
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.pour-stream {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  opacity: 0;
}

.go .pour-stream {
  animation: stream-drop 2.2s cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

.glass:nth-child(2) .pour-stream { animation-delay: 0.32s; }
.glass:nth-child(3) .pour-stream { animation-delay: 0.64s; }

@keyframes stream-drop {
  0% { stroke-dashoffset: 220; opacity: 0.9; }
  65% { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: -220; opacity: 0; }
}

.outline {
  fill: rgba(217, 164, 65, 0.03);
  stroke: url(#goldStroke);
  stroke-width: 2.2;
}

.glass-rim {
  fill: none;
  stroke: rgba(249, 229, 164, 0.55);
  stroke-width: 1.2;
}

.liquid {
  transform: translateY(250px);
  transition: transform 2.7s cubic-bezier(0.22, 0.8, 0.25, 1);
}

.go .liquid { transform: translateY(var(--level)); }
.glass:nth-child(2) .liquid { transition-delay: 0.32s; }
.glass:nth-child(3) .liquid { transition-delay: 0.64s; }

.wave { animation: wave-drift 5.5s linear infinite; }
.wave-back { animation: wave-drift-reverse 7.5s linear infinite; opacity: 0.45; }
.glass:nth-child(2) .wave { animation-duration: 7s; }
.glass:nth-child(3) .wave { animation-duration: 8.5s; }

@keyframes wave-drift { to { transform: translateX(-120px); } }
@keyframes wave-drift-reverse {
  from { transform: translateX(-120px); }
  to { transform: translateX(0); }
}

.bubble {
  fill: rgba(255, 248, 220, 0.65);
  animation: bubble-rise 3.6s ease-in infinite;
}

.bubble.b2 { animation-delay: 1.1s; animation-duration: 4.2s; }
.bubble.b3 { animation-delay: 2.1s; animation-duration: 3.1s; }

@keyframes bubble-rise {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  30% { opacity: 0.75; }
  100% { transform: translateY(-115px) scale(1.15); opacity: 0; }
}

.glass h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  margin-top: 0.95rem;
  color: var(--gold-hi);
  line-height: 1.25;
}

.glass-tag {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scroll-Driven Entry Effects */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes scroll-reveal {
      from { opacity: 0; transform: translateY(28px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .reveal-on-scroll {
      animation: scroll-reveal auto cubic-bezier(0.22, 1, 0.36, 1) backwards;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

.reveal-fallback {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fallback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 38rem) {
  .glasses {
    grid-template-columns: 1fr;
    max-width: 19.5rem;
  }
  .glass {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 1rem 1.15rem;
  }
  .glass h2 { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-crop,
  .hero-badge-row,
  .frame-path,
  .status-dot,
  .logo-crop::after,
  .wave,
  .wave-back,
  .bubble,
  .pour-stream {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .frame-path { stroke-dashoffset: 0; }
  .liquid { transition: none; transform: translateY(var(--level)); }
  html { scroll-behavior: auto; }
}

body.motion-paused .status-dot,
body.motion-paused .logo-crop::after,
body.motion-paused .wave,
body.motion-paused .wave-back,
body.motion-paused .bubble {
  animation-play-state: paused !important;
}
