:root {
  --cream: #FFF5F6;
  --cream-deep: #FFE8EB;
  --rosewood: #A64E5E;
  --rosewood-soft: #C27081;
  --gold: #C39A3E;
  --gold-soft: #DCC07E;
  --ink: #3D2527;
  --ink-soft: #6E4E52;
  --maroon-1: #38151A;
  --maroon-2: #4D1F25;
  --maroon-3: #61272F;
  --divider: rgba(195, 154, 62, 0.45);
  --card-bg: #FFFCF8;
  --light-text: #F3E4C9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

h1, h2, h3 {
  font-weight: 500;
  color: var(--rosewood);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* =========================================================
   ENTRY CURTAIN / COVER OVERLAY
   ========================================================= */
#cover {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

#cover.opened {
  pointer-events: none;
}

.fold {
  position: relative;
  width: 50%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 65%),
    linear-gradient(160deg, #FFFDFD 0%, #FFF0F2 35%, #FFE1E5 65%, #FFCCD2 100%);
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.18, 1), opacity 1.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10vh;
}

.fold.left {
  border-right: 1px solid rgba(195, 154, 62, 0.25);
  align-items: flex-end;
  padding-right: clamp(24px, 5vw, 64px);
}

.fold.right {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  align-items: flex-start;
  padding-left: clamp(24px, 5vw, 64px);
}

#cover.opened .fold.left {
  transform: translateX(-104%);
  opacity: 0.92;
}

#cover.opened .fold.right {
  transform: translateX(104%);
  opacity: 0.92;
}

.cover-name {
  text-align: center;
  transition: opacity 0.4s ease;
}

.cover-name .n {
  display: block;
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(38px, 8vw, 56px);
  line-height: 1.05;
  color: var(--rosewood);
}

.cover-name .role {
  display: block;
  margin-top: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cover-top {
  position: absolute;
  top: clamp(32px, 7vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  width: min(88vw, 520px);
  text-align: center;
  z-index: 2;
  transition: opacity 0.45s ease;
}

.cover-top .verse {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--ink-soft);
}

.cover-top .ref {
  margin-top: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.cover-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  transition: opacity 0.45s ease, transform 0.55s ease;
}

#cover.opened .cover-top,
#cover.opened .cover-center {
  opacity: 0;
}

#cover.opened .cover-center {
  transform: translate(-50%, -50%) scale(0.9);
}

.seal {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(166, 78, 94, 0.45);
  background: radial-gradient(circle at 35% 30%, #FFF9FA 0%, #FFE4E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseRing 2.6s ease-in-out infinite;
}

.seal-text {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 42px;
  color: var(--rosewood);
  line-height: 1;
  padding-top: 6px;
}

.tap-label {
  margin-top: 18px;
  font-family: 'EB Garamond', serif;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: floatY 2.4s ease-in-out infinite;
}

/* =========================================================
   FLOATING MUSIC BUTTON
   ========================================================= */
#mute-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: rgba(255, 252, 248, 0.94);
  color: var(--rosewood);
  box-shadow: 0 8px 24px -6px rgba(61, 37, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

#mute-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

#mute-btn svg {
  width: 20px;
  height: 20px;
}

.music-bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-bars span {
  display: block;
  width: 2.5px;
  height: 100%;
  background-color: var(--rosewood);
  border-radius: 2px;
  animation: barDance 0.8s ease-in-out infinite alternate;
}

.music-bars span:nth-child(2) {
  animation-delay: 0.2s;
  height: 70%;
}

.music-bars span:nth-child(3) {
  animation-delay: 0.4s;
  height: 90%;
}

.music-bars span:nth-child(4) {
  animation-delay: 0.15s;
  height: 55%;
}

#mute-btn.playing #music-paused-icon {
  display: none;
}

#mute-btn.playing .music-bars {
  display: flex;
}

/* =========================================================
   STICKY NAVIGATION BAR
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(255, 245, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px -8px rgba(61, 37, 39, 0.15);
  padding: 12px 8vw;
}

.nav-brand {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 32px;
  line-height: 1;
  color: var(--rosewood);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--rosewood);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 7px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--rosewood);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 499;
  background: rgba(255, 245, 246, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 12px 28px -10px rgba(61, 37, 39, 0.2);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 24px;
  gap: 14px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 16px;
}

.mobile-menu a:hover {
  color: var(--rosewood);
}

/* =========================================================
   MAIN CONTENT REVEAL
   ========================================================= */
main {
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

main.show {
  opacity: 1;
}

/* =========================================================
   SHARED SECTION UTILITIES
   ========================================================= */
section {
  padding: 90px 8vw;
  text-align: center;
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  font-style: italic;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow.light {
  color: var(--gold-soft);
}

.script-title {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(42px, 7vw, 60px);
  line-height: 1.15;
  color: var(--rosewood);
  margin-top: 8px;
}

.divider {
  width: 220px;
  margin: 20px auto 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.divider span {
  flex: 1;
  height: 1px;
  background-color: var(--divider);
}

.divider i {
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  transform: rotate(45deg);
}

.divider.light span {
  background-color: rgba(220, 192, 126, 0.45);
}

.divider.light i {
  background-color: var(--gold-soft);
}

/* =========================================================
   1. HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 8vw 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: kenBurns 22s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 245, 246, 0.52) 0%, rgba(255, 245, 246, 0.76) 65%),
    linear-gradient(to bottom, rgba(255, 245, 246, 0.72) 0%, rgba(255, 232, 235, 0.55) 50%, rgba(255, 245, 246, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-verse {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-ref {
  margin-top: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-names {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(52px, 12vw, 96px);
  line-height: 1.05;
  color: var(--rosewood);
  margin: 22px 0 14px;
}

.hero-date {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-tag {
  margin-top: 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--rosewood-soft);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 44px;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scroll-cue .chev {
  width: 18px;
  height: 18px;
  color: var(--gold);
  animation: chevDown 1.8s ease-in-out infinite;
}

/* =========================================================
   2. COUNTDOWN SECTION
   ========================================================= */
.countdown {
  background: linear-gradient(160deg, var(--maroon-1) 0%, var(--maroon-2) 55%, var(--maroon-3) 100%);
  color: var(--light-text);
  padding: 84px 8vw;
}

.countdown h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  color: var(--light-text);
  margin-top: 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 150px));
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.cbox {
  position: relative;
  border: 1px solid rgba(220, 192, 126, 0.4);
  padding: 26px 14px 22px;
  background: rgba(25, 12, 14, 0.22);
}

.cbox::before,
.cbox::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: var(--gold-soft);
  transform: translateX(-50%) rotate(45deg);
}

.cbox::before {
  top: -4px;
}

.cbox::after {
  bottom: -4px;
}

.cnum {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  color: var(--light-text);
}

.clabel {
  display: block;
  margin-top: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* =========================================================
   3. INVITATION SECTION
   ========================================================= */
.invite {
  background-color: var(--cream);
}

.invite-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 20px;
  color: var(--ink);
}

.invite-lead em {
  color: var(--rosewood-soft);
  font-style: italic;
}

.couple-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  margin: 46px auto 40px;
  max-width: 780px;
}

.couple-col {
  min-width: 0;
}

.couple-col .name {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--rosewood);
  margin: 8px 0 6px;
}

.couple-col .parents {
  font-size: 16.5px;
  font-style: italic;
  color: var(--ink-soft);
}

.amp {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 52px;
  color: var(--gold);
  line-height: 1;
}

.invite-note {
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

.sharing-block {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(195, 154, 62, 0.25);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.sharing-names {
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--rosewood);
}

/* =========================================================
   4. MEET THE COUPLE SECTION
   ========================================================= */
.couple-portraits {
  background-color: var(--cream-deep);
}

.portraits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  justify-content: center;
  align-items: start;
  gap: 48px;
  margin-top: 10px;
}

.portrait-card.offset {
  margin-top: 0;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--divider);
  background-color: var(--card-bg);
  margin-bottom: 22px;
  box-shadow: 0 18px 40px -20px rgba(74, 32, 24, 0.35);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 37, 39, 0.4) 0%, transparent 40%);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.portrait-frame:hover img {
  transform: scale(1.04);
}

.portrait-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 6px 0 8px;
}

.portrait-card .bio {
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 290px;
  margin: 0 auto;
}

/* =========================================================
   5. OUR STORY SECTION
   ========================================================= */
.story-section {
  background-color: var(--cream);
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 928px;
  margin: 0 auto;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  box-shadow: 0 16px 36px -22px rgba(74, 32, 24, 0.28);
  text-align: left;
  overflow: hidden;
}

.story-item.reversed .story-media {
  order: 2;
}

.story-item.reversed .story-body {
  order: 1;
}

.story-media {
  min-height: 340px;
  max-height: 380px;
  overflow: hidden;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
}

.story-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.story-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 28px);
  color: var(--rosewood);
  margin: 8px 0 14px;
}

.story-desc {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ink);
}

/* =========================================================
   6. EVENTS SECTION
   ========================================================= */
.events {
  background-color: var(--cream-deep);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}

.card {
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  padding: 36px 28px;
  text-align: left;
  box-shadow: 0 16px 36px -22px rgba(74, 32, 24, 0.28);
}

.card-script {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 38px;
  line-height: 1.15;
  color: var(--rosewood);
  margin: 6px 0 22px;
}

.card-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
}

.card-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--rosewood-soft);
  margin-top: 4px;
}

.card-row .t1 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.35;
}

.card-row .t2 {
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* =========================================================
   7. VENUE SECTION
   ========================================================= */
.venue {
  background-color: var(--cream);
}

.venue-card {
  max-width: 620px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 40px -22px rgba(74, 32, 24, 0.3);
}

.venue-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--rosewood-soft);
  margin: 14px 0 12px;
}

.venue-addr {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 28px;
}

.venue-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid var(--gold);
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rosewood);
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.venue-btn svg {
  width: 16px;
  height: 16px;
}

.venue-btn:hover {
  background-color: var(--rosewood);
  border-color: var(--rosewood);
  color: #ffffff;
}

/* =========================================================
   8. GALLERY SECTION
   ========================================================= */
.gallery-section {
  background-color: var(--cream-deep);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 928px;
  margin: 0 auto;
}

.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--divider);
  background-color: var(--card-bg);
  padding: 0;
  box-shadow: 0 14px 30px -20px rgba(74, 32, 24, 0.35);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

/* =========================================================
   9. CLOSING FOOTER SECTION
   ========================================================= */
.closing {
  background: linear-gradient(170deg, var(--maroon-1) 0%, var(--maroon-2) 55%, var(--maroon-3) 100%);
  color: var(--light-text);
  padding: 96px 8vw;
  text-align: center;
}

.closing .names {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(48px, 10vw, 80px);
  line-height: 1.1;
  color: var(--light-text);
}

.closing-date {
  margin-top: 14px;
  font-family: 'EB Garamond', serif;
  font-size: 12.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.closing .msg {
  margin-top: 22px;
  font-style: italic;
  font-size: 19px;
  color: var(--light-text);
}

/* =========================================================
   LIGHTBOX MODAL
   ========================================================= */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(35, 15, 18, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(220, 192, 126, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--light-text);
  font-size: 36px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: var(--gold-soft);
  transform: scale(1.1);
}

/* =========================================================
   KEYFRAME ANIMATIONS
   ========================================================= */
@keyframes pulseRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(166, 78, 94, 0.28);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(166, 78, 94, 0);
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

@keyframes chevDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@keyframes barDance {
  0% {
    transform: scaleY(0.35);
  }
  100% {
    transform: scaleY(1);
  }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 768px) {
  .portraits-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
    gap: 28px;
  }

  .story-item {
    grid-template-columns: 1fr;
  }

  .story-item.reversed .story-media,
  .story-item.reversed .story-body {
    order: initial;
  }

  .story-media {
    min-height: 280px;
    max-height: 340px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 150px));
    gap: 16px;
  }

  .portraits-grid {
    grid-template-columns: minmax(0, 330px);
    gap: 40px;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 340px);
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 400px);
    justify-content: center;
  }
}

@media (max-width: 600px) {
  section {
    padding: 70px 7vw;
  }

  .couple-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .amp {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .fold.left {
    padding-right: 16px;
  }

  .fold.right {
    padding-left: 16px;
  }

  .cover-name .n {
    font-size: clamp(32px, 8vw, 44px);
  }
}
