:root {
  --paper: #f5f5f5;
  --paper-deep: #e8e8e9;
  --ink: #1e1e1e;
  --muted: #888888;
  --gold: #5a5a5a;
  --green: #444444;
  --ribbon: #3a3a3a;
  --line: rgba(80, 80, 80, 0.15);
  --white: rgba(255, 255, 255, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: -28px;
  background: url("assets/welcoming.jpeg") center / cover no-repeat;
  filter: blur(8px);
  z-index: -2;
}

body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }

/* ── DOUBLE BORDER ── */
.screen, .panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}


/* ── SCREEN / COVER ── */
.screen {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: #e8e8e9;
}

.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.cover-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px 56px;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, transparent 100%);
}

.cover-eyebrow { color: rgba(255,255,255,0.85) !important; margin: 0 !important; }
.cover-overlay h1 { color: #ffffff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); margin: 0; }
.cover-overlay .guest-box span { color: rgba(255,255,255,0.8); }
.cover-overlay .guest-box strong { color: #ffffff; }

/* Setiap section panel punya overlay putih agar teks terbaca */
.panel {
  background: rgba(255, 255, 255, 0.62);
}

/* Hero section — foto langsung tanpa blur */
.hero-section {
  background: transparent;
  display: flex;
  align-items: stretch;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Overlay penuh: teks atas & tanggal bawah */
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 60px 24px 56px;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.38) 0%,
    transparent 38%,
    transparent 62%,
    rgba(0,0,0,0.38) 100%
  );
}

.hero-top-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.hero-eyebrow {
  color: rgba(255,255,255,0.88) !important;
  margin: 0 !important;
}

.hero-overlay h2 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  margin: 0;
}

.hero-date {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.88);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  letter-spacing: 0.18em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
}

/* Verse di dalam hero, bagian bawah */
.hero-verse {
  text-align: center;
  padding: 0 8px;
}

.hero-verse .verse-text {
  margin: 0 0 10px;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-verse .verse-ref {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hero-credit {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.invitation { display: none; }
.invitation.open {
  display: block;
  animation: invitationFade 700ms ease both;
}

/* ── CARD / INNER ── */
.section-inner {
  position: relative;
  z-index: 2;
  width: min(92vw, 470px);
  margin: 0 auto;
}

.cover-card {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 80, 80, 0.15);
  border-radius: 2px;
  animation: cardRise 900ms ease both;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h2 {
  color: var(--gold);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.95;
}

h3 { color: var(--green); font-size: 1.4rem; }

.sub-date {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.section-desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.93rem;
}

.section-greeting {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ── GUEST BOX ── */
.guest-box {
  display: grid;
  gap: 4px;
  margin: 14px auto 22px;
  max-width: 320px;
}

.guest-box span { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.02em; }
.guest-box strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
}

/* ── BUTTONS ── */
.primary-button, .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.primary-button {
  border: none;
  color: #ffffff;
  background: var(--ribbon);
  box-shadow: 0 2px 12px rgba(60, 60, 60, 0.25);
}

.primary-button:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(60, 60, 60, 0.3);
}

.outline-button {
  border: 1px solid var(--gold);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.outline-button:hover {
  transform: translateY(-2px);
  background: rgba(80, 80, 80, 0.1);
}

.compact {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.8rem;
  margin-top: 10px;
}

/* ── CORNER ORNAMENTS — disembunyikan per permintaan client ── */
.corner, .ribbon-corner { display: none; }

.corner {
  position: absolute;
  z-index: 3;
  width: clamp(160px, 40vw, 280px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: url("assets/top-right.png") top right / contain no-repeat;
  opacity: 0.92;
  animation: cornerSway 6s ease-in-out var(--corner-sway-delay, 0s) infinite;
  transform-origin: var(--corner-origin, 70% 30%);
  will-change: transform;
}

.corner-top-left {
  top: 0; left: 0;
  --corner-scale-x: -1;
  --corner-origin: 50% 30%;
  --corner-delay: 0.1s;
  --corner-sway-delay: 0s;
  --sway-x: -2px;
  --sway-r: -1.5deg;
}

.corner-top-right {
  top: 0; right: 0;
  --corner-origin: 70% 30%;
  --corner-delay: 0.2s;
  --corner-sway-delay: -1.5s;
  --sway-x: 2px;
  --sway-r: 1.5deg;
}

.corner-bottom-left {
  bottom: 0; left: 0;
  --corner-scale-x: -1;
  --corner-scale-y: -1;
  --corner-origin: 50% 50%;
  --corner-delay: 0.3s;
  --corner-sway-delay: -3s;
  --sway-x: -2px;
  --sway-r: 1.5deg;
}

.corner-bottom-right {
  right: 0; bottom: 0;
  --corner-scale-y: -1;
  --corner-origin: 70% 50%;
  --corner-delay: 0.4s;
  --corner-sway-delay: -4.5s;
  --sway-x: 2px;
  --sway-r: -1.5deg;
}


/* ── COVER PHOTO ── */
.cover-photo {
  width: min(62vw, 240px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(80, 80, 80, 0.12);
}

.cover-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ── SECTION INNER ── */
.section-inner {
  padding: 80px 0 92px;
  text-align: center;
}

.narrow { width: min(88vw, 560px); }

/* ── HERO INNER (legacy, not used on hero-section) ── */
.hero-inner {
  display: grid;
  place-items: center;
  gap: 14px;
}

/* ── BISMILLAH ── */
.bismillah { margin-bottom: 20px; }
.bismillah img { width: min(58vw, 240px); opacity: 0.7; }

/* ── GUNUNGAN ── */
.gunungan-divider {
  display: flex;
  justify-content: center;
  margin-bottom: -16px;
  position: relative;
  z-index: 2;
}

.gunungan-divider img {
  width: min(52vw, 200px);
  opacity: 0.35;
}

/* ── SECTION RIBBON ── */
.section-ribbon {
  position: relative;
  width: 100%;
  padding: 60px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
}

.ribbon-bar {
  position: relative;
  z-index: 4;
  width: 100%;
  background: var(--ribbon);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  opacity: 0;
  transform: scaleX(0.6);
}

.ribbon-title {
  color: #ffffff !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
  font-weight: 600 !important;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28), 0 2px 14px rgba(0, 0, 0, 0.15);
}

/* ── RIBBON CORNER FLOWERS — tempel di bawah ribbon bar ── */
.ribbon-corner {
  position: absolute;
  z-index: 1;
  width: clamp(160px, 40vw, 280px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: url("assets/top-right.png") top right / contain no-repeat;
  top: 100%;
  bottom: auto;
  opacity: 0;
  transition: opacity 0.3s ease 0.7s;
}

.ribbon-corner-left {
  left: 0;
  transform: scaleX(-1);
}

.ribbon-corner-right {
  right: 0;
  transform: none;
}

/* Ribbon visible state */
.section-ribbon.ribbon-visible .ribbon-bar {
  animation: ribbonSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-ribbon.ribbon-visible .ribbon-corner-left {
  opacity: 0.92;
  animation: ribbonFlowerSwayLeft 6s ease-in-out 1s infinite;
}

.section-ribbon.ribbon-visible .ribbon-corner-right {
  opacity: 0.92;
  animation: ribbonFlowerSwayRight 6s ease-in-out 0s infinite;
}

/* ── COUPLE ── */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.person {
  display: grid;
  place-items: center;
  gap: 10px;
}

.person-photo {
  width: min(34vw, 180px);
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}

.person-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
}

/* zoom sedikit untuk foto mempelai wanita */
.person:last-child .person-photo img {
  object-position: center 15%;
  transform: scale(1.12);
  transform-origin: center top;
}

.person p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 0.86rem; }

.ampersand {
  color: var(--gold);
  font-family: "Sacramento", cursive;
  font-size: 3.4rem;
  line-height: 1;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(80, 80, 80, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  transition: background 180ms, transform 180ms;
}

.ig-link:hover {
  background: rgba(80, 80, 80, 0.08);
  transform: translateY(-1px);
}

/* ── VERSE ── (dipindah ke .verse-block di hero section) ── */

/* ── COUNTDOWN ── */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(100%, 400px);
  margin: 0 auto 24px;
}

.countdown div {
  padding: 12px 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.countdown strong {
  display: block;
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  line-height: 1;
}

.countdown span { color: var(--muted); font-size: 0.78rem; }

/* ── EVENT ── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}

.event-single {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.event-card {
  padding: 20px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
}

.event-single .event-card {
  padding: 32px 28px;
  border-color: rgba(80, 80, 80, 0.25);
  gap: 10px;
}

.event-card h3 { font-size: 1.15rem; }
.event-single .event-card h3 { font-size: 1.5rem; color: var(--gold); }

.event-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.event-single .event-card p { font-size: 0.95rem; }

.event-card .event-date { color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.event-single .event-card .event-date { font-size: 1.05rem; }

.event-card span { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.event-single .event-card span { font-size: 0.9rem; }

.map-embed {
  margin-top: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
}

/* ── GALLERY ── */
.gallery {
  columns: 2;
  column-gap: 8px;
  margin-top: 0;
}

.gallery-item {
  width: 100%;
  display: block;
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: transform 280ms ease, opacity 280ms ease;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item.hidden {
  display: none;
}

/* ── GIFT ── */
.gift-section { min-height: auto; }

.bank-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  place-items: center;
  position: relative;
  overflow: hidden;
}

.bank-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(80,80,80,0.25), transparent);
}

.bank-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.bank-chip {
  width: 34px; height: 24px;
  border: 1px solid rgba(80, 80, 80, 0.25);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(80,80,80,0.1), rgba(80,80,80,0.03));
}

.bank-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.bank-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* ── RSVP ── */
.rsvp-form { display: grid; gap: 12px; margin-top: 24px; }

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  outline-color: var(--gold);
  transition: border-color 200ms, background 200ms;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: rgba(80, 80, 80, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

/* ── WISHES ── */
.wishes { display: grid; gap: 10px; margin-top: 22px; text-align: left; }

.wish {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  border-left: 2px solid rgba(80, 80, 80, 0.2);
}

.wish-meta { margin: 0 0 6px; color: var(--green); font-size: 0.82rem; font-weight: 600; }
.wish-meta em { color: var(--gold); font-style: normal; }
.wish p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 0.88rem; }

.wishes-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.wish-page-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms, color 200ms, border-color 200ms;
}

.wish-page-btn:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.wish-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.wish-page-info {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  color: var(--muted);
  min-width: 48px;
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 60px 20px 80px;
  overflow: hidden;
  text-align: center;
}

.footer p { margin: 0; color: rgba(255,255,255,0.85); font-family: "Cormorant Garamond", serif; font-size: 1rem; line-height: 1.9; max-width: 340px; }
.footer-closing { font-weight: 600; font-size: 1.05rem !important; color: #fff !important; }
.footer strong { color: #fff; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; font-weight: 600; font-style: italic; letter-spacing: 0.04em; display: block; }
.footer-families { font-family: "Cormorant Garamond", serif; font-size: 1rem !important; font-weight: 600; letter-spacing: 0.04em; margin-top: 8px !important; color: #fff !important; }
.footer-family-names { font-size: 0.92rem !important; line-height: 2 !important; color: rgba(255,255,255,0.65) !important; }
.footer-credit { font-family: "Inter", sans-serif !important; font-size: 0.74rem !important; opacity: 0.45; color: #fff !important; margin-top: 16px !important; }

/* ── MUSIC BUTTON ── */
.music-button {
  position: fixed;
  z-index: 12;
  top: 14px; right: 14px;
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(80, 80, 80, 0.12);
  transition: background 200ms, color 200ms, transform 200ms;
}

.music-button.show { display: inline-flex; align-items: center; justify-content: center; }
.music-button.playing { color: #ffffff; background: var(--ribbon); animation: musicPulse 2s ease-in-out infinite; }
.music-button:hover { transform: scale(1.08); }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger delay untuk tiap item dalam group */
.couple-grid .person:nth-child(1).visible   { transition-delay: 0ms; }
.couple-grid .ampersand.visible             { transition-delay: 100ms; }
.couple-grid .person:nth-child(3).visible   { transition-delay: 200ms; }
.event-grid .event-card:nth-child(1).visible { transition-delay: 0ms; }
.event-grid .event-card:nth-child(2).visible { transition-delay: 120ms; }
.gallery-item:nth-child(1).visible  { transition-delay: 0ms; }
.gallery-item:nth-child(2).visible  { transition-delay: 50ms; }
.gallery-item:nth-child(3).visible  { transition-delay: 100ms; }
.gallery-item:nth-child(4).visible  { transition-delay: 150ms; }
.gallery-item:nth-child(5).visible  { transition-delay: 200ms; }
.gallery-item:nth-child(6).visible  { transition-delay: 250ms; }
.bank-card:nth-of-type(1).visible { transition-delay: 0ms; }
.bank-card:nth-of-type(2).visible { transition-delay: 130ms; }

/* ── KEYFRAMES ── */
@keyframes cornerSway {
  0%, 100% {
    transform:
      translate3d(var(--corner-x, 0), var(--corner-y, 0), 0)
      scaleX(var(--corner-scale-x, 1))
      scaleY(var(--corner-scale-y, 1))
      rotate(0deg) translate(0, 0);
  }
  30% {
    transform:
      translate3d(var(--corner-x, 0), var(--corner-y, 0), 0)
      scaleX(var(--corner-scale-x, 1))
      scaleY(var(--corner-scale-y, 1))
      rotate(var(--sway-r, 1.5deg)) translate(var(--sway-x, 2px), -3px);
  }
  65% {
    transform:
      translate3d(var(--corner-x, 0), var(--corner-y, 0), 0)
      scaleX(var(--corner-scale-x, 1))
      scaleY(var(--corner-scale-y, 1))
      rotate(calc(var(--sway-r, 1.5deg) * -0.4)) translate(0, 2px);
  }
}

@keyframes ribbonSlideIn {
  0%   { opacity: 0; transform: scaleX(0.4); }
  65%  { opacity: 1; transform: scaleX(1.025); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes ribbonFlowerSwayLeft {
  0%, 100% { transform: scaleX(-1) rotate(0deg) translate(0, 0); }
  30%       { transform: scaleX(-1) rotate(-1.5deg) translate(-2px, -3px); }
  65%       { transform: scaleX(-1) rotate(0.6deg) translate(0, 2px); }
}

@keyframes ribbonFlowerSwayRight {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  30%       { transform: rotate(1.5deg) translate(2px, -3px); }
  65%       { transform: rotate(-0.6deg) translate(0, 2px); }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes invitationFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 60, 60, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(60, 60, 60, 0); }
}

/* ── GALLERY: wider screens ── */
@media (min-width: 721px) {
  .gallery { columns: 3; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
}

/* ── RESPONSIVE 481–720px ── */
@media (max-width: 720px) and (min-width: 481px) {
  .corner        { width: clamp(120px, 30vw, 190px); }
  .ribbon-corner { width: clamp(120px, 30vw, 190px); }
  .ribbon-corner-left  { left: 0; }
  .ribbon-corner-right { right: 0; }
  .section-inner { padding: 64px 0 72px; }
  h1             { font-size: clamp(3.2rem, 12vw, 5rem); }
  h2             { font-size: clamp(2.1rem, 7.5vw, 3.8rem); }
  .cover-photo   { width: min(58vw, 220px); }
  .couple-grid   { grid-template-columns: 1fr; gap: 10px; }
  .ampersand     { font-size: 2.8rem; }
  .person-photo  { width: min(48vw, 170px); }
  .event-grid    { grid-template-columns: 1fr; }
  .bank-number   { font-size: 1.65rem; }
  .hero-overlay  { padding: 32px 20px 52px; }
}

/* ── RESPONSIVE ≤480px ── */
@media (max-width: 480px) {
  .corner        { width: clamp(95px, 27vw, 145px); }
  .ribbon-corner { width: clamp(95px, 27vw, 145px); }
  .ribbon-corner-left  { left: 0; }
  .ribbon-corner-right { right: 0; }
  .section-inner { padding: 52px 0 60px; }
  h1             { font-size: clamp(2.8rem, 12vw, 4rem); }
  h2             { font-size: clamp(1.95rem, 7vw, 3rem); }
  h3             { font-size: 1.2rem; }
  .eyebrow       { font-size: 0.9rem; }
  .sub-date      { font-size: 0.86rem; }
  .cover-card    { padding: 14px 16px; }
  .cover-photo   { width: min(62vw, 200px); }
  .guest-box strong { font-size: 1.35rem; }
  .section-greeting  { font-size: 1.15rem; }
  .section-desc  { font-size: 0.88rem; line-height: 1.75; }
  .couple-grid   { grid-template-columns: 1fr; gap: 10px; }
  .ampersand     { font-size: 2.4rem; }
  .person-photo  { width: min(54vw, 160px); }
  .person p      { font-size: 0.82rem; }
  .event-grid    { grid-template-columns: 1fr; }
  .event-card    { padding: 16px 12px; }
  .countdown strong  { font-size: 1.6rem; }
  .countdown span    { font-size: 0.72rem; }
  .gallery       { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bank-number   { font-size: 1.55rem; }
  .bank-card     { padding: 20px 16px; }
  .ribbon-title  { font-size: clamp(1.85rem, 7vw, 2.6rem) !important; }
  .ribbon-bar    { padding: 20px 16px; }
  .section-ribbon { padding-top: 44px; }
  h2             { line-height: 1.05; }
  .verse-text    { font-size: 0.88rem; }
  .footer        { padding: 48px 20px 60px; min-height: unset; }
  .footer strong { font-size: 2rem; }
  .footer p      { font-size: 0.86rem; }
  .hero-overlay  { padding: 28px 18px 48px; }
}

/* ── RESPONSIVE ≤380px ── */
@media (max-width: 380px) {
  .corner        { width: clamp(80px, 24vw, 115px); }
  .ribbon-corner { width: clamp(80px, 24vw, 115px); }
  .ribbon-corner-left  { left: 0; }
  .ribbon-corner-right { right: 0; }
  .section-inner { padding: 44px 0 52px; }
  h1             { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  h2             { font-size: clamp(1.7rem, 6.5vw, 2.5rem); }
  h3             { font-size: 1.1rem; }
  .eyebrow       { font-size: 0.84rem; letter-spacing: 0.04em; }
  .sub-date      { font-size: 0.82rem; }
  .cover-card    { padding: 12px 12px; }
  .cover-photo   { width: min(64vw, 190px); }
  .guest-box strong  { font-size: 1.2rem; }
  .section-greeting  { font-size: 1.1rem; }
  .section-desc  { font-size: 0.85rem; }
  .person-photo  { width: min(58vw, 150px); }
  .ampersand     { font-size: 2.1rem; }
  .countdown     { gap: 5px; }
  .countdown div { padding: 10px 4px; }
  .countdown strong  { font-size: 1.35rem; }
  .countdown span    { font-size: 0.68rem; }
  .event-card    { padding: 14px 10px; }
  .bank-number   { font-size: 1.35rem; }
  .bank-card     { padding: 18px 14px; }
  .ribbon-title  { font-size: clamp(1.65rem, 6vw, 2.2rem) !important; }
  .ribbon-bar    { padding: 18px 14px; }
  .section-ribbon { padding-top: 36px; }
  h2             { line-height: 1.1; }
  .primary-button, .outline-button { padding: 0 18px; font-size: 0.84rem; }
  .compact       { padding: 0 12px; font-size: 0.78rem; }
  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea { padding: 10px 12px; font-size: 0.9rem; }
  .footer        { padding: 40px 16px 52px; }
  .footer strong { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
