:root {
  --red: #ef4444;
}

/* Keep off-screen decoration from widening the mobile visual viewport. */
html { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: 'Inter', system_ui, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

.y2k-title {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em;
}

/* Hero title also gets rich 3D treatment */

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ef4444;
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-link:hover:after { width: 100%; }

.perspective { perspective: 1800px; }

.card-3d {
  transition: transform 0.75s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.75s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.chrome-text {
  background: linear-gradient(90deg, #ffffff, #ef4444, #c0c0c0, #ffffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chrome-shimmer 3s linear infinite;
}

@keyframes chrome-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.section-title {
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ef4444, transparent);
}

.product-card {
  background: #111;
  border: 1px solid #27272a;
}

.product-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
}

.y2k-badge {
  background: linear-gradient(130deg, #ffffff 0%, #ffc9d8 28%, #ef4444 58%, #d4d4e8 85%, #fff 100%);
  color: #1a0005;
}

.butterfly-float {
  position: absolute;
  font-size: 2.25rem;
  opacity: 0.12;
  filter: drop-shadow(0 0 20px #ef4444);
  animation: butterfly-float-anim 18s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.butterfly-float.small {
  font-size: 1.35rem;
  opacity: 0.09;
}

@keyframes butterfly-float-anim {
  0% { transform: translate(0, 0) rotate(-25deg); }
  25% { transform: translate(18vw, -12vh) rotate(12deg); }
  50% { transform: translate(42vw, 8vh) rotate(-18deg); }
  75% { transform: translate(68vw, -22vh) rotate(25deg); }
  100% { transform: translate(120vw, -38vh) rotate(-8deg); }
}

/* Animated background butterflies like logo */
.butterfly-float svg .bg-wing-left,
.butterfly-float svg .bg-wing-right {
  transform-origin: 24px 18px;
  animation: bg-butterfly-flap 2.2s ease-in-out infinite alternate;
}
.butterfly-float.small svg .bg-wing-left,
.butterfly-float.small svg .bg-wing-right {
  animation-duration: 2.6s;
}
.butterfly-float svg .bg-wing-left { animation-delay: 0ms; }
.butterfly-float svg .bg-wing-right { animation-delay: 80ms; }

@keyframes bg-butterfly-flap {
  from { transform: rotate(-18deg); }
  to { transform: rotate(18deg); }
}

/* Extra subtle movement for background butterflies */
.butterfly-float {
  animation: butterfly-float-anim 18s linear infinite, butterfly-bob 3.2s ease-in-out infinite;
}
.butterfly-float.small {
  animation: butterfly-float-anim 18s linear infinite, butterfly-bob 4.1s ease-in-out infinite;
}

@keyframes butterfly-bob {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* Scroll-controlled pure CSS/JS butterfly fallback */
.butterfly-rive-fallback {
  width: 140px;
  height: 140px;
  position: relative;
}
.butterfly-rive-fallback .wing {
  position: absolute;
  width: 70px;
  height: 90px;
  background: linear-gradient(135deg, #f3f4f6, #d1d5db, #f3f4f6);
  border-radius: 50% 70% 40% 60%;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  transition: transform 0.1s linear;
  transform-origin: 30% 60%;
}
.butterfly-rive-fallback .wing.left { left: 0; transform: rotate(-38deg); }
.butterfly-rive-fallback .wing.right { right: 0; transform: rotate(38deg); }
.butterfly-rive-fallback .body {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 14px;
  height: 72px;
  background: #111;
  border-radius: 999px;
  box-shadow: 0 0 12px #ef4444;
}

.nav-scrolled {
  background: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(20px);
  border-bottom-color: #3f2a2a;
  box-shadow: 0 2px 28px rgba(239, 68, 68, 0.1), 0 1px 0 rgba(239, 68, 68, 0.2);
}

.nav-row { gap: 20px; }
.nav-actions { flex-shrink: 0; }
.nav-morph-slot {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  pointer-events: none;
}
.nav-morph-art {
  width: 80px;
  height: 80px;
  transform: scale(0.9);
  transform-origin: top left;
}
@media (max-width: 767px) {
  #navbar .nav-row { padding-inline: 12px; gap: 8px; }
  #navbar .nav-actions { gap: 6px; }
  #navbar #logo-butterfly-svg { width: 26px; height: 26px; }
  #navbar #brand-name { margin-left: 6px; }
  #navbar .audora-3d-text { font-size: 24px; letter-spacing: -1.5px; }
  #navbar .brand-subtitle { font-size: 8px; letter-spacing: 4px; }
  #navbar .nav-cart { min-width: 44px; min-height: 44px; justify-content: center; padding-inline: 10px; }
  .nav-morph-slot { width: 44px; height: 44px; flex-basis: 44px; }
  .nav-morph-art { transform: scale(0.55); }
}
@media (max-width: 359px) {
  #navbar .nav-row { padding-inline: 8px; gap: 4px; }
  #navbar .nav-actions { gap: 4px; }
  #navbar .audora-3d-text { font-size: 20px; }
  #navbar #logo-butterfly-svg { width: 22px; height: 22px; }
  #navbar .brand-subtitle { letter-spacing: 3px; }
  #navbar .nav-cart { gap: 4px; padding-inline: 8px; }
}

.modal {
  animation: modalPop 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Content must stay visible on touch devices, including after rotation. */
@media (max-width: 1023px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.chrome-border {
  position: relative;
}
.chrome-border:after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, #fff, #ef4444, #a1a1aa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price {
  font-feature-settings: "tnum";
}

/* ===================== 3D AUDORA LOGO + BUTTERFLY MORPH ===================== */
.logo-3d-wrapper {
  perspective: 1200px;
}

.audora-3d-text {
  display: inline-flex;
  font-weight: 900;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.audora-3d-text .letter {
  display: inline-block;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              text-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  /* Strong 3D extrusion + chrome Y2K effect */
  text-shadow:
    0 1px 0 #fff,
    0 2px 0 #c8102e,
    0 3px 0 #a00f26,
    0 4px 0 #7a0c1e,
    1px 1px 0 #fff,
    2px 2px 4px rgba(0,0,0,0.6),
    3px 3px 6px rgba(239, 68, 68, 0.5);
  -webkit-text-stroke: 0.6px rgba(255,255,255,0.35);
}

/* Extra metallic depth on letters */
.audora-3d-text .letter::before {
  content: attr(data-letter);
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  opacity: 0.15;
  transform: translateZ(8px);
  pointer-events: none;
}

/* Hover / active 3D state for the whole word */
.logo-3d-active .audora-3d-text {
  transform: rotateX(12deg) rotateY(-6deg) translateZ(8px);
}

.logo-3d-active .audora-3d-text .letter {
  text-shadow:
    0 1px 0 #fff,
    0 3px 0 #c8102e,
    0 6px 0 #a00f26,
    0 9px 1px #7a0c1e,
    2px 4px 8px rgba(0,0,0,0.7),
    4px 8px 18px rgba(239, 68, 68, 0.65);
  transform: translateZ(18px);
}

/* Individual letter pop when butterfly "activates" the title */
.logo-3d-active .audora-3d-text .letter:nth-child(1) { transform: translateZ(22px) rotateX(8deg) rotateY(4deg); transition-delay: 0ms; }
.logo-3d-active .audora-3d-text .letter:nth-child(2) { transform: translateZ(26px) rotateX(6deg) rotateY(-3deg); transition-delay: 40ms; }
.logo-3d-active .audora-3d-text .letter:nth-child(3) { transform: translateZ(30px) rotateX(10deg) rotateY(2deg); transition-delay: 80ms; }
.logo-3d-active .audora-3d-text .letter:nth-child(4) { transform: translateZ(28px) rotateX(5deg) rotateY(-5deg); transition-delay: 120ms; }
.logo-3d-active .audora-3d-text .letter:nth-child(5) { transform: translateZ(24px) rotateX(9deg) rotateY(3deg); transition-delay: 160ms; }
.logo-3d-active .audora-3d-text .letter:nth-child(6) { transform: translateZ(20px) rotateX(7deg) rotateY(-2deg); transition-delay: 200ms; }

/* Butterfly SVG styles + transition into title */
#logo-butterfly-svg {
  filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.7));
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.5s ease;
  transform-origin: 50% 45%;
  animation: logo-butterfly-idle 3.8s ease-in-out infinite;
}

/* Small constant movement when not interacting */
#logo-butterfly-svg:not(.logo-orbit-active):not(.logo-butterfly-morph):not(.logo-butterfly-reverse) {
  animation: logo-butterfly-idle 3.8s ease-in-out infinite;
}

.logo-orbit-active #logo-butterfly-svg {
  animation: none; /* stop idle when orbiting */
}

@keyframes logo-butterfly-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2.5px) rotate(1.5deg); }
  50% { transform: translateY(1px) rotate(-1deg); }
  75% { transform: translateY(-1.5px) rotate(0.8deg); }
}

/* Wing flap animation (subtle idle) */
#wing-left, #wing-right {
  transform-origin: 24px 18px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-3d-wrapper:hover #wing-left { transform: rotate(-22deg) scale(1.04); }
.logo-3d-wrapper:hover #wing-right { transform: rotate(22deg) scale(1.04); }

/* The key "butterfly transitions into the title" effect */
.logo-butterfly-morph #logo-butterfly-svg {
  transform: translateX(26px) scale(0.72) rotate(12deg);
  filter: drop-shadow(0 0 22px rgba(239, 68, 68, 0.95));
}

.logo-butterfly-morph #wing-left { transform: rotate(-48deg) scale(0.9) !important; }
.logo-butterfly-morph #wing-right { transform: rotate(48deg) scale(0.9) !important; }

/* When butterfly "becomes" the title, the text gets extra chrome lift */
.logo-butterfly-morph .audora-3d-text {
  transform: rotateX(18deg) rotateY(-8deg) translateZ(12px) !important;
}

.logo-butterfly-morph .audora-3d-text .letter {
  text-shadow:
    0 1px 0 #fff,
    0 4px 0 #c8102e,
    0 8px 0 #a00f26,
    0 12px 2px #7a0c1e,
    3px 6px 14px rgba(0,0,0,0.75),
    6px 12px 26px rgba(239, 68, 68, 0.7) !important;
}

/* Reverse: butterfly "emerges" from the word (for click interaction) */
.logo-butterfly-reverse #logo-butterfly-svg {
  transform: translateX(-8px) scale(1.15) rotate(-18deg);
}

/* Scroll morph adjustments for new logo structure */
.logo-scrolled #logo-butterfly-svg {
  transform: scale(0.8) translateY(1px);
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.logo-scrolled .audora-3d-text {
  font-size: 1.55rem;
  letter-spacing: 0.12em;
}

/* ===================== MORPH OVERLAY & SECTION TRANSITIONS ===================== */
#morph-overlay {
  transition: opacity 0.25s ease;
}

.morph-butterfly {
  animation: morph-butterfly-fly 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  filter: drop-shadow(0 0 60px #ef4444);
}

.morph-butterfly svg {
  width: 160px;
  height: 160px;
}

.morph-wing-left, .morph-wing-right {
  transform-origin: 24px 18px;
  animation: morph-wing-flap 0.6s ease-in-out infinite alternate;
}

@keyframes morph-butterfly-fly {
  0% {
    transform: scale(0.3) rotate(-30deg);
    opacity: 0;
  }
  40% {
    transform: scale(1.15) rotate(8deg);
    opacity: 1;
  }
  70% {
    transform: scale(0.95) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.95;
  }
}

@keyframes morph-wing-flap {
  from { transform: rotate(-28deg) scale(0.95); }
  to   { transform: rotate(28deg) scale(1.05); }
}

/* Cool morph reveal on target sections */
.section-morph-in {
  animation: section-morph-reveal 0.85s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes section-morph-reveal {
  from {
    opacity: 0.4;
    transform: scale(0.96) translateY(30px) rotateX(8deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0);
    filter: blur(0);
  }
}

/* ===================== BUTTERFLY ORBIT AROUND AUDORA ===================== */
.logo-orbit-active #logo-butterfly-svg {
  z-index: 10;
  transition: none !important;
  will-change: transform;
}

.logo-orbit-active .audora-3d-text {
  transition: filter 0.3s ease;
  filter: drop-shadow(0 10px 30px rgba(239, 68, 68, 0.4));
}

/* ===================== SOFT RED TINTED GLASS GLOW ON HOVER ===================== */
#bg-glow {
  opacity: 0;
  transition: opacity 0.2s ease;
}
body:hover #bg-glow {
  opacity: 1;
}

/* ===================== TEXT HOVER (restrained: colour only, no glow) ===================== */
.y2k-title .letter,
.y2k-title span:not(.chrome-text) {
  transition: color 0.2s ease;
}
.y2k-title .letter:hover,
.y2k-title span:not(.chrome-text):hover {
  color: #ef4444;
}
.nav-link:hover {
  color: #ef4444;
  transition: color 0.18s ease;
}
.product-card h3 .word:hover {
  color: #ef4444;
}

/* ===================== IMPROVED CART + BUTTERFLY ADD ANIMATION ===================== */
#cart-count {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease;
}
.cart-pop {
  animation: cart-pop-anim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cart-pop-anim {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Cart "hit" animation when butterfly arrives */
.cart-hit {
  animation: cart-hit-anim 0.65s ease;
}

@keyframes cart-hit-anim {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  25% { transform: scale(1.18) rotate(3deg); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0.25); }
  50% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.flying-butterfly {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 0 8px #ef4444);
  transition: transform 0.65s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.3s ease;
}

/* ===================== SCROLL MORPH: AUDORA → BUTTERFLY (top-right) ===================== */
#scroll-morph-logo {
  position: relative;
  width: 80px;
  height: 80px;
  pointer-events: none;
  /* hidden at top of page */
  opacity: 0;
  transition: opacity 0.45s ease;
}
#scroll-morph-logo.sml-visible {
  opacity: 1;
  pointer-events: none; /* decorative only, must never cover the cart button */
}

/* Each letter is a span absolutely positioned inside the container */
.sml-letter {
  position: absolute;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 13px;
  color: #ef4444;
  line-height: 1;
  text-shadow:
    0 1px 0 #fff,
    0 2px 0 #c8102e,
    1px 2px 4px rgba(0,0,0,0.6),
    2px 3px 8px rgba(239,68,68,0.5);
  -webkit-text-stroke: 0.4px rgba(255,255,255,0.3);
  transition:
    top    0.75s cubic-bezier(0.23, 1, 0.32, 1),
    left   0.75s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(0.23, 1, 0.32, 1),
    font-size 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.5s ease,
    filter 0.5s ease;
  will-change: top, left, transform;
  transform-origin: center center;
}

/* The butterfly SVG overlay that fades in once letters are in position */
#sml-butterfly-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
  filter: drop-shadow(0 0 10px rgba(239,68,68,0.8));
  pointer-events: none;
}

#scroll-morph-logo.sml-butterflied #sml-butterfly-svg {
  opacity: 1;
}

/* Wing flap idle for the small scroll butterfly */
#sml-wing-left, #sml-wing-right {
  transform-origin: 24px 20px;
  animation: sml-flap 2.4s ease-in-out infinite alternate;
}
#sml-wing-right {
  animation-delay: 0.12s;
}
@keyframes sml-flap {
  from { transform: rotate(-16deg) scaleY(0.96); }
  to   { transform: rotate(16deg)  scaleY(1.04); }
}

/* Gentle float for the whole thing */
#scroll-morph-logo.sml-butterflied {
  animation: sml-float 3.5s ease-in-out infinite;
}
@keyframes sml-float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  40%      { transform: translateY(-4px) rotate(1.2deg); }
  70%      { transform: translateY(2px) rotate(-0.8deg); }
}
/* ===================== INTERLUDE BUTTERFLY ===================== */
#ibl, #ibr {
  transform-origin: 24px 18px;
  animation: ibl-flap 3.2s ease-in-out infinite alternate;
}
#ibr { animation-delay: 0.09s; animation-direction: alternate-reverse; }
@keyframes ibl-flap {
  from { transform: rotate(-24deg) scaleY(0.94); }
  to   { transform: rotate(24deg)  scaleY(1.06); }
}


/* ===================== NEXT-SECTION PEEKS ===================== */
.next-section-peek {
  position: relative;
  height: 90px;
  overflow: hidden;
  margin: 0 -24px; /* bleed to edges */
  pointer-events: none;
}
.next-section-peek::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.3) 100%);
  z-index: 2;
  pointer-events: none;
}
.peek-next-label {
  text-align: center;
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(239,68,68,0.5);
  font-weight: 700;
  padding: 18px 0 6px;
  animation: peek-label-pulse 2.2s ease-in-out infinite;
}
@keyframes peek-label-pulse {
  0%,100% { opacity: 0.5; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(3px); }
}
.peek-content {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.peek-section-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
}
.peek-section-sub {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(239,68,68,0.4);
  font-weight: 700;
  margin-top: 4px;
}

/* ===================== HEADER ANIMATIONS ===================== */

/* Shared base */
.anim-letter {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* HERO Y2K REBORN: letters drop in from above on page load */
@keyframes hero-drop-in {
  to { opacity:1; transform: translateY(0) rotateX(0deg); }
}

/* NEW ARRIVALS: glitch scramble, JS driven, letters stay visible */
.glitch-head .anim-letter { display:inline-block; transition: color 0.05s; }

/* COLLECTIONS: letters fly in from both sides and snap to center */
.split-letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(var(--split-x, 0px)) scaleX(1.5);
  filter: blur(4px);
  transition:
    opacity     0.55s cubic-bezier(0.23,1,0.32,1),
    transform   0.55s cubic-bezier(0.23,1,0.32,1),
    filter      0.4s  ease;
}
.split-letter.split-active {
  opacity: 1;
  transform: translateX(0) scaleX(1);
  filter: blur(0);
}

/* LOOKBOOK: letters rise up through the baseline */
.slideup-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(3px);
  transition:
    opacity   0.6s cubic-bezier(0.23,1,0.32,1),
    transform 0.6s cubic-bezier(0.23,1,0.32,1),
    filter    0.45s ease;
}
.slideup-letter.slideup-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* STORY: typewriter cursor blink */
.typewriter-char {
  opacity: 0;
  transition: opacity 0s;
}
.typewriter-char.typed { opacity: 1; }
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: #ef4444;
  margin-left: 3px;
  vertical-align: middle;
  animation: cursor-blink 0.8s step-end infinite;
}
@keyframes cursor-blink {
  0%,100% { opacity:1; }
  50%      { opacity:0; }
}

/* ===================== FOOTER BUTTERFLY ANIMATION ===================== */
#footer-wing-left, #footer-wing-right {
  transform-origin: 24px 18px;
  animation: footer-wing-flap 2.8s ease-in-out infinite alternate;
}
#footer-wing-right { animation-delay: 0.14s; }

@keyframes footer-wing-flap {
  from { transform: rotate(-20deg) scaleY(0.97); }
  to   { transform: rotate(20deg)  scaleY(1.03); }
}

#footer-butterfly-svg {
  animation: footer-butterfly-idle 4s ease-in-out infinite;
}
@keyframes footer-butterfly-idle {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  35%     { transform: translateY(-3px) rotate(1.5deg); }
  65%     { transform: translateY(1.5px) rotate(-1deg); }
}

/* ===================== Y2K CHROME BUTTERFLY ACCENTS ===================== */
/* Sparkle / twinkle accent on feature butterflies */
.butterfly-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: y2k-sparkle 2.8s ease-in-out infinite;
}
.butterfly-sparkle.s2 { animation-duration: 3.3s; animation-delay: 0.6s; }
.butterfly-sparkle.s3 { animation-duration: 2.4s; animation-delay: 1.1s; }
@keyframes y2k-sparkle {
  0%,100% { opacity: 0.25; transform: scale(0.55) rotate(0deg); }
  45%     { opacity: 1;    transform: scale(1.2)  rotate(22deg); }
  70%     { opacity: 0.7;  transform: scale(1.0)  rotate(15deg); }
}

/* Subtle gloss highlight on chrome wings */
.wing-shine {
  pointer-events: none;
}

/* Chrome gradient shimmer on wing (SVG linearGradient shimmer via CSS animation) */
@keyframes chrome-shimmer {
  0%   { stop-color: #ffffff; }
  33%  { stop-color: #ffc7d6; }
  66%  { stop-color: #d8d8f0; }
  100% { stop-color: #ffffff; }
}

/* ===================== EXCLUSIVE AUDORA (gold house line) ===================== */
.excl-gold-text {
  background: linear-gradient(100deg,#f7e7a6 0%,#e8c45a 30%,#ef4444 62%,#e8c45a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* wide opener button */
.excl-open-btn {
  background: linear-gradient(100deg,#170a0a 0%,#2c1c08 48%,#170a0a 100%);
  box-shadow: 0 0 0 1px rgba(212,175,55,.28), 0 18px 60px -22px rgba(212,175,55,.4);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.excl-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(212,175,55,.55), 0 26px 72px -18px rgba(239,68,68,.45);
}
.excl-open-btn::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(100deg,transparent 28%,rgba(247,231,166,.16) 50%,transparent 72%);
  transform: translateX(-100%); animation: excl-sheen 4.5s linear infinite; pointer-events:none;
}
@keyframes excl-sheen { to { transform: translateX(100%); } }
.excl-toggle-open .excl-chev { transform: rotate(180deg); }
/* collapsible section */
.excl-section {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .75s cubic-bezier(.16,1,.3,1), opacity .55s ease;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(212,175,55,.12), transparent 58%),
    linear-gradient(180deg,#0c0707,#0a0a0a);
  border-top: 1px solid transparent; border-bottom: 1px solid transparent;
}
.excl-section.open {
  max-height: 2800px; opacity: 1;
  border-top-color: rgba(212,175,55,.28); border-bottom-color: rgba(212,175,55,.28);
}
.excl-card { transition: border-color .3s, transform .3s; }
.excl-card:hover { border-color: rgba(212,175,55,.7); }
.excl-tag {
  background: rgba(0,0,0,.55); padding: 4px 9px; border-radius: 9999px;
  border: 1px solid rgba(212,175,55,.45); backdrop-filter: blur(4px);
}
/* gold quick-add chips on exclusive cards */
.excl-chip {
  height: 30px; min-width: 30px; padding: 0 7px;
  border: 1px solid rgba(212,175,55,.5); border-radius: 9px;
  font-size: 11px; font-weight: 700; color: #f1dfa0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(3px); transition: all .2s;
}
.excl-chip:hover { background: #d4af37; color: #111; border-color: #d4af37; }

/* ===================== IN-TAB PAGE VIEWS ===================== */
#page-view { animation: page-in .3s ease; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pp-swatch {
  width: 34px; height: 34px; border-radius: 9999px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.25); transition: all .2s;
}
.pp-swatch.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(239,68,68,.45); transform: scale(1.1); }
.pp-size.active { background: #fff; color: #000; border-color: #fff; }
.sg-table th, .sg-table td { padding: 9px 14px; border: 1px solid rgba(255,255,255,.1); }
.sg-table th { background: rgba(239,68,68,.12); letter-spacing: 2px; font-size: 11px; }
.sg-table td { color: #d4d4d8; font-size: 13px; }

/* ===================== WISHLIST ===================== */
.wish-btn {
  position: absolute; top: 14px; left: 14px; z-index: 10;
  width: 34px; height: 34px; border-radius: 9999px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .2s;
}
.wish-btn:hover { border-color: #ef4444; color: #ef4444; transform: scale(1.1); }
.wish-btn.active { background: #ef4444; border-color: #ef4444; color: #fff; }
.wish-btn.active i { animation: wish-pop .35s ease; }
@keyframes wish-pop { 50% { transform: scale(1.45); } }

/* ===================== LOOKBOOK DECONSTRUCTION ===================== */
@keyframes decon-pop { to { opacity: 1; transform: none; } }

/* ===================== EXPLODED FIT (deconstruct) ===================== */
/* entrance animation lives on the inner card so the button's positioning transform survives */
@media (min-width: 768px) {
  .decon-stage { min-height: 600px; }
  .decon-photo-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 268px; }
  .decon-pieces { position: absolute; inset: 0; }
  .decon-piece { position: absolute; width: 150px; transform: translate(-50%, -50%); }
}
@media (max-width: 767px) {
  .decon-svg { display: none; }
  .decon-photo-wrap { width: 100%; max-width: 280px; margin: 0 auto 20px; }
  .decon-pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ===================== HERO PEEK ROW (centered) ===================== */
.peek-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 8px 10px;
  font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
  text-align: center; pointer-events: none;
}

/* ===================== STATEMENT WORDS (editorial: solid colour, no neon) ===================== */
/* Keeps the white to pink to red progression, drops the flicker, buzz and glow. */
.neon-white { color: #fff; }
.neon-pink { color: #ffd9de; }
.neon-red { color: #ef4444; }
@keyframes neon-flicker {
  0%, 7.9%, 10.1%, 53.9%, 56.1%, 100% { opacity: 1; }
  8%, 10% { opacity: .4; text-shadow: none; }
  54%, 56% { opacity: .75; }
  55% { opacity: 1; }
}
@keyframes neon-buzz {
  0%, 2.9%, 5.1%, 6.9%, 9.1%, 46.9%, 48.1%, 69.4%, 71.1%, 100% { opacity: 1; }
  3%, 5% { opacity: .3; text-shadow: none; }
  7%, 9% { opacity: .6; }
  47%, 48% { opacity: .55; }
  69.5%, 71% { opacity: .35; text-shadow: none; }
}

/* ===================== FLOATING SECTION DOTS + BACK TO TOP ===================== */
.section-dot {
  position: relative;
  width: 12px; height: 12px; border-radius: 9999px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: all .25s;
}
.section-dot:hover { background: rgba(239,68,68,.6); transform: scale(1.3); }
.section-dot.active { background: #ef4444; border-color: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,.8); }
.section-dot .dot-label {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(0,0,0,.8); border: 1px solid rgba(239,68,68,.3);
  padding: 4px 10px; border-radius: 9999px;
  opacity: 0; pointer-events: none; transition: all .2s;
}
.section-dot:hover .dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }
#back-to-top { transition: opacity .3s, transform .3s; }
#back-to-top.hidden-btt { opacity: 0; pointer-events: none; transform: translateY(12px); }
html.audora-snipcart-open,
body.audora-snipcart-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* Lift Snipcart's cart/checkout above everything, and hide store chrome while it's open */
.snipcart-modal,
.snipcart-layout { z-index: 2147483000 !important; }
body.audora-snipcart-open #navbar,
body.audora-snipcart-open #scroll-morph-logo,
body.audora-snipcart-open #back-to-top,
body.audora-snipcart-open #section-dots,
body.audora-snipcart-open #audora-marquee { display: none !important; }
body.audora-snipcart-open {
  position: fixed;
  inset-inline: 0;
  top: var(--audora-scroll-lock-top, 0);
  width: 100%;
}
.snipcart,
.snipcart-modal,
.snipcart-layout,
.snipcart-cart__content {
  overscroll-behavior: contain;
}

/* gender / look-set pill buttons */
.gender-btn.active, .lookset-btn.active {
  border-color: #ef4444 !important;
  background: rgba(239,68,68,.1);
  color: #f87171;
}

/* Shared page layout. Keep the fixed navigation clear of all page headings. */
html { scroll-padding-top: 6rem; }
.page-main { padding-top: 5rem; min-height: 65vh; }
.page-container { max-width: 76rem; margin-inline: auto; padding: 8rem 1.5rem 5rem; }
.page-link { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; border: 1px solid #a1a1aa; padding: 1rem 1.6rem; border-radius: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; transition: background .2s, color .2s; }
.page-link:hover { background: white; color: black; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 500; background: #18181b; color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid #f87171; outline-offset: 4px; }
a[aria-current="page"] { color: #f87171; }
#mobile-menu { max-height: calc(100dvh - 80px); overflow-y: auto; }
.story-quote { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.page-main .section-title { font-size: clamp(2.3rem, 7.5vw, 4.5rem); }
footer .space-x-6 { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.2rem; }
footer .space-x-6 > * { margin: 0 !important; }
@media (max-width: 767px), (pointer: coarse) {
  .quick-add { opacity: 1 !important; transform: none !important; }
  .page-container { padding-top: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-letter, .anim-letter, .split-letter, .rise-letter, .type-char, .statement-word, .decon-card { opacity: 1 !important; transform: none !important; }
}
