:root {
  --cream: #ebe6da;
  --paper: #f5f0e5;
  --paper-2: #e3ddcf;
  --olive: #4f5130;
  --olive-dark: #38391f;
  --olive-soft: #e7eadc;
  --burgundy: #73333a;
  --burgundy-dark: #54232a;
  --burgundy-soft: #efe1e4;
  --sage: var(--olive);
  --sage-dark: var(--olive-dark);
  --sage-soft: var(--olive-soft);
  --ink: #332d27;
  --muted: #756c61;
  --line: rgba(63, 76, 44, .18);
  --gold: #bca36e;
  --olive-rgb: 79, 81, 48;
  --burgundy-rgb: 115, 51, 58;
  --cream-rgb: 235, 230, 218;
  --gold-rgb: 188, 163, 110;
  --olive-envelope-light: #6f8048;
  --olive-envelope-dark: #536536;
  --burgundy-envelope-light: #8b2c44;
  --burgundy-envelope-dark: #591927;
  --gold-light: #fff4ce;
  --gold-mid: #ead9a5;
  --gold-dark: #c8a967;
  --danger: var(--burgundy);
  --shadow: 0 28px 60px rgba(53, 66, 51, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }

.page-shell { min-height: 100vh; overflow: hidden; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 17px clamp(22px, 5vw, 74px);
  background: rgba(var(--cream-rgb), .90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; width: max-content; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
}
.brand-text { font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; letter-spacing: .03em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.admin-open { justify-self: end; }

.primary-btn, .ghost-btn, .danger-btn, .text-btn {
  border: 0;
  cursor: pointer;
  transition: .2s ease;
}
.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(70, 87, 70, .14);
}
.primary-btn:hover { transform: translateY(-1px); background: #3b4c3c; }
.primary-btn.compact { min-height: 44px; white-space: nowrap; }
.ghost-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.ghost-btn:hover { background: rgba(113, 131, 107, .08); }
.text-btn { padding: 3px 0; background: transparent; color: var(--sage-dark); font-weight: 700; }
.danger-btn { padding: 12px 18px; border-radius: 10px; background: var(--danger); color: #fff; }

.hero-section { padding: 70px 24px 0; }
.paper-card {
  position: relative;
  max-width: 760px;
  min-height: 770px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(116, 127, 105, .16);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: 19px;
  border: 1px solid rgba(170, 140, 87, .32);
  pointer-events: none;
}
.invitation-copy {
  position: relative;
  z-index: 2;
  min-height: 770px;
  padding: 105px 50px 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.eyebrow, .section-kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  font-size: 11px;
  color: var(--sage-dark);
}
.invitation-copy h1 {
  margin: 20px 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(66px, 10vw, 104px);
  line-height: .78;
  font-weight: 500;
  letter-spacing: -.035em;
}
.invitation-copy h1 span:not(.ampersand) { display: block; }
.ampersand {
  display: block;
  margin: 12px 0 7px;
  font-family: "Parisienne", "Brush Script MT", cursive;
  color: var(--burgundy);
  font-size: .65em;
  line-height: 1;
}
.invite-line { max-width: 360px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-style: italic; color: #596456; }
.date-block { margin: 28px 0 8px; display: grid; gap: 2px; font-family: "Cormorant Garamond", Georgia, serif; }
.date-block .day { text-transform: uppercase; font-size: 15px; letter-spacing: .25em; }
.date-block strong { font-size: 27px; font-weight: 600; letter-spacing: .04em; }
.date-block span:last-child { font-size: 16px; }
.divider { width: 160px; display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 24px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: rgba(170, 140, 87, .45); flex: 1; }
.venue-name { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; font-weight: 600; }
.venue-address { margin: 3px 0 28px; color: var(--muted); font-size: 14px; }
.fern { position: absolute; color: rgba(101, 127, 94, .56); width: 245px; z-index: 1; }
.fern-top-left { left: -34px; top: -26px; transform: rotate(-16deg); }
.fern-bottom-right { right: -35px; bottom: -28px; transform: rotate(166deg); }

.countdown-panel { max-width: 760px; margin: 0 auto; padding: 29px 10px 0; text-align: center; }
.countdown-panel > p { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--muted); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 18px auto 0; }
.countdown-grid div { border-right: 1px solid var(--line); }
.countdown-grid div:last-child { border-right: 0; }
.countdown-grid strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 31px; font-weight: 500; }
.countdown-grid span { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; color: var(--muted); }

.content-section { max-width: 1180px; margin: 0 auto; padding: 110px clamp(24px, 5vw, 70px); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.content-section h2 { margin: 6px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(42px, 6vw, 66px); line-height: 1; letter-spacing: -.02em; }
.body-copy { color: var(--muted); font-size: 16px; }
.small-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.muted-section { max-width: none; background: rgba(223, 231, 218, .32); }
.muted-section > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section-heading.centered { text-align: center; }
.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.schedule-card { background: rgba(255,255,255,.6); border: 1px solid var(--line); padding: 28px 24px; min-height: 185px; }
.schedule-card time { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.schedule-card h3 { margin: 12px 0 7px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; }
.schedule-card p { color: var(--muted); font-size: 15px; margin: 0; }

.venue-section { padding-top: 100px; padding-bottom: 100px; }
.venue-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(53,66,51,.08); }
.venue-card > div:first-child { padding: clamp(38px, 6vw, 72px); }
.venue-card h2 { font-size: 56px; }
.venue-card p { color: var(--muted); max-width: 500px; }
.map-art { position: relative; min-height: 430px; overflow: hidden; background: #e9eadf; }
.map-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(110,130,101,.25) 0 2px, transparent 2.5px), radial-gradient(circle at 75% 60%, rgba(110,130,101,.22) 0 2px, transparent 2.5px);
  background-size: 23px 23px, 29px 29px;
  opacity: .5;
}
.map-road { position: absolute; background: rgba(255,255,255,.82); border: 1px solid rgba(113,131,107,.15); border-radius: 999px; }
.road-a { width: 620px; height: 30px; left: -120px; top: 174px; transform: rotate(-16deg); }
.road-b { width: 520px; height: 24px; left: 68px; top: 252px; transform: rotate(45deg); }
.road-c { width: 430px; height: 22px; right: -120px; top: 82px; transform: rotate(-35deg); }
.map-lake { position: absolute; width: 210px; height: 140px; right: -40px; bottom: 5px; background: rgba(164,193,187,.42); border-radius: 56% 44% 70% 30%; transform: rotate(22deg); }
.map-pin { position: absolute; top: 48%; left: 48%; width: 52px; height: 52px; margin: -26px; background: var(--sage-dark); color: white; border-radius: 50% 50% 50% 12%; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(53,66,51,.25); }
.map-pin span { transform: rotate(45deg); }
.map-label { position: absolute; left: 52%; top: 56%; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }

.rsvp-section { max-width: 1060px; }
.rsvp-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; margin-top: 45px; }
.form-card, .rsvp-note { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 15px 35px rgba(53,66,51,.06); }
.form-card { padding: clamp(28px, 5vw, 48px); }
.rsvp-note { padding: 38px 30px; }
.rsvp-note h3, .success-panel h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; margin: 7px 0; }
.rsvp-note p { color: var(--muted); font-size: 14px; }
.botanical-icon { font-family: Georgia, serif; color: var(--sage); font-size: 34px; }
label, legend { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: #3d483d; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(70,87,70,.22);
  border-radius: 9px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(113,131,107,.12); }
textarea { resize: vertical; }
.lookup-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-help { color: var(--muted); font-size: 12px; }
fieldset { border: 0; padding: 0; margin: 26px 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { position: relative; margin: 0; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: block; padding: 17px 15px; text-align: center; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.choice-card input:checked + span { border-color: var(--sage-dark); background: var(--sage-soft); color: var(--sage-dark); }
.form-grid { display: grid; gap: 14px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.form-grid > div { min-width: 0; }
.form-grid + label, #attendingFields > label, #rsvpResponseStep > label { margin-top: 16px; }
.guest-found-banner { padding: 14px 16px; background: rgba(223,231,218,.5); border-radius: 10px; display: flex; flex-direction: column; }
.guest-found-banner span { color: var(--muted); font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.success-panel { text-align: center; padding: 18px 0; }
.success-icon { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--sage-soft); color: var(--sage-dark); font-size: 28px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; gap: 16px; }
.mini-stats strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 29px; }
.mini-stats span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
footer { max-width: 1180px; margin: 0 auto; padding: 34px 40px 45px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

.modal, .mini-modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25,31,25,.55); backdrop-filter: blur(3px); }
.admin-panel { position: absolute; inset: 3vh 2vw; background: #f7f6f2; border-radius: 18px; overflow: hidden; box-shadow: 0 35px 80px rgba(20,30,20,.35); }
.modal-close { position: absolute; top: 14px; right: 15px; z-index: 5; border: 0; background: rgba(255,255,255,.8); width: 36px; height: 36px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.admin-login { height: 100%; display: grid; place-items: center; background: var(--cream); }
.admin-login-card { width: min(430px, calc(100% - 36px)); background: var(--paper); border: 1px solid var(--line); padding: 45px; box-shadow: var(--shadow); }
.admin-login-card h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 45px; margin: 0; }
.admin-login-card p { color: var(--muted); }
.admin-login-card .primary-btn { width: 100%; margin-top: 14px; }
.error-text { color: var(--danger) !important; }

.admin-dashboard { height: 100%; display: grid; grid-template-columns: 230px 1fr; }
.admin-sidebar { background: #28352b; color: white; display: flex; flex-direction: column; padding: 24px 18px; }
.admin-brand { display: flex; gap: 11px; align-items: center; padding: 5px 7px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand .brand-mark { border-color: rgba(255,255,255,.5); }
.admin-brand strong, .admin-brand span { display: block; }
.admin-brand strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; }
.admin-brand span { font-size: 11px; color: rgba(255,255,255,.62); }
.admin-sidebar nav { margin-top: 28px; display: grid; gap: 6px; }
.admin-sidebar nav button, .sidebar-logout { text-align: left; padding: 12px 13px; border-radius: 9px; border: 0; color: rgba(255,255,255,.68); background: transparent; cursor: pointer; }
.admin-sidebar nav button.active, .admin-sidebar nav button:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar-logout { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; padding-top: 20px; }
.admin-main { overflow: auto; padding: 38px clamp(24px, 4vw, 56px) 70px; }
.admin-mobile-heading { display: none; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.admin-title-row h2 { margin: 2px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 47px; font-weight: 600; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-grid article, .admin-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 22px; }
.stat-grid span { display: block; color: var(--muted); font-size: 12px; }
.stat-grid strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 39px; font-weight: 600; margin: 2px 0 -4px; }
.stat-grid small { color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 13px; margin: 13px 0; }
.admin-card h3 { margin: 0 0 16px; font-size: 15px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.progress-track { height: 10px; border-radius: 99px; background: #eef1eb; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--sage); border-radius: inherit; transition: width .35s; }
.status-legend { display: flex; gap: 18px; margin-top: 17px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.attending { background: var(--sage); }
.status-dot.declined { background: #ae746b; }
.status-dot.pending { background: #c8bd93; }
.snapshot-list { margin: 0; }
.snapshot-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.snapshot-list div:last-child { border-bottom: 0; }
.snapshot-list dt { color: var(--muted); font-size: 12px; }
.snapshot-list dd { margin: 0; font-weight: 600; font-size: 15px; }
.recent-list { display: grid; }
.recent-item { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.recent-item strong, .recent-item span { display: block; }
.recent-item span { color: var(--muted); font-size: 11px; }
.status-pill { display: inline-flex !important; align-items: center; min-width: 80px; justify-content: center; padding: 5px 9px; border-radius: 999px; font-size: 10px !important; font-weight: 700; }
.status-pill.Attending { background: #e4ede1; color: #4c674c; }
.status-pill.Declined { background: #f0dfdc; color: #8b4f47; }
.status-pill.Pending { background: #f1eddb; color: #7c7249; }
.toolbar { display: grid; grid-template-columns: 1fr 180px; gap: 10px; margin-bottom: 15px; }
.admin-title-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.guest-csv-import { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.guest-csv-import input { display: none; }
.guest-import-status { min-height: 17px; margin: -5px 0 15px; }
.guest-import-status.is-working { color: var(--olive-dark); font-weight: 600; }
.guest-import-status.is-success { color: var(--olive-dark); font-weight: 600; }
.guest-import-status.is-error { color: var(--danger); font-weight: 600; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; background: #fafbf8; }
tbody tr:last-child td { border-bottom: 0; }
.guest-name-cell strong, .guest-name-cell span { display: block; }
.guest-name-cell span { color: var(--muted); font-size: 10px; }
.table-action { border: 0; background: transparent; cursor: pointer; color: var(--sage-dark); font-weight: 700; }
.confirmation-grid { display: grid; gap: 11px; }
.confirmation-card { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 15px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.confirmation-card h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; }
.confirmation-card p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.confirmation-field span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.confirmation-field strong { font-size: 12px; }
.settings-form { display: grid; gap: 14px; }
.settings-section { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px; }
.settings-section h3 { margin: 0 0 17px; font-size: 15px; }
.settings-section label { margin-top: 13px; }
.theme-settings-section .card-title-row { align-items: flex-start; gap: 18px; }
.theme-settings-section .card-title-row h3 { margin-bottom: 4px; }
.theme-settings-section .form-help { margin: 0; }
.theme-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.theme-color-field {
  margin: 0 !important;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
}
.theme-color-field > span:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}
.color-control {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}
.color-control input[type="color"] {
  width: 58px;
  height: 44px;
  padding: 3px;
  border-radius: 9px;
  cursor: pointer;
  background: #fff;
}
.color-control output {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: 600 12px "Inter", Arial, sans-serif;
  letter-spacing: .07em;
}
.theme-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 42px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}
.theme-preview span { min-width: 0; }
@media (max-width: 620px) {
  .theme-color-grid { grid-template-columns: 1fr; }
  .theme-settings-section .card-title-row { flex-direction: column; }
}
.schedule-editor-row { display: grid; grid-template-columns: 130px 1fr 1.4fr auto; gap: 9px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
.schedule-editor-row:first-child { border-top: 0; }
.remove-schedule { width: 40px; height: 42px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--danger); cursor: pointer; }
.sticky-save { position: sticky; bottom: -1px; background: rgba(247,246,242,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 14px 0 0; display: flex; align-items: center; gap: 12px; }
.saved-text { color: var(--sage-dark); font-weight: 700; font-size: 12px; }
.file-input-label { display: inline-flex; margin: 8px 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.file-input-label input { display: none; }
.danger-zone { border-color: rgba(157,77,68,.22); }

.mini-modal-card { position: absolute; width: min(620px, calc(100% - 32px)); max-height: 88vh; overflow: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 15px; padding: 32px; box-shadow: 0 28px 70px rgba(20,30,20,.28); }
.mini-modal-card h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 38px; margin: 0 0 20px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); z-index: 200; background: #28352b; color: #fff; border-radius: 999px; padding: 10px 18px; font-size: 12px; box-shadow: 0 12px 30px rgba(20,30,20,.25); }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .paper-card, .invitation-copy { min-height: 690px; }
  .invitation-copy { padding-inline: 34px; }
  .split-section, .venue-card, .rsvp-layout { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .map-art { min-height: 330px; }
  .admin-panel { inset: 0; border-radius: 0; }
  .admin-dashboard { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-mobile-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
  .admin-mobile-heading select { width: auto; min-width: 180px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .confirmation-card { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 620px) {
  .topbar { padding: 13px 16px; }
  .brand-text { display: none; }
  .hero-section { padding: 24px 12px 0; }
  .paper-card { min-height: 650px; }
  .paper-card::before { inset: 12px; }
  .invitation-copy { min-height: 650px; padding: 80px 28px 65px; }
  .invitation-copy h1 { font-size: 66px; }
  .fern { width: 190px; }
  .content-section { padding: 78px 22px; }
  .content-section h2 { font-size: 45px; }
  .schedule-grid, .choice-grid, .form-grid.two-col, .mini-stats, .stat-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .lookup-row { grid-template-columns: 1fr; }
  .venue-card h2 { font-size: 45px; }
  .countdown-grid strong { font-size: 25px; }
  footer { padding-inline: 22px; flex-direction: column; gap: 8px; }
  .admin-main { padding: 25px 16px 55px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .admin-title-row h2 { font-size: 39px; }
  .toolbar { grid-template-columns: 1fr; }
  .admin-title-actions { width: 100%; justify-content: flex-start; }
  .admin-title-actions .ghost-btn, .admin-title-actions .primary-btn, .admin-title-actions .guest-csv-import { flex: 1 1 auto; }
  .confirmation-card { grid-template-columns: 1fr; }
  .schedule-editor-row { grid-template-columns: 1fr; padding-bottom: 18px; }
  .remove-schedule { width: 100%; }
  .admin-login-card { padding: 32px 24px; }
}

/* Opening invitation animation — single authoritative implementation */
body.invitation-intro-active { overflow: hidden; }
.invitation-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 31%, rgba(255,255,255,.96), rgba(248,244,235,.94) 42%, rgba(231,235,219,.98) 100%),
    var(--cream);
  transition: opacity .72s ease, visibility .72s ease;
}
.invitation-intro::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(176,141,87,.26);
  pointer-events: none;
}
.invitation-intro.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-glow {
  position: absolute;
  width: min(720px, 96vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(255,255,255,0) 69%);
  filter: blur(9px);
  animation: introGlow 4.5s ease-in-out infinite alternate;
}
.intro-stage {
  position: relative;
  width: min(640px, calc(100vw - 28px));
  text-align: center;
  perspective: 1800px;
}
.intro-kicker {
  margin: 0 0 24px;
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  transition: opacity .3s ease, transform .3s ease;
}

/* Luxury envelope: olive body, burgundy flap, champagne-gold lining. */
.intro-envelope {
  --env-w: min(520px, 90vw);
  position: relative;
  width: var(--env-w);
  aspect-ratio: 1.56 / 1;
  margin: 0 auto 30px;
  isolation: isolate;
  overflow: visible;
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 28px rgba(43,48,36,.19));
  transition: transform .9s cubic-bezier(.2,.76,.22,1);
}
.envelope-back,
.envelope-pocket,
.envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 11px;
}

/* Back panel and visible gold lining. */
.envelope-back {
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(63,76,44,.3);
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.26), transparent 34%),
    linear-gradient(180deg, var(--olive-envelope-light) 0%, var(--olive-envelope-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.19),
    inset 0 -14px 24px rgba(40,50,27,.16);
}
.envelope-back::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(232,211,157,.25);
  border-radius: 8px;
}
.envelope-back::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 7%;
  height: 58%;
  clip-path: polygon(0 0, 100% 0, 50% 92%);
  background:
    linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 54%, var(--gold-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(139,105,45,.22);
}

/* Invitation sheet. It is fully hidden until the pull stage begins. */
.intro-card-preview {
  position: absolute;
  z-index: 4;
  left: 12%;
  right: 12%;
  bottom: 7%;
  height: 76%;
  padding: 28px 24px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,253,248,.995), rgba(255,253,248,.995)),
    radial-gradient(circle at 12% 10%, rgba(95,111,58,.06), transparent 30%);
  border: 1px solid rgba(176,141,87,.34);
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(42,48,35,.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(25%) scale(.965);
  transform-origin: center bottom;
  will-change: transform, opacity;
  transition:
    transform 1.12s cubic-bezier(.16,.88,.22,1),
    opacity .18s ease,
    box-shadow .65s ease;
}
.intro-card-preview::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(176,141,87,.28);
  border-radius: 2px;
  pointer-events: none;
}
.intro-card-preview::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(123,36,56,.52), rgba(95,111,58,.58), transparent);
  opacity: .75;
}
.preview-flourish {
  position: absolute;
  top: 18px;
  right: 21px;
  font-family: Georgia, serif;
  font-size: 26px;
  color: rgba(95,111,58,.35);
  transform: rotate(18deg);
}
.intro-card-preview p {
  position: relative;
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 7px;
  font-weight: 700;
  color: var(--olive-dark);
}
.intro-card-preview h1 {
  position: relative;
  margin: 2px 0 0;
  width: 100%;
  max-width: 340px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 50px);
  line-height: .82;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.intro-card-preview h1 span { display: block; }
.intro-card-preview h1 em {
  display: block;
  margin: 5px 0 3px;
  color: var(--burgundy);
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: .58em;
  font-weight: 400;
}
.preview-rule {
  position: relative;
  width: 122px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 6px;
  color: var(--gold);
  font-size: 7px;
}
.preview-rule::before,
.preview-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(176,141,87,.42);
}
.intro-card-preview strong {
  position: relative;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
}
.intro-card-preview small {
  position: relative;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.intro-card-preview > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .32s ease, transform .4s ease;
}

/* Olive front pocket stays above the sheet while it is sliding out. */
.envelope-pocket {
  z-index: 5;
  overflow: hidden;
  border: 1px solid rgba(63,76,44,.34);
  clip-path: polygon(0 31%, 50% 68%, 100% 31%, 100% 100%, 0 100%);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08) 0 49.5%, transparent 50%),
    linear-gradient(215deg, rgba(255,255,255,.06) 0 49.5%, transparent 50%),
    linear-gradient(180deg, var(--olive-envelope-light) 0%, var(--olive-envelope-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -12px 20px rgba(38,47,26,.17);
}
.envelope-pocket::before,
.envelope-pocket::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 56%;
  height: 73%;
  border-top: 1px solid rgba(232,211,157,.16);
  pointer-events: none;
}
.envelope-pocket::before {
  left: -3%;
  clip-path: polygon(0 0, 100% 52%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,0));
}
.envelope-pocket::after {
  right: -3%;
  clip-path: polygon(0 52%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(225deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

/* Burgundy flap; z-index remains above the pocket during the fold, then drops behind before card motion. */
.envelope-flap {
  z-index: 7;
  height: 69%;
  transform-origin: 50% 1%;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border: 1px solid rgba(87,24,39,.46);
  background:
    linear-gradient(180deg, var(--burgundy-envelope-light) 0%, var(--burgundy) 56%, var(--burgundy-envelope-dark) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -9px 18px rgba(54,13,24,.16);
  transition: transform .9s cubic-bezier(.2,.78,.2,1);
}
.envelope-flap::before {
  content: "";
  position: absolute;
  inset: 13px 15px auto;
  height: calc(100% - 23px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border: 1px solid rgba(242,217,162,.25);
}
.envelope-flap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 92px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(242,217,162,.48), transparent);
}

.wax-seal {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 52%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%) rotate(-5deg);
  border-radius: 49% 51% 46% 54%;
  display: grid;
  place-items: center;
  color: rgba(255,249,243,.96);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  background: radial-gradient(circle at 35% 30%, var(--burgundy-envelope-light), var(--burgundy) 62%, var(--burgundy-envelope-dark) 100%) !important;
  border: 4px double rgba(242,217,162,.4);
  box-shadow: 0 10px 18px rgba(87,24,39,.3), inset 0 0 0 2px rgba(79,18,34,.18) !important;
  transition: opacity .25s ease, transform .4s cubic-bezier(.22,.8,.2,1), filter .25s ease;
}
.wax-seal::before,
.wax-seal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 0;
  opacity: 0;
  background: rgba(255,238,229,.82);
  transform-origin: top;
}

.open-invitation-btn {
  position: relative;
  z-index: 10;
  min-width: 204px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid rgba(176,141,87,.34);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, #687a43, #43542b) !important;
  box-shadow: 0 12px 24px rgba(63,76,44,.18);
  cursor: pointer;
  font: 600 13px "Inter", Arial, sans-serif;
  letter-spacing: .02em;
  transition: transform .22s ease, opacity .3s ease, box-shadow .22s ease;
}
.open-invitation-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #61723e, #384722) !important;
  box-shadow: 0 15px 28px rgba(63,76,44,.22);
}
.open-invitation-btn:focus-visible { outline: 3px solid rgba(95,111,58,.25); outline-offset: 4px; }
.open-arrow { font-size: 17px; animation: introArrow 1.4s ease-in-out infinite; }
.intro-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  transition: opacity .3s ease;
}
.intro-botanical {
  position: absolute;
  color: rgba(95,111,58,.13);
  font: 220px Georgia, serif;
  line-height: 1;
  user-select: none;
}
.intro-botanical-left { left: -50px; bottom: -38px; transform: rotate(26deg); }
.intro-botanical-right { right: -50px; top: -36px; transform: rotate(205deg); }

/* One animation state machine — no competing legacy transforms. */
.invitation-intro.is-opening .open-invitation-btn,
.invitation-intro.is-opening .intro-hint,
.invitation-intro.is-opening .intro-kicker {
  opacity: 0;
  pointer-events: none;
}
.invitation-intro.is-breaking .wax-seal { animation: sealBreak .42s ease both; }
.invitation-intro.is-breaking .wax-seal::before {
  height: 27px;
  opacity: 1;
  transform: translate(-5px,-8px) rotate(28deg);
  transition: height .17s ease, opacity .17s ease;
}
.invitation-intro.is-breaking .wax-seal::after {
  height: 22px;
  opacity: 1;
  transform: translate(5px,-7px) rotate(-34deg);
  transition: height .19s ease .05s, opacity .19s ease .05s;
}
.invitation-intro.flap-open .envelope-flap {
  transform: rotateX(178deg);
}
.invitation-intro.flap-open .wax-seal {
  opacity: 0;
  filter: blur(.5px);
  transform: translate(-50%, -61%) rotate(-12deg) scale(.73);
}
/* Change stacking only after the flap has already folded away. */
.invitation-intro.card-rising .envelope-flap { z-index: 2; }
.invitation-intro.card-rising .intro-card-preview {
  visibility: visible;
  opacity: 1;
  transform: translateY(-72%) scale(1.005);
  box-shadow: 0 25px 45px rgba(43,48,36,.18);
}
.invitation-intro.card-rising .intro-card-preview > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .18s;
}
.invitation-intro.card-rising .intro-envelope {
  transform: translateY(26px) scale(.99);
}
.invitation-intro.is-revealing .intro-card-preview {
  visibility: visible;
  opacity: 1;
  transform: translateY(-88%) scale(1.035);
}

.page-shell { transition: opacity .8s ease, transform 1s cubic-bezier(.22,.8,.2,1), filter .8s ease; }
body.invitation-intro-active .page-shell { opacity: .08; transform: scale(1.012); filter: blur(8px); }
body.invitation-intro-opened .page-shell { opacity: 1; transform: none; filter: none; }

@keyframes introArrow {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes introGlow {
  from { transform: scale(.96); opacity: .72; }
  to { transform: scale(1.04); opacity: 1; }
}
@keyframes sealBreak {
  0% { transform: translate(-50%,-50%) rotate(-5deg) scale(1); }
  24% { transform: translate(-52%,-51%) rotate(-9deg) scale(1.04); }
  48% { transform: translate(-47%,-50%) rotate(3deg) scale(.98); }
  72% { transform: translate(-51%,-52%) rotate(-7deg) scale(.96); }
  100% { transform: translate(-50%,-52%) rotate(-4deg) scale(.93); }
}

@media (max-width: 620px) {
  .invitation-intro::before { inset: 12px; }
  .intro-stage { width: min(430px, calc(100vw - 18px)); }
  .intro-envelope { --env-w: min(370px, 92vw); margin-bottom: 26px; }
  .intro-kicker { margin-bottom: 18px; }
  .intro-card-preview {
    left: 12%;
    right: 12%;
    bottom: 7%;
    height: 75%;
    padding: 22px 16px 14px;
  }
  .intro-card-preview h1 { font-size: clamp(28px, 8vw, 38px); }
  .intro-card-preview p { font-size: 6px; letter-spacing: .14em; }
  .intro-card-preview strong { font-size: 12px; }
  .intro-card-preview small { font-size: 6px; }
  .preview-rule { width: 92px; margin: 6px 0 5px; }
  .preview-flourish { top: 13px; right: 14px; font-size: 21px; }
  .intro-card-preview::before { inset: 7px; }
  .intro-card-preview::after { left: 14px; right: 14px; top: 12px; }
  .intro-botanical { font-size: 145px; }
  .wax-seal { width: 56px; height: 56px; font-size: 22px; }
  .invitation-intro.card-rising .intro-card-preview { transform: translateY(-70%) scale(1); }
  .invitation-intro.card-rising .intro-envelope { transform: translateY(20px) scale(.992); }
  .invitation-intro.is-revealing .intro-card-preview { transform: translateY(-85%) scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-glow, .open-arrow, .invitation-intro.is-breaking .wax-seal { animation: none; }
  .invitation-intro, .intro-envelope, .envelope-flap, .wax-seal, .intro-card-preview,
  .open-invitation-btn, .intro-hint, .intro-kicker, .page-shell { transition-duration: .01ms !important; }
}

/* Olive green + burgundy wedding palette */
.section-kicker { color: var(--burgundy); }
.brand-mark { border-color: var(--burgundy); color: var(--burgundy); }
.primary-btn { background: var(--olive-dark); }
.primary-btn:hover { background: #334022; }
.text-btn { color: var(--burgundy); }
.fern { color: rgba(95,111,58,.58); }
.schedule-card time, .divider { color: var(--burgundy); }
.divider::before, .divider::after { background: rgba(123,36,56,.35); }
.map-pin { background: var(--burgundy); }
.botanical-icon { color: var(--olive); }
.wax-seal { background: var(--burgundy) !important; box-shadow: 0 7px 15px rgba(87,24,39,.28) !important; }
.open-invitation-btn { background: var(--olive-dark); }
.open-invitation-btn:hover { background: #334022; }

.section-intro {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
}

.entourage-section { padding-top: 105px; padding-bottom: 105px; }
.entourage-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 820px);
  margin: 48px auto 0;
}
.entourage-group {
  position: relative;
  width: 100%;
  padding: 30px 38px 32px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(63,76,44,.055);
  overflow: hidden;
}
.entourage-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}
.entourage-group.olive-group::before { background: var(--olive); }
.entourage-group.burgundy-group::before { background: var(--burgundy); }
.entourage-group::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -68px;
  bottom: -68px;
  border: 1px solid rgba(176,141,87,.22);
  border-radius: 50%;
  pointer-events: none;
}
.entourage-group-heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.entourage-flourish {
  color: var(--burgundy);
  font-size: 14px;
  line-height: 1;
}
.entourage-group.olive-group .entourage-flourish { color: var(--olive-dark); }
.entourage-group-heading p {
  margin: 0;
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: 11px;
  font-weight: 700;
}
.entourage-group.burgundy-group .entourage-group-heading p { color: var(--burgundy); }
.entourage-members {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  margin: 18px auto 0;
  border-top: 1px solid rgba(63,76,44,.11);
}
.entourage-member {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(63,76,44,.11);
}
.entourage-member span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.entourage-format-example { margin-top: 9px; }
.empty-entourage { text-align: center; color: var(--muted); }

.dress-section { max-width: 1180px; padding-top: 40px; }
.dress-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 520px;
  background: var(--olive-dark);
  color: #fffdf8;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dress-copy { padding: clamp(42px,7vw,82px); align-self: center; }
.dress-copy .section-kicker { color: #dbc7aa; }
.dress-copy h2 { color: #fffdf8; }
.dress-copy > p:not(.section-kicker):not(.dress-note) { max-width: 650px; color: rgba(255,253,248,.78); }
.motif-swatches {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin: 34px 0 26px;
}
.motif-swatch {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.swatch { display: block; width: 100%; height: 62px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.18); }
.swatch.olive { background: var(--olive); }
.swatch.burgundy { background: var(--burgundy); }
.swatch.cream { background: var(--cream); }
.motif-swatch strong { display: block; font-family: "Cormorant Garamond",Georgia,serif; font-size: 18px; }
.motif-swatch small { color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .08em; }
.dress-note { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.72); font-size: 15px; }
.dress-art {
  position: relative;
  min-height: 460px;
  background: var(--burgundy);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dress-art::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(245,241,231,.32);
}
.dress-arch { position: absolute; border: 1px solid rgba(245,241,231,.20); border-radius: 50% 50% 0 0; }
.dress-arch-one { width: 310px; height: 420px; bottom: -95px; left: 50%; transform: translateX(-50%); }
.dress-arch-two { width: 245px; height: 350px; bottom: -70px; left: 50%; transform: translateX(-50%); }
.dress-monogram { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 70px; }
.dress-monogram em { font-family: "Parisienne", cursive; font-size: 48px; color: #dbc7aa; font-style: normal; }
.dress-leaf { position: absolute; right: 34px; top: 26px; font: 90px Georgia,serif; color: rgba(245,241,231,.16); transform: rotate(22deg); }

@media (max-width: 900px) {
  .dress-card { grid-template-columns: 1fr; }
  .dress-art { min-height: 330px; }
}
@media (max-width: 620px) {
  .motif-swatches { grid-template-columns: 1fr; }
  .swatch { height: 45px; }
  .dress-copy { padding: 42px 25px; }
  .dress-art { min-height: 285px; }
}


/* === Compact attire artwork overrides === */
/* Compact gown / attire sample: visual reference, not a full-height poster. */
.dress-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  min-height: 500px;
}
.dress-art {
  min-height: 500px;
  padding: 44px 32px;
}
.attire-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 24px;
}
.attire-guide-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}
.attire-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(245,241,231,.2);
  background: rgba(245,241,231,.11);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.attire-guide-card h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #fffdf8;
}
.attire-guide-card p {
  margin: 0;
  color: rgba(255,253,248,.72);
  font-size: 12px;
  line-height: 1.55;
}
.dress-visual-card {
  position: relative;
  z-index: 3;
  width: min(100%, 280px);
  margin: auto;
  padding: 14px;
  border: 1px solid rgba(245,241,231,.2);
  background: rgba(255,253,248,.08);
  box-shadow: 0 16px 34px rgba(52,18,27,.18);
}
.dress-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dress-visual-header .attire-pill { margin: 0; }
.dress-visual-card .dress-monogram {
  gap: 3px;
  font-size: 25px;
  line-height: 1;
}
.dress-visual-card .dress-monogram em {
  font-size: 20px;
}
.dress-illustration-frame {
  width: 100%;
  padding: 7px;
  background: #fffdf8;
  border: 1px solid rgba(245,241,231,.28);
}
.dress-illustration-frame img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center bottom;
  background: #fff;
}
.dress-visual-note {
  margin: 9px 0 0;
  text-align: center;
  color: rgba(255,253,248,.68);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .dress-card { grid-template-columns: 1fr; }
  .dress-art { min-height: 380px; padding: 34px 24px; }
  .dress-visual-card { width: min(100%, 250px); }
  .dress-illustration-frame img { height: 220px; }
}
@media (max-width: 620px) {
  .attire-guide-grid { grid-template-columns: 1fr; }
  .dress-art { min-height: 330px; padding: 28px 18px; }
  .dress-visual-card { width: min(100%, 220px); padding: 11px; }
  .dress-illustration-frame img { height: 185px; }
  .dress-visual-note { font-size: 8px; }
}


.venue-image-card {
  background: #fffdf8;
  border: 1px solid rgba(176,141,87,.28);
  box-shadow: 0 20px 40px rgba(47, 53, 37, .10);
  overflow: hidden;
}
.venue-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #faf7f0;
}
.venue-image-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(176,141,87,.18);
  background: linear-gradient(180deg, rgba(255,253,248,1), rgba(248,244,235,1));
}
.venue-image-kicker {
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.venue-image-caption strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .venue-image-caption strong { font-size: 24px; }
}

@media (max-width: 620px) {
  .entourage-grid { gap: 14px; margin-top: 36px; }
  .entourage-group { padding: 26px 20px 28px; }
  .entourage-group-heading p { font-size: 10px; letter-spacing: .16em; }
  .entourage-members { margin-top: 15px; }
  .entourage-member { padding: 9px 4px; }
  .entourage-member span { font-size: 22px; }
}


/* Floating background music player */
.music-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(330px, calc(100vw - 30px));
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(var(--gold-rgb, 176,141,87), .32);
  border-radius: 999px;
  background: rgba(var(--cream-rgb, 245,241,231), .94);
  box-shadow: 0 15px 38px rgba(35, 41, 29, .18);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.music-player:hover { box-shadow: 0 18px 44px rgba(35,41,29,.23); }

.vinyl-button {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.vinyl-button:focus-visible {
  outline: 3px solid rgba(var(--gold-rgb, 176,141,87), .42);
  outline-offset: 3px;
}

/* The entire record rotates. The control icon is a separate layer and stays still. */
.vinyl-disc {
  position: absolute;
  inset: 3px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at center,
      rgba(255,255,255,.055) 0 1px,
      transparent 1px 4px),
    radial-gradient(circle at center,
      #33372f 0 8%,
      #171a16 9% 69%,
      #282c25 70% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 12px rgba(0,0,0,.34),
    0 8px 17px rgba(26,29,23,.28);
  transform: rotate(0deg) translateZ(0);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}
.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(var(--gold-rgb, 176,141,87), .20);
  border-radius: 50%;
}
.vinyl-disc::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: conic-gradient(
    from 18deg,
    transparent 0deg 42deg,
    rgba(255,255,255,.12) 47deg,
    transparent 58deg 176deg,
    rgba(var(--gold-rgb,176,141,87),.10) 184deg,
    transparent 197deg 360deg
  );
  pointer-events: none;
}

.vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.055);
}
.vinyl-groove-one { inset: 10px; }
.vinyl-groove-two { inset: 16px; }
.vinyl-groove-three { inset: 22px; }

/* Asymmetrical details make the rotation visibly obvious. */
.vinyl-spin-marker {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 8px rgba(var(--gold-rgb,176,141,87),.45);
}
.vinyl-sheen {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 16px;
  height: 28px;
  border-radius: 50%;
  transform: rotate(28deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  opacity: .8;
}
.vinyl-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      var(--cream) 0 7%,
      var(--burgundy) 8% 56%,
      var(--burgundy-dark) 57% 100%);
  box-shadow: 0 0 0 2px rgba(var(--gold-rgb,176,141,87), .48);
}
.vinyl-spindle {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #11130f;
}

/* A fixed central control sits above the spinning vinyl. */
.vinyl-control-icon {
  position: relative;
  z-index: 5;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(17,19,15,.72);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  pointer-events: none;
  transition: transform .18s ease, background .18s ease;
}
.vinyl-button:hover .vinyl-control-icon {
  transform: scale(1.08);
  background: rgba(17,19,15,.86);
}

/* Play triangle */
.vinyl-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

/* Pause bars */
.vinyl-pause-icon {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vinyl-pause-icon i {
  display: block;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: #fff;
}

/* Spin continuously only while the audio element is playing. */
.music-player.is-playing .vinyl-disc {
  animation: vinylSpin 1.9s linear infinite;
  animation-play-state: running;
}
.music-player:not(.is-playing) .vinyl-disc {
  animation: none;
}
.music-player.is-playing .vinyl-play-icon { display: none; }
.music-player.is-playing .vinyl-pause-icon { display: flex; }

.music-player-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.music-player-copy span {
  color: var(--burgundy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.music-player-copy strong {
  max-width: 205px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(360deg) translateZ(0); }
}

/* Admin music controls */
.music-enabled-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}
.music-enabled-toggle input { width: 18px; height: 18px; accent-color: var(--olive); }
.music-admin-grid { align-items: end; }
.music-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.music-upload-row .form-help { margin: 0; flex: 1 1 220px; }

@media (max-width: 620px) {
  .music-player { right: 12px; bottom: 12px; padding: 7px; gap: 0; }
  .vinyl-button { width: 58px; height: 58px; }
  .vinyl-disc { inset: 3px; }
  .vinyl-control-icon { width: 28px; height: 28px; }
  .music-player-copy { display: none; }
  .music-admin-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .music-player.is-playing .vinyl-disc { animation-duration: 5s; }
}


/* ==========================================================
   Vintage Burgundy + Olive Stationery Theme
   Inspired by layered letterpress wedding stationery.
   Keeps all admin, RSVP, Supabase, CSV and music behaviour.
   ========================================================== */

body {
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--gold-rgb), .06), transparent 28%),
    radial-gradient(circle at 82% 65%, rgba(var(--burgundy-rgb), .045), transparent 32%),
    repeating-linear-gradient(0deg, rgba(61, 52, 43, .018) 0 1px, transparent 1px 4px),
    var(--cream);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.85) 0 1px, transparent 1.2px),
    radial-gradient(circle at 70% 65%, rgba(76,64,49,.16) 0 .7px, transparent .9px);
  background-size: 13px 13px, 17px 17px;
  mix-blend-mode: soft-light;
}

.topbar {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #f5ead0;
  background: rgba(var(--olive-rgb), .97);
  border-bottom: 1px solid rgba(var(--gold-rgb), .42);
  box-shadow: 0 10px 30px rgba(55,48,35,.12);
}
.topbar .brand-mark {
  border-color: rgba(var(--gold-rgb), .72);
  color: var(--gold);
}
.topbar .brand-text,
.topbar .nav-links a { color: rgba(250,241,219,.88); }
.topbar .nav-links a:hover { color: #fff7e5; }
.topbar .ghost-btn {
  border-color: rgba(var(--gold-rgb), .52);
  color: #fff6df;
  background: rgba(255,255,255,.025);
}
.topbar .ghost-btn:hover { background: rgba(255,255,255,.08); }

.primary-btn {
  border: 1px solid rgba(var(--gold-rgb), .58);
  border-radius: 4px;
  background: var(--burgundy);
  color: #f8ead0;
  box-shadow: 0 9px 22px rgba(var(--burgundy-rgb), .18);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  letter-spacing: .055em;
}
.primary-btn:hover {
  background: var(--burgundy-dark);
  box-shadow: 0 12px 26px rgba(var(--burgundy-rgb), .24);
}
.ghost-btn {
  border-color: rgba(var(--gold-rgb), .42);
  border-radius: 4px;
}

/* Main invitation becomes the tall burgundy stationery card. */
.hero-section {
  padding-top: clamp(48px, 7vw, 90px);
}
.paper-card.invitation-card {
  max-width: 720px;
  min-height: 810px;
  color: #f2dfbd;
  background:
    linear-gradient(rgba(var(--burgundy-rgb), .965), rgba(var(--burgundy-rgb), .965)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
  border: 2px solid var(--burgundy-dark);
  border-radius: 170px 170px 24px 24px / 92px 92px 24px 24px;
  box-shadow: 0 32px 70px rgba(73,47,42,.24);
}
.paper-card.invitation-card::before {
  inset: 15px;
  border: 1px solid rgba(var(--gold-rgb), .76);
  border-radius: 155px 155px 16px 16px / 82px 82px 16px 16px;
}
.paper-card.invitation-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 76px;
  height: 76px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .55);
  box-shadow: inset 0 0 0 6px rgba(var(--burgundy-rgb), .72);
  background:
    radial-gradient(circle, rgba(var(--gold-rgb), .18), transparent 64%);
  pointer-events: none;
}
.invitation-copy {
  min-height: 810px;
  padding: 120px 60px 92px;
}
.invitation-copy .eyebrow {
  color: rgba(248,233,201,.76);
}
.invitation-copy h1 {
  color: #f1d6ac;
  text-shadow: 0 1px 0 rgba(65,30,30,.25);
  font-size: clamp(70px, 10vw, 112px);
  letter-spacing: -.045em;
}
.invitation-copy .ampersand { color: var(--gold); }
.invitation-copy .invite-line,
.invitation-copy .venue-address { color: rgba(248,233,201,.74); }
.invitation-copy .date-block,
.invitation-copy .venue-name { color: #f5e2c1; }
.invitation-card .divider { color: var(--gold); }
.invitation-card .divider::before,
.invitation-card .divider::after { background: rgba(var(--gold-rgb), .62); }
.invitation-card .fern {
  color: rgba(var(--gold-rgb), .33);
  filter: sepia(.2);
}
.invitation-card .primary-btn {
  background: transparent;
  border-color: rgba(var(--gold-rgb), .78);
  color: #f3ddba;
}
.invitation-card .primary-btn:hover {
  background: rgba(var(--gold-rgb), .09);
}

/* Olive oval countdown card, echoing the stationery suite. */
.countdown-panel {
  max-width: 610px;
  margin-top: 34px;
  padding: 34px 38px 30px;
  color: #f4e4c6;
  background: var(--olive);
  border: 2px solid var(--burgundy);
  border-radius: 50% / 18%;
  outline: 1px solid rgba(var(--gold-rgb), .72);
  outline-offset: -10px;
  box-shadow: 0 22px 46px rgba(58,54,37,.15);
}
.countdown-panel > p { color: rgba(248,236,208,.74); }
.countdown-grid { margin-top: 15px; }
.countdown-grid div { border-right-color: rgba(var(--gold-rgb), .34); }
.countdown-grid strong { color: #f5dfb7; }
.countdown-grid span { color: rgba(248,236,208,.68); }

.content-section { position: relative; }
.content-section h2 {
  color: var(--burgundy);
  font-size: clamp(45px, 6vw, 70px);
}
.section-kicker {
  color: var(--olive-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  letter-spacing: .22em;
}

/* Details: olive card with a fine gold frame. */
#details.split-section {
  max-width: 1020px;
  margin-top: 100px;
  margin-bottom: 45px;
  padding: clamp(55px, 7vw, 84px);
  color: #f7ead0;
  background: var(--olive);
  border: 2px solid var(--burgundy);
  border-radius: 34px;
  outline: 1px solid rgba(var(--gold-rgb), .66);
  outline-offset: -14px;
  box-shadow: 0 26px 58px rgba(66,59,43,.15);
}
#details h2 { color: #f2d9ae; }
#details .section-kicker { color: var(--gold); }
#details .body-copy { color: rgba(250,240,217,.78); }
#details .small-note { border-top-color: rgba(var(--gold-rgb), .34); }


/* Details stationery emblem + botanical flower. Both inherit the active theme palette. */
#details .details-heading-copy,
#details .body-copy {
  position: relative;
  z-index: 3;
}
.details-monogram {
  position: absolute;
  z-index: 4;
  top: -47px;
  left: clamp(34px, 6vw, 70px);
  width: 98px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #f4dfba;
  background: var(--burgundy);
  border: 2px solid var(--burgundy-dark);
  border-radius: 50%;
  outline: 1px solid rgba(var(--gold-rgb), .82);
  outline-offset: -8px;
  box-shadow: 0 15px 28px rgba(40, 32, 25, .22);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}
.details-monogram em {
  color: var(--gold);
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: .58em;
  font-weight: 400;
  transform: translateY(2px);
}
.details-flower {
  position: absolute;
  z-index: 2;
  right: -42px;
  bottom: -58px;
  width: clamp(180px, 25vw, 270px);
  height: auto;
  color: rgba(var(--gold-rgb), .76);
  filter: drop-shadow(0 12px 15px rgba(40, 32, 25, .08));
  transform: rotate(-12deg);
  pointer-events: none;
}
.details-flower-bloom {
  stroke: currentColor;
}
#details::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 24px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--burgundy-rgb), .15), transparent 68%);
  pointer-events: none;
}

/* Scroll reveal animations across every public section. */
.section-reveal {
  --reveal-y: 38px;
}
.section-reveal > * {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0) scale(.985);
  transition:
    opacity .78s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.16,.82,.2,1);
  will-change: opacity, transform;
}
.section-reveal.is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.section-reveal.is-visible > *:nth-child(2) { transition-delay: .08s; }
.section-reveal.is-visible > *:nth-child(3) { transition-delay: .16s; }
.section-reveal.is-visible > *:nth-child(4) { transition-delay: .24s; }

/* Generated cards animate individually once their section becomes visible. */
.section-reveal .schedule-card,
.section-reveal .entourage-group,
.section-reveal .attire-guide-card,
.section-reveal .motif-swatch,
.section-reveal .confirmation-card {
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition:
    opacity .62s ease,
    transform .72s cubic-bezier(.16,.82,.2,1),
    box-shadow .3s ease;
}
.section-reveal.is-visible .schedule-card,
.section-reveal.is-visible .entourage-group,
.section-reveal.is-visible .attire-guide-card,
.section-reveal.is-visible .motif-swatch,
.section-reveal.is-visible .confirmation-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.section-reveal.is-visible .schedule-card:nth-child(1),
.section-reveal.is-visible .entourage-group:nth-child(1),
.section-reveal.is-visible .motif-swatch:nth-child(1) { transition-delay: .12s; }
.section-reveal.is-visible .schedule-card:nth-child(2),
.section-reveal.is-visible .entourage-group:nth-child(2),
.section-reveal.is-visible .motif-swatch:nth-child(2) { transition-delay: .20s; }
.section-reveal.is-visible .schedule-card:nth-child(3),
.section-reveal.is-visible .entourage-group:nth-child(3),
.section-reveal.is-visible .motif-swatch:nth-child(3) { transition-delay: .28s; }
.section-reveal.is-visible .schedule-card:nth-child(4),
.section-reveal.is-visible .entourage-group:nth-child(4) { transition-delay: .36s; }
.section-reveal.is-visible .entourage-group:nth-child(5) { transition-delay: .44s; }
.section-reveal.is-visible .entourage-group:nth-child(6) { transition-delay: .52s; }

/* Details logo and flower have their own elegant entrance. */
.section-reveal #detailsInitialOne,
.section-reveal #detailsInitialTwo { transition: none; }
#details.section-reveal .details-monogram {
  opacity: 0;
  transform: translateY(-18px) rotate(-10deg) scale(.72);
}
#details.section-reveal.is-visible .details-monogram {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
  transition: opacity .55s ease .18s, transform .82s cubic-bezier(.2,.9,.22,1.2) .18s;
}
#details.section-reveal .details-flower {
  opacity: 0;
  transform: translate(26px, 28px) rotate(3deg) scale(.82);
}
#details.section-reveal.is-visible .details-flower {
  opacity: .94;
  transform: translate(0, 0) rotate(-12deg) scale(1);
  transition: opacity .8s ease .32s, transform 1.05s cubic-bezier(.16,.82,.2,1) .32s;
}

@media (prefers-reduced-motion: reduce) {
  .section-reveal > *,
  .section-reveal .schedule-card,
  .section-reveal .entourage-group,
  .section-reveal .attire-guide-card,
  .section-reveal .motif-swatch,
  .section-reveal .confirmation-card,
  #details.section-reveal .details-monogram,
  #details.section-reveal .details-flower {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  #details.section-reveal .details-flower { transform: rotate(-12deg) !important; }
}

/* Schedule cards alternate like individual burgundy/olive stationery pieces. */
.muted-section {
  background: transparent;
}
#schedule { padding-top: 85px; }
.schedule-grid { gap: 18px; }
.schedule-card {
  min-height: 225px;
  padding: 40px 28px 34px;
  text-align: center;
  border: 2px solid var(--burgundy-dark);
  border-radius: 46px 46px 18px 18px / 34px 34px 18px 18px;
  outline: 1px solid rgba(var(--gold-rgb), .66);
  outline-offset: -10px;
  color: #f4dfba;
  background: var(--burgundy);
  box-shadow: 0 17px 34px rgba(87,44,48,.12);
}
.schedule-card:nth-child(even) {
  border-color: var(--olive-dark);
  background: var(--olive);
}
.schedule-card time { color: var(--gold); }
.schedule-card h3 { color: #f4dfba; }
.schedule-card p { color: rgba(250,238,213,.70); }

/* Vertical entourage groups become a coordinated stationery stack. */
.entourage-grid {
  width: min(100%, 760px);
  gap: 22px;
}
.entourage-group {
  padding: 38px 44px 40px;
  border: 2px solid var(--burgundy-dark);
  border-radius: 52px 52px 18px 18px / 34px 34px 18px 18px;
  outline: 1px solid rgba(var(--gold-rgb), .62);
  outline-offset: -11px;
  color: #f5e5c6;
  background: var(--burgundy);
  box-shadow: 0 18px 38px rgba(75,52,45,.11);
}
.entourage-group.olive-group {
  border-color: var(--olive-dark);
  background: var(--olive);
}
.entourage-group::before { display: none; }
.entourage-group::after {
  width: 86px;
  height: 86px;
  right: 12px;
  bottom: 10px;
  border-color: rgba(var(--gold-rgb), .20);
}
.entourage-flourish,
.entourage-group.olive-group .entourage-flourish,
.entourage-group-heading p,
.entourage-group.burgundy-group .entourage-group-heading p {
  color: var(--gold);
}
.entourage-members { border-top-color: rgba(var(--gold-rgb), .28); }
.entourage-member { border-bottom-color: rgba(var(--gold-rgb), .20); }
.entourage-member span { color: #f5e5c6; font-size: 27px; }
.section-intro { color: var(--muted); }

/* Attire resembles the olive envelope + burgundy insert. */
.dress-card {
  border: 2px solid var(--burgundy-dark);
  border-radius: 28px;
  outline: 1px solid rgba(var(--gold-rgb), .62);
  outline-offset: -12px;
  box-shadow: 0 26px 58px rgba(65,54,42,.16);
}
.dress-copy { background: var(--olive); }
.dress-art { background: var(--burgundy); }
.dress-copy .section-kicker,
.dress-monogram em { color: var(--gold); }
.attire-guide-card,
.motif-swatch,
.dress-visual-card {
  border-color: rgba(var(--gold-rgb), .34);
  background: rgba(255,247,226,.045);
}
.attire-pill {
  border-color: rgba(var(--gold-rgb), .42);
  color: #f5dfba;
}

/* Venue becomes an olive landscape stationery card. */
.venue-card {
  overflow: hidden;
  border: 2px solid var(--olive-dark);
  border-radius: 26px;
  outline: 1px solid rgba(var(--gold-rgb), .62);
  outline-offset: -12px;
  background: var(--olive);
  box-shadow: 0 27px 58px rgba(61,56,41,.15);
}
.venue-card > div:first-child {
  color: #f5e3bf;
  background: var(--olive);
}
.venue-card .section-kicker { color: var(--gold); }
.venue-card h2 { color: #f3ddba; }
.venue-card p { color: rgba(248,237,212,.74); }
.venue-image-card {
  border: 0;
  border-left: 1px solid rgba(var(--gold-rgb), .38);
  background: #e8e1d1;
  box-shadow: none;
}
.venue-image { filter: sepia(.16) contrast(.92) saturate(.76); }
.venue-image-caption {
  border-top-color: rgba(var(--gold-rgb), .32);
  background: var(--burgundy);
}
.venue-image-kicker { color: var(--gold); }
.venue-image-caption strong { color: #f3ddba; }

/* RSVP: ornate burgundy card + olive side note. */
.rsvp-section { max-width: 1080px; }
.rsvp-section > .section-heading h2 { color: var(--burgundy); }
.form-card {
  color: #f6e7ca;
  background: var(--burgundy);
  border: 2px solid var(--burgundy-dark);
  border-radius: 44px 44px 18px 18px / 30px 30px 18px 18px;
  outline: 1px solid rgba(var(--gold-rgb), .62);
  outline-offset: -11px;
  box-shadow: 0 24px 52px rgba(87,45,49,.16);
}
.form-card label,
.form-card legend { color: #f2dfbe; }
.form-card .form-help { color: rgba(249,237,214,.68); }
.form-card input,
.form-card select,
.form-card textarea {
  color: var(--ink);
  background: #f2ecdf;
  border-color: rgba(var(--gold-rgb), .48);
  border-radius: 3px;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .18);
}
.form-card .choice-card span {
  color: #f4dfbb;
  border-color: rgba(var(--gold-rgb), .42);
  border-radius: 3px;
  background: rgba(255,255,255,.025);
}
.form-card .choice-card input:checked + span {
  color: #382e27;
  border-color: var(--gold);
  background: #e6d6b7;
}
.form-card .guest-found-banner {
  background: rgba(var(--gold-rgb), .10);
  border: 1px solid rgba(var(--gold-rgb), .30);
  border-radius: 3px;
}
.form-card .guest-found-banner span { color: rgba(249,237,214,.62); }
.rsvp-note {
  color: #f5e5c7;
  background: var(--olive);
  border: 2px solid var(--olive-dark);
  border-radius: 50% / 10%;
  outline: 1px solid rgba(var(--gold-rgb), .62);
  outline-offset: -10px;
  box-shadow: 0 22px 46px rgba(61,58,41,.13);
}
.rsvp-note h3 { color: #f3ddba; }
.rsvp-note p { color: rgba(249,238,215,.72); }
.botanical-icon { color: var(--gold); }
.mini-stats { border-top-color: rgba(var(--gold-rgb), .28); }
.mini-stats strong { color: #f4dfba; }
.mini-stats span { color: rgba(249,238,215,.62); }

footer {
  border-top-color: rgba(var(--gold-rgb), .28);
  color: var(--muted);
}

/* Opening envelope recoloured and softened to match the suite. */
.invitation-intro {
  background:
    radial-gradient(circle at center, rgba(var(--gold-rgb), .11), transparent 38%),
    repeating-linear-gradient(0deg, rgba(67,57,46,.02) 0 1px, transparent 1px 4px),
    var(--cream);
}
.intro-kicker { color: var(--burgundy); }
.envelope-back,
.envelope-pocket { filter: saturate(.78) brightness(.93); }
.envelope-flap { filter: saturate(.88) brightness(.92); }
.intro-card-preview {
  background: #f3ecdf;
  border-color: rgba(var(--gold-rgb), .54);
}
.open-invitation-btn {
  border-radius: 4px;
  background: var(--burgundy) !important;
  border-color: rgba(var(--gold-rgb), .58);
  color: #f6e6c7;
}
.open-invitation-btn:hover { background: var(--burgundy-dark) !important; }

/* Vinyl player: olive sleeve, burgundy label, gold trim. */
.music-player {
  color: #f5e3bf;
  background: rgba(var(--olive-rgb), .96);
  border-color: rgba(var(--gold-rgb), .56);
  box-shadow: 0 16px 38px rgba(49,46,31,.24);
}
.music-player-copy span { color: rgba(247,234,204,.64); }
.music-player-copy strong { color: #f6e3bd; }
.vinyl-label { background: var(--burgundy); }

/* Admin remains practical but adopts the same palette. */
.admin-sidebar { background: var(--olive-dark); }
.admin-sidebar nav button.active,
.admin-sidebar nav button:hover { background: rgba(var(--gold-rgb), .13); }
.admin-login { background: var(--cream); }
.admin-login-card,
.stat-grid article,
.admin-card,
.settings-section,
.table-wrap,
.confirmation-card,
.mini-modal-card {
  border-color: rgba(var(--gold-rgb), .26);
}
.admin-title-row h2,
.admin-login-card h2 { color: var(--burgundy); }
.progress-fill { background: var(--burgundy); }

@media (max-width: 900px) {
  .paper-card.invitation-card { border-radius: 128px 128px 20px 20px / 72px 72px 20px 20px; }
  .paper-card.invitation-card::before { border-radius: 116px 116px 13px 13px / 64px 64px 13px 13px; }
  .schedule-grid { gap: 14px; }
  .venue-image-card { border-left: 0; border-top: 1px solid rgba(var(--gold-rgb), .38); }
}

@media (max-width: 620px) {
  .hero-section { padding-inline: 14px; }
  .paper-card.invitation-card {
    min-height: 690px;
    border-radius: 88px 88px 16px 16px / 52px 52px 16px 16px;
  }
  .paper-card.invitation-card::before {
    inset: 10px;
    border-radius: 78px 78px 11px 11px / 45px 45px 11px 11px;
  }
  .paper-card.invitation-card::after { width: 54px; height: 54px; top: 19px; }
  .invitation-copy { min-height: 690px; padding: 96px 28px 72px; }
  .invitation-copy h1 { font-size: clamp(61px, 20vw, 78px); }
  .countdown-panel {
    width: calc(100% - 18px);
    padding: 30px 14px 27px;
    border-radius: 34px;
  }
  #details.split-section {
    margin-top: 82px;
    padding: 72px 30px 58px;
    border-radius: 24px;
  }
  .details-monogram {
    top: -43px;
    left: 50%;
    width: 86px;
    height: 86px;
    font-size: 31px;
    transform-origin: center;
    margin-left: -43px;
  }
  .details-flower {
    right: -54px;
    bottom: -45px;
    width: 180px;
    opacity: .72;
  }
  #details::after {
    right: -10px;
    bottom: 2px;
    width: 125px;
    height: 125px;
  }
  .schedule-card { min-height: 0; border-radius: 34px 34px 14px 14px / 26px 26px 14px 14px; }
  .entourage-group {
    padding: 34px 25px 35px;
    border-radius: 38px 38px 14px 14px / 28px 28px 14px 14px;
  }
  .entourage-member span { font-size: 24px; }
  .dress-card,
  .venue-card { border-radius: 18px; }
  .form-card { border-radius: 32px 32px 14px 14px / 24px 24px 14px 14px; }
  .rsvp-note { border-radius: 28px; }
}


/* ==========================================================
   Vintage opening stationery redesign
   Matches the burgundy / olive / antique-gold invitation suite.
   ========================================================== */
.invitation-intro {
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.66), transparent 30%),
    repeating-linear-gradient(0deg, rgba(57,48,38,.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(57,48,38,.018) 0 1px, transparent 1px 7px),
    #ebe6da;
}
.invitation-intro::before {
  inset: 18px;
  border: 1px solid rgba(var(--gold-rgb), .52);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.16);
}
.intro-glow {
  background: radial-gradient(circle, rgba(255,248,226,.56), rgba(255,248,226,0) 70%);
  filter: blur(14px);
}
.intro-kicker {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
}

.intro-envelope {
  --env-w: min(550px, 92vw);
  aspect-ratio: 1.54 / 1;
  filter: drop-shadow(0 30px 34px rgba(61,54,38,.22));
}
.envelope-back,
.envelope-pocket,
.envelope-flap {
  border-radius: 5px;
}
.envelope-back {
  filter: none;
  border: 1px solid rgba(49,54,27,.65);
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #5a5b35 0%, #444626 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -20px 32px rgba(28,31,15,.18);
}
.envelope-back::before {
  inset: 10px;
  border: 1px solid rgba(var(--gold-rgb), .34);
  border-radius: 2px;
}
.envelope-back::after {
  left: 5%;
  right: 5%;
  top: 5%;
  height: 64%;
  clip-path: polygon(0 0, 100% 0, 50% 94%);
  background:
    radial-gradient(circle at 23% 31%, rgba(115,51,58,.28) 0 4%, transparent 4.8%),
    radial-gradient(circle at 70% 22%, rgba(79,81,48,.40) 0 6%, transparent 6.8%),
    radial-gradient(circle at 45% 52%, rgba(115,51,58,.20) 0 5%, transparent 5.8%),
    repeating-linear-gradient(125deg, rgba(95,83,53,.11) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #d8c49b 0%, #bca36e 56%, #967e4e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(99,75,37,.28),
    inset 0 -18px 28px rgba(82,61,33,.13);
}

.envelope-pocket {
  filter: none;
  border: 1px solid rgba(49,54,27,.56);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045) 0 49.5%, transparent 50%),
    linear-gradient(215deg, rgba(255,255,255,.035) 0 49.5%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #565831 0%, #414425 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -15px 24px rgba(27,30,14,.18);
}
.envelope-pocket::before,
.envelope-pocket::after {
  border-top-color: rgba(var(--gold-rgb), .22);
}

.envelope-flap {
  filter: none;
  height: 70%;
  border: 1px solid rgba(49,54,27,.66);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #62643a 0%, #4e502e 58%, #3d4022 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -11px 20px rgba(27,30,14,.17);
}
.envelope-flap::before {
  inset: 12px 14px auto;
  border-color: rgba(var(--gold-rgb), .38);
}
.envelope-flap::after {
  width: 112px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .72), transparent);
}

.wax-seal {
  width: 68px;
  height: 68px;
  top: 53%;
  color: #ead6ad;
  background:
    radial-gradient(circle at 34% 29%, #91444b 0%, #73333a 58%, #56232b 100%) !important;
  border: 3px double rgba(var(--gold-rgb), .52);
  box-shadow:
    0 12px 21px rgba(73,27,33,.34),
    inset 0 0 0 4px rgba(73,26,32,.24),
    inset 0 1px 2px rgba(255,255,255,.12) !important;
  font-size: 27px;
}
.wax-seal span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--gold-rgb), .50);
  border-radius: 50%;
  line-height: 1;
}

/* Burgundy arched invitation card revealed from the olive envelope. */
.intro-card-preview {
  left: 11.5%;
  right: 11.5%;
  bottom: 6.5%;
  height: 80%;
  padding: 34px 28px 23px;
  color: #f4e1bd;
  background:
    radial-gradient(circle at 50% 5%, rgba(255,255,255,.055), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #7b3941 0%, #6b2f36 100%);
  border: 2px solid #56232b;
  border-radius: 46% 46% 7px 7px / 22% 22% 7px 7px;
  outline: 1px solid rgba(var(--gold-rgb), .78);
  outline-offset: -10px;
  box-shadow: 0 12px 25px rgba(63,31,34,.18);
}
.intro-card-preview::before {
  inset: 13px;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 43% 43% 2px 2px / 20% 20% 2px 2px;
}
.intro-card-preview::after {
  left: 28%;
  right: 28%;
  top: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .72), transparent);
  opacity: 1;
}
.preview-flourish { display: none; }
.preview-monogram {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  margin: 0 0 12px;
  border: 1px solid rgba(var(--gold-rgb), .82);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #e4c98d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .08);
}
.preview-monogram em {
  color: #d9bc80;
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: .8em;
  font-weight: 400;
}
.preview-botanical {
  position: absolute;
  z-index: 1;
  color: rgba(var(--gold-rgb), .18);
  font: 62px Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.preview-botanical-left {
  left: 18px;
  bottom: 14px;
  transform: rotate(24deg);
}
.preview-botanical-right {
  right: 18px;
  top: 28px;
  transform: rotate(202deg);
}
.intro-card-preview p {
  margin-bottom: 7px;
  color: #dec492;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
}
.intro-card-preview h1 {
  max-width: 360px;
  color: #f1d8a8;
  font-size: clamp(36px, 6vw, 51px);
  line-height: .84;
  text-shadow: 0 1px 0 rgba(59,27,30,.25);
}
.intro-card-preview h1 em {
  margin: 6px 0 4px;
  color: var(--gold);
}
.preview-rule {
  width: 132px;
  margin: 12px 0 8px;
  color: #dfc181;
}
.preview-rule::before,
.preview-rule::after {
  background: rgba(var(--gold-rgb), .52);
}
.intro-card-preview strong {
  color: #f1d8a8;
  font-size: 15px;
  letter-spacing: .08em;
}
.intro-card-preview small {
  color: rgba(242,221,181,.68);
  font-size: 7px;
  letter-spacing: .22em;
}

.open-invitation-btn {
  min-width: 218px;
  border-radius: 3px;
  border: 1px solid rgba(var(--gold-rgb), .72);
  color: #f3ddb7;
  background: var(--burgundy) !important;
  box-shadow: 0 13px 26px rgba(84,44,47,.20), inset 0 0 0 1px rgba(255,255,255,.025);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  letter-spacing: .08em;
}
.open-invitation-btn:hover {
  background: var(--burgundy-dark) !important;
}
.intro-hint { color: #736b5d; }

/* White attire guide requested: retain vintage accents, remove dark panels. */
.dress-section {
  background: #fff;
}
.dress-card {
  background: #fff;
  border-color: rgba(var(--gold-rgb), .56);
  outline-color: rgba(var(--gold-rgb), .46);
  box-shadow: 0 24px 54px rgba(62,52,42,.11);
}
.dress-copy,
.dress-art {
  background: #fff;
  color: var(--ink);
}
.dress-copy h2 { color: var(--burgundy); }
.dress-copy .section-kicker { color: var(--burgundy); }
.dress-copy p,
.dress-note { color: var(--muted); }
.attire-guide-card,
.motif-swatch,
.dress-visual-card {
  border-color: rgba(var(--gold-rgb), .30);
  background: #fffdf8;
}
.attire-guide-card h3,
.motif-swatch strong,
.dress-visual-card strong { color: var(--ink); }
.attire-guide-card p,
.motif-swatch small,
.dress-visual-note { color: var(--muted); }
.attire-pill {
  border-color: rgba(var(--burgundy-rgb), .28);
  color: var(--burgundy);
  background: rgba(var(--burgundy-rgb), .045);
}
.dress-monogram { color: var(--olive); }
.dress-monogram em { color: var(--burgundy); }
.dress-arch { border-color: rgba(var(--gold-rgb), .20); }
.dress-leaf { color: rgba(var(--olive-rgb), .18); }

@media (max-width: 620px) {
  .intro-envelope { --env-w: min(382px, 94vw); }
  .intro-card-preview {
    left: 10.5%;
    right: 10.5%;
    height: 78%;
    padding: 27px 18px 17px;
    border-radius: 43% 43% 6px 6px / 20% 20% 6px 6px;
  }
  .intro-card-preview::before {
    inset: 9px;
    border-radius: 40% 40% 2px 2px / 18% 18% 2px 2px;
  }
  .intro-card-preview::after { top: 70px; }
  .preview-monogram { width: 45px; height: 45px; margin-bottom: 9px; font-size: 15px; }
  .intro-card-preview h1 { font-size: clamp(28px, 8vw, 38px); }
  .intro-card-preview strong { font-size: 12px; }
  .preview-botanical { font-size: 48px; }
  .wax-seal { width: 58px; height: 58px; font-size: 22px; }
  .wax-seal span { width: 35px; height: 35px; }
}
