:root {
  --bg: #fffaf7;
  --bg-soft: #fff2ee;
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.92);
  --text: #59494b;
  --text-soft: #866f72;
  --line: rgba(199, 159, 159, 0.24);
  --gold: #d3ae7d;
  --rose: #d9939a;
  --rose-dark: #bd7782;
  --rose-soft: #f5d9dc;
  --shadow: 0 24px 70px rgba(151, 118, 123, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Bai Jamjuree", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(255,250,247,1) 36%),
    linear-gradient(180deg, #fffaf6 0%, #fff5f0 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.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;
}
.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}
.section {
  position: relative;
  padding: 88px 0;
}
.section::before {
  content: "";
  position: absolute;
  inset: 24px 12px;
  border: 1px solid rgba(208,176,125,0.14);
  border-radius: 42px;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 249, 245, 0.74);
  border-bottom: 1px solid rgba(208,176,125,0.12);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  font-family: "Noto Serif Thai", Georgia, serif;
  font-size: 28px;
  color: #7c5a5d;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand-mark span {
  color: var(--rose);
  padding-inline: 5px;
  display: inline-block;
  animation: heartbeat 2.3s infinite;
}
.brand-text {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.music-toggle,
.menu-toggle,
.btn {
  border: none;
  cursor: pointer;
}
.music-toggle,
.btn-secondary {
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(208,176,125,0.24);
  color: var(--text);
}
.music-toggle {
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: var(--shadow);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  font-size: 20px;
  color: var(--text);
}

.hero {
  min-height: calc(100svh - 78px);
  padding: 34px 0 68px;
  overflow: clip;
  display: flex;
  align-items: stretch;
}
.hero-grid {
  position: relative;
  display: block;
  min-height: min(760px, calc(100svh - 120px));
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,249,246,0.9)),
    radial-gradient(circle at 10% 16%, rgba(246,206,213,0.48), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(218,232,211,0.42), transparent 22%),
    #fffaf7;
  border: 1px solid rgba(208,176,125,0.28);
  box-shadow: 0 28px 90px rgba(151,118,123,0.14);
  isolation: isolate;
}
.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 54px;
  z-index: 4;
  opacity: .78;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(244,190,198,.86) 0 8px, transparent 9px) 0 50% / 28px 28px repeat-x,
    radial-gradient(circle, rgba(214,231,207,.72) 0 10px, transparent 11px) 8px 70% / 44px 34px repeat-x;
}
.hero-grid::before {
  right: 28px;
  top: 34px;
  transform: rotate(10deg);
}
.hero-grid::after {
  left: 28px;
  bottom: 34px;
  transform: rotate(190deg);
}
.hero-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(610px, calc(100% - 760px));
  transform: translate(-50%, -48%);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(255, 250, 247, 0.88), rgba(255, 250, 247, 0.52) 58%, rgba(255, 250, 247, 0) 100%);
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.98);
  pointer-events: auto;
}
.hero-copy.reveal,
.hero-copy.reveal.show {
  position: absolute;
  opacity: 1;
  transform: translate(-50%, -48%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(208,176,125,0.2);
  color: var(--rose-dark);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
}
.hero h1,
.section-heading h2,
.rsvp-copy h2,
.event-card h3 {
  font-family: "Noto Serif Thai", Georgia, serif;
  line-height: 1.1;
  color: #6e5456;
}
.hero h1,
.section-heading h2,
.rsvp-copy h2 {
  margin: 18px 0 14px;
}
.hero h1 {
  font-size: clamp(54px, 7vw, 98px);
  color: #5f464a;
}
.hero h1 span {
  display: block;
  font-size: clamp(24px, 2.8vw, 42px);
  font-style: italic;
  font-weight: 500;
  color: #a96772;
  margin-top: 8px;
  white-space: nowrap;
}
.hero-text,
.section-heading p,
.rsvp-copy p,
.story-card p,
.site-footer p,
.music-note,
.countdown-note,
.event-card p,
.gallery-card figcaption {
  color: var(--text-soft);
  line-height: 1.75;
}
.hero-text {
  max-width: 520px;
  font-size: 18px;
  margin: 0 auto;
  color: #6f5a5d;
  font-weight: 500;
}
.event-pill-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0 0;
  position: relative;
  z-index: 12;
}
.event-pill {
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,245,242,0.9));
  border: 1px solid rgba(208,176,125,0.22);
  box-shadow: var(--shadow);
}
.event-date-pill {
  width: min(100%, 430px);
  max-width: 100%;
  min-width: 0;
  padding: 19px 26px 21px;
  border-color: rgba(208,176,125,0.38);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,246,241,0.94));
}
.event-pill strong {
  display: block;
  font-size: 18px;
  color: #6d5255;
}
.event-date-pill strong {
  font-family: "Noto Serif Thai", Georgia, serif;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}
.event-pill span {
  font-size: 14px;
  color: var(--text-soft);
}
.event-date-pill .event-time {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: #8b6a6c;
}
.event-date-pill .event-clock {
  display: block;
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.04;
}
.event-date-pill .event-place {
  display: block;
  margin-top: 8px;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.18;
  color: var(--text-soft);
}
.event-rsvp {
  margin: 16px auto 0;
  min-height: 46px;
  padding: 12px 28px;
}
.event-pill.soft {
  background: linear-gradient(180deg, rgba(251,240,243,0.95), rgba(255,255,255,0.94));
}
.hashtag-pill {
  align-self: center;
  padding: 11px 15px;
  box-shadow: 0 12px 32px rgba(151,118,123,0.1);
}
.hashtag-pill strong {
  font-size: 15px;
  letter-spacing: .02em;
}
.hashtag-pill span {
  font-size: 12px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px auto 10px;
  max-width: 520px;
  width: 100%;
  position: relative;
  z-index: 12;
}
.countdown-item {
  padding: 18px 10px 14px;
  text-align: center;
  background: rgba(255,255,255,0.98);
  border-radius: 22px;
  border: 1px solid rgba(208,176,125,0.32);
  box-shadow: 0 18px 44px rgba(151, 118, 123, 0.18);
  backdrop-filter: blur(8px);
}
.countdown-item span {
  display: block;
  font-family: "Noto Serif Thai", Georgia, serif;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--rose-dark);
  line-height: 1;
}
.countdown-item small {
  display: block;
  margin-top: 8px;
  letter-spacing: .08em;
  color: var(--text-soft);
  text-transform: uppercase;
  font-size: 12px;
}
.countdown-note {
  margin-top: 8px;
  font-size: 14px;
  position: relative;
  z-index: 12;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 12;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  min-height: 52px;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  box-shadow: var(--shadow);
}
.btn:hover,
.music-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose), #e5ac9f);
  color: white;
}
.btn-secondary:hover,
.music-toggle:hover {
  background: white;
}
.music-note {
  margin-top: 16px;
  font-size: 14px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.hero-stage.reveal,
.hero-stage.reveal.show {
  position: absolute;
  opacity: 1;
  transform: none;
}
.hero-arch {
  position: absolute;
  right: 78px;
  top: 148px;
  width: 280px;
  height: 420px;
  border-radius: 160px 160px 0 0;
  border: 6px solid rgba(232, 220, 207, 0.85);
  border-bottom: none;
  z-index: 2;
}
.hero-arch::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 8px;
  height: 62px;
  background:
    radial-gradient(circle at 8% 60%, rgba(241,185,194,0.86) 0 16px, transparent 17px),
    radial-gradient(circle at 28% 40%, rgba(250,231,233,1) 0 18px, transparent 19px),
    radial-gradient(circle at 45% 38%, rgba(203,228,198,0.95) 0 16px, transparent 17px),
    radial-gradient(circle at 63% 45%, rgba(249,222,228,0.95) 0 16px, transparent 17px),
    radial-gradient(circle at 82% 42%, rgba(241,185,194,0.82) 0 16px, transparent 17px);
}
.hero-character {
  position: absolute;
  user-select: none;
  pointer-events: none;
}
.hero-bobby {
  left: -28px;
  bottom: -18px;
  width: min(38vw, 500px);
  z-index: 3;
  animation: bobEnter 1.5s cubic-bezier(.2,.8,.2,1) both, runBounce 1.3s ease-in-out infinite 1.5s;
}
.hero-yam {
  right: -26px;
  bottom: -20px;
  width: min(34vw, 460px);
  z-index: 4;
  animation: fadeUp .9s ease both .35s, brideFloat 4s ease-in-out infinite 1.2s;
}
.hero-hearts {
  position: absolute;
  font-size: 28px;
  color: #e79ca6;
  animation: floatHeart 4.2s ease-in-out infinite;
}
.hero-hearts-a { left: 42%; top: 18%; animation-delay: 0s; }
.hero-hearts-b { right: 24%; top: 26%; animation-delay: 1.1s; }
.hero-hearts-c { left: 54%; bottom: 22%; animation-delay: 1.9s; }

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}
.section-heading h2,
.rsvp-copy h2 { font-size: clamp(34px, 4vw, 52px); }

.story-visual {
  position: relative;
  min-height: 560px;
  aspect-ratio: 1672 / 941;
  border-radius: 36px;
  padding: clamp(10px, 2vw, 22px);
  background:
    radial-gradient(circle at 18% 18%, rgba(245,217,220,0.45), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(216,233,209,0.34), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,246,242,0.88));
  border: 1px solid rgba(208,176,125,0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.story-visual::before,
.story-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.story-visual::before {
  inset: 18px;
  border: 1px solid rgba(208,176,125,0.18);
  border-radius: 28px;
}
.story-visual::after {
  left: 50%;
  bottom: -22%;
  width: 66%;
  height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255,255,255,0.34), rgba(255,255,255,0));
}
.story-art {
  position: absolute;
  inset: clamp(10px, 2vw, 22px);
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,250,247,0.96), rgba(255,245,240,0.92));
}
.story-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,250,247,0.18), transparent 16%, transparent 84%, rgba(255,250,247,0.18)),
    linear-gradient(180deg, rgba(255,250,247,0.16), transparent 18%, transparent 84%, rgba(255,250,247,0.14));
}
.story-art-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.018);
}
.story-visual.show .story-art-layer {
  animation: storyLayerIn .9s ease both;
}
.story-art-wash {
  filter: saturate(.98) brightness(1.05);
}
.story-visual.show .story-art-wash { animation-delay: 0s; }
.story-visual.show .story-art-left { animation-delay: .18s; }
.story-visual.show .story-art-right { animation-delay: .34s; }
.story-visual.show .story-art-center { animation-delay: .5s; }

@keyframes storyLayerIn {
  from {
    opacity: 0;
    transform: scale(1.034);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-only-section {
  padding-top: 72px;
}
.journey-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 10px 82px;
  display: grid;
  gap: 30px;
}
.journey-timeline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #b4677b, #d9939a 48%, #8ea783);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.7);
}
.journey-card {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(142, 167, 131, 0.34);
  box-shadow: 0 18px 44px rgba(105, 89, 78, 0.13);
}
.journey-card::before {
  content: "";
  position: absolute;
  left: -59px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 38%, #8ea783 40% 58%, #b4677b 60%);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.82);
}
.journey-card::after {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  width: 28px;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(180, 103, 123, 0.62);
}
.journey-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.gallery-grid-ten {
  display: grid;
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
  gap: 20px;
}
.gallery-card {
  padding: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(208,176,125,0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.gallery-large-card {
  grid-column: auto;
}
.gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 2;
}
.gallery-large-card .gallery-link {
  aspect-ratio: 3 / 2;
}
.gallery-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-link:hover .gallery-photo { transform: scale(1.05); }
.gallery-card figcaption {
  padding: 14px 4px 4px;
  font-size: 14px;
}

.event-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.event-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(208,176,125,0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.event-card.main {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,244,239,0.9));
}
.event-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(208,176,125,0.18);
  color: var(--rose-dark);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.event-card h3 { margin: 16px 0 8px; font-size: 30px; }
.dress-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(208,176,125,0.18);
  color: var(--text);
  font-weight: 600;
}
.color-chip i {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.72), 0 8px 18px rgba(151,118,123,0.12);
}
.color-chip-green i { background: #8ea783; }
.color-chip-pink i { background: #d9939a; }

.rsvp-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}
.rsvp-copy,
.rsvp-form {
  padding: 32px;
  background: var(--card);
  border: 1px solid rgba(208,176,125,0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.rsvp-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.rsvp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}
.rsvp-list li::before {
  content: "♥";
  color: var(--rose);
}
.rsvp-form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.rsvp-form label {
  display: grid;
  gap: 8px;
}
.rsvp-form span {
  font-size: 14px;
  color: var(--text);
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(208,176,125,0.22);
  background: rgba(255,255,255,0.92);
  padding: 14px 16px;
  color: var(--text);
  outline: none;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: rgba(217,153,156,0.55);
  box-shadow: 0 0 0 4px rgba(217,153,156,0.12);
}
.btn-submit { width: 100%; }

.site-footer { padding: 24px 0 42px; }
.footer-wrap {
  border-top: 1px solid rgba(208,176,125,0.18);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-top {
  color: var(--rose-dark);
  font-weight: 600;
}

.petals,
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal,
.float-heart {
  position: absolute;
}
.petal {
  width: 10px;
  height: 16px;
  background: linear-gradient(180deg, #ffd9e2, #efadb9);
  border-radius: 100% 0 100% 0;
  opacity: .78;
  animation: petalFall linear infinite;
}
.float-heart {
  color: rgba(227, 152, 162, 0.7);
  font-size: 18px;
  animation: heartRise linear infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  position: relative;
  z-index: 2;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bobEnter {
  0% { transform: translateX(-180px); }
  100% { transform: translateX(0); }
}
@keyframes runBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes brideFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatHeart {
  0%,100% { transform: translateY(0) scale(1); opacity: .7; }
  50% { transform: translateY(-14px) scale(1.1); opacity: 1; }
}
@keyframes petalFall {
  0% { transform: translate3d(0,-10vh,0) rotate(15deg); opacity: 0; }
  15% { opacity: .88; }
  100% { transform: translate3d(6vw,110vh,0) rotate(360deg); opacity: 0; }
}
@keyframes heartRise {
  0% { transform: translateY(40px) scale(.6); opacity: 0; }
  15% { opacity: .8; }
  100% { transform: translateY(-140px) scale(1.15); opacity: 0; }
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  20% { transform: scale(1.16); }
  40% { transform: scale(1); }
  60% { transform: scale(1.09); }
}

@media (max-width: 1100px) {
  .rsvp-wrap,
  .event-showcase {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: 760px; }
  .hero-copy {
    width: min(620px, calc(100% - 56px));
    top: 50%;
  }
  .hero-copy.reveal,
  .hero-copy.reveal.show {
    transform: translate(-50%, -48%);
  }
  .hero-bobby { width: min(47vw, 430px); left: -58px; }
  .hero-yam { width: min(42vw, 390px); right: -48px; }
  .hero-stage { min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-actions,
  .event-pill-wrap { justify-content: center; }
  .countdown {
    justify-content: center;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
  .story-visual {
    min-height: 520px;
  }
  .gallery-grid-ten { grid-template-columns: minmax(0, 980px); }
  .gallery-large-card { grid-column: auto; }
}

@media (max-width: 920px) {
  .journey-timeline {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 251, 248, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(208,176,125,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .25s ease;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav a,
  .main-nav .music-toggle {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding-block: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
  }
  .hero {
    min-height: auto;
    padding: 24px 0 52px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
    border-radius: 30px;
    padding: 18px 14px 26px;
    gap: 8px;
  }
  .hero-grid::before {
    right: 14px;
    top: 16px;
    width: 108px;
    height: 42px;
    opacity: .6;
  }
  .hero-grid::after {
    left: 14px;
    bottom: 18px;
    width: 108px;
    height: 42px;
    opacity: .5;
  }
  .hero-copy {
    position: relative;
    order: 2;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 8px 6px 0;
    background: none;
    transform: none;
  }
  .hero-copy.reveal,
  .hero-copy.reveal.show {
    position: relative;
    transform: none;
  }
  .hero h1 { font-size: 48px; }
  .hero h1 span { font-size: 24px; }
  .hero-stage {
    position: relative;
    order: 1;
    inset: auto;
    width: 100%;
    height: clamp(330px, 78vw, 520px);
    min-height: 0;
  }
  .hero-stage.reveal,
  .hero-stage.reveal.show {
    position: relative;
  }
  .hero-bobby {
    width: min(58vw, 330px);
    left: -26px;
    top: 30px;
    bottom: auto;
  }
  .hero-yam {
    width: min(52vw, 300px);
    right: -20px;
    top: 54px;
    bottom: auto;
  }
  .hero-arch {
    right: 12px;
    width: min(42vw, 210px);
    height: min(62vw, 310px);
    top: 44px;
  }
  .hero-hearts-a { left: 47%; top: 10%; }
  .hero-hearts-b { right: 21%; top: 18%; }
  .hero-hearts-c { left: 51%; bottom: 20%; }
  .story-visual {
    min-height: auto;
    aspect-ratio: 4 / 5;
    padding: 10px;
    border-radius: 30px;
  }
  .story-visual::before {
    inset: 10px;
    border-radius: 24px;
  }
  .story-art {
    inset: 10px;
    border-radius: 24px;
  }
  .story-art-layer {
    object-position: 52% center;
  }
  .gallery-grid-ten,
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .gallery-large-card { grid-column: span 1; }
  .journey-timeline {
    padding-left: 58px;
    gap: 24px;
  }
  .journey-timeline::before {
    left: 24px;
  }
  .journey-card::before {
    left: -43px;
  }
  .journey-card::after {
    left: -25px;
    width: 18px;
  }
  .section { padding: 74px 0; }
  .hero.section { padding: 24px 0 52px; }
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .section { padding: 58px 0; }
  .section::before {
    inset: 18px 6px;
    border-radius: 26px;
  }
  .brand-mark { font-size: 22px; }
  .hero { padding: 18px 0 42px; }
  .hero-grid {
    padding: 12px 10px 22px;
    gap: 2px;
    min-height: auto;
    border-radius: 28px;
  }
  .hero-grid::before,
  .hero-grid::after {
    width: 88px;
    height: 36px;
  }
  .hero-stage {
    height: min(88vw, 360px);
    min-height: 312px;
    border-radius: 24px;
  }
  .hero-copy {
    width: 100%;
    padding: 0 2px;
  }
  .hero-copy.reveal,
  .hero-copy.reveal.show {
    transform: none;
  }
  .eyebrow {
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: .12em;
  }
  .hero h1 {
    font-size: clamp(38px, 11vw, 43px);
    margin: 13px 0 10px;
  }
  .hero h1 span {
    font-size: clamp(17px, 5vw, 20px);
    margin-top: 5px;
  }
  .hero-text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 330px;
  }
  .countdown-note,
  .music-note {
    font-size: 13px;
    line-height: 1.55;
  }
  .hero-bobby {
    width: min(58vw, 236px);
    left: -24px;
    top: 30px;
    bottom: auto;
  }
  .hero-yam {
    width: min(53vw, 218px);
    right: -18px;
    top: 48px;
    bottom: auto;
  }
  .hero-arch {
    width: min(42vw, 162px);
    height: min(58vw, 226px);
    right: 12px;
    top: 42px;
    border-width: 4px;
  }
  .hero-hearts { font-size: 20px; }
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    max-width: none;
    margin: 18px auto 8px;
  }
  .countdown-item {
    min-width: 0;
    min-height: 68px;
    padding: 11px 4px 9px;
    border-radius: 15px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(211,174,125,0.32);
    box-shadow: 0 14px 34px rgba(151,118,123,0.12);
  }
  .countdown-item span { font-size: clamp(21px, 6.3vw, 25px); }
  .countdown-item small {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0;
  }
  .event-pill-wrap {
    gap: 8px;
    margin-top: 14px;
    width: 100%;
  }
  .event-date-pill {
    width: 100%;
    padding: 14px 12px 16px;
  }
  .event-date-pill strong {
    font-size: clamp(28px, 7.8vw, 34px);
  }
  .event-date-pill .event-time {
    line-height: 1.22;
  }
  .event-date-pill .event-clock {
    font-size: 23px;
  }
  .event-date-pill .event-place {
    font-size: 15px;
  }
  .event-rsvp {
    min-height: 44px;
    margin-top: 14px;
    padding: 10px 28px;
  }
  .hashtag-pill {
    padding: 9px 13px;
  }
  .hashtag-pill strong,
  .hashtag-pill span {
    display: inline;
    font-size: 12px;
  }
  .hashtag-pill strong {
    margin-right: 8px;
  }
  .gallery-card,
  .event-card,
  .rsvp-copy,
  .rsvp-form {
    border-radius: 24px;
    padding: 22px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .section-heading h2,
  .rsvp-copy h2 {
    font-size: clamp(28px, 8vw, 36px);
  }
  .section-heading p,
  .rsvp-copy p,
  .event-card p,
  .gallery-card figcaption {
    font-size: 14px;
    line-height: 1.65;
  }
  .event-card h3 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }
  .image-only-section { padding-top: 54px; }
  .journey-timeline {
    padding: 0 0 0 38px;
    gap: 18px;
  }
  .journey-timeline::before {
    left: 15px;
    top: 18px;
    bottom: 18px;
    width: 2px;
  }
  .journey-card {
    padding: 7px;
    border-radius: 15px;
  }
  .journey-card::before {
    left: -29px;
    width: 15px;
    height: 15px;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.82);
  }
  .journey-card::after {
    left: -16px;
    width: 12px;
  }
  .journey-card img {
    border-radius: 10px;
  }
  .dress-palette {
    gap: 8px;
  }
  .color-chip {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13px;
  }
  .color-chip i {
    width: 20px;
    height: 20px;
  }
  .gallery-photo { min-height: 220px; }
}

@media (max-width: 380px) {
  .container { width: min(var(--container), calc(100% - 16px)); }
  .brand-mark { font-size: 20px; }
  .hero-grid {
    padding: 10px 8px 20px;
  }
  .hero-stage {
    height: 292px;
    min-height: 292px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero h1 span {
    font-size: 16px;
  }
  .countdown {
    gap: 5px;
  }
  .countdown-item {
    min-height: 64px;
    padding: 10px 3px 8px;
    border-radius: 13px;
  }
  .countdown-item span {
    font-size: 20px;
  }
  .countdown-item small {
    font-size: 9px;
  }
  .journey-timeline {
    padding-left: 34px;
  }
  .journey-card::before {
    left: -27px;
  }
  .event-date-pill strong {
    font-size: 26px;
  }
  .event-date-pill .event-clock {
    font-size: 21px;
  }
  .event-date-pill .event-place {
    font-size: 14px;
  }
}
