:root {
  --blue: #5d735f;
  --deep-blue: #304b39;
  --paper: #f7f0e2;
  --ink: #3c4338;
  --olive: #737963;
  --pink: #9aaa78;
  --gold: #b39a68;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); overscroll-behavior-y: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}
body.intro-locked { overflow: hidden; }
body.intro-locked main {
  width: 100%;
  max-width: none;
  box-shadow: none;
}
body.intro-locked .hero {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
}
body.video-active { overflow: hidden; }
main {
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(22, 31, 34, .18);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #344c3b;
  isolation: isolate;
}
.hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 22%, rgba(35, 55, 39, .18) 100%), linear-gradient(to bottom, rgba(28, 47, 32, .12), transparent 45%, rgba(28, 47, 32, .28));
  transition: opacity .7s ease;
}
.hero.is-playing .hero__shade { opacity: 0; }
.door-button {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 38%;
  translate: -50% -50%;
  width: auto;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font: 600 14px/1.3 Arial, sans-serif;
  letter-spacing: .16em;
  cursor: pointer;
  text-shadow: 0 2px 12px rgba(8,25,34,.8);
  white-space: nowrap;
  transition: opacity .4s ease, transform .25s ease;
}
.door-button:hover { transform: scale(1.025); }
.door-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero.is-playing .door-button, .hero.is-ended .door-button { opacity: 0; pointer-events: none; }
.hero-names {
  position: absolute;
  z-index: 3;
  top: 46%;
  left: 50%;
  width: min(82%, 500px);
  translate: -50% -50%;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  text-shadow: 0 2px 15px rgba(48, 75, 57, .58), 0 1px 3px rgba(48, 75, 57, .72);
  transition: opacity .65s ease, transform .65s ease;
}
.hero.show-names .hero-names {
  opacity: 1;
  transform: none;
}
.hero-names__eyebrow {
  display: block;
  margin-bottom: 13px;
  font: 600 clamp(12px, 2.3vw, 15px)/1.2 Arial, sans-serif;
  letter-spacing: .32em;
}
.hero-names__couple {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: clamp(48px, 12vw, 78px);
  font-style: italic;
  line-height: .95;
  letter-spacing: -.045em;
}
.hero-names__couple b {
  margin-block: 1px;
  font-size: .4em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  font: 11px/1 Arial, sans-serif;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero.is-ended .scroll-cue { opacity: .92; pointer-events: auto; }
.scroll-cue i { width: 1px; height: 35px; background: rgba(255,255,255,.8); animation: cue 1.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.35); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.music-toggle {
  position: fixed;
  z-index: 900;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: #fff;
  background: rgba(48,75,57,.9);
  box-shadow: 0 8px 24px rgba(35,55,39,.24);
  font: 700 22px/1 Georgia, serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
body.music-ready .music-toggle { display: grid; }
.music-toggle__off { display: none; }
.music-toggle.is-muted .music-toggle__on { display: none; }
.music-toggle.is-muted .music-toggle__off { display: inline; opacity: .55; }
.music-toggle:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

section:not(.hero) { padding: 86px 28px; text-align: center; }
.paper-section {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(77, 83, 67, .055) .7px, transparent .7px);
  background-size: 6px 6px;
}
.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--pink);
  font: 700 11px/1.2 Arial, sans-serif;
  letter-spacing: .26em;
}
.eyebrow--light { color: #eee4c8; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0 auto 26px;
  color: var(--blue);
  font-size: clamp(54px, 13vw, 92px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.055em;
}
h1 span { display: block; font-style: italic; }
h1 b { display: block; margin: 8px 0 2px; color: var(--pink); font-size: .35em; font-weight: 400; line-height: 1; letter-spacing: 0; }
h2 { margin-bottom: 28px; font-size: clamp(34px, 8vw, 52px); font-weight: 400; line-height: 1.05; }
.lead { max-width: 430px; margin: 0 auto 38px; font-size: 17px; line-height: 1.8; }
.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 410px;
  margin: 0 auto;
  border-top: 1px solid rgba(63,65,57,.32);
  border-bottom: 1px solid rgba(63,65,57,.32);
}
.date-lockup > * { padding: 12px 14px; }
.date-lockup span { font: 700 11px/1.5 Arial, sans-serif; letter-spacing: .12em; }
.date-lockup strong { color: var(--blue); border-inline: 1px solid rgba(63,65,57,.32); font-size: 50px; font-weight: 400; line-height: 1; }
.time { margin: 16px 0 0; font-style: italic; }
.flourish { margin: 42px 0 26px; color: var(--pink); font-size: 30px; }
.families { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 520px; margin: auto; }
.families p { margin: 0; line-height: 1.6; }
.families small { display: block; color: var(--olive); font: 700 10px/1.2 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }

.story {
  overflow: hidden !important;
  color: var(--deep-blue);
  background: #fff;
}
.story h2 { margin-bottom: 44px; }
.story-carousel {
  position: relative;
  display: block;
  width: min(100%, 570px);
  height: 570px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  perspective: 1100px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-carousel:focus-visible { outline: 3px solid var(--pink); outline-offset: 6px; }
.story-photo {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72%, 390px);
  height: 520px;
  margin: 0;
  overflow: hidden;
  border: 10px solid #fff;
  border-bottom-width: 34px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(20, 52, 65, .18);
  opacity: 0;
  transform: translateX(-50%) scale(.78);
  transition: transform .9s cubic-bezier(.22,.8,.24,1), opacity .7s ease, filter .7s ease;
}
.story-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.story-photo.is-active { z-index: 3; opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); filter: none; }
.story-photo.is-prev { z-index: 1; opacity: .58; transform: translateX(-94%) scale(.78) rotate(-6deg); filter: saturate(.72); }
.story-photo.is-next { z-index: 2; opacity: .58; transform: translateX(-6%) scale(.78) rotate(6deg); filter: saturate(.72); }
.story-dots { display: flex; justify-content: center; gap: 9px; margin-top: 5px; }
.story-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(21,59,78,.22); transition: width .4s ease, background .4s ease; }
.story-dots i.is-active { width: 25px; border-radius: 8px; background: var(--deep-blue); }
.story-hint { margin: 15px 0 0; color: rgba(21,59,78,.58); font-size: 14px; font-style: italic; }

.voice-message { min-height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.voice-message h2 { max-width: 540px; color: var(--deep-blue); }
.record-player {
  position: relative;
  width: min(82vw, 370px);
  aspect-ratio: 1;
  margin: 12px auto 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--deep-blue);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.record-player:focus-visible { outline: 3px solid var(--pink); outline-offset: 7px; }
.record-player__label { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.record-player__label text { fill: var(--deep-blue); font: 600 13px/1 Arial, sans-serif; letter-spacing: .24em; }
.vinyl {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #171717 0 12%, transparent 12.5%),
    repeating-radial-gradient(circle at 50% 50%, #171717 0 2px, #080808 2.5px 4.5px, #141414 5px 6.5px);
  box-shadow: 0 22px 34px rgba(15, 36, 46, .2), inset -18px -12px 30px rgba(0,0,0,.42), inset 14px 10px 28px rgba(255,255,255,.08);
}
.vinyl::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 18deg, transparent 0 19%, rgba(255,255,255,.08) 24%, transparent 31% 68%, rgba(255,255,255,.045) 74%, transparent 81%); }
.vinyl__label {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 20.5%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px var(--pink);
}
.play-icon { width: 0; height: 0; margin-left: 7%; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 20px solid #fff; }
.record-player.is-playing .vinyl::after { animation: record-spin 3.8s linear infinite; }
.record-player.is-playing .play-icon { width: 18px; height: 20px; margin: 0; border: 0; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.voice-status { min-height: 26px; margin: 8px 0 0; color: var(--olive); font-size: 15px; font-style: italic; }
@keyframes record-spin { to { transform: rotate(360deg); } }

.blue-section {
  position: relative;
  color: #fff;
  background: var(--blue);
}
.blue-section::before, .garden-section::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}
.timeline { max-width: 500px; margin: 38px auto 0; text-align: left; }
.timeline article { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 0 0 28px; }
.timeline article:not(:last-child)::after { content: ""; position: absolute; left: 69px; top: 30px; bottom: 0; width: 1px; background: rgba(255,255,255,.28); }
.timeline time { color: #e0d4a9; font-size: 18px; }
.timeline h3 { margin: 0 0 4px; font-size: 21px; font-weight: 400; }
.timeline p { margin: 0; color: rgba(255,255,255,.74); font: 13px/1.5 Arial, sans-serif; }

.countdown h2 { color: var(--blue); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: auto; }
.countdown-grid div { padding: 20px 5px; border: 1px solid rgba(37,85,107,.25); }
.countdown-grid strong, .countdown-grid span { display: block; }
.countdown-grid strong { color: var(--blue); font-size: clamp(28px, 8vw, 44px); font-weight: 400; }
.countdown-grid span { margin-top: 7px; color: var(--olive); font: 700 9px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.garden-section {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(38,62,43,.38), rgba(38,62,43,.74)), url("assets/akdeniz-venue-bg.webp") center/cover;
}
.garden-section p { margin-bottom: 30px; font-size: 17px; line-height: 1.75; }
.outline-button, .solid-button {
  display: inline-block;
  min-width: 190px;
  padding: 15px 24px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}
.outline-button { color: #fff; background: rgba(255,255,255,.06); }

.rsvp {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--deep-blue);
}
.rsvp .eyebrow { margin-bottom: 30px; }
.rsvp h2 { margin-bottom: 38px; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 10vw, 70px); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
.rsvp-deadline { margin: 0 auto 56px; color: var(--ink); font-size: clamp(18px, 4.4vw, 26px); line-height: 1.55; }
.attendance-actions { display: grid; gap: 20px; width: min(100%, 610px); }
.attendance-button {
  width: 100%;
  min-height: 62px;
  padding: 16px 24px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  font: 600 clamp(15px, 3.8vw, 22px)/1 Arial, sans-serif;
  letter-spacing: .14em;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background .25s ease;
}
.attendance-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(42,58,79,.13); }
.attendance-button:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.attendance-button--primary { color: #fff; background: var(--blue); }
.attendance-button--outline { color: var(--blue); background: #fff; }
.attendance-status { min-height: 26px; margin: 30px 0 0; color: var(--pink); font-size: 16px; font-style: italic; }

.memory-section {
  padding: 86px 28px;
  color: var(--deep-blue);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(77,83,67,.055) .7px, transparent .7px);
  background-size: 6px 6px;
  border-block: 1px solid rgba(36,85,107,.1);
}
.memory-shell { width: min(100%, 640px); margin: auto; }
.memory-reminder { max-width: 340px; margin: 0 auto 20px; color: var(--blue); font-size: 16px; font-style: italic; line-height: 1.7; }
.memory-upload-card {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(36,85,107,.2);
  border-radius: 32px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.7);
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.memory-upload-card:hover { transform: translateY(-2px); }
.memory-upload-card__inner { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; border: 2px dashed rgba(36,85,107,.2); border-radius: 26px; background: rgba(36,85,107,.018); }
.memory-heart { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 50%; color: var(--pink); background: rgba(154,170,120,.12); font-size: 35px; line-height: 1; }
.memory-upload-pill { min-width: 156px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 24px; border: 1px solid rgba(36,85,107,.22); border-radius: 999px; color: var(--deep-blue); background: #fff; box-shadow: 0 8px 18px rgba(15,23,42,.08); font: 700 21px/1 Georgia, serif; }
.memory-upload-pill svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.memory-upload-card small { margin-top: 20px; color: var(--blue); font: 700 10px/1 Arial, sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.guestbook-heading { margin-top: 24px; text-align: center; color: var(--blue); }
.guestbook-heading div { display: flex; align-items: center; justify-content: center; gap: 16px; width: min(100%, 260px); margin: 0 auto; }
.guestbook-heading i { flex: 1; height: 1px; background: #d7dcd4; }
.guestbook-heading b { color: var(--pink); font-size: 18px; font-weight: 400; }
.guestbook-toggle { min-width: 168px; min-height: 38px; margin: 16px auto 0; padding: 7px 18px; border: 0; border-radius: 999px; color: #fff; background: var(--deep-blue); box-shadow: 0 8px 18px rgba(15,23,42,.13); font: 900 14px/1 Arial, sans-serif; cursor: pointer; }
.guestbook-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.guestbook-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.guestbook-toggle span { margin-left: 0; }
.guestbook-form { max-width: 576px; margin: 20px auto 0; padding: 16px; border: 1px solid #f1f3f0; border-radius: 12px; background: #fff; text-align: left; }
.guestbook-form[hidden] { display: none; }
.guestbook-form input, .guestbook-form textarea { width: 100%; padding: 12px; border: 1px solid #e2e8e0; border-radius: 8px; color: #1f2937; background: #fff; font: 600 14px/1.55 Arial, sans-serif; }
.guestbook-form textarea { margin-top: 12px; resize: none; }
.guestbook-form > div { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: #94a3b8; font: 600 12px/1 Arial, sans-serif; }
.guestbook-form button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 8px; color: #fff; background: var(--deep-blue); font-weight: 700; cursor: pointer; }
.guestbook-messages { display: grid; gap: 12px; max-width: 576px; max-height: 450px; margin: 20px auto 0; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.guestbook-message { padding: 16px; border: 1px solid rgba(36,85,107,.16); border-radius: 10px; background: #fff; color: #334155; text-align: left; }
.guestbook-message > p { margin: 0; overflow-wrap: anywhere; font: 600 14px/1.65 Arial, sans-serif; }
.guestbook-message > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 13px; }
.guestbook-message i { height: 1px; background: #edf0ec; }
.guestbook-message b { color: rgba(154,170,120,.82); font-size: 17px; font-weight: 400; }
.guestbook-message strong { grid-column: 1 / -1; color: var(--deep-blue); font-size: 14px; font-style: italic; font-weight: 600; text-align: right; }
.memory-status { min-height: 24px; margin: 22px 0 0 !important; color: var(--pink) !important; }

.gift-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 24px 32px;
  color: var(--deep-blue);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(77,83,67,.055) .7px, transparent .7px);
  background-size: 6px 6px;
}
.gift-kicker { max-width: 320px; margin: 0 auto; color: var(--pink); font: 600 clamp(9px, 2.5vw, 13px)/2 Arial, sans-serif; letter-spacing: .16em; }
.gift-section h2 { max-width: 100%; margin: 14px 0 0; color: var(--blue); font-size: clamp(40px, 10vw, 58px); font-style: italic; white-space: nowrap; }
.gift-section h2 em { color: var(--pink); font-family: Georgia, serif; font-size: .68em; }
.gift-subtitle { color: var(--deep-blue); }
.gift-subtitle { margin: 13px 0 0; font: 700 12px/1 Georgia, serif; letter-spacing: .36em; }
.gift-divider { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 320px; margin: 24px auto; color: var(--pink); }
.gift-divider span { flex: 1; height: 1px; background: currentColor; opacity: .5; }
.gift-divider b { font-size: 22px; font-weight: 400; }
.gift-description { max-width: 460px; margin: 0 auto 28px; color: var(--ink); font-size: 17px; line-height: 1.75; }
.bank-toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(100%, 390px); min-height: 58px; margin: auto; padding: 12px 17px; border: 1px solid rgba(36,85,107,.24); border-radius: 18px; color: var(--deep-blue); background: rgba(255,255,255,.86); box-shadow: 0 8px 20px rgba(21,59,78,.08); cursor: pointer; text-align: left; }
.bank-toggle strong { font: 400 20px/1 Georgia, serif; }
.bank-toggle i { font: 24px/1 Arial, sans-serif; transition: transform .3s ease; }
.bank-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.bank-details { display: grid; gap: 10px; width: min(100%, 390px); margin: 16px auto 0; }
.bank-details[hidden] { display: none; }
.bank-details > div { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; padding: 14px; border: 1px solid rgba(36,85,107,.18); border-radius: 15px; background: rgba(255,255,255,.92); text-align: left; }
.bank-details small { grid-column: 1; color: var(--pink); font: 700 10px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bank-details span { grid-column: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.bank-details button { grid-column: 2; grid-row: 1 / 3; padding: 9px 11px; border: 0; border-radius: 10px; color: #fff; background: var(--deep-blue); font: 700 11px/1 Arial, sans-serif; cursor: pointer; }

.rsvp-dialog {
  width: min(calc(100% - 28px), 560px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 30px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(8,25,34,.35);
}
.rsvp-dialog::backdrop { background: rgba(8,25,34,.68); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.rsvp-modal { position: relative; padding: 56px 34px 38px; text-align: center; }
.rsvp-modal h2 { margin-bottom: 34px; color: var(--deep-blue); }
.rsvp-modal__close { position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--deep-blue); background: #f1f4f6; font: 300 32px/1 Arial, sans-serif; cursor: pointer; }
.rsvp-modal-form { display: grid; gap: 20px; margin: 0; text-align: left; }
.rsvp-modal-form label { color: var(--olive); font: 700 10px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.rsvp-modal-form label small { font-size: 9px; font-weight: 400; text-transform: lowercase; }
.rsvp-modal-form input, .rsvp-modal-form select {
  width: 100%;
  margin-top: 8px;
  padding: 16px 15px;
  border: 1px solid rgba(51,66,89,.24);
  border-radius: 14px;
  color: var(--ink);
  background: #f7f8f8;
  font: 15px/1.2 Georgia, serif;
}
.rsvp-modal-form input:focus, .rsvp-modal-form select:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.rsvp-submit { min-height: 58px; margin-top: 6px; border: 0; border-radius: 15px; color: #fff; background: #334259; font: 700 12px/1 Arial, sans-serif; letter-spacing: .18em; cursor: pointer; }
.rsvp-modal__hint { margin: -4px 0 0; color: rgba(51,66,89,.45); font: 9px/1.2 Arial, sans-serif; letter-spacing: .14em; text-align: center; text-transform: uppercase; }

.memory-dialog { width: min(92%, 512px); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 32px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(8,25,34,.35); }
.memory-dialog::backdrop { background: rgba(8,25,34,.68); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.memory-modal { padding: 22px 20px 26px; }
.memory-modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.memory-modal h2 { margin: 0; color: var(--blue); font-size: 40px; font-style: italic; line-height: 1; }
.memory-modal__close { width: 42px; height: 42px; border: 0; border-radius: 50%; color: #94a3a8; background: transparent; font: 300 32px/1 Arial, sans-serif; cursor: pointer; }
.memory-modal__close:hover { background: #f3f5f5; }
.memory-modal form { display: grid; gap: 20px; text-align: left; }
.memory-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #edf0ef; border-radius: 16px; background: #faf9f6; }
.memory-tabs button { flex: 1; min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 5px; border: 0; border-radius: 12px; color: #9aa2a3; background: transparent; font: 400 13px/1 Georgia, serif; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.memory-tabs button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.memory-tabs button.is-active { color: var(--blue); background: #fff; box-shadow: 0 2px 8px rgba(48,75,57,.08); }
.file-drop { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; border: 2px dashed #d8dddc; border-radius: 26px; color: var(--blue); background: rgba(93,115,95,.035); text-align: center; cursor: pointer; }
.file-drop__icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 50%; background: rgba(93,115,95,.1); font: 32px/1 Arial, sans-serif; }
.file-drop strong { font-size: 17px; font-weight: 400; }
.file-drop small { margin-top: 6px; color: #9aa2a3; font-size: 12px; font-style: italic; }
.file-drop__selected { max-width: 100%; margin-top: 12px; overflow: hidden; color: var(--pink); font: 700 12px/1.3 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.memory-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.memory-guest-name { width: 100%; min-height: 48px; padding: 13px 18px; border: 1px solid #edf0ef; border-radius: 16px; color: var(--ink); background: #faf9f6; font: 14px/1.2 Georgia, serif; outline: none; }
.memory-guest-name:focus { border-color: rgba(36,85,107,.35); }
.memory-submit { min-height: 54px; border: 0; border-radius: 19px; color: #fff; background: var(--blue); font: 700 14px/1 Georgia, serif; cursor: pointer; box-shadow: 0 10px 18px rgba(48,75,57,.2); }
.memory-submit:disabled { color: #9ba3a7; background: #eef0f0; box-shadow: none; cursor: not-allowed; }

footer { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; padding: 0; color: #fff; text-align: center; background: var(--paper); }
.footer-content { display: flex; flex: 1; min-height: 576px; flex-direction: column; align-items: center; justify-content: center; padding: 100px 24px 72px; background: var(--deep-blue); }
.footer-couple { display: flex; flex-direction: column; align-items: center; margin-top: 34px; font-size: clamp(50px, 12vw, 78px); font-style: italic; line-height: .88; }
.footer-couple b { margin: 8px 0; color: #c7b77f; font-size: .4em; font-weight: 400; font-style: normal; }
.footer-divider { width: min(80%, 330px); display: flex; align-items: center; gap: 16px; margin: 34px auto 0; color: #c7b77f; }
.footer-divider i { flex: 1; height: 1px; background: rgba(255,255,255,.28); }
.footer-divider b { font-size: 21px; font-weight: 400; }
.footer-date { margin: 28px 0 0; font: 700 12px/1.5 Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.footer-thanks { margin: 24px 0 0; color: rgba(255,255,255,.82); font-size: 18px; font-style: italic; line-height: 1.7; }
.creator-band { width: 100%; height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 24px; color: var(--deep-blue); background: var(--paper); font: 800 12px/1 Arial, sans-serif; letter-spacing: .24em; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 520px) {
  section:not(.hero) { padding: 72px 22px; }
  .families { gap: 12px; }
  .date-lockup > * { padding-inline: 9px; }
  .timeline article { grid-template-columns: 58px 1fr; gap: 18px; }
  .timeline article:not(:last-child)::after { left: 57px; }
  .story-carousel { height: 475px; }
  .story-photo { width: 76%; height: 435px; border-width: 7px; border-bottom-width: 28px; }
  .story-photo.is-prev { transform: translateX(-88%) scale(.76) rotate(-5deg); }
  .story-photo.is-next { transform: translateX(-12%) scale(.76) rotate(5deg); }
  .rsvp { min-height: 650px; }
  .rsvp h2 { margin-bottom: 28px; }
  .rsvp-deadline { margin-bottom: 42px; }
  .attendance-actions { width: min(100%, 520px); gap: 14px; }
  .attendance-button { min-height: 58px; padding-block: 14px; font-size: 15px; }
  .rsvp-modal { padding: 54px 22px 30px; }
  .memory-section { padding: 72px 22px !important; }
  .memory-upload-card__inner { min-height: 198px; }
  .gift-section { padding: 32px 18px 26px !important; }
  .memory-modal { padding: 54px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
