:root {
  --burgundy: #4b0f1e;
  --burgundy-deep: #25060e;
  --burgundy-mid: #74182d;
  --wine: #941f39;
  --cream: #fff9ee;
  --ivory: #f8eddc;
  --paper: #fffdf8;
  --gold: #c89a49;
  --gold-soft: #ead3a3;
  --ink: #35151c;
  --muted: #7a5d60;
  --shadow: 0 24px 70px rgba(49, 5, 17, .2);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body, button, input, textarea, select { font-family: "Times New Roman", Times, serif; }
body { margin: 0; color: var(--ink); background: var(--cream); line-height: 1.55; overflow-x: hidden; }
body.is-covered, body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #f0c874; outline-offset: 4px; }

/* Full-screen closed invitation */
.invite-cover { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 50% 45%, #7b1730 0, var(--burgundy) 42%, var(--burgundy-deep) 100%); color: var(--cream); transition: opacity .55s ease, visibility .55s ease; }
.invite-cover::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(235, 202, 127, .55); border-radius: 2px; pointer-events: none; }
.envelope-stage { width: min(1120px, 100%); min-height: 100svh; display: grid; place-items: center; padding: clamp(28px, 5vw, 72px); perspective: 1200px; }
.envelope { position: relative; isolation: isolate; width: 100%; min-height: min(720px, 88svh); display: grid; place-items: center; }
.invitation-card { position: relative; z-index: 3; width: min(580px, 62vw); min-height: 550px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 58px 45px; text-align: center; color: var(--burgundy); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,237,220,.98)); border: 2px solid var(--gold); box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 0 0 9px rgba(103,18,38,.06); clip-path: polygon(0 4%, 50% 0, 100% 4%, 100% 96%, 50% 100%, 0 96%); transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .55s ease; }
.invitation-card::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(107, 25, 44, .25); clip-path: inherit; pointer-events: none; }
.cover-floral { position: absolute; z-index: 2; width: min(39vw, 430px); height: min(84svh, 760px); object-fit: contain; filter: drop-shadow(0 20px 28px rgba(0,0,0,.34)); pointer-events: none; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .65s ease; }
.cover-floral--left { left: max(-84px, -7vw); transform: rotate(-6deg); }
.cover-floral--right { right: max(-84px, -7vw); transform: scaleX(-1) rotate(-6deg); }
.cover-kicker, .eyebrow { margin: 0 0 12px; color: var(--burgundy-mid); font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.cover-copy { margin: 0 0 24px; font-size: clamp(1rem, 2vw, 1.22rem); }
.cover-monogram { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 22px; border: 1px solid var(--gold); border-radius: 50%; font-size: 1.45rem; color: var(--gold); }
.cover-names { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 500; line-height: .96; }
.cover-names span { display: block; }
.cover-names i, .hero-names i { display: block; padding: .22em 0; color: var(--gold); font-size: .7em; font-weight: 400; }
.cover-date { margin: 22px 0; color: var(--burgundy-mid); font-size: 1.15rem; letter-spacing: .2em; }
.button { min-height: 48px; border: 0; border-radius: 999px; padding: 12px 24px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--cover { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; color: #fff; background: var(--burgundy); box-shadow: 0 12px 28px rgba(75,15,30,.3); }
.invite-cover.is-unsealing .cover-floral--left { transform: translateX(-34vw) rotate(-13deg); }
.invite-cover.is-unsealing .cover-floral--right { transform: translateX(34vw) scaleX(-1) rotate(-13deg); }
.invite-cover.is-opening .invitation-card { transform: translateY(-28px) scale(1.04); opacity: 0; }
.invite-cover.is-opening { opacity: 0; visibility: hidden; }

/* Photo-first hero */
.page-shell { background: var(--cream); }
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--burgundy-deep); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 48%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,3,9,.15), rgba(40,4,13,.25) 42%, rgba(31,3,10,.82) 100%), linear-gradient(90deg, rgba(37,3,12,.42), transparent 45%, rgba(37,3,12,.18)); }
.hero__content { position: relative; z-index: 2; align-self: end; width: min(900px, 92vw); margin-bottom: clamp(90px, 12vh, 150px); padding: clamp(24px, 4vw, 50px); text-align: center; text-shadow: 0 3px 25px rgba(0,0,0,.75); }
.hero .eyebrow { color: #f5d88f; }
.invitation-line { margin: 0 0 10px; font-size: clamp(1rem, 2vw, 1.35rem); }
.hero-names { margin: 0; font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 500; line-height: .86; }
.hero-names span { display: block; }
.date-mark { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; font-size: clamp(.95rem, 2vw, 1.2rem); letter-spacing: .12em; }
.date-mark b { border-inline: 1px solid rgba(255,255,255,.55); padding: 6px 18px; font-size: 1.25em; }
.scroll-cue { position: absolute; z-index: 3; bottom: 28px; color: #fff; text-decoration: none; font-size: .9rem; letter-spacing: .15em; text-transform: uppercase; }

/* Shared sections */
.section { position: relative; padding: clamp(76px, 10vw, 136px) max(22px, calc((100vw - 1180px) / 2)); }
.section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
h1, h2, h3, p { overflow-wrap: break-word; }
h2 { margin: 0; color: var(--burgundy); font-size: clamp(2.15rem, 5vw, 4.1rem); font-weight: 500; line-height: 1.08; }
h3 { color: var(--burgundy); }
.lead { max-width: 680px; margin: 18px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Album: complete images, no face clipping */
.album { background: #f4e5d0; }
.carousel { width: min(1000px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid rgba(123,63,66,.18); border-radius: 28px; background: var(--burgundy-deep); box-shadow: var(--shadow); }
.carousel__track { display: flex; transition: transform .65s cubic-bezier(.22,.75,.2,1); }
.carousel__slide { position: relative; flex: 0 0 100%; margin: 0; min-width: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, #642035, #21050d 72%); }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.carousel__slide figcaption { position: absolute; left: 20px; bottom: 18px; padding: 6px 13px; color: #fff; background: rgba(45,4,15,.72); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; color: #fff; background: var(--burgundy); }
.icon-button { min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: transparent; font: inherit; font-size: 1.2rem; cursor: pointer; }
.icon-button--wide { min-width: 110px; border-radius: 999px; font-size: .92rem; }
.carousel__status { min-width: 88px; margin: 0; text-align: center; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 0 18px 18px; background: var(--burgundy); }
.carousel__dot { width: 12px; height: 12px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.carousel__dot[aria-current="true"] { background: #fff; transform: scale(1.25); }

/* Details and map */
.celebration { background: var(--paper); }
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.schedule-card { position: relative; min-height: 300px; padding: 40px; overflow: hidden; border: 1px solid var(--gold-soft); border-radius: 26px; background: linear-gradient(145deg, #fffdf8, #f8ead8); box-shadow: 0 15px 45px rgba(70,16,29,.09); }
.schedule-card h3 { position: relative; margin: 16px 0; font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 500; }
.schedule-card p { position: relative; }
.location-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin-top: 28px; padding: clamp(30px, 5vw, 55px); border-radius: 26px; color: #fff; background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep)); box-shadow: var(--shadow); }
.location-card h3 { margin: 0 0 14px; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.location-card .eyebrow { color: #e7c77d; }
.button--outline { border: 1px solid currentColor; color: var(--burgundy); background: transparent; }
.location-card .button--outline { color: #fff; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }

/* Timeline */
.timeline { color: #fff; background: linear-gradient(165deg, #380914, var(--burgundy) 55%, #26050d); }
.timeline h2, .timeline .eyebrow { color: #f4d58e; }
.timeline__list { position: relative; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.timeline__list::before { content: ""; position: absolute; left: 135px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(#e7c77d, rgba(231,199,125,.2)); }
.timeline__list li { display: grid; grid-template-columns: 110px 50px 1fr; align-items: center; min-height: 84px; }
.timeline__list time { color: #f5d999; font-size: 1.35rem; text-align: right; }
.timeline__marker { position: relative; width: 14px; height: 14px; margin: auto; border: 3px solid var(--burgundy); border-radius: 50%; background: #f5d999; box-shadow: 0 0 0 1px #f5d999; }
.timeline__list strong { font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 500; }

.countdown { color: #fff; background: #f2dfc4; }
.countdown__inner { padding: clamp(40px, 7vw, 70px); border-radius: 30px; text-align: center; background: var(--burgundy); box-shadow: var(--shadow); }
.countdown h2 { color: #fff; }
.countdown .eyebrow { color: #f2d18a; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 760px; margin: 38px auto 0; }
.timer div { padding: 20px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; }
.timer strong { display: block; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 500; }
.timer span { color: #ead8ce; }
.families { display: flex; align-items: center; justify-content: center; gap: 40px; text-align: center; background: var(--paper); }

/* Gift */
.gift { padding-bottom: 40px; background: linear-gradient(#fffaf1, #f2dfc4); }
.gift__box { display: flex; flex-direction: column; align-items: center; max-width: 840px; margin: 0 auto; text-align: center; }
.gift__box > p:not(.eyebrow) { max-width: 650px; }
.gift-button { position: relative; width: min(410px, 88vw); margin-top: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gift-button img { width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 24px 25px rgba(62,9,22,.24)); transition: transform .45s ease; }
.gift-button:hover img { transform: translateY(-8px) scale(1.02); }
.gift-button.is-opening img { animation: gift-open .55s ease; }
.gift-button__label { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); min-width: 138px; padding: 9px 15px; border-radius: 999px; color: #fff; background: rgba(75,15,30,.92); font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
@keyframes gift-open { 35% { transform: rotate(-3deg) scale(1.04); } 70% { transform: rotate(3deg) scale(1.06); } }

/* RSVP artwork */
.rsvp { padding-top: 55px; background: var(--burgundy-deep); }
.rsvp__card { max-width: 980px; margin: 0 auto; padding: clamp(36px, 6vw, 72px); border: 1px solid rgba(237,205,142,.55); border-radius: 30px; text-align: center; color: #fff; background: radial-gradient(circle at top, #771b33, var(--burgundy) 58%, #3a0814); box-shadow: var(--shadow); }
.rsvp__card h2 { color: #fff; }
.rsvp__card .eyebrow { color: #f1cf83; }
.rsvp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center; max-width: 820px; margin: 34px auto 0; }
.rsvp-image-button, .no-playground { width: min(100%, 360px); height: 132px; margin-inline: auto; }
.rsvp-image-button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rsvp-image-button img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.3)); }
.rsvp-image-button:hover img { transform: scale(1.025); }
.no-playground { position: relative; }
.no-playground .rsvp-image-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rsvp-status { min-height: 1.6em; margin: 18px 0 0; color: #f5d999; }

/* Dialog */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(26,2,8,.82); backdrop-filter: blur(5px); }
.modal__panel { position: relative; z-index: 1; width: min(920px, 96vw); max-height: 92svh; overflow: auto; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--gold); border-radius: 26px; background: var(--paper); box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: 1px solid var(--burgundy); border-radius: 50%; color: var(--burgundy); background: transparent; font-size: 1.75rem; cursor: pointer; }
.modal__note { margin: 10px 50px 24px 0; padding: 12px 16px; border-left: 4px solid var(--gold); color: #60464a; background: #fbefde; }
.gift-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gift-card { min-width: 0; padding: 24px; border: 1px solid var(--gold-soft); border-radius: 20px; text-align: center; background: #fffaf2; }
.gift-card h3 { margin: 0 0 18px; font-size: 1.5rem; }
.gift-card__qr, .gift-card__placeholder { width: min(260px, 100%); height: 330px; margin: 0 auto 18px; border-radius: 14px; }
.gift-card__qr { object-fit: contain; border: 1px solid #eadbc8; background: #fff; }
.gift-card__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #b68d5e; color: var(--burgundy); background: repeating-linear-gradient(45deg, #fbf1e3, #fbf1e3 12px, #f5e5cf 12px, #f5e5cf 24px); }
.gift-card__placeholder span { font-size: 4rem; opacity: .22; }
.gift-card__placeholder b { font-size: 1.05rem; letter-spacing: .12em; }
.gift-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; text-align: left; }
.gift-card dt { color: var(--muted); }
.gift-card dd { min-width: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.gift-card__note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
footer { padding: 32px 20px; text-align: center; color: #ead4c9; background: var(--burgundy-deep); }
.noscript-note { position: fixed; inset-inline: 20px; bottom: 20px; z-index: 500; padding: 12px; background: white; }

/* RSVP form and protected admin remain intact */
.form-page, .admin-page { min-height: 100vh; background: radial-gradient(circle at top, #7a1c35, var(--burgundy-deep)); }
.form-shell, .admin-shell { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.back-link { display: inline-block; margin-bottom: 18px; color: #fff; }
.form-card, .admin-panel { position: relative; padding: clamp(28px, 6vw, 58px); border: 1px solid var(--gold-soft); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.form-card__seal { width: 62px; height: 62px; display: grid; place-items: center; margin: -2px auto 18px; border-radius: 50%; color: #fff; background: var(--burgundy); font-size: 1.8rem; }
.form-card h1, .admin-panel h1 { margin: 0 0 12px; color: var(--burgundy); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.form-lead { color: var(--muted); }
form { display: grid; gap: 12px; margin-top: 28px; }
label { margin-top: 8px; color: var(--burgundy); font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #c9ab94; border-radius: 12px; padding: 14px 16px; color: var(--ink); background: #fff; font-size: 1rem; }
textarea { resize: vertical; }
.form-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.button--primary { color: #fff; background: var(--burgundy); box-shadow: 0 10px 24px rgba(75,15,30,.2); }
.form-submit { margin-top: 14px; }
.form-status { margin-top: 16px; }
.form-status.is-error { color: #a1122f; }
.success-panel { text-align: center; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guest-list { display: grid; gap: 14px; }
.guest-card { padding: 20px; border: 1px solid #e0c9b2; border-radius: 16px; background: #fffaf2; }
.guest-card__heading { display: flex; justify-content: space-between; gap: 15px; }
.guest-card h2 { font-size: 1.35rem; }

.petal-field, .cover-petal-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal { position: absolute; left: var(--x); top: -28px; width: 11px; height: 16px; border-radius: 80% 20% 70% 30%; background: rgba(216,77,99,.75); animation: petal-fall var(--duration) linear var(--delay) infinite; }
.petal--bloom { background: #f1c4ae; }
@keyframes petal-fall { to { transform: translate(var(--drift), calc(100svh + 70px)) rotate(560deg); } }

@media (max-width: 760px) {
  .invite-cover::before { inset: 10px; }
  .envelope-stage { padding: 20px 12px; }
  .envelope { min-height: 94svh; }
  .invitation-card { width: min(82vw, 430px); min-height: min(620px, 78svh); padding: 38px 24px; }
  .cover-floral { width: min(58vw, 320px); height: 72svh; opacity: .72; }
  .cover-floral--left { left: -25vw; }
  .cover-floral--right { right: -25vw; }
  .cover-monogram { width: 76px; height: 76px; }
  .cover-names { font-size: clamp(2.05rem, 10vw, 3.15rem); }
  .cover-date { margin: 15px 0; }
  .hero__photo { object-position: 55% 45%; }
  .hero__veil { background: linear-gradient(180deg, rgba(28,3,9,.08), rgba(35,3,10,.12) 42%, rgba(31,3,10,.9) 100%); }
  .hero__content { margin-bottom: 82px; padding: 24px 14px; }
  .hero-names { font-size: clamp(3.25rem, 16vw, 5rem); }
  .date-mark { gap: 8px; font-size: .9rem; }
  .date-mark b { padding: 5px 9px; }
  .section { padding-inline: 18px; }
  .carousel { border-radius: 18px; }
  .carousel__slide { aspect-ratio: 4 / 5; }
  .carousel__controls { gap: 8px; padding: 14px 10px; }
  .icon-button { min-width: 44px; min-height: 44px; }
  .icon-button--wide { min-width: 92px; }
  .schedule-grid, .gift-cards { grid-template-columns: 1fr; }
  .schedule-card { min-height: 260px; padding: 32px 26px; }
  .location-card { grid-template-columns: 1fr; }
  .location-card .button-link { width: 100%; }
  .timeline__list::before { left: 84px; }
  .timeline__list li { grid-template-columns: 66px 36px 1fr; min-height: 76px; }
  .timeline__list time { font-size: 1.05rem; }
  .timer { grid-template-columns: repeat(2, 1fr); }
  .families { flex-direction: column; gap: 12px; }
  .gift__floral { margin-top: -38px; }
  .rsvp-actions { grid-template-columns: 1fr; gap: 15px; }
  .rsvp-image-button, .no-playground { width: min(100%, 220px); height: 80px; }
  .modal { padding: 10px; }
  .modal__panel { max-height: 96svh; padding: 30px 18px; border-radius: 18px; }
  .modal__note { margin-right: 38px; }
  .gift-card__qr, .gift-card__placeholder { height: 320px; }
  .admin-header, .guest-card__heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .cover-copy { margin-bottom: 14px; }
  .cover-kicker { margin-bottom: 7px; }
  .cover-monogram { margin-bottom: 14px; }
  .button--cover { min-height: 44px; padding: 10px 20px; }
  .carousel__status { min-width: 66px; }
  .rsvp__card { padding-inline: 12px; }
  .rsvp-image-button, .no-playground { width: min(100%, 210px); height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .petal { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Feedback round 2: split-name hero, formal events, card-stack album, map, final floral */
.hero__content { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; text-align: center; }
.hero__intro { position: absolute; z-index: 2; top: clamp(42px, 8vh, 86px); left: 50%; width: min(680px, 80vw); transform: translateX(-50%); }
.hero-names { position: absolute; z-index: 2; top: 50%; left: 3.5%; right: 3.5%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(18px, 5vw) minmax(0, 1fr); align-items: center; transform: translateY(-50%); font-size: clamp(3rem, 6.7vw, 6.4rem); line-height: .82; pointer-events: none; }
.hero-name { display: flex !important; flex-direction: column; gap: .06em; min-width: 0; }
.hero-name--bride { grid-column: 1; align-items: flex-start; text-align: left; }
.hero-name--groom { grid-column: 3; align-items: flex-end; text-align: right; }
.hero-name__line { display: block; }
.hero-names__amp { display: none !important; }
.hero .date-mark { position: absolute; z-index: 2; bottom: clamp(74px, 12vh, 124px); left: 50%; margin: 0; transform: translateX(-50%); white-space: nowrap; }
.hero__veil { background: linear-gradient(180deg, rgba(28,3,9,.48), rgba(40,4,13,.05) 27%, rgba(31,3,10,.08) 67%, rgba(31,3,10,.76) 100%), linear-gradient(90deg, rgba(30,2,10,.58), transparent 28%, transparent 72%, rgba(30,2,10,.58)); }

.carousel { width: min(1080px, 100%); overflow: hidden; border-color: rgba(123,63,66,.25); background: linear-gradient(160deg, #21050d, #5e1428); }
.carousel__stage { position: relative; height: min(790px, calc((100vw - 42px) * .78)); min-height: 520px; overflow: hidden; touch-action: pan-y; user-select: none; }
.carousel__track { position: absolute; inset: 0; display: block; }
.carousel__slide { position: absolute; left: 50%; top: 50%; width: min(620px, 68%); aspect-ratio: 4 / 5; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.3); border-radius: 22px; background: #2b0711; box-shadow: 0 24px 55px rgba(0,0,0,.42); transition: transform .62s cubic-bezier(.22,.75,.2,1), opacity .45s ease, filter .45s ease; }
.carousel__slide[data-position="active"] { z-index: 3; transform: translate(-50%, -50%) scale(1); opacity: 1; filter: none; }
.carousel__slide[data-position="prev"] { z-index: 2; transform: translate(-126%, -50%) scale(.84) rotate(-1.5deg); opacity: .62; filter: brightness(.7); }
.carousel__slide[data-position="next"] { z-index: 2; transform: translate(26%, -50%) scale(.84) rotate(1.5deg); opacity: .62; filter: brightness(.7); }
.carousel__slide[data-position="hidden"] { z-index: 1; transform: translate(-50%, -50%) scale(.76); opacity: 0; pointer-events: none; }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.carousel__controls { position: relative; z-index: 5; gap: 16px; padding: 20px; }
.carousel__arrow { border-color: #f1d48e; color: #f8dda0; background: rgba(255,255,255,.06); font-size: 1.55rem; }
.carousel__arrow:hover { background: rgba(255,255,255,.14); }
.carousel__dots { position: relative; z-index: 5; }

.schedule-grid { gap: 30px; }
.schedule-card { display: flex; min-height: 330px; flex-direction: column; align-items: center; justify-content: center; padding: 50px 42px; border: 2px solid var(--gold); border-radius: 4px; text-align: center; box-shadow: 0 20px 50px rgba(70,16,29,.15); }
.schedule-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid currentColor; opacity: .28; pointer-events: none; }
.schedule-card--ceremony { color: #fff5e5; background: linear-gradient(145deg, #68172b, #350812); }
.schedule-card--reception { color: var(--burgundy); background: linear-gradient(145deg, #fffaf0, #f2dec0); }
.schedule-card .eyebrow { color: var(--gold); }
.schedule-card h3 { margin: 18px 0; color: inherit; }
.schedule-card p { max-width: 460px; margin-inline: auto; }
.schedule-card__ornament { position: relative; display: block; margin-bottom: 16px; color: var(--gold); font-size: 1.5rem; }
.schedule-card__ornament::before, .schedule-card__ornament::after { content: ""; position: absolute; top: 50%; width: 55px; height: 1px; background: currentColor; }
.schedule-card__ornament::before { right: calc(100% + 12px); }
.schedule-card__ornament::after { left: calc(100% + 12px); }

.location-card { grid-template-columns: minmax(260px, .75fr) minmax(420px, 1.25fr); align-items: stretch; padding: clamp(24px, 4vw, 44px); }
.location-card__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.location-card__copy .button-link { margin-top: 20px; }
.location-card__map { min-height: 380px; overflow: hidden; border: 1px solid rgba(231,199,125,.65); border-radius: 18px; background: #2a0710; }
.location-card__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

.timeline__list::before { left: 145px; }
.timeline__list li { grid-template-columns: 110px 70px 1fr; min-height: 104px; }
.timeline__marker { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #f5d999; background: #4b0f1e; box-shadow: 0 0 0 6px #4b0f1e; }
.timeline__marker svg { width: 32px; height: 32px; fill: none; stroke: #f5d999; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rsvp-image-button, .no-playground { width: min(100%, 360px); height: 132px; }
.rsvp-image-button img { width: 100%; height: 100%; }
#yes-button-image { width: 66.6666667%; height: 66.6666667%; }

.gift { padding-block: clamp(100px, 12vw, 160px); background: linear-gradient(#fffaf1, #f2dfc4); }
.final-floral { display: grid; justify-items: center; gap: 52px; min-height: 720px; padding-top: clamp(150px, 18vw, 240px); padding-bottom: clamp(100px, 12vw, 170px); overflow: hidden; background: var(--paper); }
.final-floral__rule { width: min(520px, 72vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.final-floral__rule::after { content: "✦"; display: block; width: 34px; margin: -13px auto 0; color: var(--gold); background: var(--paper); text-align: center; }
.final-floral img { width: min(470px, 78vw); max-height: 610px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(70,16,29,.16)); }

@media (max-width: 760px) {
  .hero__photo { object-position: 55% 45%; }
  .hero__intro { top: 42px; width: 88vw; }
  .hero__intro .invitation-line { font-size: .95rem; }
  .hero-names { top: 49%; left: 14px; right: 14px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); font-size: clamp(2.2rem, 11.8vw, 3.3rem); line-height: .84; }
  .hero .date-mark { bottom: 76px; font-size: .82rem; }
  .carousel__stage { height: calc((100vw - 36px) * 1.08); min-height: 380px; }
  .carousel__slide { width: 76%; border-radius: 15px; }
  .carousel__slide[data-position="prev"] { transform: translate(-119%, -50%) scale(.82); }
  .carousel__slide[data-position="next"] { transform: translate(19%, -50%) scale(.82); }
  .carousel__slide figcaption { left: 12px; bottom: 12px; font-size: .8rem; }
  .carousel__controls { gap: 8px; padding: 14px 8px; }
  .carousel__status { min-width: 62px; }
  .schedule-grid { gap: 20px; }
  .schedule-card { min-height: 290px; padding: 42px 24px; }
  .location-card { grid-template-columns: 1fr; }
  .location-card__copy { align-items: stretch; }
  .location-card__map, .location-card__map iframe { min-height: 320px; }
  .timeline__list::before { left: 90px; }
  .timeline__list li { grid-template-columns: 58px 56px 1fr; min-height: 92px; }
  .timeline__marker { width: 42px; height: 42px; }
  .timeline__marker svg { width: 27px; height: 27px; }
  .rsvp-image-button, .no-playground { width: min(100%, 220px); height: 80px; }
  .final-floral { min-height: 620px; padding-top: 160px; }
}

@media (max-width: 390px) {
  .hero__intro { top: 32px; }
  .hero-names { font-size: 2.4rem; }
  .hero .date-mark { bottom: 70px; }
  .carousel__stage { min-height: 360px; }
  .carousel__controls { flex-wrap: wrap; }
  .icon-button--wide { order: 4; min-width: 132px; }
  .rsvp-image-button, .no-playground { width: min(100%, 210px); height: 76px; }
}

/* Keep both split name lines fully inside the hero side gutters. */
.hero__intro { padding: 10px 22px; border: 1px solid rgba(245,216,143,.42); border-radius: 999px; background: rgba(52,7,18,.48); backdrop-filter: blur(3px); }
.hero__intro .eyebrow { margin-bottom: 4px; }
.hero__intro .invitation-line { margin: 0; }
.hero-names { position: static; display: block; transform: none; font-size: inherit; }
.hero-name { position: absolute; z-index: 2; top: 48%; width: 31vw; transform: translateY(-50%); color: #fff; font-size: clamp(2.8rem, 5.3vw, 5.4rem); line-height: .82; text-shadow: 0 3px 25px rgba(0,0,0,.92); }
.hero-name--bride { left: 3.5%; }
.hero-name--groom { right: 3.5%; }

@media (max-width: 760px) {
  .hero__intro { width: auto; max-width: calc(100vw - 36px); padding: 8px 15px; }
  .hero-name { top: 49%; width: 40vw; font-size: clamp(2rem, 10.5vw, 2.8rem); }
  .hero-name--bride { left: 14px; }
  .hero-name--groom { right: 14px; }
}

/* The absolute hero layer must stretch despite the earlier grid alignment. */
.hero__content { align-self: stretch; height: 100%; }
.hero-names { position: absolute; inset: 0; height: 100%; }

/* Feedback round 3: centered hero names, simplified Save the Date, compact album and footer florals. */
.hero__intro {
  width: auto;
  max-width: calc(100vw - 48px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
}
.hero__intro .eyebrow {
  margin: 0;
  color: #f5d88f;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: none;
}
.hero-name {
  top: 48%;
  width: min(27vw, 390px);
  align-items: center !important;
  text-align: center !important;
}
.hero-name--bride { left: 11%; }
.hero-name--groom { right: 11%; }

.carousel { width: min(760px, 100%); }
.carousel__stage { height: min(570px, calc((100vw - 42px) * .58)); min-height: 410px; }
.carousel__slide { width: min(470px, 65%); border-radius: 18px; }

.location-card h3 { font-size: clamp(1.45rem, 2.55vw, 2.15rem); white-space: nowrap; }

#yes-button-image { width: 100%; height: 100%; }

footer { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-floral { width: auto; height: 1.55em; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.14)); }
.footer-floral--right { transform: scaleX(-1); }

@media (max-width: 760px) {
  .hero-name { top: 49%; width: 35vw; }
  .hero-name--bride { left: 8%; }
  .hero-name--groom { right: 8%; }
  .carousel { width: min(92vw, 620px); }
  .carousel__stage { height: calc((100vw - 44px) * .9); min-height: 330px; }
  .carousel__slide { width: 70%; }
  .location-card h3 { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
}

@media (max-width: 390px) {
  .hero-name { width: 37vw; }
  .hero-name--bride { left: 6%; }
  .hero-name--groom { right: 6%; }
  .location-card h3 { font-size: 1.18rem; }
}

/* Feedback round 4: more expressive hero typography and optically matched RSVP artwork. */
.hero__intro { top: clamp(24px, 5vh, 54px); }
.hero__intro .eyebrow {
  font-family: "Brush Script MT", "Brush Script Std", cursive;
  font-size: clamp(2.8rem, 4.4vw, 4rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: .85;
}
.hero-name {
  width: min(31vw, 450px);
  font-size: clamp(4.2rem, 7.95vw, 8.1rem);
}
/* The No asset has a shorter native canvas. Scale it by its measured ratio so its
   visible floral plaque matches the Yes plaque rather than merely sharing its box. */
#no-button-image { width: 109.5%; height: 109.5%; max-width: none; max-height: none; }
.no-playground, .rsvp-image-button { overflow: visible; }

@media (max-width: 760px) {
  .hero__intro { top: 24px; }
  .hero__intro .eyebrow { font-size: clamp(2.7rem, 11vw, 3.6rem); }
  .hero-name { width: 42vw; font-size: clamp(3rem, 12vw, 4.2rem); }
  .hero-name--bride { left: 4%; }
  .hero-name--groom { right: 4%; }
}

/* Feedback round 5: event calendar and richer floral ceremony details. */
#yes-button-image { width: 80%; height: 80%; }

.wedding-calendar { width: min(465px, 100%); margin: 34px auto 0; overflow: hidden; border: 1px solid rgba(245,216,143,.72); border-radius: 16px; color: #fff4de; background: rgba(45,5,15,.36); box-shadow: inset 0 0 0 7px rgba(255,255,255,.025); }
.wedding-calendar h3 { margin: 0; padding: 20px 16px 15px; border-bottom: 1px solid rgba(245,216,143,.54); color: #f5d88f; font-family: "Brush Script MT", "Brush Script Std", cursive; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1; }
.wedding-calendar__weekdays, .wedding-calendar__dates { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.wedding-calendar__weekdays { padding: 13px 10px 10px; border-bottom: 2px solid #f1c76a; color: #f5d88f; font-weight: 700; }
.wedding-calendar__dates { gap: 4px 0; padding: 18px 12px 20px; }
.wedding-calendar__dates span { display: grid; place-items: center; min-height: 33px; color: #fff0d9; }
.wedding-calendar__dates .is-wedding-day { position: relative; width: 38px; height: 34px; min-height: 0; margin: auto; color: #fff; font-weight: 700; }
.wedding-calendar__dates .is-wedding-day::before { content: "♥"; position: absolute; z-index: -1; inset: -7px -2px auto; color: #9e001d; font-size: 3.25rem; line-height: .8; text-shadow: 0 2px 0 rgba(255,230,200,.38); }

.schedule-card { isolation: isolate; }
.schedule-card > :not(.schedule-card__floral) { z-index: 1; }
.schedule-card__floral { position: absolute; z-index: 0; right: -46px; bottom: -32px; width: min(58%, 260px); opacity: .25; object-fit: contain; pointer-events: none; transform: rotate(-12deg); }
.schedule-card--ceremony .schedule-card__floral { opacity: .21; filter: brightness(1.3) saturate(.72); }
.schedule-card::after { content: "❦"; position: absolute; z-index: 1; top: 18px; left: 50%; color: var(--gold); font-size: 1.15rem; transform: translateX(-50%); }
.schedule-card__ornament { margin-top: 20px; }

.timeline__list { max-width: 880px; padding-right: min(25vw, 250px); }
.timeline__list::after { content: ""; position: absolute; right: -28px; top: 50%; width: min(24vw, 225px); height: 100%; background: url("assets/decorations/hoa-02.webp") right center / contain no-repeat; opacity: .66; transform: translateY(-50%) rotate(-5deg); pointer-events: none; }
.timeline__list li { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .wedding-calendar { margin-top: 26px; }
  .wedding-calendar h3 { padding-top: 16px; }
  .timeline__list { padding-right: 0; }
  .timeline__list::after { right: -40px; width: 135px; opacity: .22; }
  .schedule-card__floral { width: 54%; opacity: .2; }
}

/* Feedback round 6: denser florals, heart-ringed wedding date, calendar context and floating motion. */
#yes-button-image { width: 64%; height: 64%; }

.wedding-calendar__dates .is-wedding-day { z-index: 0; font-size: 0; }
.wedding-calendar__dates .is-wedding-day::before { z-index: -1; inset: -8px -3px auto; font-size: 3.55rem; color: #bd0f34; opacity: 1; }
.wedding-calendar__dates .is-wedding-day::after { content: "8"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff8e8; font-size: 1rem; font-weight: 700; text-shadow: 0 1px 1px rgba(68,0,14,.72); }

.schedule-card__lunar { min-height: 1.3em; margin: -8px auto 18px !important; color: currentColor; font-size: .95rem; font-style: italic; opacity: .84; }
.timeline__list { max-width: 980px; padding-right: min(38vw, 390px); }
.timeline__list::after { right: -12px; width: min(43vw, 390px); opacity: .75; }

.footer-floral { height: 3.1em; }
.cover-floral, .schedule-card__floral, .timeline__list::after, .footer-floral { animation: floral-float 5.5s ease-in-out infinite; }
.cover-floral--right, .footer-floral--right { animation-delay: -2.7s; }
.schedule-card__floral { animation-duration: 6.4s; }
.timeline__list::after { animation-duration: 7.2s; }
@keyframes floral-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -13px; } }

@media (max-width: 760px) {
  .timeline__list { padding-right: 0; }
  .timeline__list::after { right: -24px; width: 180px; opacity: .24; }
  .footer-floral { height: 2.55em; }
}
@media (prefers-reduced-motion: reduce) { .cover-floral, .schedule-card__floral, .timeline__list::after, .footer-floral { animation: none; } }

/* Feedback round 7: background music, compact favicon-aware controls and mobile footer. */
#yes-button-image { width: 80%; height: 80%; }
.music-toggle { position: fixed; z-index: 100; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid rgba(245,216,143,.78); border-radius: 50%; color: #f5d88f; background: rgba(75,15,30,.83); box-shadow: 0 7px 18px rgba(24,1,8,.35); backdrop-filter: blur(5px); font-size: 1.35rem; cursor: pointer; }
.music-toggle:not(.is-paused) span { animation: music-pulse 1.6s ease-in-out infinite; }
.music-toggle.is-paused { color: #f3dac1; opacity: .82; }
@keyframes music-pulse { 50% { transform: scale(1.15) rotate(-7deg); } }
footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; text-align: left; }
.footer-love { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-contact { justify-self: end; color: #f5d88f; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.footer-contact:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .music-toggle { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 39px; height: 39px; font-size: 1.18rem; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 5px; padding: 26px 14px; text-align: center; }
  .footer-love { gap: 6px; font-size: .9rem; }
  .footer-floral { height: 2.15em; }
  .footer-contact { justify-self: center; font-size: .86rem; }
}

/* Album concept refresh: full-bleed portrait gallery, ready for 4:5 supplied assets. */
.album { overflow: hidden; }
.album .section-heading { max-width: 720px; margin-inline: auto; }
.carousel { position: relative; width: min(940px, 100%); padding: 18px; border: 1px solid rgba(190,137,91,.34); border-radius: 34px; background: linear-gradient(145deg, #180308, #63162b 55%, #26050d); box-shadow: 0 30px 70px rgba(58,7,19,.25); overflow: visible; }
.carousel__stage { height: min(820px, calc((100vw - 80px) * 1.08)); min-height: 590px; border-radius: 23px; overflow: hidden; background: #23050e; }
.carousel__slide { width: min(650px, 72%); aspect-ratio: 4 / 5; border: 0; border-radius: 18px; background: #24060f; box-shadow: 0 24px 54px rgba(0,0,0,.55); }
.carousel__slide img { object-fit: cover; object-position: center; transform: scale(1.001); transition: transform 4.5s ease; }
.carousel__slide[data-position="active"] img { transform: scale(1.055); }
.carousel__slide[data-position="prev"] { transform: translate(-133%, -50%) scale(.82) rotate(-4deg); opacity: .3; filter: brightness(.54) saturate(.7); }
.carousel__slide[data-position="next"] { transform: translate(33%, -50%) scale(.82) rotate(4deg); opacity: .3; filter: brightness(.54) saturate(.7); }
.carousel__shade { position: absolute; z-index: 4; inset: auto 0 0; height: 31%; pointer-events: none; background: linear-gradient(transparent, rgba(17,1,6,.7)); }
.carousel__counter { position: absolute; z-index: 6; right: 23px; bottom: 24px; display: flex; align-items: baseline; gap: 7px; color: #fff7e8; font-size: 1.1rem; letter-spacing: .08em; }
.carousel__counter #album-current { color: #f4d385; font-size: 1.7rem; font-weight: 700; }
.carousel__counter i { font-style: normal; opacity: .55; }
.carousel__progress { position: absolute; z-index: 6; right: 23px; bottom: 14px; left: 23px; height: 2px; overflow: hidden; background: rgba(255,255,255,.22); }
.carousel__progress span { display: block; width: 0; height: 100%; background: #f3cf7d; transition: width .65s cubic-bezier(.22,.75,.2,1); }
.carousel__controls { padding: 21px 12px 12px; background: transparent; }
.carousel__dots { padding: 2px 18px 0; background: transparent; }
.carousel__dot { width: 8px; height: 8px; border-color: rgba(250,226,177,.75); }
.carousel__dot[aria-current="true"] { background: #f4d385; }
@media (max-width: 760px) {
  .carousel { width: min(100%, 480px); padding: 10px; border-radius: 22px; }
  .carousel__stage { height: calc((100vw - 40px) * 1.27); min-height: 435px; border-radius: 15px; }
  .carousel__slide { width: 82%; border-radius: 13px; }
  .carousel__slide[data-position="prev"] { transform: translate(-122%, -50%) scale(.8) rotate(-3deg); }
  .carousel__slide[data-position="next"] { transform: translate(22%, -50%) scale(.8) rotate(3deg); }
  .carousel__counter { right: 17px; bottom: 19px; font-size: .9rem; }
  .carousel__counter #album-current { font-size: 1.35rem; }
  .carousel__progress { right: 17px; bottom: 10px; left: 17px; }
  .carousel__controls { padding: 15px 4px 8px; }
}

/* Feedback round 9: compact first-view composition and a comfortably sized album image. */
/* Desktop cover is intentionally composed at roughly 75% of the former visual scale. */
.envelope-stage { width: min(920px, 100%); min-height: 82svh; padding: clamp(18px, 3.5vw, 46px); }
.envelope { min-height: min(590px, 76svh); }
.invitation-card { width: min(475px, 56vw); min-height: 445px; padding: 42px 35px; }
.cover-floral { width: min(31vw, 345px); height: min(68svh, 610px); }
.cover-monogram { width: 74px; height: 74px; margin-bottom: 17px; }
.cover-names { font-size: clamp(1.85rem, 4vw, 3.2rem); }
.cover-copy { margin-bottom: 18px; font-size: clamp(.9rem, 1.6vw, 1.05rem); }
.cover-date { margin: 16px 0; font-size: 1rem; }

/* Keep the gallery frame elegant while reducing the actual image to a comfortable desktop reading size. */
.carousel { width: min(820px, 100%); }
.carousel__stage { height: min(645px, calc((100vw - 120px) * .76)); min-height: 475px; }
.carousel__slide { width: min(475px, 64%); }
.carousel__slide[data-position="prev"] { transform: translate(-137%, -50%) scale(.79) rotate(-4deg); }
.carousel__slide[data-position="next"] { transform: translate(37%, -50%) scale(.79) rotate(4deg); }

/* The hero keeps the same content but is optically tighter, around 80% of the former scale. */
.hero__intro .eyebrow { font-size: clamp(2.3rem, 3.55vw, 3.2rem); }
.hero-name { width: min(28vw, 405px); font-size: clamp(3.45rem, 6.4vw, 6.5rem); }
.hero .date-mark { bottom: clamp(58px, 9vh, 92px); }

@media (max-width: 760px) {
  /* Mobile first view is tightened to roughly 80% without making controls hard to tap. */
  .envelope-stage { width: 100%; min-height: 82svh; padding: 18px 15px; }
  .envelope { min-height: min(590px, 78svh); }
  .invitation-card { width: min(350px, 82vw); min-height: 390px; padding: 33px 25px; }
  .cover-floral { width: min(46vw, 245px); height: min(58svh, 470px); }
  .cover-monogram { width: 66px; height: 66px; margin-bottom: 14px; }
  .cover-names { font-size: clamp(1.7rem, 8vw, 2.45rem); }
  .cover-copy { margin-bottom: 15px; font-size: .9rem; }
  .cover-date { margin: 13px 0; font-size: .88rem; }
  .hero__intro .eyebrow { font-size: clamp(2.15rem, 8.8vw, 2.85rem); }
  .hero-name { width: 38vw; font-size: clamp(2.55rem, 10.2vw, 3.55rem); }
  .hero-name--bride { left: 6%; }
  .hero-name--groom { right: 6%; }
  .hero .date-mark { bottom: 58px; font-size: .76rem; }
  .carousel { width: min(91vw, 460px); }
  .carousel__stage { height: calc((100vw - 48px) * 1.04); min-height: 365px; }
  .carousel__slide { width: 73%; }
  .carousel__slide[data-position="prev"] { transform: translate(-128%, -50%) scale(.77) rotate(-3deg); }
  .carousel__slide[data-position="next"] { transform: translate(28%, -50%) scale(.77) rotate(3deg); }
}

/* Feedback round 10: scale the entire opened invitation, not only its hero. */
/* `zoom` preserves normal flow, responsive grids, sticky controls and page height while
   presenting all open-invitation sections at the requested 80% desktop reading scale. */
.page-shell, #site-footer { zoom: .8; width: 125%; }
#site-footer { min-height: 0; }
.music-toggle { transform: scale(.8); transform-origin: top right; }

@media (max-width: 760px) {
  /* Mobile was already compacted separately; a light final reduction keeps every section coherent. */
  .page-shell, #site-footer { zoom: .9; width: 111.111112%; }
  .music-toggle { transform: scale(.9); }
}

/* Feedback round 11: framed invitation composition instead of global browser-like scaling. */
/* Undo the r10 zoom: content stays at accessible native sizes inside deliberate paper/card frames. */
.page-shell, #site-footer { zoom: normal; width: auto; }
.music-toggle { transform: none; }

.page-shell { padding: clamp(20px, 3vw, 46px) max(16px, calc((100vw - 1260px) / 2)); background: linear-gradient(135deg, #f7ebd7, #fffaf1 48%, #edd7b9); }
.page-shell > .section,
.page-shell > .hero { width: min(1180px, 100%); margin: 0 auto clamp(24px, 3.2vw, 48px); border: 1px solid rgba(177,120,72,.28); border-radius: 28px; box-shadow: 0 18px 44px rgba(76,20,31,.13); overflow: hidden; }

/* Hero becomes a photo card, not a browser-width banner. */
.page-shell > .hero { min-height: auto; aspect-ratio: 16 / 9; }
.hero__intro { top: clamp(18px, 4.2vw, 46px); }
.hero-name { top: 49%; }
.hero .date-mark { bottom: clamp(26px, 5vw, 60px); }
.scroll-cue { bottom: 16px; }

/* Every requested area receives a cohesive invitation frame. */
.page-shell > .celebration { background: #fffdf8; }
.page-shell > .timeline { background: linear-gradient(165deg, #380914, var(--burgundy) 55%, #26050d); }
.page-shell > .countdown { background: #f2dfc4; }
.page-shell > .countdown .countdown__inner { width: min(900px, 100%); margin: 0 auto; }
.page-shell > .album { background: #f4e5d0; }

#site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 26px; border: 1px solid rgba(177,120,72,.32); border-radius: 22px; box-shadow: 0 18px 44px rgba(76,20,31,.13); }
body { background: linear-gradient(135deg, #f7ebd7, #fffaf1 48%, #edd7b9); }

@media (max-width: 760px) {
  .page-shell { padding: 12px; }
  .page-shell > .section,
  .page-shell > .hero { width: 100%; margin-bottom: 18px; border-radius: 18px; }
  .page-shell > .hero { aspect-ratio: 4 / 5; }
  .hero__intro { top: 18px; }
  .hero-name { top: 48%; }
  .hero .date-mark { bottom: 38px; }
  .scroll-cue { bottom: 12px; }
  #site-footer { width: calc(100% - 24px); margin-bottom: 12px; border-radius: 16px; }
}

/* Feedback round 12: 80% desktop scale within the framed-card design. */
@media (min-width: 761px) {
  .page-shell { padding-block: clamp(18px, 2.4vw, 36px); }
  .page-shell > .section,
  .page-shell > .hero,
  #site-footer { width: min(944px, 100%); }
  .page-shell > .section { padding: clamp(58px, 7.5vw, 104px) clamp(24px, 3.2vw, 42px); }
  .page-shell > .hero { aspect-ratio: 16 / 9; }
  .page-shell > .hero .hero__intro .eyebrow { font-size: clamp(1.9rem, 2.84vw, 2.56rem); }
  .page-shell > .hero .hero-name { width: min(27vw, 324px); font-size: clamp(2.76rem, 5.12vw, 5.2rem); }
  .page-shell > .hero .date-mark { font-size: .88rem; }
  .page-shell h2 { font-size: clamp(1.72rem, 4vw, 3.28rem); }
  .page-shell h3 { font-size: .9em; }
  .page-shell .lead { max-width: 545px; font-size: 1rem; }
  .page-shell .schedule-card { min-height: 264px; padding: 38px 32px; }
  .page-shell .schedule-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.88rem); }
  .page-shell .location-card { padding: clamp(20px, 3.2vw, 35px); }
  .page-shell .location-card__map,
  .page-shell .location-card__map iframe { min-height: 304px; }
  .page-shell .timeline__list { transform: scale(.9); transform-origin: center top; margin-bottom: -42px; }
  .page-shell .countdown__inner { padding: clamp(32px, 5.6vw, 56px); }
  .page-shell .timer { max-width: 610px; margin-top: 30px; }
  .page-shell .timer div { padding: 16px 8px; }
  .page-shell .wedding-calendar { width: min(375px, 100%); }
  .page-shell .carousel { width: min(656px, 100%); }
  .page-shell .carousel__stage { height: min(516px, calc((100vw - 120px) * .61)); min-height: 380px; }
  .page-shell .carousel__slide { width: min(380px, 63%); }
  #site-footer { padding: 24px 28px; }
}

/* Feedback round 13: reliable opening position, a living paper surround, and a quieter signature footer. */
.page-shell { position: relative; isolation: isolate; background: linear-gradient(135deg, #f7ebd7, #fffaf1 48%, #edd7b9); }
.page-shell::before, .page-shell::after { content: ""; position: fixed; z-index: -1; width: min(31vw, 350px); height: min(48vh, 510px); opacity: .13; background: url("assets/decorations/hoa-02.webp") center / contain no-repeat; pointer-events: none; animation: inner-floral-drift 13s ease-in-out infinite; }
.page-shell::before { top: 14vh; left: -112px; transform: rotate(-20deg); }
.page-shell::after { right: -108px; bottom: 9vh; transform: scaleX(-1) rotate(-15deg); animation-delay: -6.5s; }
@keyframes inner-floral-drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -25px; rotate: 3deg; } }

/* Footer is a restrained closing signature, intentionally not another large content card. */
#site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 0; margin: 4px auto 28px; padding: 13px 22px; border: 0; border-top: 1px solid rgba(177,120,72,.42); border-radius: 0; color: #70404a; background: transparent; box-shadow: none; }
#site-footer .footer-love { gap: 7px; color: #70404a; font-size: .88rem; }
#site-footer .footer-floral { height: 2.05em; opacity: .8; filter: none; }
#site-footer .footer-contact { color: #8a253a; font-size: .82rem; letter-spacing: .02em; }
@media (max-width: 760px) {
  .page-shell::before, .page-shell::after { width: 180px; opacity: .1; }
  #site-footer { flex-direction: column; gap: 3px; margin: 0 18px 15px; padding: 12px 4px; text-align: center; }
  #site-footer .footer-love { font-size: .82rem; }
  #site-footer .footer-floral { height: 1.8em; }
}
@media (prefers-reduced-motion: reduce) { .page-shell::before, .page-shell::after { animation: none; } }

/* Feedback round 17: responsive supplied hero photography and names clear of the centered couple. */
.hero__picture { position: absolute; inset: 0; display: block; }
.hero__picture .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-shell > .hero .hero-name--bride { left: 1.8%; }
.page-shell > .hero .hero-name--groom { right: 1.8%; }
@media (max-width: 760px) {
  .page-shell > .hero .hero-name--bride { left: 1.5%; }
  .page-shell > .hero .hero-name--groom { right: 1.5%; }
  .page-shell > .hero .hero-name { width: 34vw; }
}

/* Feedback round 18: exact 3-second album cadence and professional guest table. */
.guest-table-wrap { overflow-x: auto; border: 1px solid #dec7aa; border-radius: 15px; background: #fffdfa; }
.guest-table { width: 100%; min-width: 620px; border-collapse: collapse; color: var(--ink); text-align: left; }
.guest-table th { padding: 14px 16px; color: #fff8ec; background: var(--burgundy); font-size: .9rem; letter-spacing: .04em; }
.guest-table td { padding: 15px 16px; vertical-align: top; border-top: 1px solid #eadbc8; line-height: 1.5; }
.guest-table tbody tr:nth-child(even) { background: #fff7eb; }
.guest-table tbody tr:hover { background: #f9eddc; }
.guest-table__name { width: 22%; color: var(--burgundy); font-weight: 700; }
.guest-table__intro { min-width: 270px; white-space: pre-wrap; }
.guest-table__time { width: 190px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { .guest-table-wrap { border-radius: 12px; } .guest-table th, .guest-table td { padding: 12px 13px; } }

/* Feedback round 19: protected guest-list export. */
.admin-actions { display: flex; align-items: center; gap: 10px; }
.button--export { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; color: #fff; background: var(--burgundy); text-decoration: none; box-shadow: 0 7px 17px rgba(75,15,30,.16); }
.button--export:hover { color: #fff; }
@media (max-width: 760px) { .admin-actions { width: 100%; } .admin-actions .button { flex: 1; } }

/* Feedback round 22: complete RSVP attendance details. */
.optional { color: var(--muted); font-size: .9em; font-weight: 400; }
.privacy-note { margin: 6px 0 0; padding: 11px 13px; border-left: 3px solid var(--gold); color: var(--muted); background: #fff6e9; font-size: .91rem; }
.guest-table { min-width: 1080px; }
.guest-table__intro { min-width: 180px; }
