/* ===== Heritage Theme — wedding invite clone ===== */
@font-face {
  font-family: "Ettielier";
  src: url("assets/fonts/Ettielier-Regular.woff2") format("woff2"),
       url("assets/fonts/Ettielier-Regular.woff") format("woff"),
       url("assets/fonts/Ettielier-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Self-hosted Google Fonts (latin + latin-ext) — no external calls (GDPR) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-500-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-500-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-600-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-600-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/montserrat-300-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/montserrat-300-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-500-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/montserrat-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-600-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 11%;
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 45%;
  --accent: 0 0% 18%;
  --accent-foreground: 0 0% 100%;
  --border: 0 0% 87%;
  --wedding-cream: 0 0% 97.5%;
  --wedding-paper: 0 0% 99%;
  --wedding-blush: 0 0% 94%;
  --wedding-sage: 0 0% 80%;
  --wedding-accent: 0 0% 20%;
  --wedding-text: 0 0% 12%;
  --wedding-olive: 0 0% 8%;
  --wedding-gold: 0 0% 82%;
  --ring-gold: 41 58% 50%;

  --font-script: "Ettielier", "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Montserrat", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: hsl(var(--wedding-accent) / .2); }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-sans);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ===== intro quote overlay ===== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem;
  background: none;
}
.intro.done { display: none; }
/* the cover paints the white backdrop, behind the quote (z-index:-1 so it does
   not become the containing block for the absolutely-placed button) */
.intro-cover { position: fixed; inset: 0; z-index: -1; background: #fff; }
/* circular reveal: the cover's background is a radial gradient — a transparent
   hole at the button, opaque pure-white everywhere else (hard ~2px edge so the
   wipe is ABSOLUTELY white over any background, no grey feather). A GPU
   transform: scale() grows it (JS-driven). Background, not -webkit-mask — mask
   greys the overlay and is unreliable on iOS Safari. */
.intro.revealing { pointer-events: none; } /* let clicks pass to the page during the wipe */
.intro.revealing .intro-cover {
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 90%), transparent 0 8px, #fff 10px);
  transform: scale(1);
  will-change: transform;
}
.intro.revealing .intro-inner { transition: opacity .6s ease; opacity: 0; }
.intro-lock, .intro-lock body { overflow: hidden; height: 100%; }
.intro-inner { max-width: 44rem; text-align: center; }
.intro-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.45;
  color: hsl(var(--foreground));
  opacity: 0; animation: introFadeIn 1.4s ease forwards;
}
.intro-author {
  display: block; margin-top: 1.75rem;
  font-size: .72rem; letter-spacing: .35em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  opacity: 0; animation: introFadeIn 1.4s ease .4s forwards;
}
@keyframes introFadeIn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes introFadeInOpacity {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.intro-enter {
  position: absolute; bottom: 3.5rem; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.8rem;
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: hsl(var(--wedding-olive)); cursor: pointer;
  background: transparent;
  border: 1px solid hsl(var(--wedding-olive) / .5); border-radius: 999px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  opacity: 0; animation: introFadeInOpacity 1.4s ease .8s forwards;
}
.intro-enter:hover {
  background: hsl(var(--wedding-olive)); color: hsl(var(--background));
  border-color: hsl(var(--wedding-olive));
}

.container { width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.max-4xl { max-width: 56rem; }
.max-5xl { max-width: 64rem; }
.max-3xl { max-width: 48rem; }

/* ===== typography helpers ===== */
.script { font-family: var(--font-script); font-weight: 400; line-height: 1.1; }

/* ===== hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 2rem 1.5rem; overflow: hidden;
  background: hsl(0 0% 100%);
}
/* pin the title a fixed distance below the header (not vertically centred, so
   it never hugs the seal on short iOS viewports) */
.hero-inner { text-align: center; z-index: 10; margin-top: clamp(7rem, 12vh, 12rem); }
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  color: hsl(var(--foreground));
  margin-bottom: .5rem;
  /* script glyphs (the capital "L" swash) overshoot the text box; pad so
     Safari doesn't clip them, and add room for descenders */
  padding: .1em .4em;
  overflow: visible;
}
.hero-amp { margin: 0 .5rem; }
.hero-date {
  margin-top: 22rem;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.4rem); letter-spacing: .02em; text-transform: none;
  color: hsl(var(--muted-foreground)); padding: .375rem 0;
}
/* short viewports: pull the date up so it never overlaps the scroll cue */
@media (max-height: 760px) {
  .hero-date { margin-top: clamp(6rem, 30vh, 17rem); }
}
.scroll-indicator {
  position: absolute; bottom: 3.5rem; left: 50%; transform: translateX(-50%);
  z-index: 15; display: flex; justify-content: center;
  background: none; border: none; padding: .5rem; cursor: pointer;
}
.scroll-cue { display: flex; flex-direction: column; align-items: center; }
/* bold, solid chevrons drawn with borders (no thin outline icon) */
.scroll-cue i {
  width: 11px; height: 11px;
  border-right: 1.5px solid hsl(var(--wedding-olive));
  border-bottom: 1.5px solid hsl(var(--wedding-olive));
  opacity: 0; animation: scrollCue 1.8s ease-in-out infinite;
}
.scroll-cue i:nth-child(2) { margin-top: 2px; animation-delay: .22s; }
.ic { display: inline-block; vertical-align: middle; object-fit: contain; }

/* ===== hero: full-bleed wedding video with the names overlaid in white ===== */
.hero-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%; z-index: 0; pointer-events: none;
}
/* mobile crops the sides — bias the frame to keep the couple centred */
@media (max-width: 600px) { .hero-vid { object-position: 70% 55%; } }
/* dark scrim so the white names stay legible over light parts of the clip */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, hsl(0 0% 0% / .38) 0%, hsl(0 0% 0% / .18) 42%, hsl(0 0% 0% / .28) 100%);
}
/* white fade at the bottom of the video */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(to bottom, hsl(0 0% 100% / 0) 0%, hsl(var(--background)) 94%);
  z-index: 2; pointer-events: none;
}
.hero-names { color: #fff; text-shadow: 0 2px 28px hsl(0 0% 0% / .45); }
.hero-date { color: hsl(0 0% 100% / .92); text-shadow: 0 1px 14px hsl(0 0% 0% / .4); }

/* ===== section base ===== */
section { position: relative; }
.section-head { text-align: center; margin-bottom: 4.5rem; }
.section-eyebrow.script { font-size: 1.5rem; }
.heading-serif {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: .02em;
}
.rule {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  margin-top: 1.75rem;
}
.rule .line { height: 1px; width: 4.5rem; background: hsl(var(--wedding-accent) / .35); }
.rule svg { color: hsl(var(--wedding-accent)); }

/* ===== story ===== */
.story { background: hsl(var(--wedding-cream)); padding: 0; }
@media (min-width: 768px) { .story { padding: 8rem 0; } }
.story-inner {
  background: hsl(var(--wedding-cream) / .76);
  padding: 3rem 0;
}
.timeline { position: relative; padding-bottom: 3rem; }
.timeline-spine {
  position: absolute; left: 1rem; top: 0; bottom: .6rem; width: 1px;
  background: hsl(var(--wedding-accent) / .2);
}
.timeline-items { display: flex; flex-direction: column; gap: 3rem; }
.timeline-item {
  position: relative; display: flex; align-items: flex-start; gap: 2rem;
}
.timeline-item .content { flex: 1; margin-left: 3rem; }
.timeline-item .spacer { display: none; }
.timeline-year { font-family: var(--font-script); font-size: 1.875rem; color: hsl(var(--wedding-accent)); }
.timeline-item h3 {
  font-family: var(--font-script); font-size: 1.875rem; font-weight: 400;
  color: hsl(var(--wedding-text)); margin: .5rem 0 .75rem;
}
.timeline-item p {
  font-family: var(--font-serif); font-style: italic; font-size: 1.125rem;
  color: hsl(var(--wedding-text) / .7);
}
/* the spine fill the rings drag behind them as you scroll the day's program */
.timeline-fill {
  position: absolute; left: 1rem; top: 0; height: 0; width: 3px;
  transform: translateX(-1px);
  background: #fff; border-radius: 2px;
  box-shadow: 0 0 0 .5px hsl(var(--wedding-accent) / .15), 0 1px 3px hsl(var(--wedding-accent) / .12);
  will-change: height;
}
.timeline-rings {
  position: absolute; left: 16px; top: 0;
  transform: translate(-50%, -50%);
  color: hsl(var(--ring-gold));
  will-change: top;
}
.timeline-rings img { display: block; filter: drop-shadow(0 1px 2px hsl(var(--ring-gold) / .45)); }

@media (min-width: 768px) {
  .timeline-spine { left: 50%; transform: translateX(-50%); }
  .timeline-fill { left: 50%; transform: translateX(-50%); }
  .timeline-item .content { margin-left: 0; }
  .timeline-item.left { flex-direction: row; }
  .timeline-item.left .content { text-align: right; padding-right: 3rem; }
  .timeline-item.right { flex-direction: row-reverse; }
  .timeline-item.right .content { padding-left: 3rem; }
  .timeline-item .spacer { display: block; flex: 1; }
  .timeline-rings { left: 50%; }
}

/* ===== gifts ===== */
.gifts { padding: 1rem 0; background-color: hsl(var(--background)); overflow: hidden; }
@media (min-width: 768px) { .gifts { padding: 6rem 0; } }
.gifts .heading-serif { color: hsl(var(--wedding-olive)); margin: 1.25rem 0 1.5rem; }
.gifts-intro { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; color: hsl(var(--wedding-text) / .8); font-family: var(--font-serif); font-size: 1.125rem; }
.accordion {
  max-width: 36rem; margin: 0 auto;
  border: 1px solid hsl(var(--border)); border-radius: .75rem; overflow: hidden;
  background: hsl(var(--background));
}
.accordion-trigger {
  width: 100%; padding: 1.25rem 1.5rem; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; text-align: left;
  transition: background .2s;
}
.accordion-trigger:hover { background: hsl(var(--muted) / .5); }
.accordion-trigger h3 { font-family: var(--font-serif); font-size: 1.25rem; color: hsl(var(--wedding-text)); }
.accordion-trigger .chev { transition: transform .3s; color: hsl(var(--muted-foreground)); }
.accordion.open .chev { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion.open .accordion-body { max-height: 600px; }
.accordion-body-inner { padding: 0 1.5rem 1.5rem; color: hsl(var(--wedding-text) / .75); font-family: var(--font-serif); font-size: 1.0625rem; }
.bank-details { display: flex; flex-direction: column; gap: .85rem; margin-top: .5rem; }
.bank-row { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .85rem; border-bottom: 1px solid hsl(var(--border)); }
.bank-row:last-child { border-bottom: none; padding-bottom: 0; }
.bank-row dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.bank-val { display: flex; align-items: center; gap: .75rem; }
.bank-row dd { flex: 1; min-width: 0; font-family: var(--font-serif); font-size: 1.05rem; color: hsl(var(--wedding-text)); }
.bank-row dd.mono { font-family: ui-monospace, monospace; font-size: .95rem; letter-spacing: .04em; word-break: break-all; }
.copy-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: .4rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--muted-foreground));
  transition: color .2s, border-color .2s, background .2s;
}
.copy-btn:hover { color: hsl(var(--wedding-accent)); border-color: hsl(var(--wedding-accent)); }
.copy-btn.copied { color: hsl(var(--wedding-olive)); border-color: hsl(var(--wedding-olive)); }

/* ===== event details ===== */
.details { background: hsl(var(--background)); padding: 3rem 0; }
@media (min-width: 768px) { .details { padding: 8rem 0; } }
.details .heading-serif { color: hsl(var(--wedding-olive)); margin-bottom: 1rem; }
.details-intro { text-align: center; max-width: 42rem; margin: 0 auto 3rem; color: hsl(var(--muted-foreground)); font-family: var(--font-serif); font-size: 1.125rem; }
.details-grid { display: grid; gap: 2rem; max-width: 56rem; margin: 0 auto; }
.detail-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 2rem;
}
.detail-card h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.detail-card.ceremony h3 { color: hsl(var(--wedding-text)); }
.ceremony-img { display: block; width: 100%; height: auto; max-width: 360px; margin: 1.5rem auto 0; filter: grayscale(1) contrast(1.05); }
.detail-card.reception h3 { color: hsl(var(--wedding-text)); }
.detail-addr { color: hsl(var(--wedding-text) / .8); font-family: var(--font-serif); font-size: 1.0625rem; }
.detail-card p.desc { margin: 1rem 0 1.5rem; color: hsl(var(--wedding-text) / .7); font-family: var(--font-serif); font-style: italic; }
/* round map-icon button (replaces the "Apri in Maps" text button): vertically
   centred against the address, pushed to the right */
.addr-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.addr-row .detail-addr { margin-bottom: 0; }
.house .addr-row { width: 100%; } /* push the icon to the column's right edge */
.map-link {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid hsl(var(--wedding-accent) / .3); background: hsl(var(--background));
  transition: background .2s, border-color .2s, transform .2s;
}
.map-link:hover { background: hsl(var(--wedding-accent) / .08); border-color: hsl(var(--wedding-accent) / .5); transform: translateY(-1px); }
.map-link img { width: 1.05rem; height: 1.05rem; }
/* the two houses live in one card, side by side, left-aligned like the others */
.houses { display: grid; gap: 1.75rem; margin-top: 1.25rem; }
.house { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .5rem; }
.house-label { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.2rem; color: hsl(var(--wedding-olive)); }
.house .btn-outline { margin-top: .35rem; }
@media (min-width: 768px) {
  .details-grid { grid-template-columns: 1fr 1fr; }
  .houses-card { grid-column: 1 / -1; }
  .houses-card > h3, .houses-card > .desc { text-align: center; }
  /* 6rem gutter aligns the right column with the Ricevimento card below
     (= details-grid gap 2rem + card paddings 2rem×2) */
  .houses { grid-template-columns: 1fr 1fr; column-gap: 6rem; position: relative; }
  /* give the sposo column matching right breathing room toward the divider */
  .houses .house:first-child { padding-right: 2rem; }
  /* vertical line exactly between sposo and sposa */
  .houses::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 1px; background: hsl(var(--border));
  }
}

/* ===== rsvp ===== */
.rsvp { background: hsl(var(--wedding-blush)); padding: 5rem 0 5rem; }
@media (min-width: 768px) { .rsvp { padding: 8rem 0 8rem; } }
.rsvp .heading-serif { color: hsl(var(--wedding-olive)); margin-bottom: 1.5rem; }
.rsvp-intro { text-align: center; max-width: 36rem; margin: 0 auto 3rem; color: hsl(var(--muted-foreground)); font-family: var(--font-serif); font-size: 1.125rem; }
/* one box; Lorenzo then Giulia stacked, each a row with name left + icons right */
.rsvp-contacts {
  display: flex; flex-direction: column; max-width: 32rem; margin: 0 auto;
  background: hsl(var(--background)); border: 1px solid hsl(var(--border));
  border-radius: 1rem; overflow: hidden;
}
.rsvp-contact {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 1.75rem;
}
.rsvp-contact + .rsvp-contact { border-top: 1px solid hsl(var(--border)); }
.rsvp-name { font-family: var(--font-serif); font-size: 1.5rem; color: hsl(var(--wedding-olive)); }
.rsvp-actions { display: flex; gap: .75rem; margin-top: 0; }
.rsvp-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid hsl(var(--wedding-olive) / .2); background: hsl(var(--background));
  transition: background .2s, border-color .2s, transform .2s;
}
.rsvp-action:hover { background: hsl(var(--wedding-olive) / .06); border-color: hsl(var(--wedding-olive) / .45); transform: translateY(-1px); }
.rsvp-action img { width: 1.15rem; height: 1.15rem; }

/* ===== photo collection (mini) — white band, alternating with neighbours ===== */
.photos-mini { background: hsl(var(--wedding-blush)); padding: 4rem 0; }
@media (min-width: 768px) { .photos-mini { padding: 6rem 0; } }
.photos-mini .section-head { margin-bottom: 2.5rem; }
.photos-mini .heading-serif { color: hsl(var(--wedding-olive)); }
.photos-mini-inner {
  max-width: 40rem; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem;
  padding: 1.75rem 2rem; border: 1px solid hsl(var(--border)); border-radius: 1rem;
  background: hsl(var(--wedding-cream)); text-align: left;
}
.photos-mini-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: hsl(var(--wedding-olive) / .06); color: hsl(var(--wedding-accent));
}
.photos-mini-icon img { width: 1.5rem; height: 1.5rem; }
.photos-mini-text { flex: 1; min-width: 0; }
.photos-mini-text p { font-family: var(--font-serif); font-size: 1rem; color: hsl(var(--wedding-text) / .8); }
.btn-photos-mini {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.4rem; border: none; border-radius: .5rem; cursor: pointer;
  background: hsl(var(--wedding-olive)); color: hsl(var(--wedding-cream));
  font-family: var(--font-sans); font-size: .95rem; font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn-photos-mini:hover { background: hsl(var(--wedding-text)); transform: translateY(-1px); }
.btn-photos-mini:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 3px; }
@media (max-width: 600px) {
  .photos-mini-inner { flex-direction: column; text-align: center; }
  .photos-mini-text { text-align: center; }
  .btn-photos-mini { width: 100%; }
}

/* ===== top bar: transparent, with a crest medallion logo in the centre ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 3.5rem;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1.1rem; background: none; pointer-events: none;
}
.topbar > * { pointer-events: auto; }

/* left/right icon buttons in the band (hamburger + audio) */
.topbar-icon {
  position: relative; z-index: 3; width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: none; background: none; cursor: pointer;
  color: hsl(var(--wedding-olive)); transition: color .2s ease, transform .2s ease;
}
.topbar-icon:hover { color: hsl(var(--wedding-accent)); }
.topbar-icon:active { transform: scale(.92); }
.topbar-icon:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 3px; border-radius: 6px; }
.hamburger line { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.topbar-audio .ic { display: block; }
/* paper band — a slim rectangle, half the seal's height */
.env-flap {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, hsl(var(--wedding-cream) / .9) 0%, hsl(var(--wedding-blush) / .92) 100%);
  box-shadow: 0 4px 8px hsl(var(--wedding-olive) / .16);
}

/* the logo as a small signature mark — no badge */
.topbar-logo {
  position: absolute; left: 50%; bottom: 0; cursor: pointer; padding: 0; border: none;
  width: 7rem; height: 7rem; display: inline-flex; align-items: center; justify-content: center;
  background: url("assets/cera.png") center / contain no-repeat;
  filter: drop-shadow(0 6px 14px hsl(var(--wedding-olive) / .28));
  z-index: 2; transform: translate(-50%, 50%);
  transition: transform .25s ease, filter .25s ease;
}
.topbar-logo-img { display: block; height: 2.05rem; width: auto; position: relative; }
.topbar-logo:hover { transform: translate(-50%, calc(50% - 2px)); filter: drop-shadow(0 10px 22px hsl(var(--wedding-olive) / .38)); }
.topbar-logo:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 4px; }

html { scroll-padding-top: 7rem; }

.nav-menu { position: fixed; inset: 0; z-index: 90; display: block; }
.nav-menu[hidden] { display: none; }
.nav-backdrop {
  position: absolute; inset: 0; background: hsl(var(--wedding-olive) / .4);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s ease;
}
.nav-menu.in .nav-backdrop { opacity: 1; }
.nav-panel {
  position: relative; z-index: 1; width: min(84vw, 360px); height: 100%; overflow-y: auto;
  background: hsl(var(--wedding-cream));
  box-shadow: 24px 0 60px hsl(var(--wedding-olive) / .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 3.5rem 1.75rem; border-radius: 0 1.25rem 1.25rem 0;
  transform: translateX(-100%); transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.nav-menu.in .nav-panel { transform: translateX(0); }
/* close button — a circle in the panel's top-right corner */
.nav-close {
  position: absolute; top: 1rem; right: 1rem; left: auto; bottom: auto;
  transform: none; width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: hsl(var(--wedding-cream));
  box-shadow: 0 8px 20px hsl(var(--wedding-olive) / .22);
  color: hsl(var(--muted-foreground)); transition: color .2s, box-shadow .2s;
}
.nav-close:hover { color: hsl(var(--wedding-olive)); box-shadow: 0 12px 26px hsl(var(--wedding-olive) / .3); }
.nav-close:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 2px; }
.nav-eyebrow { color: hsl(var(--wedding-accent)); font-size: 1.75rem; margin-bottom: 2rem; }
.nav-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.nav-links a, .nav-foto {
  display: block; width: 100%; text-align: center; padding: .5rem 0;
  background: none; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: hsl(var(--wedding-text));
  transition: color .2s;
}
.nav-links a:hover, .nav-foto:hover { color: hsl(var(--wedding-accent)); }
/* audio toggle, relocated into the menu */
.nav-audio {
  margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.25rem; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid hsl(var(--wedding-olive) / .25);
  color: hsl(var(--muted-foreground));
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.nav-audio:hover { color: hsl(var(--wedding-olive)); border-color: hsl(var(--wedding-olive) / .5); }
.nav-audio:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 3px; }
.nav-links a:focus-visible, .nav-foto:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 3px; }
.nav-foto { color: hsl(var(--wedding-olive)); font-style: italic; }

/* courtesy overlay */
.coming-soon { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.coming-soon[hidden] { display: none; }
.coming-soon-backdrop {
  position: absolute; inset: 0; background: hsl(var(--wedding-olive) / .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.coming-soon.in .coming-soon-backdrop { opacity: 1; }
.coming-soon-card {
  position: relative; z-index: 1; width: 100%; max-width: 30rem;
  background: hsl(var(--wedding-cream)); border-radius: 1.25rem; padding: 3.25rem 2rem 2.75rem;
  text-align: center; box-shadow: 0 30px 80px hsl(var(--wedding-olive) / .35);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s ease, transform .3s ease;
}
.coming-soon.in .coming-soon-card { opacity: 1; transform: none; }
.coming-soon-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; border-radius: .5rem; cursor: pointer;
  color: hsl(var(--muted-foreground)); transition: color .2s, background .2s;
}
.coming-soon-close:hover { color: hsl(var(--wedding-olive)); background: hsl(var(--wedding-olive) / .08); }
.coming-soon-close:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 2px; }
.coming-soon-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; margin-bottom: 1.25rem; border-radius: 999px;
  background: hsl(var(--wedding-olive) / .07); color: hsl(var(--wedding-accent));
}
.coming-soon-icon img { width: 1.85rem; height: 1.85rem; }
.coming-soon-eyebrow { color: hsl(var(--wedding-accent)); font-size: 1.5rem; margin-bottom: .35rem; }
.coming-soon-card h3 { font-family: var(--font-serif); font-size: 1.75rem; color: hsl(var(--wedding-olive)); margin-bottom: .85rem; }
.coming-soon-card #comingSoonText { color: hsl(var(--wedding-text) / .75); font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.6; max-width: 24rem; margin: 0 auto; }

/* ===== faq ===== */
.faq { background: hsl(var(--background)); padding: 5rem 0; }
@media (min-width: 768px) { .faq { padding: 8rem 0; } }
.faq .heading-serif { color: hsl(var(--wedding-olive)); }
.faq-list { list-style: none; max-width: 42rem; margin: 0 auto; border-top: 1px solid hsl(var(--border)); }
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.4rem 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: hsl(var(--wedding-text));
  transition: color .2s;
}
.faq-q:hover { color: hsl(var(--wedding-accent)); }
.faq-q:focus-visible { outline: 2px solid hsl(var(--wedding-accent)); outline-offset: 3px; }
.faq-chev { flex: none; color: hsl(var(--muted-foreground)); transition: transform .3s; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 0 1.4rem; }
.faq-a p { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.6; color: hsl(var(--wedding-text) / .75); max-width: 36rem; }
.faq-link { color: hsl(var(--wedding-accent)); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: hsl(var(--wedding-accent) / .4); transition: text-decoration-color .2s; }
.faq-link:hover { text-decoration-color: hsl(var(--wedding-accent)); }

/* ===== footer ===== */
.footer { background: hsl(var(--wedding-olive)); text-align: center; padding: 4rem 1.5rem; }
.footer .names { font-family: var(--font-script); font-size: 2.5rem; color: hsl(var(--wedding-gold)); margin-bottom: 1rem; }
.footer .date { color: hsl(0 0% 100% / .7); letter-spacing: .1em; margin-bottom: 1.5rem; }
.footer .made { color: hsl(0 0% 100% / .5); font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.footer .made svg { color: hsl(var(--wedding-accent)); }
.footer .hashtag { margin-top: 1rem; color: hsl(var(--wedding-gold) / .8); letter-spacing: .1em; font-size: .9rem; }

/* ===== animations ===== */
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(-5px) rotate(45deg); } 35% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px) rotate(45deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn .8s ease-out both; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* confetti canvas (canvas-confetti) — drop-shadow keeps white pieces visible on the white page */
.confetti-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 200;
  filter: drop-shadow(0 1px 2px hsl(var(--wedding-olive) / .5));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
  .hero-video { display: none; }
  .hero-bg { display: block; }
}

/* ===== date / save the date (dark band) ===== */
.date-section { background: hsl(var(--wedding-olive)); color: hsl(var(--wedding-cream)); padding: 5rem 0; }
@media (min-width: 768px) { .date-section { padding: 7rem 0; } }
.date-section .section-head { margin-bottom: 3rem; }
.date-section .section-eyebrow.script { color: hsl(var(--wedding-gold)); }
.date-section .heading-serif { color: hsl(var(--wedding-cream)); }
.date-section .rule .line { background: hsl(var(--wedding-cream) / .35); }
.date-section .rule svg { color: hsl(var(--wedding-gold)); }

.date-display { container-type: inline-size; text-align: center; margin-bottom: 3rem; }
.date-dow { display: block; font-family: var(--font-sans); font-size: clamp(1rem, 2.8vw, 1.4rem); letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; color: hsl(var(--wedding-gold)); }
.date-line { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: 2.5cqw; margin: .25rem 0 .5rem; }
.date-day, .date-month, .date-year {
  font-family: var(--font-sans); font-weight: 500; letter-spacing: .01em;
  font-size: 7cqw; line-height: 1;
}
.date-month { font-weight: 400; }
.date-sep { color: hsl(var(--wedding-gold)); font-size: 5cqw; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 34rem; margin: 0 auto; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1.25rem .5rem; border: 1px solid hsl(var(--wedding-cream) / .18); border-radius: .5rem;
}
.cd-num { font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: hsl(var(--wedding-cream) / .65); }
@media (max-width: 480px) { .countdown { gap: .5rem; } .cd-unit { padding: 1rem .25rem; } }
