/* ============================================================
   LEE — Premium Cinematic Landing Page
   Main Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #faf6f0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #3d2b1f;
  cursor: default;
  user-select: none;
}

/* ---------- Scene Container ---------- */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #faf6f0;
  overflow: hidden;
}

.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 38%, rgba(255, 248, 238, 0.95) 0%, transparent 68%),
    radial-gradient(ellipse 55% 45% at 62% 28%, rgba(255, 228, 200, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 40% 35% at 38% 32%, rgba(255, 210, 220, 0.12) 0%, transparent 55%),
    #faf6f0;
  z-index: 0;
}

/* ---------- Cinematic Letterbox ---------- */
.letterbox {
  position: absolute;
  left: 0;
  width: 100%;
  height: 9vh;
  background: linear-gradient(to bottom, #1a1410, #2a2018);
  z-index: 12;
  pointer-events: none;
}

.letterbox-top {
  top: 0;
}

.letterbox-bottom {
  bottom: 0;
  background: linear-gradient(to top, #1a1410, #2a2018);
}

/* ---------- Film Grain ---------- */
.film-grain {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

/* ---------- Light Rays ---------- */
.light-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    conic-gradient(
      from 200deg at 50% -5%,
      transparent 0deg,
      rgba(255, 230, 190, 0.07) 18deg,
      transparent 36deg,
      rgba(255, 220, 180, 0.05) 54deg,
      transparent 72deg,
      rgba(255, 235, 200, 0.06) 90deg,
      transparent 108deg
    );
  animation: light-ray-drift 20s ease-in-out infinite;
}

/* ---------- Background Fade Layer ---------- */
.bg-fade {
  position: absolute;
  inset: 0;
  background: #faf6f0;
  z-index: 10;
  pointer-events: none;
}

/* ---------- Ambient Light ---------- */
.ambient-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 32%, rgba(255, 215, 170, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 48% 28%, rgba(255, 200, 210, 0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* ---------- Bouquet Halo ---------- */
.bouquet-halo {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 420px);
  height: min(55vh, 480px);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 50% 45% at 50% 50%,
    rgba(255, 220, 200, 0.18) 0%,
    rgba(255, 200, 180, 0.06) 45%,
    transparent 72%
  );
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  filter: blur(2px);
}

/* ---------- Vignette ---------- */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 78% 78% at 50% 48%,
    transparent 38%,
    rgba(50, 32, 22, 0.06) 72%,
    rgba(30, 18, 12, 0.2) 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* ---------- Bloom Overlay ---------- */
.bloom-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 48% at 50% 44%,
    rgba(255, 240, 215, 0.08) 0%,
    transparent 68%
  );
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- Particle Canvas ---------- */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 5;
  perspective: 1400px;
}

/* ---------- Bouquet Wrapper ---------- */
.bouquet-wrapper {
  position: relative;
  width: min(88vw, 500px);
  height: min(82vh, 660px);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Bouquet SVG ---------- */
.bouquet-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 24px 48px rgba(50, 32, 20, 0.14));
}

.bouquet-camera {
  transform-origin: 400px 520px;
}

.bouquet-gather {
  transform-origin: 400px 620px;
}

.bouquet-shadow {
  transform-origin: center center;
}

/* ---------- Rose Petals ---------- */
.rose-petal {
  transform-origin: center center;
  transform-box: fill-box;
}

.rose-center {
  transform-origin: center center;
  transform-box: fill-box;
}

.rose-group {
  transform-origin: center center;
  transform-box: fill-box;
}

.dewdrop {
  transform-origin: center center;
  transform-box: fill-box;
}

/* ---------- Stems ---------- */
.stem-path {
  fill: none;
  stroke: url(#grad-stem);
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Leaves ---------- */
.leaf-group {
  transform-origin: center center;
  transform-box: fill-box;
}

.eucalyptus-leaf {
  transform-origin: center center;
  transform-box: fill-box;
}

/* ---------- Filler Flowers ---------- */
.filler-group {
  transform-origin: center center;
  transform-box: fill-box;
}

/* ---------- Ribbon ---------- */
.ribbon-wrap {
  fill: none;
  stroke: url(#grad-ribbon);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ribbon-bow {
  transform-origin: center center;
  transform-box: fill-box;
}

/* ---------- Signature Block ---------- */
.signature-block {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 460px);
  text-align: center;
  z-index: 6;
  pointer-events: none;
}

/* Ornamental flourish above name */
.signature-ornament {
  width: min(50vw, 180px);
  margin: 0 auto 0.2rem;
  opacity: 0;
}

.ornament-svg {
  width: 100%;
  height: 14px;
  display: block;
}

.ornament-path {
  stroke-linecap: round;
}

.signature-svg {
  position: relative;
  width: min(68vw, 290px);
  height: auto;
  margin: 0 auto;
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(183, 110, 121, 0.45))
          drop-shadow(0 0 36px rgba(110, 42, 58, 0.2));
}

.signature-path {
  font-family: 'Great Vibes', 'Allura', cursive;
  fill: none;
  stroke: url(#signature-grad);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.signature-fill {
  font-family: 'Great Vibes', 'Allura', cursive;
  pointer-events: none;
}

/* Decorative divider */
.love-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0.55rem auto 0.7rem;
  width: min(60vw, 200px);
  opacity: 0;
  position: relative;
}

.love-divider::before,
.love-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 110, 121, 0.45), transparent);
}

.divider-gem {
  width: 5px;
  height: 5px;
  background: #b76e79;
  transform: rotate(45deg);
  margin: 0 10px;
  box-shadow: 0 0 8px rgba(183, 110, 121, 0.5);
}

/* ---------- Romantic Message ---------- */
.love-primary {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8e5a62;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55em;
}

.love-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
}

.love-secondary {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #a07880;
  margin-top: 0.5rem;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(10px);
}

/* ---------- Light Sweep ---------- */
.light-sweep {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 248, 235, 0.12) 48%,
    rgba(255, 255, 250, 0.22) 50%,
    rgba(255, 248, 235, 0.12) 52%,
    transparent 60%
  );
  transform: translateX(-120%);
}

/* ---------- Falling Petals ---------- */
.falling-petal {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .letterbox { height: 7vh; }

  .bouquet-wrapper {
    width: min(85vw, 420px);
    height: min(78vh, 580px);
  }

  .signature-block {
    width: min(92vw, 380px);
    bottom: 5%;
  }

  .signature-svg {
    width: min(72vw, 250px);
  }
}

@media (max-width: 575px) {
  .letterbox { height: 5vh; }

  .bouquet-wrapper {
    width: min(90vw, 340px);
    height: min(74vh, 500px);
  }

  .signature-block {
    width: min(94vw, 300px);
    bottom: 4%;
  }

  .signature-svg {
    width: min(78vw, 210px);
  }

  .signature-path { stroke-width: 1.8; }

  .love-primary { letter-spacing: 0.18em; gap: 0.4em; }
}

@media (prefers-reduced-motion: reduce) {
  .bouquet-wrapper,
  .bouquet-camera,
  .bouquet-gather,
  .light-rays {
    animation: none !important;
  }
}
