:root {
  --ink: #0a0b0a;
  --ink-soft: #0e100e;
  --panel: rgba(14, 16, 14, 0.84);
  --gold: #b7a05b;
  --gold-bright: #d2bd76;
  --gold-muted: #887641;
  --cream: #eee8d7;
  --copy: #c2baa5;
  --line: rgba(183, 160, 91, 0.24);
  --green: #536c4e;
  --plum: #70424d;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: #050605;
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-gate-locked { overflow: hidden; }

button, a { font: inherit; }

button { color: inherit; }

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(5, 7, 6, 0.5), rgba(5, 6, 5, 0.9)), url("public/assets/hero-gold-smoke.png") center / cover;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.opening-screen * { -webkit-tap-highlight-color: transparent; }
.opening-screen:focus { outline: none; }
.opening-screen:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -10px; }

.opening-screen[hidden] { display: none; }

.opening-screen.is-opening { visibility: hidden; opacity: 0; pointer-events: none; }

.opening-screen::before,
.opening-screen::after {
  content: "";
  position: absolute;
  width: min(72vw, 430px);
  height: min(72vw, 430px);
  border: 1px solid rgba(210, 189, 118, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.opening-screen::before { transform: rotate(45deg) scaleY(0.6); }
.opening-screen::after { transform: rotate(-45deg) scaleY(0.6); border-color: rgba(210, 189, 118, 0.1); }

.opening-screen__glow {
  position: absolute;
  width: min(90vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 160, 91, 0.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: opening-glow 5s ease-in-out infinite;
}

.opening-screen__frame {
  position: relative;
  display: flex;
  width: min(100%, 430px);
  min-height: min(78svh, 620px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 26px;
  border: 1px solid rgba(210, 189, 118, 0.5);
  outline: 1px solid rgba(210, 189, 118, 0.14);
  outline-offset: 8px;
  background: linear-gradient(180deg, rgba(10, 13, 10, 0.28), rgba(8, 10, 8, 0.58));
  text-align: center;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.35), inset 0 0 60px rgba(183, 160, 91, 0.04);
  animation: opening-frame-in 1.2s ease both;
}

.opening-screen__frame::before,
.opening-screen__frame::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 0.8rem;
}

.opening-screen__frame::before { top: 17px; left: 18px; }
.opening-screen__frame::after { right: 18px; bottom: 17px; }

.opening-screen__intro { max-width: 230px; margin: 0 auto 2.2rem; color: #c5b98d; font-family: "Cormorant Garamond", serif; font-size: 1.05rem; font-style: italic; line-height: 1.45; }

.opening-screen__names { display: flex; flex-direction: column; gap: 0.02em; margin: 0; color: var(--gold-bright); font-family: "Cormorant Garamond", serif; font-size: clamp(4.2rem, 18vw, 6.4rem); font-style: italic; letter-spacing: -0.07em; line-height: 0.7; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }
.opening-screen__names i { margin: 0.18em 0 0.06em; color: var(--gold-muted); font-size: 0.26em; font-style: normal; letter-spacing: 0; line-height: 1; }

.opening-screen__rule { display: flex; align-items: center; gap: 0.7rem; width: min(100%, 270px); margin: 2.4rem auto 0; color: var(--gold-muted); }
.opening-screen__rule span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-muted)); }
.opening-screen__rule span:last-of-type { background: linear-gradient(90deg, var(--gold-muted), transparent); }
.opening-screen__rule b { font-size: 0.42rem; font-weight: 500; letter-spacing: 0.3em; white-space: nowrap; }
.opening-screen__location { margin: 0.95rem 0 0; color: rgba(225, 208, 146, 0.65); font-size: 0.42rem; letter-spacing: 0.22em; text-transform: uppercase; }

.opening-screen__prompt { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; margin-top: 4.2rem; color: rgba(238, 232, 215, 0.72); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; }
.opening-screen__prompt i { display: block; width: 1px; height: 42px; background: linear-gradient(to bottom, var(--gold-bright), transparent); animation: scroll-pulse 2s ease-in-out infinite; }

@keyframes opening-frame-in { from { opacity: 0; transform: scale(0.96) translateY(18px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes opening-glow { 0%, 100% { transform: scale(0.94); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 1; } }

@media (max-height: 650px) {
  .opening-screen__frame { min-height: 0; padding: 34px 20px; }
  .opening-screen__intro { margin-bottom: 1.5rem; }
  .opening-screen__rule { margin-top: 1.8rem; }
  .opening-screen__prompt { margin-top: 2.5rem; }
}

.ambient-layer {
  position: fixed;
  inset: 0;
  left: 50%;
  width: min(100vw, var(--max));
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 2;
}

.ambient-stars, .ambient-particles { position: absolute; inset: 0; overflow: hidden; }

.ambient-star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: twinkle ease-in-out infinite;
  box-shadow: 0 0 7px rgba(210, 189, 118, 0.45);
}

.ambient-particle {
  position: absolute;
  bottom: -8vh;
  border-radius: 50%;
  background: var(--gold);
  animation: float-particle linear infinite;
  opacity: 0;
  box-shadow: 0 0 8px rgba(183, 160, 91, 0.35);
}

.invitation-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.hero {
  position: relative;
  display: grid;
  min-height: max(720px, 100svh);
  place-items: center;
  padding: 72px 28px 76px;
  isolation: isolate;
  background: linear-gradient(rgba(5, 7, 6, 0.18), rgba(5, 7, 6, 0.25)), url("public/assets/hero-gold-smoke.png") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(183, 160, 91, 0.35);
  pointer-events: none;
}

.hero__content { position: relative; width: min(100%, 500px); text-align: center; z-index: 1; }

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero .eyebrow { max-width: 250px; margin: 0 auto; color: #bba767; }

.gold-mark { display: block; margin: 1.45rem auto; color: var(--gold-bright); font-size: 0.92rem; text-shadow: 0 0 18px rgba(210, 189, 118, 0.55); }

.hero__intro { max-width: 270px; margin: 0 auto 2rem; color: #c5b98d; font-family: "Cormorant Garamond", serif; font-size: 1rem; font-style: italic; line-height: 1.45; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; }

h1 { display: flex; flex-direction: column; gap: 0.02em; margin: 0; color: var(--gold-bright); font-size: clamp(4.4rem, 18vw, 7.2rem); font-style: italic; letter-spacing: -0.07em; line-height: 0.7; text-shadow: 0 2px 20px rgba(0,0,0,.35); }

h1 i { margin: 0.18em 0 0.06em; color: var(--gold-muted); font-size: 0.26em; font-style: normal; letter-spacing: 0; line-height: 1; }

.hero__rule, .footer-rule { display: flex; align-items: center; gap: 0.7rem; width: min(100%, 285px); margin: 2.3rem auto 0; color: var(--gold-muted); }

.hero__rule span, .footer-rule span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-muted)); }

.hero__rule span:last-of-type, .footer-rule span:last-of-type { background: linear-gradient(90deg, var(--gold-muted), transparent); }

.hero__rule b, .footer-rule b { font-size: 0.42rem; font-weight: 500; letter-spacing: 0.32em; white-space: nowrap; }

.hero__micro { margin: 0.95rem 0 0; color: rgba(225, 208, 146, 0.65); font-size: 0.42rem; letter-spacing: 0.22em; text-transform: uppercase; }

.ornament-corner { position: absolute; z-index: 2; width: 14px; height: 14px; border-color: var(--gold); border-style: solid; opacity: 0.8; }
.ornament-corner--tl { top: 22px; left: 22px; border-width: 1px 0 0 1px; }
.ornament-corner--tr { top: 22px; right: 22px; border-width: 1px 1px 0 0; }
.ornament-corner--bl { bottom: 22px; left: 22px; border-width: 0 0 1px 1px; }
.ornament-corner--br { right: 22px; bottom: 22px; border-width: 0 1px 1px 0; }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; color: rgba(238, 232, 215, 0.62); font-size: 0.5rem; letter-spacing: 0.16em; text-decoration: none; text-transform: uppercase; }
.scroll-cue__line { display: block; width: 1px; height: 34px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scroll-pulse 2s ease-in-out infinite; }

.motion-ready .hero__content > * { opacity: 0; animation: fade-up 1.2s ease forwards; }
.motion-ready .hero__content > :nth-child(1) { animation-delay: 0.3s; }
.motion-ready .hero__content > :nth-child(2) { animation-duration: 1s; animation-delay: 0.8s; }
.motion-ready .hero__content > :nth-child(3) { animation-delay: 1s; }
.motion-ready .hero__content > :nth-child(4) { animation-duration: 1.5s; animation-delay: 1.2s; }
.motion-ready .hero__content > :nth-child(5) { animation-delay: 1.6s; }
.motion-ready .hero__content > :nth-child(6) { animation-delay: 1.9s; }
.motion-ready .scroll-cue { opacity: 0; animation: cue-fade-up 1s ease 2.5s forwards; }

@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cue-fade-up { from { opacity: 0; transform: translateX(-50%) translateY(30px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes scroll-pulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }
@keyframes float-particle { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 0.52; } 90% { opacity: 0.22; } 100% { transform: translateY(-118vh) rotate(720deg); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.1; transform: scale(1); } 50% { opacity: 0.65; transform: scale(1.5); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(183, 160, 91, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(183, 160, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(183, 160, 91, 0); } }

.motion-ready .reveal, .motion-ready .reveal-left, .motion-ready .reveal-right { opacity: 0; transition: opacity 0.9s ease, transform 0.9s ease; }
.motion-ready .reveal { transform: translateY(40px); }
.motion-ready .reveal-left { transform: translateX(-40px); }
.motion-ready .reveal-right { transform: translateX(40px); }
.motion-ready .reveal.visible, .motion-ready .reveal-left.visible, .motion-ready .reveal-right.visible { opacity: 1; transform: translate(0); }

.section { position: relative; padding: clamp(5rem, 13vw, 7.6rem) 20px; background: var(--ink-soft); }
.section:nth-of-type(even) { background: #0c0e0c; }
.section-frame { max-width: 540px; margin: 0 auto; padding: clamp(2rem, 8vw, 4rem) 24px; border: 1px solid var(--line); text-align: center; }
.section--welcome { padding: clamp(5rem, 13vw, 7rem) 24px; }
.section--welcome .gold-mark { margin: 1rem auto 1.5rem; }

.section-heading { margin-bottom: 2.4rem; text-align: center; }
.section-heading h2 { margin: 0.65rem 0 0.8rem; color: var(--gold-bright); font-size: clamp(2.5rem, 10vw, 4rem); font-style: italic; line-height: 0.82; }
.section-heading h2 em { font-weight: 400; }
.ornament-line { display: block; width: 58px; height: 1px; margin: 1rem auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.section-frame h2 { margin: 0; color: var(--gold-bright); font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 8vw, 3rem); font-style: italic; font-weight: 500; line-height: 1.05; }
.body-copy { max-width: 390px; margin: 1.3rem auto 0; color: var(--copy); font-family: "Cormorant Garamond", serif; font-size: 1.02rem; line-height: 1.45; }
.body-copy--accent { color: #ded2a7; font-style: italic; }
.signature { margin: 2rem auto 0; color: var(--gold-muted); font-family: "Cormorant Garamond", serif; font-size: 0.9rem; font-style: italic; line-height: 1.4; }
.signature strong { color: var(--gold); font-weight: 500; }

.person-card, .venue-card, .event-card { border: 1px solid var(--line); background: rgba(14, 16, 14, 0.6); transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.person-card { padding: 2rem 1.3rem; text-align: center; }
.person-card:hover, .person-card:focus-within { border-color: rgba(210, 189, 118, 0.62); transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.person-card h3 { margin: 0.65rem 0 0.5rem; color: var(--gold-bright); font-size: clamp(2rem, 8vw, 3.1rem); font-style: italic; line-height: 0.9; }
.person-card p:not(.eyebrow) { margin-bottom: 0.35rem; color: var(--copy); font-family: "Cormorant Garamond", serif; font-size: 0.95rem; }
.person-card .muted { color: var(--gold-muted); font-size: 0.8rem !important; }
.ampersand { width: 100%; padding: 0.6rem 0; color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 2.4rem; font-style: italic; text-align: center; }

.section--countdown { background: #0b0d0b; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 510px; margin: 2.8rem auto 0; }
.time-box { position: relative; display: grid; gap: 0.35rem; padding: 1.05rem 0.35rem 0.85rem; border: 1px solid rgba(183, 160, 91, 0.23); border-right: 0; text-align: center; }
.time-box:last-child { border-right: 1px solid rgba(183, 160, 91, 0.23); }
.time-box strong { color: var(--gold-bright); font-family: "Cormorant Garamond", serif; font-size: 2.1rem; font-weight: 500; line-height: 0.8; }
.time-box span { color: var(--gold-muted); font-size: 0.4rem; letter-spacing: 0.16em; text-transform: uppercase; }

.section--events { background: #0b0d0b; }
.event-card { position: relative; margin-top: 0.85rem; padding: 1.25rem 1.15rem 1.2rem; overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.025); background: linear-gradient(135deg, rgba(183, 160, 91, 0.11), transparent 55%); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.event-card > * { position: relative; z-index: 1; }
.event-card:hover, .event-card:focus-within { border-color: rgba(210, 189, 118, 0.7); transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }
.event-card:hover::before, .event-card:focus-within::before { opacity: 1; }
.event-card--green { border-color: rgba(83, 108, 78, .7); }
.event-card--gold { border-color: rgba(183, 160, 91, .58); }
.event-card--olive { border-color: rgba(103, 113, 56, .65); }
.event-card--plum { border-color: rgba(112, 66, 77, .82); }
.event-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--gold); }
.event-index { font-size: 0.43rem; letter-spacing: 0.2em; text-transform: uppercase; }
.event-icon { font-size: 1rem; }
.event-card h3 { position: relative; margin: 0.8rem 0 1rem; color: var(--gold-bright); font-size: 2.3rem; font-style: italic; line-height: 0.85; }
.event-detail { display: flex; gap: 0.5rem; align-items: center; margin: 0.4rem 0; color: var(--copy); font-family: "Cormorant Garamond", serif; font-size: 0.85rem; }
.event-detail span { color: var(--gold); font-family: serif; font-size: 0.8rem; }
.event-detail b { font-weight: 400; }
.event-venue { margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px solid rgba(183,160,91,.18); color: var(--gold-muted); font-family: "Cormorant Garamond", serif; font-size: 0.85rem; line-height: 1.35; }

.section--venues { background: #0d0f0d; }
.venue-card { margin-top: 0.85rem; padding: 1.6rem 1rem 1.2rem; text-align: center; }
.venue-card:hover, .venue-card:focus-within { border-color: rgba(210, 189, 118, 0.62); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }
.venue-card h3 { margin: 0.65rem 0 0.3rem; color: var(--gold-bright); font-size: 2.2rem; font-style: italic; line-height: 0.9; }
.venue-card p:not(.eyebrow) { margin: 0 0 1.35rem; color: var(--copy); font-family: "Cormorant Garamond", serif; font-size: 0.95rem; }
.venue-card a { display: inline-block; padding: 0.65rem 1rem; border: 1px solid var(--gold-muted); color: var(--gold-bright); font-size: 0.48rem; letter-spacing: 0.18em; text-decoration: none; text-transform: uppercase; transition: background .25s ease, color .25s ease; }
.venue-card a:hover, .venue-card a:focus-visible { background: var(--gold); color: var(--ink); }
.venue-card a span { margin-left: 0.4rem; font-size: 0.8rem; }
.venue-card--plum { border-color: rgba(112, 66, 77, .8); }

.section--gallery { padding-bottom: 5.2rem; background: #080a08; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.gallery-item { position: relative; display: block; aspect-ratio: 1 / 1; min-width: 0; padding: 0.28rem; border: 1px solid rgba(183, 160, 91, 0.36); overflow: hidden; background: linear-gradient(145deg, rgba(183, 160, 91, 0.12), rgba(20, 24, 19, 0.55)); box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2); cursor: zoom-in; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0.58rem; border: 1px solid rgba(238, 232, 215, 0.32); opacity: 0.7; pointer-events: none; }
.gallery-item--last { grid-column: 1 / -1; width: calc((100% - 0.55rem) / 2); justify-self: center; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease, filter .45s ease; }
.gallery-item:nth-child(1) img { object-position: center 18%; }
.gallery-item:nth-child(2) img { object-position: center 15%; }
.gallery-item:hover, .gallery-item:focus-visible { border-color: var(--gold-bright); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); filter: saturate(1.08); }
.gallery-note { margin: 1.5rem 0 0; color: var(--gold-muted); font-family: "Cormorant Garamond", serif; font-size: 1rem; font-style: italic; text-align: center; }

.footer { position: relative; padding: 4.7rem 20px 5.8rem; background: #090b09; text-align: center; }
.footer .gold-mark { margin: 0 auto 1rem; }
.footer h2 { margin: 0; color: var(--gold-bright); font-size: 3.4rem; font-style: italic; line-height: .8; }
.footer h2 span { color: var(--gold-muted); font-size: .55em; }
.footer p { margin: 1.1rem 0 0; color: var(--copy); font-family: "Cormorant Garamond", serif; font-size: .95rem; font-style: italic; }
.footer-rule { margin-top: 1.8rem; }
.back-to-top { position: absolute; right: 20px; bottom: 22px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--gold-muted); border-radius: 50%; background: var(--gold); color: var(--ink); cursor: pointer; font-size: 1.1rem; }

.music-toggle { position: fixed; right: max(18px, calc((100vw - var(--max)) / 2 + 18px)); bottom: 20px; z-index: 8; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--gold-bright); border-radius: 50%; background: linear-gradient(135deg, var(--gold-bright), var(--gold-muted)); color: var(--ink); cursor: pointer; font-size: 1.2rem; box-shadow: 0 0 18px rgba(183, 160, 91, 0.38); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.music-toggle:hover, .music-toggle:focus-visible { transform: scale(1.1); box-shadow: 0 0 30px rgba(210, 189, 118, 0.68); outline: none; }
.music-toggle.is-pressed { transform: scale(0.96); }
.music-toggle.is-playing { animation: pulse-ring 2s ease infinite; }

.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1.25rem; background: rgba(2, 3, 2, 0.93); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 620px); max-height: 88svh; object-fit: contain; box-shadow: 0 14px 45px #000; }
.lightbox__close { position: absolute; top: 15px; right: 18px; border: 0; background: transparent; color: var(--gold-bright); cursor: pointer; font-size: 2rem; font-weight: 300; line-height: 1; }

@media (min-width: 700px) {
  body { padding: 24px 0; background: radial-gradient(circle at center, #1b211b 0, #050605 52%); }
  .invitation-shell { border: 1px solid rgba(183,160,91,.12); }
  .hero { min-height: 920px; }
  .section { padding-left: 58px; padding-right: 58px; }
  .section--welcome { padding-left: 58px; padding-right: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ambient-layer { display: none; }
  .motion-ready .hero__content > *, .motion-ready .scroll-cue, .motion-ready .reveal, .motion-ready .reveal-left, .motion-ready .reveal-right { opacity: 1; transform: none; animation: none; }
}
