/* Home landing — quiet luxury hero + feature frames */

/* Hero video frost — tweak these to show more/less of the background video */
:root {
  --hero-video-blur: 24px;
  --hero-video-opacity: 0.88;
  --hero-frost-tint: rgba(255, 249, 239, 0.12);
  --hero-frost-blur: 4px;
}

.shadow-soft-bloom {
  box-shadow:
    0 20px 60px -10px rgba(29, 27, 22, 0.06),
    0 10px 30px -5px rgba(29, 27, 22, 0.03);
}

.hero-frost-bg {
  overflow: hidden;
  z-index: 0;
}

.hero-section {
  isolation: isolate;
}

.hero-bubble-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.ambient-sparkle-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-section > .ambient-sparkle-layer {
  z-index: 6;
}

.ambient-sparkle {
  --sparkle-size: 9px;
  --sparkle-opacity: 0.42;
  --sparkle-drift-x: 0px;
  --sparkle-drift-y: -14px;
  position: absolute;
  left: var(--sparkle-left);
  top: var(--sparkle-top);
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.9);
  animation:
    sparkleFloat var(--sparkle-float-duration, 14s) ease-in-out infinite,
    sparkleTwinkle var(--sparkle-twinkle-duration, 4.6s) ease-in-out infinite;
  animation-delay:
    var(--sparkle-float-delay, 0s),
    var(--sparkle-twinkle-delay, 0s);
  will-change: transform, opacity;
}

.ambient-sparkle::before,
.ambient-sparkle::after {
  content: '';
  position: absolute;
  inset: 0;
}

.ambient-sparkle-dot::before {
  border-radius: 999px;
  background:
    radial-gradient(circle at center,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 247, 225, 0.9) 30%,
      rgba(229, 211, 179, 0.42) 62%,
      rgba(229, 211, 179, 0) 100%);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.48),
    0 0 24px rgba(229, 211, 179, 0.28);
}

.ambient-sparkle-glint::before,
.ambient-sparkle-glint::after {
  left: 50%;
  top: 50%;
  width: calc(var(--sparkle-size) * 2.8);
  height: 1px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.94) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.38),
    0 0 18px rgba(229, 211, 179, 0.24);
}

.ambient-sparkle-glint::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.feature-band .ambient-sparkle-layer,
.lifestyle-band .ambient-sparkle-layer {
  z-index: 2;
  mix-blend-mode: screen;
}

.feature-band .ambient-sparkle,
.lifestyle-band .ambient-sparkle {
  --sparkle-opacity: 0.32;
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.88);
  }
  50% {
    transform: translate3d(var(--sparkle-drift-x), var(--sparkle-drift-y), 0) scale(1);
  }
}

@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0;
  }
  15% {
    opacity: calc(var(--sparkle-opacity) * 0.5);
  }
  40% {
    opacity: var(--sparkle-opacity);
  }
  65% {
    opacity: calc(var(--sparkle-opacity) * 0.6);
  }
  85% {
    opacity: calc(var(--sparkle-opacity) * 0.16);
  }
}

.hero-bubble-layer .bubble {
  --bubble-drift-x: 0px;
  --bubble-drift-y: 0px;
  --bubble-scale: 1;
  transform:
    translate3d(var(--bubble-drift-x), var(--bubble-drift-y), 0)
    scale(var(--bubble-scale));
  will-change: margin-top, margin-left, opacity, transform;
}

.hero-bubble-layer .bubble.x1 { --bubble-scale: 0.6; }
.hero-bubble-layer .bubble.x2 { --bubble-scale: 0.4; }
.hero-bubble-layer .bubble.x3 { --bubble-scale: 0.7; }
.hero-bubble-layer .bubble.x4 { --bubble-scale: 0.3; }
.hero-bubble-layer .bubble.x5 { --bubble-scale: 0.5; }
.hero-bubble-layer .bubble.x6 { --bubble-scale: 0.8; }
.hero-bubble-layer .bubble.x7 { --bubble-scale: 0.4; }
.hero-bubble-layer .bubble.x8 { --bubble-scale: 0.3; }
.hero-bubble-layer .bubble.x9 { --bubble-scale: 0.6; }
.hero-bubble-layer .bubble.x10 { --bubble-scale: 0.3; }

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-video-stack {
  position: absolute;
  inset: 0;
}

.hero-frost-video,
.hero-frost-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--hero-video-blur));
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-frost-video.is-active {
  opacity: var(--hero-video-opacity);
}

.hero-frost-tint {
  position: absolute;
  inset: 0;
  background: var(--hero-frost-tint);
  backdrop-filter: blur(var(--hero-frost-blur));
  -webkit-backdrop-filter: blur(var(--hero-frost-blur));
}

.hero-frost-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 249, 239, 0.08) 0%,
    transparent 45%,
    rgba(255, 249, 239, 0.55) 100%
  );
}

.hero-content-glow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, 110%);
  height: 115%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.48) 42%,
    rgba(255, 255, 255, 0.12) 68%,
    rgba(255, 255, 255, 0) 82%
  );
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

.hero-headline {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(3.25rem, 11vw, 6.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.95),
    0 0 64px rgba(255, 255, 255, 0.65);
}

.hero-lede {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1.55;
  font-weight: 400;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.92),
    0 0 48px rgba(255, 255, 255, 0.55);
}

.feature-title {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.feature-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.125rem, 2.4vw, 1.625rem);
  line-height: 1.6;
  font-weight: 400;
}

.hero-footer-stack {
  position: relative;
  z-index: 15;
}

.hero-scroll-cue {
  margin-top: 0.5rem;
}

.feature-band {
  --feature-focus: 0.35;
  position: relative;
  min-height: 420px;
  border-radius: 2rem;
  overflow: hidden;
  background: #fff9ef;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 20px 60px -10px rgba(29, 27, 22, 0.08),
    0 10px 30px -5px rgba(29, 27, 22, 0.04);
  isolation: isolate;
}

.feature-band::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(229, 211, 179, 0.28);
  pointer-events: none;
  z-index: 4;
}

.feature-band-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.feature-band-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(0.42 + (var(--feature-focus) * 0.58));
  transition: opacity 220ms ease;
}

.feature-band-left .feature-band-overlay {
  background:
    linear-gradient(90deg,
      rgba(255, 249, 239, 0.92) 0%,
      rgba(255, 249, 239, 0.88) 24%,
      rgba(255, 249, 239, 0.7) 42%,
      rgba(255, 249, 239, 0.42) 58%,
      rgba(255, 249, 239, 0.2) 70%,
      rgba(255, 249, 239, 0.08) 80%,
      rgba(255, 249, 239, 0.02) 90%,
      rgba(255, 249, 239, 0) 100%
    ),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 30% 75%, rgba(229, 211, 179, 0.18) 0%, rgba(229, 211, 179, 0) 48%);
}

.feature-band-right .feature-band-overlay {
  background:
    linear-gradient(270deg,
      rgba(255, 249, 239, 0.92) 0%,
      rgba(255, 249, 239, 0.88) 24%,
      rgba(255, 249, 239, 0.7) 42%,
      rgba(255, 249, 239, 0.42) 58%,
      rgba(255, 249, 239, 0.2) 70%,
      rgba(255, 249, 239, 0.08) 80%,
      rgba(255, 249, 239, 0.02) 90%,
      rgba(255, 249, 239, 0) 100%
    ),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 70% 75%, rgba(229, 211, 179, 0.18) 0%, rgba(229, 211, 179, 0) 48%);
}

.feature-band-panel {
  position: relative;
  z-index: 3;
  width: min(46%, 480px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  text-align: left;
  opacity: calc(0.22 + (var(--feature-focus) * 0.78));
  transform: translateY(calc((1 - var(--feature-focus)) * 18px));
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.feature-band-left .feature-band-panel {
  margin-right: auto;
}

.feature-band-right .feature-band-panel {
  margin-left: auto;
}

.lifestyle-quote {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  opacity: calc(0.18 + (var(--feature-focus, 0.35) * 0.82));
  transition: opacity 220ms ease;
}

.lifestyle-focus {
  --feature-focus: 0.2;
}

.lifestyle-band {
  --feature-focus: inherit;
}

.lifestyle-band-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(22, 18, 12, 0.1) 0%,
      rgba(22, 18, 12, 0.18) 100%
    );
}

.lifestyle-band-content {
  width: min(920px, 100%);
  opacity: calc(0.18 + (var(--feature-focus, 0.2) * 0.82));
  transform: translateY(calc((1 - var(--feature-focus, 0.2)) * 18px));
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.lifestyle-app-promo {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: calc(0.18 + (var(--feature-focus, 0.2) * 0.82));
  transform: translateY(calc((1 - var(--feature-focus, 0.2)) * 18px));
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.lifestyle-app-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lifestyle-app-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6a5d43;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.42),
    0 2px 10px rgba(106, 93, 67, 0.08);
}

.lifestyle-store-trademark {
  color: rgba(255, 249, 239, 0.76);
}

.lifestyle-app-icon-wrap {
  --icon-rotate-x: 0deg;
  --icon-rotate-y: 0deg;
  --icon-shadow-x: 0px;
  --icon-shadow-y: 0px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.lifestyle-app-icon {
  width: clamp(88px, 9vw, 132px);
  height: clamp(88px, 9vw, 132px);
  border-radius: 28px;
  transform:
    rotateX(var(--icon-rotate-x))
    rotateY(var(--icon-rotate-y))
    translateZ(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  box-shadow:
    calc(var(--icon-shadow-x) * 0.6) calc(18px + var(--icon-shadow-y)) 40px rgba(29, 27, 22, 0.2),
    calc(var(--icon-shadow-x) * 0.25) calc(8px + (var(--icon-shadow-y) * 0.5)) 18px rgba(106, 93, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.home-menu-dropdown {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(106, 93, 67, 0.15);
  box-shadow:
    0 20px 60px -10px rgba(29, 27, 22, 0.08),
    0 10px 30px -5px rgba(29, 27, 22, 0.04);
}

.home-menu-dropdown a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4c463d;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 0.5rem;
  text-align: left;
  text-decoration: none;
}

.home-menu-dropdown a.hidden {
  display: none;
}

.home-menu-dropdown a:hover {
  color: #6a5d43;
  background-color: rgba(229, 211, 179, 0.15);
}

.home-menu-dropdown .site-auth-btn {
  margin-top: 0.125rem;
}

.home-menu-divider {
  height: 1px;
  background: rgba(229, 211, 179, 0.4);
  margin: 0.25rem 0.5rem;
}

@media (min-width: 768px) and (max-height: 980px) {
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  .store-trademark {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 767px) {
  .ambient-sparkle {
    --sparkle-opacity: 0.3;
  }

  .hero-footer-stack {
    gap: 0.75rem;
  }

  .hero-scroll-cue {
    margin-top: 0.25rem;
  }

  .feature-band {
    min-height: 520px;
    border-radius: 1.75rem;
  }

  .feature-band-overlay {
    background:
      linear-gradient(180deg,
        rgba(255, 249, 239, 0.9) 0%,
        rgba(255, 249, 239, 0.82) 28%,
        rgba(255, 249, 239, 0.58) 48%,
        rgba(255, 249, 239, 0.24) 68%,
        rgba(255, 249, 239, 0.08) 82%,
        rgba(255, 249, 239, 0) 100%
      ),
      radial-gradient(circle at 18% 18%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.08) 28%, rgba(255,255,255,0) 60%);
  }

  .feature-band-panel {
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .lifestyle-band {
    min-height: 620px;
  }

  .lifestyle-band-content,
  .lifestyle-app-promo {
    width: 100%;
  }

  .lifestyle-app-promo {
    margin-top: 1.5rem;
    flex-direction: column-reverse;
    gap: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .feature-band {
    min-height: 440px;
  }

  .feature-band-panel {
    width: min(52%, 440px);
    padding: 2.5rem;
  }

  .lifestyle-app-promo {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-sparkle {
    animation: none !important;
    opacity: 0.18;
    transform: none;
  }
}
