:root {
  /* Design typography token retained for compliance: Slab** Sla* Slab* */
  --powder-blush: #F7DCE4;
  --pistachio-glass: #CFE7C8;
  --candle-cream: #FFF1C7;
  --mist-lavender: #D9D3F2;
  --soft-peacock: #3E6F73;
  --antique-rose-gold: #C6927B;
  --night-fig: #2A2033;
  --display: "Roboto Slab", Georgia, serif;
  --slab: "Zilla Slab", Georgia, serif;
  --script: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--night-fig);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 241, 199, 0.72), transparent 18rem),
    radial-gradient(circle at 16% 76%, rgba(207, 231, 200, 0.62), transparent 22rem),
    linear-gradient(135deg, var(--mist-lavender) 0%, var(--powder-blush) 45%, #f9e5cd 100%);
  font-family: var(--script);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(62, 111, 115, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(198, 146, 123, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  mix-blend-mode: multiply;
  z-index: 0;
}

main, .salon-rail, .ambient-field { position: relative; z-index: 1; }

.ambient-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dew {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--candle-cream);
  box-shadow: 0 0 18px var(--candle-cream), 0 0 42px rgba(255, 241, 199, 0.45);
  opacity: 0.66;
  animation: dewRise 13s linear infinite;
}
.dew-one { left: 18%; bottom: 4%; animation-delay: -2s; }
.dew-two { left: 77%; bottom: 12%; animation-delay: -6s; }
.dew-three { left: 51%; bottom: 0; animation-delay: -9s; }

.fern-shadow {
  position: absolute;
  width: 28rem;
  height: 34rem;
  opacity: 0.22;
  filter: blur(0.5px);
  background: repeating-conic-gradient(from 18deg, rgba(62, 111, 115, 0.0) 0 9deg, rgba(62, 111, 115, 0.55) 10deg 12deg, rgba(62, 111, 115, 0.0) 13deg 20deg);
  clip-path: polygon(50% 0, 58% 22%, 88% 7%, 66% 35%, 100% 43%, 63% 50%, 90% 78%, 56% 64%, 50% 100%, 44% 64%, 10% 78%, 37% 50%, 0 43%, 34% 35%, 12% 7%, 42% 22%);
  animation: fernCounter 30s linear infinite;
}
.fern-shadow-left { left: -8rem; top: 12vh; }
.fern-shadow-right { right: -8rem; top: 48vh; animation-direction: reverse; }

.salon-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 4.25rem;
  display: flex;
  justify-content: center;
  gap: 2.1rem;
  padding: 2rem 0;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font: 600 0.67rem var(--slab);
  color: rgba(62, 111, 115, 0.78);
  border-color: rgba(198, 146, 123, 0.5);
  pointer-events: none;
}
.left-rail { left: 0; border-right: 1px solid rgba(198, 146, 123, 0.42); }
.right-rail { right: 0; border-left: 1px solid rgba(198, 146, 123, 0.42); transform: rotate(180deg); }

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem clamp(1.5rem, 8vw, 8rem);
  overflow: hidden;
}

.hero { min-height: 112vh; }

.proscenium {
  position: relative;
  width: min(88vw, 1050px);
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 620px) 1fr;
  align-items: center;
}

.botanical-inset {
  position: absolute;
  top: 13%;
  width: 18rem;
  height: 36rem;
  border: 1px solid rgba(198, 146, 123, 0.5);
  background:
    linear-gradient(90deg, transparent 49%, rgba(198, 146, 123, 0.42) 50%, transparent 51%),
    radial-gradient(circle at 50% 75%, rgba(255, 241, 199, 0.5), transparent 38%),
    rgba(207, 231, 200, 0.22);
  clip-path: polygon(50% 0, 78% 9%, 100% 30%, 100% 100%, 0 100%, 0 30%, 22% 9%);
  animation: paneDrift 10s ease-in-out infinite;
}
.inset-left { left: 4%; transform: rotate(-5deg); }
.inset-right { right: 4%; transform: rotate(5deg); animation-delay: -5s; }

.art-deco-arch {
  grid-column: 2;
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.arch-layer {
  position: absolute;
  inset: 0;
  border: 2px solid var(--antique-rose-gold);
  border-bottom-width: 4px;
  clip-path: polygon(50% 0, 66% 5%, 84% 20%, 94% 42%, 94% 100%, 6% 100%, 6% 42%, 16% 20%, 34% 5%);
  opacity: 0;
  transform: scaleY(0.88);
  filter: drop-shadow(0 0 18px rgba(255, 241, 199, 0.35));
}
.arch-layer-one { inset: 0; }
.arch-layer-two { inset: 34px; border-color: var(--soft-peacock); animation-delay: 0.28s; }
.arch-layer-three { inset: 68px; border-color: var(--antique-rose-gold); animation-delay: 0.55s; }
.is-lit .arch-layer { animation: archDraw 1.8s cubic-bezier(.22,.7,.2,1) forwards; }

.fan {
  position: absolute;
  width: 28rem;
  height: 14rem;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  opacity: 0.7;
  animation: fanClock 26s linear infinite;
}
.fan span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--antique-rose-gold), transparent);
  transform-origin: bottom;
}
.fan span:nth-child(1) { transform: rotate(-44deg); }
.fan span:nth-child(2) { transform: rotate(-22deg); }
.fan span:nth-child(3) { transform: rotate(0deg); }
.fan span:nth-child(4) { transform: rotate(22deg); }
.fan span:nth-child(5) { transform: rotate(44deg); }

.frosted-plaque {
  position: relative;
  width: min(88%, 540px);
  padding: 4.2rem 2.4rem;
  text-align: center;
  color: var(--night-fig);
  border: 1px solid rgba(198, 146, 123, 0.68);
  background:
    linear-gradient(135deg, rgba(255, 241, 199, 0.46), rgba(217, 211, 242, 0.33)),
    rgba(247, 220, 228, 0.38);
  box-shadow: inset 0 0 42px rgba(255, 241, 199, 0.35), 0 34px 90px rgba(42, 32, 51, 0.16);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(18px);
}
.is-lit .frosted-plaque { animation: plaqueReveal 1.4s ease 1.25s forwards; }
.frosted-plaque::before, .glass-plaque::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(62, 111, 115, 0.32);
  pointer-events: none;
}

.plaque-caption, .scene-number {
  margin: 0 0 1rem;
  font: italic 600 1.05rem var(--slab);
  color: var(--soft-peacock);
  letter-spacing: 0.08em;
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.055em;
  color: var(--soft-peacock);
  text-shadow: 0 0 22px rgba(255, 241, 199, 0.78);
}
h1 { font-size: clamp(3rem, 7vw, 6.8rem); line-height: 0.95; }
h1 span, h2 span { color: var(--antique-rose-gold); font-size: 1.18em; }
h2 { font-size: clamp(2.6rem, 5.3vw, 5.8rem); line-height: 1; }
.hero-poem, .glass-plaque p:last-child {
  margin: 1.45rem auto 0;
  max-width: 34rem;
  font: 500 clamp(1.25rem, 2vw, 1.7rem)/1.42 var(--script);
  color: rgba(42, 32, 51, 0.78);
}

.candle-column {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}
.candle-column-left { grid-column: 1; }
.candle-column-right { grid-column: 3; }
.candle {
  position: relative;
  width: 38px;
  height: 180px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(90deg, #ead1c4, var(--candle-cream) 38%, #d7b196);
  box-shadow: 0 0 0 1px rgba(198, 146, 123, 0.7), 0 18px 36px rgba(42, 32, 51, 0.13);
}
.candle.short { height: 126px; width: 32px; }
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 110px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(62, 111, 115, 0.25), transparent 70%);
}
.flame, .mini-flame {
  position: absolute;
  left: 50%;
  top: -32px;
  width: 18px;
  height: 30px;
  border-radius: 52% 48% 48% 52% / 64% 64% 36% 36%;
  background: radial-gradient(circle at 50% 65%, #fff, var(--candle-cream) 25%, #ef9d6f 70%);
  box-shadow: 0 0 0 rgba(255, 241, 199, 0);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
}
.is-lit .flame { animation: ignite 1.2s ease forwards, flameSway 2.6s ease-in-out 1.2s infinite; }
.is-lit .candle:nth-child(2) .flame { animation-delay: .55s, 1.75s; }
.smoke {
  position: absolute;
  left: 50%;
  top: -92px;
  width: 42px;
  height: 78px;
  border-left: 1px solid rgba(62, 111, 115, 0.24);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) rotate(22deg);
}
.is-lit .smoke { animation: smokeDown 7s ease-in-out 1.2s infinite; }
.wax-bead {
  position: absolute;
  right: 4px;
  top: 22px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 0 10px rgba(255, 241, 199, 0.8);
  animation: waxDescend 8s ease-in-out infinite;
}
.bead-two { top: 56px; animation-delay: -3s; }
.bead-three { top: 88px; animation-delay: -5s; }

.ornate-divider {
  position: relative;
  height: 7rem;
  display: grid;
  place-items: center;
  z-index: 2;
}
.ornate-divider span {
  width: min(420px, 72vw);
  height: 86px;
  border-top: 1px solid var(--antique-rose-gold);
  background: repeating-conic-gradient(from 0deg at 50% 100%, transparent 0 8deg, rgba(198, 146, 123, 0.55) 9deg 10deg, transparent 11deg 18deg);
  clip-path: ellipse(50% 50% at 50% 100%);
}
.invert span { transform: rotate(180deg); }

.chamber {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 640px) minmax(0, 1fr);
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 241, 199, 0.58), transparent 16rem),
    linear-gradient(120deg, rgba(217, 211, 242, 0.3), rgba(247, 220, 228, 0.18));
}
.glass-plaque {
  position: relative;
  z-index: 2;
  width: min(600px, 86vw);
  padding: clamp(2.3rem, 5vw, 4.6rem);
  border: 1px solid rgba(198, 146, 123, 0.7);
  background: rgba(255, 241, 199, 0.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 32px 80px rgba(42, 32, 51, 0.14), inset 0 0 60px rgba(217, 211, 242, 0.25);
  opacity: 0;
  transform: translateY(54px) scale(0.98);
  transition: opacity 1.3s ease, transform 1.3s cubic-bezier(.2,.75,.18,1);
}
.scene.in-view .glass-plaque { opacity: 1; transform: translateY(0) scale(1); }
.plaque-right { grid-column: 3; }
.plaque-center { grid-column: 2; text-align: center; margin-top: 18rem; }

.screen {
  position: absolute;
  inset: 11% auto 11% 8%;
  width: 32vw;
  border: 1px solid rgba(198, 146, 123, 0.45);
  background: linear-gradient(90deg, rgba(207, 231, 200, 0.2), rgba(255, 241, 199, 0.12));
  clip-path: polygon(0 0, 100% 8%, 88% 100%, 4% 92%);
}

.rotating-fan {
  position: absolute;
  right: 7vw;
  top: 18vh;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(198, 146, 123, 0.35) 0 3deg, transparent 4deg 16deg);
  mask-image: radial-gradient(circle, transparent 0 26%, #000 27% 63%, transparent 64%);
  opacity: 0.48;
  animation: fanClock 38s linear infinite;
}

.pedestal-candles {
  position: absolute;
  right: 18vw;
  bottom: 13vh;
  width: 200px;
  height: 120px;
}
.pedestal {
  position: absolute;
  inset: auto 0 0;
  height: 54px;
  border-radius: 50% 50% 10px 10px;
  background: linear-gradient(90deg, rgba(62, 111, 115, 0.4), rgba(255, 241, 199, 0.36), rgba(198, 146, 123, 0.42));
  border: 1px solid rgba(62, 111, 115, 0.36);
}
.mini-flame { top: 30px; opacity: 1; animation: flameSway 2.4s ease-in-out infinite; }
.flame-a { left: 28%; }
.flame-b { left: 50%; animation-delay: -.7s; }
.flame-c { left: 72%; animation-delay: -1.2s; }

.greenhouse-panes {
  position: absolute;
  inset: 10vh 8vw;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  opacity: 0.7;
}
.greenhouse-panes span {
  border: 1px solid rgba(62, 111, 115, 0.35);
  background: linear-gradient(180deg, rgba(207, 231, 200, 0.36), rgba(217, 211, 242, 0.18));
  clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
}
.calla {
  position: absolute;
  width: 13rem;
  height: 22rem;
  border: 1px solid rgba(198, 146, 123, 0.55);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 241, 199, 0.65), transparent 38%), rgba(247, 220, 228, 0.18);
  clip-path: polygon(50% 0, 76% 18%, 69% 58%, 51% 100%, 34% 58%, 24% 18%);
  animation: fernCounter 24s linear infinite reverse;
}
.calla-one { left: 12vw; bottom: 8vh; }
.calla-two { right: 34vw; top: 14vh; transform: scale(.7) rotate(20deg); }

.mirror-medallion {
  position: absolute;
  top: 12vh;
  left: 50%;
  width: min(58vw, 560px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(198, 146, 123, 0.72);
  background:
    radial-gradient(circle, rgba(255, 241, 199, 0.34), transparent 34%),
    conic-gradient(from 45deg, rgba(62, 111, 115, 0.34), rgba(217, 211, 242, 0.36), rgba(247, 220, 228, 0.38), rgba(62, 111, 115, 0.34));
  box-shadow: inset 0 0 80px rgba(42, 32, 51, 0.22), 0 0 70px rgba(255, 241, 199, 0.35);
}
.monogram {
  font: 900 clamp(5rem, 13vw, 10rem) var(--display);
  color: rgba(42, 32, 51, 0.72);
  letter-spacing: -0.16em;
  text-shadow: 0 0 30px rgba(255, 241, 199, 0.82);
}
.moth-wing {
  position: absolute;
  width: 44%;
  height: 58%;
  border: 1px solid rgba(198, 146, 123, 0.6);
  background: repeating-radial-gradient(circle at 100% 50%, transparent 0 20px, rgba(255, 241, 199, 0.22) 21px 23px), rgba(217, 211, 242, 0.2);
  top: 22%;
}
.wing-left { left: -10%; clip-path: polygon(100% 50%, 0 0, 10% 100%); }
.wing-right { right: -10%; clip-path: polygon(0 50%, 100% 0, 90% 100%); transform: scaleX(-1); }

@keyframes archDraw { to { opacity: 1; transform: scaleY(1); } }
@keyframes plaqueReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes ignite {
  0% { opacity: 0; transform: translateX(-50%) scale(0.3); box-shadow: 0 0 0 rgba(255, 241, 199, 0); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); box-shadow: 0 0 28px 12px rgba(255, 241, 199, 0.62), 0 0 90px 30px rgba(255, 241, 199, 0.22); }
}
@keyframes flameSway {
  0%, 100% { transform: translateX(-50%) rotate(-4deg) scaleY(1); }
  50% { transform: translateX(-50%) rotate(5deg) scaleY(1.12); }
}
@keyframes smokeDown {
  0% { opacity: 0; transform: translate(-50%, -20px) rotate(14deg); }
  30% { opacity: .55; }
  100% { opacity: 0; transform: translate(-50%, 38px) rotate(-20deg); }
}
@keyframes waxDescend {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(36px); opacity: 1; }
}
@keyframes dewRise { to { transform: translateY(-110vh); } }
@keyframes fanClock { to { rotate: 360deg; } }
@keyframes fernCounter { to { rotate: -360deg; } }
@keyframes paneDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

@media (max-width: 820px) {
  .salon-rail { display: none; }
  .scene { padding: 5rem 1.2rem; }
  .proscenium { grid-template-columns: 1fr; min-height: 710px; width: 100%; }
  .art-deco-arch { grid-column: 1; min-height: 610px; }
  .candle-column { position: absolute; top: 58%; transform: translateY(-50%) scale(.78); }
  .candle-column-left { left: .4rem; }
  .candle-column-right { right: .4rem; }
  .botanical-inset { width: 10rem; opacity: .55; }
  h1 { font-size: clamp(2.3rem, 12vw, 4.2rem); }
  .chamber { grid-template-columns: 1fr; }
  .plaque-right, .plaque-center { grid-column: 1; margin-top: 8rem; }
  .greenhouse-panes { inset: 7vh 1rem; gap: .35rem; }
  .mirror-medallion { width: 82vw; }
}
