@import url('https://fonts.googleapis.com/css2?family=Limelight&family=Poiret+One&family=Cormorant+Garamond:wght@400;600&display=swap');

:root {
  --gold: #e7c272;
  --gold-deep: #b8892f;
  --gold-pale: #f8e6b4;
  --ink: #0b0806;
  --ink-2: #16110b;
  --red: #9b1c1c;
  --text: #efe3c8;
  --muted: #a8977a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--text); }
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: 'Limelight', serif; font-weight: 400; color: var(--gold); letter-spacing: .04em; }
.deco { font-family: 'Poiret One', sans-serif; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: linear-gradient(to bottom, rgba(11,8,6,.92), rgba(11,8,6,0));
}
.nav .logo img { height: 54px; display: block; filter: drop-shadow(0 0 8px rgba(0,0,0,.8)); }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav a.link { font-family: 'Poiret One'; font-size: 15px; letter-spacing: .25em; text-transform: uppercase; color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent; transition: .3s; }
.nav a.link:hover, .nav a.link.active { color: var(--gold); border-color: var(--gold); text-shadow: 0 0 10px rgba(231,194,114,.7); }
.nav .burger { display: none; background: none; border: 1px solid var(--gold); color: var(--gold); font-size: 20px; padding: 4px 10px; cursor: pointer; }
@media (max-width: 820px) {
  .nav { padding: 12px 16px; }
  .nav .burger { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; right: 16px; flex-direction: column; gap: 14px; padding: 18px 24px; background: var(--ink-2); border: 1px solid var(--gold-deep); }
  .nav ul.open { display: flex; }
}

/* ---------- Curtains (red velvet, swagged valance, tasseled tie-backs) ---------- */
.curtain-wrap { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; transition: opacity .8s ease; }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), transparent 18%, transparent 70%, rgba(0,0,0,.55)),
    repeating-linear-gradient(90deg,
      #2e0205 0, #6e0810 1.6%, #b3141d 3.4%, #e0353d 4.1%, #c11b24 4.9%, #7a0a12 6.6%, #3b0307 7.6%,
      #8d0d15 9.2%, #d42a33 10.2%, #a5121b 11.6%, #4a040a 13%);
  box-shadow: inset 0 0 120px rgba(0,0,0,.55);
  transition: clip-path 2.2s cubic-bezier(.65,0,.25,1);
}
.curtain.left { left: 0; clip-path: polygon(0 0, 100% 0, 100% 58%, 100% 100%, 0 100%); }
.curtain.right { right: 0; clip-path: polygon(100% 0, 0 0, 0 58%, 0 100%, 100% 100%); }
/* opened: gathered to the sides and pinched at the tie-back, like the reference */
.curtain-wrap.open .curtain.left { clip-path: polygon(0 0, 44% 0, 16% 58%, 30% 100%, 0 100%); }
.curtain-wrap.open .curtain.right { clip-path: polygon(100% 0, 56% 0, 84% 58%, 70% 100%, 100% 100%); }
.valance { position: absolute; top: 0; left: 0; width: 100%; height: clamp(110px, 20vh, 190px); z-index: 2; filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); }
.tieback { position: absolute; top: 55%; width: clamp(60px, 7vw, 110px); z-index: 3; opacity: 0; transform: translateY(-14px); transition: opacity .6s 1.7s, transform .6s 1.7s; }
.tieback.l { left: 7.4%; } .tieback.r { right: 7.4%; transform: translateY(-14px) scaleX(-1); }
.curtain-wrap.open .tieback.l { opacity: 1; transform: none; }
.curtain-wrap.open .tieback.r { opacity: 1; transform: scaleX(-1); }
.curtain-title {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4;
  transition: opacity .5s;
}
.curtain-title img { width: min(560px, 80vw); display: block; filter: drop-shadow(0 4px 14px rgba(0,0,0,.7)); }
.curtain-title span { display:block; font-family:'Poiret One'; font-size: clamp(12px, 1.6vw, 18px); letter-spacing: .5em; text-align: center; color: var(--gold-pale); margin-top: 10px; }
.curtain-wrap.open .curtain-title { opacity: 0; }
.curtain-wrap.fade { opacity: 0; }
.curtain-wrap.gone { display: none; }

/* ---------- Star cursor canvas ---------- */
#star-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

/* ---------- Common page ---------- */
.page { padding: 120px 32px 80px; max-width: 1200px; margin: 0 auto; }
.page-title { text-align: center; margin-bottom: 48px; }
.page-title h1 { font-size: clamp(40px, 7vw, 84px); text-shadow: 0 0 20px rgba(231,194,114,.45); }
.page-title p { color: var(--muted); margin-top: 8px; }
.rule { height: 1px; width: 220px; margin: 18px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.rule::after { content: '\2605'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: var(--gold); background: var(--ink); padding: 0 10px; font-size: 14px; }
@media (max-width: 600px) { .page { padding: 100px 16px 60px; } }

/* Bulb border (marquee lights) */
.bulbs { position: relative; border: 2px solid var(--gold-deep); }
.bulbs::before {
  content: ''; position: absolute; inset: -9px; pointer-events: none;
  background:
    radial-gradient(circle, var(--gold-pale) 2.5px, rgba(231,194,114,.0) 4px) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 7px;
  animation: chase 1.2s steps(2) infinite;
  filter: drop-shadow(0 0 4px var(--gold));
}
@keyframes chase { to { background-position: 9px 9px; } }

.btn {
  display: inline-block; font-family: 'Poiret One'; letter-spacing: .3em; text-transform: uppercase; font-size: 15px;
  padding: 14px 30px; border: 1px solid var(--gold); color: var(--gold); background: rgba(231,194,114,.06);
  cursor: pointer; transition: .3s;
}
.btn:hover { background: var(--gold); color: var(--ink); box-shadow: 0 0 24px rgba(231,194,114,.6); }

footer { text-align: center; padding: 30px 16px; color: var(--muted); border-top: 1px solid rgba(231,194,114,.2); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}
