/* Self-hosted fonts: Be Vietnam Pro (body), Playfair Display (headings). Latin + Vietnamese subsets only. */
/* be-vietnam-pro-vietnamese-400-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* be-vietnam-pro-latin-ext-400-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/fonts/be-vietnam-pro-latin-ext-400-normal.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;
}
/* be-vietnam-pro-latin-400-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/fonts/be-vietnam-pro-latin-400-normal.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;
}
/* be-vietnam-pro-vietnamese-500-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* be-vietnam-pro-latin-ext-500-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/be-vietnam-pro-latin-ext-500-normal.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;
}
/* be-vietnam-pro-latin-500-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/be-vietnam-pro-latin-500-normal.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;
}
/* be-vietnam-pro-vietnamese-600-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* be-vietnam-pro-latin-ext-600-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/be-vietnam-pro-latin-ext-600-normal.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;
}
/* be-vietnam-pro-latin-600-normal */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/be-vietnam-pro-latin-600-normal.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;
}
/* playfair-display-vietnamese-500-normal */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/playfair-display-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* playfair-display-latin-ext-500-normal */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/playfair-display-latin-ext-500-normal.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;
}
/* playfair-display-latin-500-normal */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/playfair-display-latin-500-normal.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;
}
/* playfair-display-vietnamese-600-normal */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/playfair-display-vietnamese-600-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* playfair-display-latin-ext-600-normal */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/playfair-display-latin-ext-600-normal.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;
}
/* playfair-display-latin-600-normal */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(assets/fonts/playfair-display-latin-600-normal.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;
}
/* playfair-display-vietnamese-500-italic */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/playfair-display-vietnamese-500-italic.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* playfair-display-latin-ext-500-italic */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/playfair-display-latin-ext-500-italic.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;
}
/* playfair-display-latin-500-italic */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(assets/fonts/playfair-display-latin-500-italic.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 {
  --paper: #ffffff;
  --paper-2: #f7f7f5;
  --paper-3: #ececea;
  --ink: #1a1b18;
  --ink-soft: #6d6d67;
  --muted: #6d6d67;
  --night: #151613;
  --night-2: #21221e;
  --champagne: #b89a72;
  --oxblood: #6b1e23;
  --oxblood-deep: #571519;
  --cream: #f4ece0;
  --champagne-soft: #d7c2a5;
  --line: rgba(26, 27, 24, 0.16);
  --line-light: rgba(246, 242, 235, 0.18);
  --white: #ffffff;
  --shadow: 0 34px 90px rgba(25, 23, 20, 0.16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 1.65;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .038;
  mix-blend-mode: multiply;
  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='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 38%, rgba(184,154,114,.18), transparent 24%),
    linear-gradient(145deg, #10110f 0%, #1b1c19 52%, #121310 100%);
  transition: opacity .9s ease, visibility .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.gate::before,
.gate::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 760px;
  max-height: 760px;
  border: 1px solid rgba(215,194,165,.12);
  border-radius: 50%;
}
.gate::before { top: -45vw; right: -28vw; }
.gate::after { bottom: -48vw; left: -30vw; }
.gate.is-open { opacity: 0; visibility: hidden; transform: scale(1.025); }
.gate-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}
.gate-card { position: relative; z-index: 2; text-align: center; max-width: 680px; }
.monogram {
  width: 126px;
  height: 126px;
  margin: 0 auto 38px;
  border: 1px solid rgba(215,194,165,.42);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--champagne-soft);
}
.monogram-letter {
  display: block;
  font-size: 30px;
  line-height: .78;
  letter-spacing: 0;
}
.monogram-amp {
  display: block;
  margin: 5px 0 4px;
  font-size: 17px;
  line-height: 1;
  font-style: italic;
  color: var(--white);
}
.gate h1,
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.045em;
}
.gate h1 { font-size: clamp(56px, 12vw, 100px); margin: 10px 0 12px; }
.gate h1 span { font-style: italic; color: var(--champagne); font-size: .72em; }
.gate-date { margin: 0 0 24px; letter-spacing: .26em; font-size: 11px; color: var(--champagne-soft); }
.gate-note { margin: 0 auto 28px; max-width: 500px; color: rgba(248,245,239,.72); }
.micro { font-size: 11px; color: rgba(248,245,239,.50); margin-top: 14px; }
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  font-weight: 600;
}
.kicker { color: #967958; }

.button {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.gate .button-primary { background: var(--white); color: var(--night); border-color: var(--white); }
.button-secondary { background: transparent; color: var(--ink); }
.button.full { width: 100%; }
.button:disabled { opacity: .6; cursor: default; transform: none; }

.utility-bar {
  position: fixed;
  z-index: 60;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.utility-bar > * { pointer-events: auto; }
.lang-switch,
.utility-actions {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(26,27,24,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(20,20,18,.08);
}
.lang-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  min-width: 36px;
  min-height: 36px;
}
.lang-button { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.lang-button.is-active,
.icon-button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.section,
.section-full { position: relative; }
.section { padding: 120px 22px; }
.section-full { min-height: 100svh; padding: 100px 22px; display: grid; place-items: center; }
.section-narrow { max-width: 800px; margin: 0 auto; text-align: center; }
.section-heading { max-width: 780px; margin: 0 auto 58px; text-align: center; }
.section-heading.left { text-align: left; margin: 0 0 36px; }
.section-heading h2,
.serif-heading {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -.038em;
  font-weight: 500;
  margin: 10px 0 14px;
}
.lead { font-family: var(--serif); font-size: clamp(21px, 3.2vw, 31px); line-height: 1.5; color: var(--ink-soft); }
.welcome-section { padding-top: 150px; padding-bottom: 150px; }

.hero {
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(184,154,114,.17), transparent 25%),
    linear-gradient(180deg, #161714 0%, #1d1e1a 58%, #141512 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1050px; }
.hero .eyebrow { color: var(--champagne-soft); }
.display { font-size: clamp(72px, 18vw, 188px); margin: 10px 0 22px; }
.amp { font-style: italic; color: var(--champagne); font-size: .66em; }
.hero-copy { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 32px); max-width: 700px; margin: 0 auto 40px; color: rgba(248,245,239,.70); }
.date-lockup { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .19em; }
.date-lockup i { width: 38px; height: 1px; background: rgba(248,245,239,.28); display: inline-block; }
.location-line { margin: 13px 0 0; font-size: 12px; letter-spacing: .04em; color: rgba(248,245,239,.60); }
.scroll-cue { display: inline-flex; flex-direction: column; margin-top: 62px; text-decoration: none; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; gap: 7px; color: rgba(248,245,239,.58); }
.scroll-cue b { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(7px); } }
.cinema-glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.glow-one { width: 520px; height: 520px; top: -250px; right: -140px; background: radial-gradient(circle, rgba(184,154,114,.12), transparent 68%); }
.glow-two { width: 650px; height: 650px; bottom: -390px; left: -250px; background: radial-gradient(circle, rgba(126,117,95,.10), transparent 70%); }
.hero-line { position: absolute; left: 7vw; right: 7vw; height: 1px; background: rgba(248,245,239,.11); }
.hero-line-top { top: 11%; }
.hero-line-bottom { bottom: 11%; }

.countdown { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.countdown > div { padding: 34px 12px; text-align: center; border-right: 1px solid var(--line); }
.countdown > div:last-child { border-right: 0; }
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(46px, 8vw, 90px); font-weight: 500; line-height: 1; }
.countdown span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .2em; margin-top: 11px; color: var(--ink-soft); }


.details-section { background: var(--paper); }
.detail-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-card { min-height: 330px; border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; background: rgba(255,255,255,.10); transition: transform .35s ease, box-shadow .35s ease; }
.detail-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(25,23,20,.08); }
.detail-card h3 { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 39px); line-height: 1.15; font-weight: 500; margin: 7px 0; }
.detail-card p:last-child { color: var(--ink-soft); font-size: 14px; }
.detail-number { position: absolute; top: 26px; right: 26px; font-family: var(--serif); font-size: 23px; color: #957857; }

.map-frame { max-width: 1080px; height: min(46vw, 460px); min-height: 340px; margin: 12px auto 0; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 20px 60px rgba(27,27,24,.08); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) saturate(.65) contrast(.94); }
.map-footer { max-width: 1080px; margin: 22px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.map-footer p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.rsvp-section { background: var(--night); }
.rsvp-card { max-width: 790px; margin: 0 auto; padding: clamp(30px, 7vw, 74px); background: var(--paper); box-shadow: var(--shadow); }
form { display: grid; gap: 25px; }
form label > span,
legend { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
input,
textarea,
select { width: 100%; padding: 13px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: none; }
textarea { resize: vertical; }
input:focus,
textarea:focus,
select:focus { border-bottom-color: var(--ink); }
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 13px 14px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.choice:hover { border-color: rgba(26,27,24,.35); background: rgba(255,255,255,.26); }
.choice input { width: auto; margin: 0; }
.choice span { margin: 0; text-transform: none; font-size: 14px; letter-spacing: 0; font-weight: 400; }
.form-status { min-height: 22px; margin: 0; font-size: 12px; color: var(--ink-soft); text-align: center; }

.closing {
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(184,154,114,.17), transparent 28%),
    var(--paper);
}
.closing-content { max-width: 980px; }
.closing .display { font-size: clamp(72px, 17vw, 176px); }
.closing p:not(.kicker) { font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); font-style: italic; color: var(--ink-soft); max-width: 720px; margin: 0 auto 30px; }

.reveal,
.reveal-left,
.reveal-right { opacity: 0; transition: opacity .9s ease, transform .95s cubic-bezier(.2,.65,.25,1); }
.reveal { transform: translateY(34px); }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible { opacity: 1; transform: translate(0,0); }

.lightbox { width: min(92vw, 900px); height: min(80vh, 690px); padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(13,14,12,.88); backdrop-filter: blur(8px); }
.lightbox-close { position: absolute; z-index: 2; right: 12px; top: 12px; border: 0; background: rgba(248,245,239,.9); width: 42px; height: 42px; border-radius: 50%; font-size: 24px; cursor: pointer; }


@media (max-width: 760px) {
  .section { padding: 94px 18px; }
  .section-full { padding: 90px 18px; }
  .welcome-section { padding-top: 112px; padding-bottom: 112px; }
  .utility-bar { top: 10px; left: 10px; right: 10px; }
  .gate::before { top: -160px; right: -220px; width: 520px; height: 520px; }
  .gate::after { bottom: -190px; left: -240px; width: 550px; height: 550px; }
  .monogram { width: 108px; height: 108px; margin-bottom: 30px; }
  .monogram-letter { font-size: 27px; }
  .monogram-amp { margin: 4px 0 3px; font-size: 15px; }
  .hero-line { left: 18px; right: 18px; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown > div:nth-child(2) { border-right: 0; }
  .countdown > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 0; padding: 26px 24px; }
  .detail-number { top: 22px; right: 22px; }
  .map-frame { min-height: 390px; }
}

@media (max-width: 430px) {
  .display { font-size: clamp(64px, 20vw, 92px); }
  .hero-copy { font-size: 20px; }
  .date-lockup { gap: 10px; }
  .date-lockup i { width: 25px; }
  .rsvp-card { padding: 30px 22px; }
}

@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,
  .reveal-left,
  .reveal-right { opacity: 1; transform: none; }
}

/* --- Photography edition: Trang & Thành --- */
.gate {
  background:
    linear-gradient(180deg, rgba(8,10,11,.30) 0%, rgba(9,10,10,.43) 48%, rgba(8,9,9,.72) 100%),
    url("assets/photos/hero-vows.webp") center 44% / cover no-repeat;
}
.gate-vignette {
  background:
    radial-gradient(circle at 50% 38%, transparent 15%, rgba(0,0,0,.20) 66%, rgba(0,0,0,.53) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.24));
}
.gate-card { text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.gate .monogram { background: rgba(12,13,13,.18); backdrop-filter: blur(3px); }

.hero {
  place-items: start center;
  padding-top: 13svh;
  padding-bottom: 8svh;
  background:
    linear-gradient(180deg, rgba(8,9,10,.28) 0%, rgba(7,8,9,.18) 32%, rgba(7,8,9,.33) 61%, rgba(7,8,9,.76) 100%),
    url("assets/photos/hero-vows.webp") center 40% / cover no-repeat;
}
.hero-content { text-shadow: 0 2px 28px rgba(0,0,0,.30); }
.hero-copy { color: rgba(255,255,255,.88); }
.location-line, .scroll-cue { color: rgba(255,255,255,.76); }
.hero-line { background: rgba(255,255,255,.20); }

.photo-interlude {
  position: relative;
  min-height: 90svh;
  overflow: hidden;
  background: #111311;
  color: var(--white);
}
.photo-interlude > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  transform: scale(1.025);
}
.invite-open .photo-interlude > img { animation: photoDrift 15s ease-in-out infinite alternate; }
@keyframes photoDrift { from { transform: scale(1.025); } to { transform: scale(1.075); } }
.photo-interlude-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,11,.05) 35%, rgba(9,10,10,.18) 62%, rgba(8,9,9,.72) 100%);
}
.photo-interlude-copy {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 7vw, 104px);
  right: clamp(22px, 7vw, 104px);
  bottom: clamp(46px, 9vh, 110px);
  max-width: 760px;
  text-shadow: 0 2px 22px rgba(0,0,0,.32);
}
.photo-interlude .kicker { color: #ead8c0; }
.photo-line {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6.5vw, 78px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}


.gallery-section { background: var(--paper-2); }
.gallery {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  aspect-ratio: 2 / 3;
  cursor: zoom-in;
  background: #171917;
  box-shadow: 0 18px 50px rgba(28,24,20,.09);
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-color: rgba(255,255,255,.42);
  pointer-events: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.012);
  transition: transform 1s cubic-bezier(.2,.65,.25,1), filter .6s ease;
}
.gallery-item:hover img { transform: scale(1.055); }
.gallery-item span {
  position: absolute;
  bottom: 20px;
  left: 22px;
  color: #fff;
  font-size: 9px;
  letter-spacing: .2em;
  z-index: 3;
  text-shadow: 0 1px 9px rgba(0,0,0,.40);
}
.gallery-note { margin-top: 30px; letter-spacing: .02em; }

.closing {
  min-height: 100svh;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8,10,11,.20) 0%, rgba(8,9,10,.40) 52%, rgba(7,8,9,.78) 100%),
    url("assets/photos/closing-veil.webp") center 30% / cover no-repeat;
}
.closing .kicker { color: #ead8c0; }
.closing p:not(.kicker) { color: rgba(255,255,255,.84); text-shadow: 0 2px 20px rgba(0,0,0,.32); }
.closing .display { text-shadow: 0 2px 28px rgba(0,0,0,.30); }
.closing .button-secondary { color: var(--white); border-color: rgba(255,255,255,.72); background: rgba(10,10,10,.08); backdrop-filter: blur(4px); }

.lightbox {
  width: min(94vw, 1020px);
  height: min(92svh, 920px);
  overflow: visible;
}
.lightbox-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
}
.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 34px 100px rgba(0,0,0,.38);
}

@media (max-width: 760px) {
  .hero { padding-top: 14svh; background-position: center 42%; }
  .hero .display { font-size: clamp(64px, 20vw, 108px); }
  .hero-copy { max-width: 520px; }
  .photo-interlude { min-height: 78svh; }
  .photo-interlude > img { object-position: center 42%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-item::before { inset: 7px; }
  .closing { background-position: center 42%; }
}

@media (max-width: 430px) {
  .gate { background-position: center 42%; }
  .gate-card { margin-top: 5svh; }
  .hero { padding-top: 16svh; }
  .hero-copy { font-size: 18px; }
  .photo-line { font-size: clamp(36px, 11vw, 54px); }
  .gallery { gap: 7px; }
  .lightbox { width: 96vw; height: 88svh; }
}

@media (prefers-reduced-motion: reduce) {
  .invite-open .photo-interlude > img { animation: none; }
}

.icon-button[aria-pressed="true"] .music-icon {
  display: inline-block;
  animation: musicPulse 1.35s ease-in-out infinite;
}
@keyframes musicPulse { 50% { transform: scale(1.16); opacity: .72; } }



/* Family acknowledgement: formal Vietnamese convention, kept editorial and compact. */
.family-section {
  background: var(--paper);
  padding-top: 96px;
  padding-bottom: 104px;
}
.family-shell { max-width: 980px; margin: 0 auto; }
.family-heading { text-align: center; margin: 0 auto 46px; }
.family-heading h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.025em;
}
.family-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.family-grid::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.family-card {
  min-width: 0;
  padding: 44px 42px 48px;
  text-align: center;
}
.family-label {
  margin: 0 0 26px;
  color: #856b4f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.family-parent {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -.018em;
}
.family-amp {
  display: block;
  margin: 10px 0 8px;
  color: #9a7d5c;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
}

@media (max-width: 760px) {
  .family-section { padding-top: 78px; padding-bottom: 82px; }
  .family-heading { margin-bottom: 30px; }
  .family-grid { grid-template-columns: 1fr; }
  .family-grid::after {
    top: 50%;
    bottom: auto;
    left: 24px;
    right: 24px;
    width: auto;
    height: 1px;
  }
  .family-card { padding: 36px 18px 40px; }
  .family-label { margin-bottom: 20px; }
}

/* V5 personalized invitation states */
.audience-formal .friends-only { display: none !important; }

body.guest-loading #openInvite,
body.invite-error #openInvite {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

body.guest-loading #guestGreeting {
  opacity: .78;
}

body.invite-error #guestGreeting {
  max-width: 420px;
  color: rgba(255,255,255,.88);
}

.audience-formal .hero {
  min-height: 88svh;
}

.audience-formal .hero-copy {
  max-width: 760px;
}

.audience-formal .family-section {
  padding-top: 78px;
  padding-bottom: 84px;
}

.audience-formal .welcome-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.audience-formal .details-section {
  padding-top: 92px;
}

.audience-formal .closing {
  min-height: 72svh;
}

.audience-nha-gai .bride-family-card { order: 1; }
.audience-nha-gai .groom-family-card { order: 2; }
.audience-nha-trai .groom-family-card { order: 1; }
.audience-nha-trai .bride-family-card { order: 2; }

.rsvp-guest {
  padding: 18px 0 26px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rsvp-guest-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #856b4f;
}

.rsvp-guest-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.rsvp-party-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.existing-rsvp {
  margin: 6px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#attendeeCountField[hidden],
#existingRsvp[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .audience-formal .hero { min-height: 82svh; }
  .audience-formal .family-section { padding-top: 64px; padding-bottom: 66px; }
  .audience-formal .welcome-section { padding-top: 70px; padding-bottom: 70px; }
  .audience-formal .details-section { padding-top: 72px; }
}

/* Parking map (inline SVG, wide on desktop, tall on phones) */
.parking { max-width: 1080px; margin: 64px auto 0; }
.parking-kicker { margin: 0 0 14px; }
.parking-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.parking-tall { display: none; }
.pm-bg { fill: #ffffff; }
.pm-road { fill: #e9e9e7; }
.pm-block { fill: #f6f6f4; }
.pm-park { fill: #efe6d8; }
.pm-lane { fill: none; stroke: #e9e9e7; stroke-width: 34; stroke-linejoin: round; }
.pm-lane-t { stroke-width: 20; }
.pm-venue { font-family: var(--serif); font-size: 76px; font-weight: 500; letter-spacing: .02em; fill: var(--ink); }
.pm-venue-t { font-size: 44px; }
.pm-dot { fill: var(--champagne); }
.pm-street { font-family: var(--sans); font-size: 27px; fill: var(--ink); letter-spacing: .01em; }
.pm-small { font-size: 23px; fill: #4a4a45; }
.pm-zone { font-family: var(--serif); font-style: italic; font-size: 38px; fill: #6f5638; }
.pm-entry { font-family: var(--sans); font-size: 27px; font-weight: 600; fill: #8a6a45; }
.pm-note { font-family: var(--sans); font-size: 22px; fill: var(--ink-soft); }
.pm-arrow { fill: none; stroke: var(--champagne); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pm-head { fill: var(--champagne); }
.pm-bar { stroke: #9a7a52; stroke-width: 9; stroke-linecap: round; }
.pm-t { font-size: 18px; }
.pm-t.pm-small { font-size: 15px; }
.pm-zone-t { font-size: 22px; }
.pm-entry-t { font-size: 18px; }
.pm-note-t { font-size: 14px; }
.pm-arrow-t { stroke-width: 3; }
.pm-bar-t { stroke-width: 6; }
@media (max-width: 760px) {
  .parking { margin-top: 48px; }
  .parking-wide { display: none; }
  .parking-tall { display: block; }
}

/* Day schedule inside the time card */
.schedule { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.schedule li { display: flex; align-items: baseline; gap: 16px; }
.schedule-time { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; min-width: 108px; }
.schedule-what { color: var(--ink-soft); font-size: 14px; }

/* Closing: keep faces clear, text sits on the darker lower part of the photo */
.closing { place-items: end center; padding-bottom: 12svh; }

/* Story timeline: one quiet list right under the photo break */
.story { background: var(--paper); padding: 96px 22px 104px; }
.story-list { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; }
.story-item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.story-item:last-child { border-bottom: 1px solid var(--line); }
.story-year { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: #8d7050; }
.story-item h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
.story-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.story-item:last-child .story-year,
.story-item:last-child h3 { color: var(--champagne); }

/* Countdown sits on the garden photo (replaces the old quote section) */
.countdown-section {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8,10,9,.48) 0%, rgba(8,10,9,.40) 50%, rgba(8,10,9,.62) 100%),
    url("assets/photos/quote-garden.webp") center 72% / cover no-repeat;
  padding-top: 140px;
  padding-bottom: 150px;
}
.countdown-section .kicker { color: #ead8c0; }
.countdown-section h2 { text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.countdown { border-color: rgba(255,255,255,.28); }
.countdown > div { border-color: rgba(255,255,255,.28) !important; }
.countdown span { color: rgba(255,255,255,.78); }
@media (max-width: 760px) {
  .story { padding: 72px 18px 80px; }
  .story-item { grid-template-columns: 64px 1fr; gap: 14px; padding: 24px 0; }
  .story-year { font-size: 21px; }
  .countdown-section { padding-top: 110px; padding-bottom: 120px; background-position: center 60%; }
}
.audience-friends .welcome-section { padding-top: 110px; padding-bottom: 110px; }
@media (max-width: 760px) { .audience-friends .welcome-section { padding-top: 84px; padding-bottom: 84px; } }
.audience-parents .utility-actions { margin-left: auto; } /* music button only, right side */
body.invite-error #guestGreeting { white-space: pre-line; }

/* Smaller background photos on phones (same images, 1080px wide) */
@media (max-width: 760px) {
  .gate { background-image: linear-gradient(180deg, rgba(8,10,11,.30) 0%, rgba(9,10,10,.43) 48%, rgba(8,9,9,.72) 100%), url("assets/photos/hero-vows-m.webp"); }
  .hero { background-image: linear-gradient(180deg, rgba(8,9,10,.28) 0%, rgba(7,8,9,.18) 32%, rgba(7,8,9,.33) 61%, rgba(7,8,9,.76) 100%), url("assets/photos/hero-vows-m.webp"); }
  .countdown-section { background-image: linear-gradient(180deg, rgba(8,10,9,.48) 0%, rgba(8,10,9,.40) 50%, rgba(8,10,9,.62) 100%), url("assets/photos/quote-garden-m.webp"); }
  .closing { background-image: linear-gradient(180deg, rgba(8,10,11,.20) 0%, rgba(8,9,10,.40) 52%, rgba(7,8,9,.78) 100%), url("assets/photos/closing-veil-m.webp"); }
}

/* Announcement version: no venue details, no RSVP */
.audience-announce .no-announce { display: none !important; }

/* ---- v17: white theme details ---- */
.grain { display: none; }
body { background: #ffffff; }
.section-heading h2, .serif-heading { color: var(--ink); }
.rsvp-section { background: var(--paper-2); }
.rsvp-card { background: #ffffff; box-shadow: 0 24px 70px rgba(20,20,20,.07); border: 1px solid var(--line); }
.countdown-section { color: var(--white); }

/* Full names: stacked on phones, one line on wide screens */
.names .name { white-space: nowrap; }
.gate h1.names { font-size: clamp(46px, 9vw, 92px); line-height: 1.02; }
.gate h1.names .amp { font-style: italic; color: var(--champagne); font-size: .62em; }
.hero .display.names { font-size: clamp(54px, 9.5vw, 132px); line-height: 1.02; }
@media (max-width: 760px) {
  .names .name, .names .amp { display: block; }
  .gate h1.names { font-size: clamp(46px, 13.5vw, 64px); }
  .hero .display.names { font-size: clamp(52px, 15vw, 76px); }
  .names .amp { margin: .06em 0 .02em; line-height: .9; }
}

/* Gallery opens with a quote instead of a section title */
.gallery-quote { max-width: 760px; margin: 0 auto 56px; padding: 0 8px; text-align: center; }
.gallery-quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.gallery-quote::before { content: ""; display: block; width: 44px; height: 1px; margin: 0 auto 26px; background: var(--champagne); }

/* Details cards: content starts at the top, all three align on desktop */
.detail-card { justify-content: flex-start; min-height: 0; padding: 58px 30px 32px; background: #ffffff; }
.detail-card .kicker { margin: 0 0 12px; }
.detail-card h3 { font-size: clamp(24px, 2.3vw, 31px); line-height: 1.2; margin: 0 0 12px; }
.detail-card p:last-child { margin: 0; }
.detail-number { top: 22px; right: 26px; }
.schedule { margin-top: 2px; }
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  .detail-card { padding: 52px 24px 26px; }
}
.closing-content p:not(.kicker) { margin-bottom: 0; }
.closing-content p:not(.kicker) { font-size: clamp(30px, 5vw, 56px); line-height: 1.2; max-width: 820px; color: #ffffff; }
.gate h1.names .name { font-style: normal; color: inherit; font-size: 1em; }
@media (min-width: 761px) {
  .gate h1.names { font-size: clamp(44px, 5.4vw, 84px); white-space: nowrap; }
  .hero .display.names { font-size: clamp(50px, 6.6vw, 112px); white-space: nowrap; }
}
.hero .names .amp, .gate .names .amp { color: #ecd9bd; opacity: 1; }
.hero-copy, .closing-content p, .gallery-quote p { text-wrap: balance; }

/* 10-photo gallery: 5 across on desktop, 2 across on phones */
.gallery { max-width: 1200px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }

@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
/* Phones: the vows photo has both faces mid-frame, so text sits in the lower, darker part */
@media (max-width: 760px) {
  .gate { place-items: end center; padding-bottom: 7svh; background-position: 42% center; }
  .gate .monogram { display: none; }
  .gate-card { margin-top: 0; }
  .hero { place-items: end center; padding-top: 0; padding-bottom: 9svh; background-position: 42% center; }
  .hero .scroll-cue { margin-top: 28px; }
}
/* Wide screens: let the names' container grow so one-line names stay centred */
.gate-card { max-width: min(1500px, 94vw); }
.hero-content { max-width: min(1700px, 94vw); }
.gate-note { max-width: 520px; }
/* Countdown title sits on a photo: keep it white */
.countdown-section .section-heading h2 { color: #ffffff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }

/* ---- Parents' versions ---- */
.formal-only { display: none; }
.audience-formal .formal-only { display: block; }
.audience-parents .lang-switch { display: none; }
/* No RSVP on the shared link (nhà gái); the announcement hides it via .no-announce */
.shared-link #rsvp { display: none !important; }

.ceremony-section { background: var(--paper-2); }
.ceremony-grid { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ceremony-card { background: #ffffff; border: 1px solid var(--line); padding: 34px 30px 30px; text-align: center; }
.ceremony-time { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--champagne); }
.ceremony-card h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.8vw, 32px); }
.ceremony-card .kicker { margin: 0 0 8px; }
.ceremony-address { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.ceremony-map { display: inline-block; font-size: 13px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--champagne); padding-bottom: 2px; }
.ceremony-date { text-align: center; margin: 26px auto 0; color: var(--ink-soft); font-size: 14px; letter-spacing: .02em; }
@media (max-width: 760px) { .ceremony-grid { grid-template-columns: 1fr; } }

/* Nhà gái card puts full names, bride first: always stack them */
.names.names-long .name, .names.names-long .amp { display: block; white-space: normal; }
.gate h1.names.names-long { font-size: clamp(36px, 6vw, 64px); white-space: normal; }
.hero .display.names.names-long { font-size: clamp(40px, 6.5vw, 86px); white-space: normal; }
@media (max-width: 760px) {
  .gate h1.names.names-long { font-size: clamp(32px, 9.5vw, 44px); }
  .hero .display.names.names-long { font-size: clamp(34px, 10.5vw, 50px); }
}
.audience-formal .hero-copy { font-size: clamp(17px, 2vw, 22px); }
.names.names-long .name { white-space: nowrap; }
@media (max-width: 760px) {
  .gate h1.names.names-long { font-size: clamp(27px, 8vw, 38px); }
  .hero .display.names.names-long { font-size: clamp(28px, 8.4vw, 40px); }
}
.detail-card h3, .ceremony-card h3, .section-heading h2 { text-wrap: balance; }

/* Parents' versions: their own photos (seated at the gate, holding hands at the hero, bouquet at the end) */
.audience-formal .gate {
  background:
    linear-gradient(180deg, rgba(10,10,10,.42) 0%, rgba(10,10,10,.50) 48%, rgba(8,8,8,.78) 100%),
    url("assets/photos/formal-gate.webp") center 55% / cover no-repeat;
}
.audience-formal .hero {
  place-items: end center;
  padding-top: 8svh;
  padding-bottom: 9svh;
  background:
    linear-gradient(180deg, rgba(10,10,10,.30) 0%, rgba(10,10,10,.26) 32%, rgba(8,8,8,.50) 61%, rgba(6,6,6,.84) 100%),
    url("assets/photos/formal-hero.webp") center 40% / cover no-repeat;
}
.audience-formal .closing {
  place-items: end center;
  align-content: end;
  padding-bottom: 10svh;
  background:
    linear-gradient(180deg, rgba(8,8,8,.30) 0%, rgba(8,8,8,.44) 52%, rgba(6,6,6,.80) 100%),
    url("assets/photos/formal-closing.webp") center 50% / cover no-repeat;
}
@media (max-width: 760px) {
  .audience-formal .gate { background-image: linear-gradient(180deg, rgba(10,10,10,.34) 0%, rgba(10,10,10,.42) 48%, rgba(8,8,8,.80) 100%), url("assets/photos/formal-gate-m.webp"); background-position: center 50%; }
  .audience-formal .hero { min-height: 100svh; padding-bottom: 7svh; background-image: linear-gradient(180deg, rgba(10,10,10,.26) 0%, rgba(10,10,10,.22) 32%, rgba(8,8,8,.50) 61%, rgba(6,6,6,.86) 100%), url("assets/photos/formal-hero-m.webp"); background-position: center 50%; }
  .audience-formal .closing { padding-bottom: 8svh; background-image: linear-gradient(180deg, rgba(8,8,8,.26) 0%, rgba(8,8,8,.40) 52%, rgba(6,6,6,.82) 100%), url("assets/photos/formal-closing-m.webp"); background-position: center 50%; }
}
.audience-formal .gate { place-items: end center; padding-bottom: 8svh; background-position: center 42%; }
.audience-formal .gate .monogram { display: none; }
.audience-formal .hero { background-position: center 26%; }
@media (max-width: 760px) {
  .audience-formal .gate { background-size: auto 118%; background-position: 50% 100%; }
  .audience-formal .hero { background-position: 62% 50%; }
}

/* Parents' closing: photo beside the text instead of text over a busy bouquet */
.audience-formal .closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  padding: 0;
  place-items: stretch;
  align-content: stretch;
  color: var(--ink);
  background: var(--paper);
}
.audience-formal .closing::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  background: url("assets/photos/formal-closing.webp") center 40% / cover no-repeat;
}
.audience-formal .closing-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  max-width: 560px;
  padding: 0 5vw;
}
.audience-formal .closing-content p:not(.kicker) {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.3;
}
@media (max-width: 760px) {
  .audience-formal .closing {
    grid-template-columns: 1fr;
    grid-template-rows: 64svh auto;
    min-height: 0;
    background: var(--paper);
  }
  .audience-formal .closing::before {
    grid-column: 1;
    grid-row: 1;
    background-image: url("assets/photos/formal-closing-m.webp");
    background-position: center 45%;
  }
  .audience-formal .closing-content {
    grid-column: 1;
    grid-row: 2;
    padding: 56px 28px 72px;
  }
  .audience-formal .closing-content p:not(.kicker) { font-size: 30px; }
}

/* No flash on load: solid gate colour under the photo, text waits for the fonts */
body .gate, body.audience-formal .gate { background-color: #141414; }
.gate-card, .hero-content { transition: opacity .5s ease; }
body.fonts-pending .gate-card, body.fonts-pending .hero-content { opacity: 0; }

/* Parents' versions: no "Bố mẹ hai bên" heading, kicker only */
.audience-parents #family-title { display: none; }
.audience-parents .family-heading .kicker { margin-bottom: 0; }

/* Parents' versions: two-photo spread */
.formal-photos { padding: 0 22px 110px; background: var(--paper); }
.formal-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.formal-photos figure { margin: 0; overflow: hidden; aspect-ratio: 2 / 3; background: var(--paper-2); }
.formal-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .formal-photos { padding: 0 14px 72px; }
  .formal-photos-grid { gap: 8px; }
}

/* Parents' versions: solar date first, lunar date underneath. */
.audience-parents .hero-copy-main { display: none; }
.audience-parents .date-lockup { margin-top: 34px; }
.audience-parents .hero-lunar { margin: 16px auto 0; font-size: clamp(18px, 2.2vw, 26px); }
@media (max-width: 760px) { .audience-parents .date-lockup { margin-top: 26px; } .audience-parents .hero-lunar { font-size: 18px; margin-top: 12px; } }

/* Shown on both parents' versions (lunar date under the hero date, home ceremonies). */
.parents-only { display: none; }
.audience-parents .parents-only { display: block; }

/* Invitation now sits right under the hero; keep it close to the family names that follow. */
body .welcome-section { padding-bottom: 40px; }
body #welcome + .family-section { padding-top: 28px; }
@media (max-width: 760px) { body .welcome-section { padding-bottom: 28px; } body #welcome + .family-section { padding-top: 20px; } }


/* ===== Seal + oxblood (v31) ===== */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.seal { display: block; color: var(--oxblood); }

/* Opening screen: small seal above "Thiệp mời" on every version */
.gate-seal { width: 64px; height: 64px; margin: 0 auto 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.28)); }
@media (max-width: 760px) { .gate-seal { width: 52px; height: 52px; margin-bottom: 16px; } }

/* Big names, once, on a full oxblood band right after the invitation */
.names-feature {
  background: var(--oxblood);
  color: var(--cream);
  padding: clamp(84px, 12vw, 150px) 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.names-feature-inner { max-width: 1200px; margin: 0 auto; }
.names-feature-seal { width: 76px; height: 76px; margin: 0 auto 38px; color: var(--cream); }
.names-feature-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .94;
  letter-spacing: -.02em;
  color: var(--cream);
}
.names-feature-title .name { display: block; white-space: nowrap; }
.names-feature-title .amp { display: block; font-style: italic; font-size: .5em; line-height: 1.1; color: var(--champagne-soft); margin: .04em 0 .02em; }
.names-feature-title.names-long { font-size: clamp(40px, 7vw, 104px); }
.names-feature-title.names-long .name { white-space: normal; }
.names-feature-date { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 42px 0 0; font-size: 13px; letter-spacing: .24em; color: rgba(244,236,224,.78); }
.names-feature-date i { width: 40px; height: 1px; background: rgba(244,236,224,.32); display: inline-block; }
@media (max-width: 760px) {
  .names-feature { padding: 76px 16px 80px; }
  .names-feature-seal { width: 60px; height: 60px; margin-bottom: 28px; }
  .names-feature-title { font-size: clamp(52px, 16.5vw, 78px); }
  .names-feature-title.names-long { font-size: clamp(34px, 10vw, 46px); }
  .names-feature-date { margin-top: 32px; gap: 12px; }
  .names-feature-date i { width: 26px; }
}
/* The family section follows the band: give it its normal top spacing back */
body .names-feature + .family-section { padding-top: clamp(72px, 9vw, 110px); }

/* Closing: the seal signs off the page */
.closing-seal { width: 58px; height: 58px; margin: 0 auto 26px; }
.closing-seal { color: var(--cream); }
.audience-formal .closing-seal { color: var(--oxblood); }

/* RSVP button in the house color */
#rsvpForm button[type="submit"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--cream); }
#rsvpForm button[type="submit"]:hover:not(:disabled) { background: var(--oxblood-deep); border-color: var(--oxblood-deep); }
@media (max-width: 760px) {
  .names-feature-title { font-size: clamp(46px, 14.2vw, 72px); }
  .names-feature-title.names-long { font-size: clamp(32px, 9.4vw, 44px); }
  /* Opening screen on phones: seal sits at the top of the photo, clear of faces and hands */
  .gate-seal { position: absolute; top: 10svh; left: 50%; transform: translateX(-50%); margin: 0; z-index: 3; }
}
.names-feature-title.names-long .name { text-wrap: balance; }
/* Gate seal belongs to the photo, not the text block: top centre on every screen size */
.gate-seal, body .gate-seal { position: absolute; top: clamp(54px, 10svh, 110px); left: 50%; transform: translateX(-50%); margin: 0; z-index: 3; width: 64px; height: 64px; transition: opacity .5s ease; }
body.fonts-pending .gate-seal { opacity: 0; }
.gate.is-open .gate-seal { opacity: 0; }
@media (max-width: 760px) { .gate-seal, body .gate-seal { width: 52px; height: 52px; top: 9svh; } }
.names-feature-seal { width: 92px; height: 92px; }
@media (max-width: 760px) { .names-feature-seal { width: 72px; height: 72px; } }
@media (min-width: 761px) { .gate-seal, body .gate-seal { top: 40px; left: 48px; transform: none; width: 60px; height: 60px; } }

/* Add to calendar: a quiet text link under the date, in the house color */
.calendar-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--oxblood); text-decoration: none; border-bottom: 1px solid rgba(107,30,35,.35); padding-bottom: 3px; }
.calendar-link:hover { border-bottom-color: var(--oxblood); }
.calendar-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--oxblood); color: var(--cream); font-size: 13px; line-height: 1; }

/* ===== Palette B (v35): warm cream base, oxblood accents, no gold on light backgrounds =====
 * Oxblood + cream + ink. Gold stays only where text sits on photos (hero, gate, countdown, closing). */
:root {
  --paper: #f6efe4;
  --paper-2: #efe5d6;
  --card: #fbf7f0;
  --rose: #a8636a;
  --line: rgba(107, 30, 35, .16);
}
body { background: var(--paper); }
.rsvp-card, .detail-card, .ceremony-card { background: var(--card); }
.kicker { color: var(--oxblood); }
.detail-number, .ceremony-time, .story-item:last-child h3 { color: var(--oxblood); }
.amp { color: var(--rose); }
.gallery-quote::before { background: var(--oxblood); }
.ceremony-map { border-bottom-color: var(--oxblood); }
.pm-bg { fill: var(--card); }
.pm-dot, .pm-head { fill: var(--oxblood); }
.pm-arrow { stroke: var(--oxblood); }
.hero .eyebrow:empty { display: none; }

/* Party size dropdown (1–3): same underline look as before, with a small chevron */
#attendingCount {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 17px;
  padding-right: 28px; border-bottom-color: rgba(107,30,35,.35);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b1e23' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center;
}
#attendingCount:focus { border-bottom-color: var(--oxblood); }

/* Monogram (no box): colour from context, sized for its aspect ratio */
.gate-seal, body .gate-seal { color: var(--cream); width: 72px; height: 66px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
@media (max-width: 760px) { .gate-seal, body .gate-seal { width: 64px; height: 58px; } }
.names-feature-seal { width: 124px; height: 110px; margin-bottom: 30px; }
@media (max-width: 760px) { .names-feature-seal { width: 96px; height: 86px; margin-bottom: 22px; } }
.closing-seal { width: 80px; height: 72px; }
