:root {
  --navy-950: #030915;
  --navy-900: #071326;
  --navy-800: #0b1e3b;
  --navy-700: #12315a;
  --gold-300: #f8dd8b;
  --gold-400: #ddb85f;
  --gold-500: #b98a2e;
  --ivory: #fffaf0;
  --muted: #c5ccda;
  --line: rgba(221, 184, 95, .28);
  --display: "Cinzel", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: var(--navy-950);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.page-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 82px;
  padding: 0 clamp(22px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, height .35s;
}
.site-header.scrolled { height: 70px; background: rgba(3,9,21,.9); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 2; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--display); color: var(--gold-300); letter-spacing: .16em; font-size: 1.05rem; }
.brand small { color: #dde3ee; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
nav a { position: relative; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: #e7eaf0; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--gold-400); transition: right .25s; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; position: relative; z-index: 2; }
.menu-button span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 6px auto; background: var(--gold-300); transition: transform .25s, opacity .25s; }

.hero {
  min-height: 100svh;
  padding: 130px clamp(24px, 6vw, 100px) 54px;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 60px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, rgba(38,79,137,.3), transparent 28%),
    radial-gradient(circle at 24% 28%, rgba(185,138,46,.08), transparent 30%),
    linear-gradient(140deg, #020711 0%, #07152b 56%, #020814 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .36; background-image: radial-gradient(circle, rgba(255,244,205,.75) 0 1px, transparent 1.5px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 86%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: -1; background: linear-gradient(to top, var(--navy-950), transparent); }
.hero-ornament { position: absolute; width: 220px; height: 220px; opacity: .32; border-color: var(--gold-400); pointer-events: none; }
.hero-ornament::before, .hero-ornament::after { content: ""; position: absolute; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.hero-ornament-left { left: 18px; top: 98px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.hero-ornament-right { right: 18px; bottom: 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 680px; z-index: 5; }
.eyebrow { margin: 0 0 17px; color: var(--gold-300); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; }
h1, h2 { font-family: var(--display); margin: 0; font-weight: 600; line-height: 1.05; }
h1 { font-size: clamp(2.9rem, 6vw, 6.7rem); letter-spacing: .015em; text-shadow: 0 2px 0 #6f4d13, 0 0 26px rgba(221,184,95,.16); }
h1 span { display: block; color: var(--gold-300); background: linear-gradient(180deg, #fff2b7 5%, #e3bd62 48%, #9e681b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 28px 0 0; max-width: 620px; font-family: var(--serif); font-size: clamp(1.28rem, 2vw, 1.72rem); color: #dde2eb; line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { min-height: 48px; padding: 12px 22px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--gold-400); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: #081225; background: linear-gradient(135deg, #f7df94, #bb852b); box-shadow: 0 12px 34px rgba(185,138,46,.18); }
.button-ghost:hover { color: #091226; background: var(--gold-300); }
.hero-dates { display: flex; align-items: center; gap: 22px; margin-top: 42px; }
.hero-dates div { display: flex; align-items: center; gap: 11px; }
.hero-dates span { font: 600 2.1rem/1 var(--display); color: var(--gold-300); }
.hero-dates p { margin: 0; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; line-height: 1.35; }
.hero-dates small { color: #9ea9ba; font-size: .62rem; }
.hero-dates i { width: 1px; height: 36px; background: var(--line); }

.sacred-stage { width: min(100%, 760px); aspect-ratio: 1 / 1.04; position: relative; justify-self: center; align-self: end; }
.sacred-stage img { position: absolute; object-fit: contain; pointer-events: none; user-select: none; }
.stage-glow { position: absolute; width: 66%; aspect-ratio: 1; left: 17%; top: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(255,219,112,.23), transparent 65%); filter: blur(18px); }
.stage-aureola { z-index: 1; width: 70%; left: 15%; top: 0; filter: drop-shadow(0 0 25px rgba(239,188,65,.3)); }
.stage-flowers { z-index: 2; width: 94%; left: 3%; bottom: 13%; }
.stage-table { z-index: 2; width: 100%; left: 0; bottom: 0; }
.stage-puff { z-index: 3; width: 62%; left: 19%; bottom: 9%; }
.stage-child { z-index: 4; width: 76%; height: 92%; left: 12%; top: -1%; object-position: center bottom; filter: drop-shadow(0 18px 16px rgba(0,0,0,.34)); }
.scroll-cue { position: absolute; z-index: 6; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1px solid rgba(248,221,139,.5); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold-300); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(17px); } }

section:not(.hero) { padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 118px); }
.section-heading { width: min(820px, 100%); margin: 0 auto 52px; text-align: center; }
.section-heading h2, .story-copy h2, .tradition-copy h2, .anniversary-copy h2 { font-size: clamp(2rem, 4vw, 4.25rem); color: var(--ivory); }
.section-heading > p:last-child { font-family: var(--serif); color: var(--muted); font-size: 1.25rem; }

.countdown-section { position: relative; text-align: center; background: linear-gradient(180deg, #030915, #081a34 50%, #050e1d); overflow: hidden; }
.countdown-section::before { content: "2027"; position: absolute; inset: 6% 0 auto; font: 700 clamp(9rem, 26vw, 28rem)/1 var(--display); color: rgba(255,255,255,.018); letter-spacing: -.05em; }
.countdown { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 2vw, 22px); position: relative; }
.time-card { min-height: 178px; padding: 28px 12px; display: grid; place-content: center; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); box-shadow: inset 0 0 30px rgba(221,184,95,.025); }
.time-card strong { font: 600 clamp(2.7rem, 6vw, 5.7rem)/1 var(--display); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.time-card span { margin-top: 14px; color: #cdd4df; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; }
.time-card.secondary strong { color: #edf0f4; }
.countdown-status { color: #9eabba; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.gold-divider { width: min(640px, 84vw); margin: 30px auto 0; }

.story-section { display: grid; grid-template-columns: minmax(320px, 1.08fr) minmax(300px, .92fr); gap: clamp(46px, 8vw, 120px); align-items: center; background: #f8f3e8; color: #172238; }
.story-photo { position: relative; padding: 0 0 32px 32px; }
.story-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 64%; height: 72%; border: 1px solid #b98a2e; }
.story-photo img { position: relative; width: 100%; min-height: 520px; object-fit: cover; object-position: center; filter: saturate(.88) contrast(1.03); }
.photo-caption { position: absolute; right: -18px; bottom: 0; padding: 18px 28px; color: var(--ivory); background: var(--navy-900); border-left: 3px solid var(--gold-400); }
.photo-caption span, .photo-caption strong { display: block; }
.photo-caption span { font: italic 1.15rem var(--serif); }
.photo-caption strong { font-size: .67rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.story-copy .eyebrow { color: #946916; }
.story-copy h2 { color: var(--navy-900); }
.story-copy > p:not(.eyebrow) { font-family: var(--serif); font-size: 1.22rem; color: #3d4655; }
blockquote { margin: 34px 0; padding: 8px 0 8px 27px; border-left: 2px solid var(--gold-400); font: italic 600 clamp(1.6rem, 3vw, 2.3rem)/1.2 var(--serif); color: #8c641e; }

.tradition-section { position: relative; min-height: 720px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(40px, 7vw, 100px); background: #050d1b; overflow: hidden; }
.melody { position: absolute; inset: 2% 0 auto; height: 40%; background: url('assets/melodia.webp') center/contain no-repeat; opacity: .07; filter: sepia(1) saturate(1.5); }
.tradition-copy { position: relative; z-index: 2; }
.tradition-copy p:not(.eyebrow) { font-family: var(--serif); font-size: 1.22rem; color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.values span { padding: 8px 13px; border: 1px solid var(--line); color: var(--gold-300); text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; }
.tradition-photo { position: relative; }
.tradition-photo::before { content: ""; position: absolute; inset: -20px 22px 22px -20px; border: 1px solid var(--line); }
.tradition-photo img { position: relative; width: 100%; max-height: 600px; object-fit: cover; filter: saturate(.9) contrast(1.03); }

.anniversary-section { display: grid; grid-template-columns: .62fr 1.38fr; align-items: center; gap: clamp(42px, 8vw, 110px); background: radial-gradient(circle at 22% 50%, #173766, #09172d 34%, #040b16 74%); }
.crest-halo { width: min(420px, 78vw); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; position: relative; }
.crest-halo::before, .crest-halo::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(221,184,95,.35); }
.crest-halo::before { inset: 4%; box-shadow: 0 0 70px rgba(221,184,95,.14); }
.crest-halo::after { inset: 13%; border-style: dashed; animation: spin 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crest-halo img { width: 70%; filter: drop-shadow(0 18px 22px rgba(0,0,0,.38)); }
.anniversary-label { color: var(--gold-300); font: italic 600 1.6rem var(--serif); }
.anniversary-copy > p:last-child { max-width: 700px; font-family: var(--serif); font-size: 1.25rem; color: var(--muted); }

.contact-section { background: #f8f3e8; color: var(--navy-900); }
.contact-section .eyebrow { color: #966a17; }
.contact-section .section-heading h2 { color: var(--navy-900); }
.contact-grid { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(185,138,46,.38); }
.contact-grid > * { min-height: 150px; padding: 28px; display: flex; align-items: center; gap: 20px; text-decoration: none; background: rgba(255,255,255,.48); }
.contact-grid > * + * { border-left: 1px solid rgba(185,138,46,.38); }
.contact-grid a { transition: background .2s, color .2s; }
.contact-grid a:hover { background: var(--navy-900); color: var(--ivory); }
.contact-grid b { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--gold-500); border-radius: 50%; color: #966a17; font: 600 .72rem var(--display); }
.contact-grid span { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.contact-grid small { display: block; margin-top: 5px; color: #6c7480; font-size: .72rem; font-weight: 400; }
.contact-grid a:hover small { color: #bfc7d5; }

footer { padding: 58px 24px; display: grid; justify-items: center; text-align: center; border-top: 1px solid var(--line); background: #020711; }
footer img { width: 72px; }
footer p { margin: 15px 0 2px; font: 600 1.15rem var(--display); color: var(--gold-300); }
footer span { font: italic 1.05rem var(--serif); color: #c5cbd5; }
footer small { margin-top: 17px; color: #758094; letter-spacing: .13em; text-transform: uppercase; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 25; width: 46px; height: 46px; border: 1px solid var(--gold-400); color: var(--gold-300); background: rgba(3,9,21,.86); font-size: 1.2rem; cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  nav { position: fixed; inset: 0; padding: 120px 32px 50px; display: grid; place-content: center; gap: 28px; text-align: center; background: rgba(3,9,21,.97); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s; }
  nav.open { opacity: 1; visibility: visible; transform: none; }
  nav a { font: 500 1.25rem var(--display); }
  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: center; }
  .hero-copy { margin: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-dates { justify-content: center; }
  .sacred-stage { width: min(680px, 100%); }
  .scroll-cue { display: none; }
  .countdown { grid-template-columns: repeat(3, 1fr); }
  .time-card.secondary { min-height: 130px; }
  .time-card:nth-child(4) { grid-column: 1 / 2; margin-left: 50%; }
  .time-card:nth-child(5) { grid-column: 2 / 3; margin-left: 50%; }
  .story-section, .tradition-section, .anniversary-section { grid-template-columns: 1fr; }
  .story-copy { order: -1; }
  .tradition-photo { max-width: 760px; }
  .anniversary-copy { text-align: center; }
  .anniversary-copy > p:last-child { margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > * + * { border-left: 0; border-top: 1px solid rgba(185,138,46,.38); }
}

@media (max-width: 620px) {
  .site-header { height: 70px; padding-inline: 18px; }
  .brand img { width: 44px; height: 44px; }
  .hero { padding: 112px 18px 40px; min-height: auto; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .hero-actions { display: grid; }
  .hero-dates { gap: 12px; }
  .hero-dates span { font-size: 1.7rem; }
  .hero-dates p { font-size: .66rem; }
  .sacred-stage { margin-top: 15px; }
  section:not(.hero) { padding: 72px 18px; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .time-card { min-height: 140px; }
  .time-card:nth-child(3) { grid-column: 1 / -1; }
  .time-card:nth-child(4), .time-card:nth-child(5) { grid-column: auto; margin-left: 0; }
  .story-photo { padding: 0 0 18px 14px; }
  .story-photo img { min-height: 390px; }
  .photo-caption { right: -2px; padding: 13px 18px; }
  .tradition-photo::before { inset: -10px 10px 10px -10px; }
  .contact-grid > * { min-height: 126px; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
