/* ==========================================================================
   Adinda & Bima — Quiet Romantic editorial invitation
   Hand-built demo. No framework, no build step.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #F3EFE7;
  --bg-deep: #EDE7DB;
  --paper: #FBF8F1;
  --ink: #1D1B17;
  --muted: #625C52;
  --line: rgba(29, 27, 23, .16);
  --line-soft: rgba(29, 27, 23, .09);
  --accent: #3E4A3A;
  --accent-2: #A9825A;
  --cream: #F3EFE7;

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad: clamp(20px, 5vw, 40px);
  --sec-y: clamp(76px, 12vw, 148px);
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 16px; background: var(--ink); color: var(--cream);
  font-size: 12px; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap-narrow { max-width: 780px; }

.section { padding: var(--sec-y) 0; position: relative; }
section[id] { scroll-margin-top: 24px; }
.section-opening { padding-top: clamp(96px, 15vh, 160px); text-align: center; }

.eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 18px;
}
.eyebrow-light { color: rgba(243, 239, 231, .72); }

.sec-num {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; font-weight: 500;
}
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
  max-width: 18ch;
}

.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  max-width: 900px;
  margin: 0 auto;
}
.statement em { font-style: italic; color: var(--accent); }

.lede {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 300;
  color: var(--muted);
  max-width: 56ch;
  margin: 28px auto 0;
}
.lede.left { margin-left: 0; }

.footnote {
  font-size: 11px; color: var(--muted); opacity: .8;
  margin: 28px 0 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  padding: 14px 24px;
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s;
}
.btn:active { transform: scale(.985); }
.btn svg { width: 16px; height: 16px; }

.btn-solid { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.btn-solid:hover { background: #2F3A2C; border-color: #2F3A2C; }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(29, 27, 23, .06); }

.btn-outline-light { border-color: rgba(243, 239, 231, .55); color: var(--cream); }
.btn-outline-light:hover { background: rgba(243, 239, 231, .12); border-color: var(--cream); }

.btn-wide { width: 100%; }
.btn-copy { padding: 10px 16px; font-size: 9px; flex: 0 0 auto; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color .25s, gap .25s;
}
.link-arrow:hover { border-color: var(--accent); gap: 12px; }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- reveal ---------- */
body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
body.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 120; background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent-2);
  transition: width .12s linear;
}

/* ==========================================================================
   GATE
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #14150F;
  transition: opacity 1s var(--ease), visibility 1s;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.gate-media { position: absolute; inset: 0; }
.gate-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 42%;
  filter: saturate(.82) brightness(.78) contrast(1.02);
  transform: scale(1.06);
  animation: gateZoom 14s var(--ease) forwards;
}
@keyframes gateZoom { to { transform: scale(1); } }

.gate-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 9, .62) 0%, rgba(12, 13, 9, .18) 32%, rgba(12, 13, 9, .28) 62%, rgba(12, 13, 9, .82) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(12, 13, 9, .34) 100%);
}

.gate-inner {
  position: relative; z-index: 2;
  padding: 32px 24px calc(72px + env(safe-area-inset-bottom));
  max-width: 720px;
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center;
}

.gate-names {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 16vw, 116px);
  line-height: .88;
  letter-spacing: -.025em;
  margin: 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.gate-amp {
  display: block;
  font-style: italic;
  font-size: .5em;
  line-height: 1.25;
  color: #D8BA8A;
  margin: 2px 0;
}

.gate-date {
  margin: 22px 0 0;
  font-size: 10px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243, 239, 231, .82);
}

.gate-guest {
  margin-top: clamp(36px, 7vh, 60px);
  padding-top: 24px;
  border-top: 1px solid rgba(243, 239, 231, .26);
  min-width: min(320px, 80vw);
}
.gate-guest .eyebrow { margin-bottom: 8px; }
.gate-guest-name {
  font-family: var(--display);
  font-size: clamp(20px, 3.6vw, 26px);
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.gate .btn { margin-top: 34px; }

.gate-note {
  margin: 22px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(243, 239, 231, .68);
  max-width: 34ch;
}

.gate-scroll {
  position: absolute; bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px;
  background: rgba(243, 239, 231, .2);
  z-index: 2; overflow: hidden;
}
.gate-scroll span {
  display: block; width: 100%; height: 40%;
  background: rgba(243, 239, 231, .85);
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(260%); }
}

/* ==========================================================================
   OPENING
   ========================================================================== */
.pullquote {
  margin: clamp(48px, 8vw, 84px) auto 0;
  max-width: 600px;
}
.pullquote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.pullquote figcaption {
  margin-top: 16px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.pullquote figcaption::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--line);
  vertical-align: middle; margin-right: 12px;
}

.signature {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 4vw, 36px);
  margin: clamp(32px, 5vw, 52px) 0 0;
  color: var(--accent);
}

/* ==========================================================================
   COUPLE
   ========================================================================== */
.section-couple { background: var(--bg-deep); }

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(12px, 2vw, 24px);
}
.person { text-align: center; }
.person-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
.person-meta {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.person-parents {
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  margin: 0;
}
.person-origin {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 0;
}

.couple-mark {
  width: clamp(58px, 7vw, 82px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
}
.couple-mark span {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--accent-2);
  translate: 0 -2px;
}

.couple-note {
  text-align: center;
  margin: clamp(40px, 6vw, 64px) 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--muted);
}

/* ==========================================================================
   STORY
   ========================================================================== */
.story-layout {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}
.story-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.story-item:first-child { border-top: 0; padding-top: 0; }
.story-year {
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  color: var(--accent-2); padding-top: 6px;
}
.story-item h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  margin: 0 0 8px;
}
.story-item p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--muted);
  max-width: 46ch;
}

.story-media {
  margin: 0;
  position: sticky;
  top: 96px;
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-media figcaption {
  margin-top: 12px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   SAVE THE DATE (dark)
   ========================================================================== */
.section-date {
  background: #232B22;
  color: var(--cream);
}
.section-date .sec-num { color: rgba(243, 239, 231, .62); }
.section-date .sec-title { color: var(--cream); }
.date-block {
  text-align: center;
  border-top: 1px solid rgba(243, 239, 231, .18);
  border-bottom: 1px solid rgba(243, 239, 231, .18);
  padding: clamp(40px, 7vw, 72px) 0;
}
.date-line {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243, 239, 231, .65); margin: 0 0 18px;
}
.date-big {
  font-family: var(--display);
  font-size: clamp(64px, 15vw, 132px);
  line-height: .9;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--cream);
}
.date-big span { color: var(--accent-2); margin: 0 .06em; }
.date-place {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243, 239, 231, .65);
  margin: 22px 0 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  max-width: 560px;
  margin: clamp(36px, 6vw, 56px) auto 0;
}
.count-cell {
  border-left: 1px solid rgba(243, 239, 231, .16);
  padding: 4px 4px 4px 12px;
  text-align: left;
}
.count-cell:first-child { border-left: 0; padding-left: 0; }
.count-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-label {
  display: block;
  margin-top: 8px;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(243, 239, 231, .66);
}

.date-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: clamp(34px, 5vw, 48px);
}
.section-date .btn-solid { background: var(--cream); color: #232B22; border-color: var(--cream); }
.section-date .btn-solid:hover { background: #E4DECD; border-color: #E4DECD; }
.section-date .btn-ghost { border-color: rgba(243, 239, 231, .35); color: var(--cream); }
.section-date .btn-ghost:hover { background: rgba(243, 239, 231, .1); }

/* ==========================================================================
   EVENTS
   ========================================================================== */
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.event-card {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.event-card .eyebrow { color: var(--muted); }
.event-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.event-date {
  font-size: 12px; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 6px;
}
.event-time {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1;
  margin: 0;
}
.event-time span {
  font-family: var(--body);
  font-size: 11px; font-weight: 500; letter-spacing: .16em;
  vertical-align: middle; margin-left: 4px;
  color: var(--muted);
}
.event-rule {
  height: 1px; background: var(--line-soft);
  margin: 26px 0;
}
.event-venue {
  font-size: 14px; font-weight: 500;
  margin: 0 0 4px;
}
.event-address {
  font-size: 13.5px; font-weight: 300; line-height: 1.6;
  color: var(--muted); margin: 0;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.section-gallery { background: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(28px, 4vw, 44px);
}
.shot {
  border: 0; padding: 0; background: #E5DFD2;
  overflow: hidden; position: relative;
  display: block; width: 100%;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
  filter: saturate(.8) contrast(.97) sepia(.06);
}
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(29, 27, 23, 0);
  transition: background .4s;
}
.shot:hover img { transform: scale(1.035); filter: saturate(.95) contrast(1); }
.shot:hover::after { background: rgba(29, 27, 23, .05); }

.shot-tall { grid-column: span 5; aspect-ratio: 4 / 5; }
.shot-wide { grid-column: span 7; aspect-ratio: 16 / 10; }
.shot-square { grid-column: span 6; aspect-ratio: 1 / 1; }

/* ==========================================================================
   RSVP
   ========================================================================== */
.section-rsvp { background: var(--bg-deep); }
.rsvp-card {
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 5vw, 44px);
}
.rsvp-count {
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.rsvp-count::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); margin-right: 9px;
  vertical-align: 1px;
}

.field { margin: 0 0 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label, .field legend {
  display: block;
  font-size: 9px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0;
}
.field .optional { text-transform: none; letter-spacing: .04em; opacity: .7; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 0 13px;
  font-size: 15px;
  font-weight: 300;
  border-radius: 0;
  transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder {
  color: #9C968A; font-weight: 300;
}
.field select {
  appearance: none;
  background-image: 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='%23625C52' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}

fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.choice-row { display: flex; gap: 10px; margin-top: 4px; }
.choice { position: relative; flex: 1; }
.choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.choice span {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 12px;
  border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  transition: background .25s, color .25s, border-color .25s;
}
.choice input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.form-status {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.form-status.is-error { color: #8A3A28; }

.rsvp-success { text-align: center; padding: 20px 0 6px; }
.success-mark {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; color: var(--accent);
}
.rsvp-success h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 8px;
}
.rsvp-success p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   WISHES
   ========================================================================== */
.wishes-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 40px);
}
.wish-form {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 4vw, 32px);
  position: sticky;
  top: 96px;
}
.wish-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wish {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  padding: 22px;
  display: flex; flex-direction: column;
  min-height: 150px;
}
.wish-text {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.wish-meta {
  margin-top: auto;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.wish.is-new { animation: wishIn .6s var(--ease); }
@keyframes wishIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   GIFT
   ========================================================================== */
.section-gift { background: var(--paper); }
.gift-list { margin-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.gift-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.gift-bank {
  font-size: 9px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.gift-number {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  margin: 0;
}
.gift-holder {
  font-size: 12.5px; font-weight: 300;
  color: var(--muted); margin: 6px 0 0;
  line-height: 1.55;
}

/* ==========================================================================
   PRACTICAL
   ========================================================================== */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p {
  margin: 0 0 22px;
  font-size: 14px; font-weight: 300;
  color: var(--muted);
  max-width: 60ch;
}

/* ==========================================================================
   CLOSING
   ========================================================================== */
.closing {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: var(--sec-y) var(--pad);
  color: var(--cream);
  isolation: isolate;
}
.closing-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) brightness(.72);
}
.closing-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 19, 14, .45) 0%, rgba(18, 19, 14, .35) 45%, rgba(18, 19, 14, .88) 100%);
}
.closing-inner { max-width: 760px; }
.closing-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 28px;
}
.closing-line {
  font-size: 13px; font-weight: 300;
  color: rgba(243, 239, 231, .78);
  margin: 0 0 32px;
}
.closing-names {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1;
  margin: 0 0 16px;
}
.closing-date {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(243, 239, 231, .74);
  margin: 0;
}
.closing-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-top: 38px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #1B1A16;
  color: var(--cream);
  padding: clamp(52px, 8vw, 84px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  align-items: start;
}
.footer-mark {
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 14px;
}
.footer-note {
  font-size: 12px; font-weight: 300; line-height: 1.7;
  color: rgba(243, 239, 231, .62);
  max-width: 46ch;
  margin: 0;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(243, 239, 231, .72);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 239, 231, .2);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.footer-links a:hover { color: var(--cream); border-color: var(--cream); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 54px; padding-top: 20px;
  border-top: 1px solid rgba(243, 239, 231, .14);
  font-size: 10px; letter-spacing: .06em;
  color: rgba(243, 239, 231, .58);
}

/* ==========================================================================
   FLOATING UI
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 110;
  display: flex; align-items: center; gap: 2px;
  padding: 7px;
  background: rgba(251, 248, 241, .88);
  border: 1px solid rgba(29, 27, 23, .1);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px -18px rgba(29, 27, 23, .4);
}
.dock a {
  width: 54px;
  padding: 7px 2px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: background .25s, color .25s;
}
.dock a svg { width: 18px; height: 18px; }
.dock a span {
  font-size: 8px; letter-spacing: .08em;
  white-space: nowrap;
}
.dock a:hover { color: var(--ink); background: rgba(29, 27, 23, .05); }
.dock a.is-active { color: var(--cream); background: var(--accent); }
.dock a.is-active span { color: rgba(243, 239, 231, .9); }

.music-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 115;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(29, 27, 23, .14);
  background: rgba(251, 248, 241, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  transition: background .25s, color .25s;
}
.music-btn:hover { background: var(--paper); }
.music-btn svg { width: 18px; height: 18px; }
.music-btn .icon-on { display: none; }
.music-btn[aria-pressed="true"] { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.music-btn[aria-pressed="true"] .icon-on { display: block; }
.music-btn[aria-pressed="true"] .icon-off { display: none; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  place-items: center;
}
.lightbox::backdrop { background: rgba(12, 13, 9, .94); }
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  grid-area: 1 / 1;
}
.lightbox p {
  grid-area: 1 / 1;
  align-self: end;
  margin: 0 0 3vh;
  color: rgba(243, 239, 231, .78);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  color: var(--cream);
  font-size: 30px; font-weight: 300;
  line-height: 1;
  z-index: 2;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-media { position: static; max-width: 420px; }
  .story-media img { aspect-ratio: 4 / 5; }

  .wishes-layout { grid-template-columns: 1fr; }
  .wish-form { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  .couple-grid { grid-template-columns: 1fr; gap: 28px; }
  .couple-mark { margin: 0 auto; width: 52px; }
  .person-name { font-size: 38px; }

  .event-grid { grid-template-columns: 1fr; gap: 40px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .wish-wall { grid-template-columns: 1fr; }

  .date-actions .btn { flex: 1 1 auto; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-tall { grid-column: span 2; aspect-ratio: 4 / 5; }
  .shot-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .shot-square { grid-column: span 1; aspect-ratio: 1 / 1; }

  .dock a { width: 50px; }
  .dock a span { font-size: 7.5px; }
}

@media (max-width: 380px) {
  .gate-names { font-size: 52px; }
  .count-num { font-size: 28px; }
  .dock a { width: 46px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  body.reveal-ready .reveal { opacity: 1; transform: none; }
  .gate-media img { animation: none; transform: none; }
}

/* ==========================================================================
   PRINT (invitation itself is not meant to print; keep it clean)
   ========================================================================== */
@media print {
  .gate, .dock, .music-btn, .progress, .closing-actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .content { display: block !important; }
}
