/* ============================================================
   INTERACTIVE POLISH
============================================================ */

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  overflow: hidden;
  padding: 28px 0;
  white-space: nowrap;
  background: var(--surface-0);
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee 48s linear infinite;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(42px, 6.5vw, 96px);
  letter-spacing: -0.02em;
  color: var(--ink-100);
  line-height: 1;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track span::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold-300);
  border-radius: 50%;
  display: inline-block;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Word reveal ---------- */
.word-reveal { overflow: hidden; }
.word-reveal .word {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}
.word-reveal .word:nth-child(1) { transition-delay: 40ms; }
.word-reveal .word:nth-child(2) { transition-delay: 100ms; }
.word-reveal .word:nth-child(3) { transition-delay: 160ms; }
.word-reveal .word:nth-child(4) { transition-delay: 220ms; }
.word-reveal .word:nth-child(5) { transition-delay: 280ms; }
.word-reveal .word:nth-child(6) { transition-delay: 340ms; }
.word-reveal.w-in .word { transform: translateY(0); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 500;
  pointer-events: none;
}
.scroll-progress .fill {
  height: 100%;
  background: var(--gold-300);
  width: 0%;
  transition: width 120ms linear;
}

/* ---------- Running clock / number ticker ---------- */
.house-status {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-500);
  z-index: 80;
  display: flex;
  gap: 20px;
  pointer-events: none;
  white-space: nowrap;
}
.house-status .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold-300);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-soft 2.4s infinite;
  vertical-align: middle;
}
@media (max-width: 900px) { .house-status { display: none; } }

/* ---------- Interactive room card: slow zoom + name slide ---------- */
.room-card .imgwrap img {
  transition: transform 1400ms cubic-bezier(.2,.7,.1,1), filter 900ms;
}
.room-card:hover .imgwrap img { transform: scale(1.08); filter: brightness(.88); }
.room-card .content { transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.room-card:hover .content { transform: translateY(-6px); }

/* Reveal tag pill on hover */
.room-card .tag {
  transition: background 300ms, color 300ms;
}
.room-card:hover .tag { background: var(--gold-300); color: var(--surface-0); }

/* ---------- Section index — big floating number ---------- */
.sec-float-num {
  position: absolute;
  right: 0;
  top: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(200px, 26vw, 400px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--surface-line);
  letter-spacing: -0.05em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1200ms, transform 1200ms cubic-bezier(.2,.8,.2,1);
}
.reveal.in .sec-float-num { opacity: 1; transform: translateY(0); }

/* ---------- Hover cursor state ---------- */
.cursor-ring.hover {
  width: 64px !important;
  height: 64px !important;
  border-color: var(--gold-300) !important;
  mix-blend-mode: difference;
}

/* ---------- Quote mark on dossier ---------- */
.dossier-body blockquote::before {
  content: "“";
  font-family: "Cormorant Garamond", serif;
  font-size: 200px;
  line-height: 0.8;
  color: var(--gold-300);
  float: left;
  margin: -20px 20px -20px -12px;
  opacity: .5;
}

/* ---------- Sticky image stack (parallax feel) ---------- */
.membership-img img {
  transition: transform 1800ms cubic-bezier(.2,.7,.1,1), filter 900ms;
}
.membership:hover .membership-img img {
  transform: scale(1.08) translateY(-10px);
  filter: brightness(.92) saturate(1.05);
}

/* ---------- Bottle hover glow ---------- */
.bottle {
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), border-color 300ms, box-shadow 500ms;
}
.bottle:hover {
  box-shadow: 0 30px 80px -40px rgba(110,85,40,.3);
  transform: translateY(-4px);
}

/* ---------- Event card tilt on hover ---------- */
.event-card {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* ---------- Nav link underline anim ---------- */
.nav-link {
  position: relative;
  overflow: hidden;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gold-300);
  transform: translateX(-101%);
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after { transform: translateX(0); }
.nav-link.active::after { transform: translateX(0); }

/* ---------- Drag-scroll tag ---------- */
.drag-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.drag-tag svg { opacity: .5; }

/* ---------- Hero image subtle ken burns ---------- */
.hero-bg img {
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1.04) translateY(0); }
  100% { transform: scale(1.12) translateY(-12px); }
}

/* Disable when parallax JS hijacks it */
.hero.scrolled .hero-bg img { animation: none; }

/* ---------- Magnetic button — ring on hover ---------- */
.btn {
  position: relative;
}
.btn[data-magnetic]::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 400ms;
}
.btn[data-magnetic]:hover::before { border-color: var(--gold-400); }

/* ---------- Collection grid reveal stagger ---------- */
.coll-grid .bottle {
  opacity: 0;
  transform: translateY(30px);
  animation: bottleIn 900ms cubic-bezier(.2,.8,.2,1) forwards;
}
.coll-grid .bottle:nth-child(1) { animation-delay: 60ms; }
.coll-grid .bottle:nth-child(2) { animation-delay: 140ms; }
.coll-grid .bottle:nth-child(3) { animation-delay: 220ms; }
.coll-grid .bottle:nth-child(4) { animation-delay: 300ms; }
.coll-grid .bottle:nth-child(5) { animation-delay: 380ms; }
.coll-grid .bottle:nth-child(6) { animation-delay: 460ms; }
@keyframes bottleIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Horizontal rule with center label ---------- */
.rule-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: var(--s-10) 0;
  color: var(--ink-500);
}
.rule-label::before,
.rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--surface-line);
}
.rule-label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
