/* ==========================================================================
   AMOTH & SAYURI — WEDDING INVITATION
   Strict Design System:
   - Olive: #66724D
   - Deep Olive: #3F4931
   - Ivory: #FAF8F1
   - White: #FFFFFF
   Fonts:
   - Montserrat
   - Great Vibes
   ========================================================================== */

:root {
  --olive: #66724d;
  --deep-olive: #3f4931;
  --ivory: #faf8f1;
  --white: #fff;
  --olive-rgb: 102, 114, 77;
  --font-body: "Montserrat", sans-serif;
  --font-script: "Great Vibes", cursive;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ivory);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ivory);
  color: var(--deep-olive);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-weight: 400;
  overflow-x: hidden;
  /* Prevent font-swap flash from causing layout shifts */
  text-rendering: optimizeSpeed;
  font-synthesis: none;
}

body.intro-active {
  overflow: hidden;
}

/* Accessibility */
.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;
}

button, a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--deep-olive);
  outline-offset: 4px;
}

/* ==========================================================================
/* ==========================================================================
   CINEMATIC OLIVE CLOUD DOOR ENTRANCE
   ========================================================================== */
.door-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #faf8f1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
  touch-action: none;
}

.door-intro-overlay.intro-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stage {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e5e9d9;
}

.sky {
  position: absolute;
  inset: -6%;
  background: url('assets/clouds.png') center/cover no-repeat;
  transform: scale(calc(1 + var(--p, 0) * .25));
  filter: saturate(.7);
  transition: transform 0.05s linear;
}

.haze {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(247, 247, 234, 0.4), transparent 55%, rgba(255, 255, 255, 0.6));
  pointer-events: none;
}

.door-header {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: clamp(16px, 4vw, 60px);
  right: clamp(16px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
  pointer-events: none;
  padding-right: 125px; /* Clean clearance for Skip Intro button */
}

.brand {
  color: var(--deep-olive);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(15px, 2vw, 21px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand i {
  font-style: italic;
}

.edition {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 0.2em;
  color: var(--deep-olive);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .edition {
    display: none;
  }
}

.intro {
  position: absolute;
  top: clamp(10%, 14vh, 18%);
  width: 100%;
  text-align: center;
  z-index: 12;
  opacity: var(--intro, 1);
  transform: translateY(calc(var(--p, 0) * -70px));
  pointer-events: none;
  padding: 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.24em;
  color: var(--olive);
  font-weight: 600;
  text-transform: uppercase;
}

.intro h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.12;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--deep-olive);
}

.portal-wrap {
  position: absolute;
  left: 50%;
  top: clamp(40%, 46vh, 48%);
  width: clamp(210px, 25vw, 340px);
  height: clamp(300px, 46vh, 460px);
  transform: translate(-50%, -20%) scale(var(--zoom, 1));
  transform-origin: center 60%;
  perspective: 1200px;
  opacity: var(--portal-opacity, 1);
  cursor: pointer;
  z-index: 10;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.portal {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.beyond {
  position: absolute;
  inset: 10px;
  background: url('assets/clouds.png') center/160% no-repeat;
  box-shadow: 0 0 100px rgba(255, 255, 238, 0.95), inset 0 0 40px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 1) 0%, rgba(253, 253, 245, 0.85) 60%, rgba(240, 235, 210, 0.6) 100%);
  opacity: calc(0.3 + var(--open, 0) * 0.7);
}

.frame {
  position: absolute;
  inset: -12px;
  border: 15px solid #eaeadd;
  box-shadow: inset 0 0 0 2px #aeb59f, 0 0 0 2px #fafbf3, 10px 16px 25px rgba(63, 73, 49, 0.28), -2px 0 0 5px #d3d7c8;
  pointer-events: none;
}

.doors {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.door {
  position: absolute;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #586443, #7a8560 48%, #67734e);
  border: 4px solid #879274;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 0 2px #424e32, inset 0 0 18px rgba(63, 73, 49, 0.45);
  backface-visibility: visible;
  will-change: transform;
  cursor: pointer;
}

.door.left {
  left: 0;
  transform-origin: left center;
  transform: rotateY(calc(var(--open, 0) * -105deg));
}

.door.right {
  right: 0;
  transform-origin: right center;
  transform: rotateY(calc(var(--open, 0) * 105deg));
  background: linear-gradient(90deg, #67734e, #7a8560 48%, #586443);
}

.panel {
  position: absolute;
  left: 12%;
  right: 12%;
  border: 6px ridge #879272;
  box-shadow: inset 3px 5px 14px rgba(38, 48, 31, 0.45);
  background: #65734f;
}

.panel.top {
  top: 7%;
  height: 52%;
}

.panel.bottom {
  top: 66%;
  height: 26%;
}

.knob {
  position: absolute;
  top: 60%;
  width: 8px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, #8b7951, #f4e8c1, #a49164);
  box-shadow: 1px 3px 5px rgba(38, 48, 31, 0.45);
}

.door.left .knob {
  right: 8%;
}

.door.right .knob {
  left: 8%;
}

.threshold {
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: -20px;
  height: 16px;
  background: #ecece0;
  box-shadow: 0 4px 0 #b9bda9, 0 8px 0 #dadfcd, 0 16px 32px rgba(89, 102, 68, 0.35);
}

.foreground {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -22%;
  height: 52%;
  background: url('assets/clouds.png') center bottom/cover no-repeat;
  mask-image: linear-gradient(transparent, #000 40%);
  -webkit-mask-image: linear-gradient(transparent, #000 40%);
  transform: translateY(calc(var(--p, 0) * 45%));
  pointer-events: none;
  opacity: 0.95;
  z-index: 11;
}

/* Door Trigger Button Action */
.door-action-wrap {
  position: absolute;
  bottom: clamp(70px, 12vh, 100px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  opacity: var(--intro, 1);
  transition: opacity 0.3s ease;
}

.open-invitation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--deep-olive);
  color: var(--ivory);
  border: 1px solid var(--deep-olive);
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(63, 73, 49, 0.2);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.open-invitation-btn svg {
  width: 16px;
  height: 16px;
  color: #E8E0D0;
  transition: transform 0.3s ease;
}

.open-invitation-btn:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(63, 73, 49, 0.25);
}

.door-footer {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: clamp(20px, 5vw, 60px);
  right: clamp(20px, 5vw, 60px);
  z-index: 18;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--deep-olive);
  pointer-events: none;
}

.chapter {
  font-weight: 500;
}

.progress-label {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  white-space: nowrap;
  opacity: var(--intro, 1);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.scroll-line {
  height: 32px;
  width: 1px;
  background: rgba(102, 114, 77, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-line:after {
  content: '';
  position: absolute;
  width: 1px;
  height: 14px;
  background: var(--deep-olive);
  animation: scrollCueAnim 2s infinite;
}

@keyframes scrollCueAnim {
  from { transform: translateY(-16px); }
  to { transform: translateY(34px); }
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(102, 114, 77, 0.15);
  z-index: 25;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--olive);
  width: calc(var(--p, 0) * 100%);
  transition: width 0.05s linear;
}

.skip-intro, .replay-intro {
  z-index: 120;
  border: 1px solid rgba(var(--olive-rgb), .42);
  color: var(--deep-olive);
  letter-spacing: .15em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  background: #faf8f1c7;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 600;
  transition: background .24s, color .24s, transform .24s;
}

.skip-intro {
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  padding: 11px 17px;
  position: absolute;
}

.replay-intro {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 11px 16px;
  position: fixed;
  box-shadow: 0 12px 35px rgba(63, 73, 49, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.replay-intro.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.skip-intro:hover, .replay-intro:hover {
  color: var(--white);
  background: var(--deep-olive);
  transform: translateY(-2px);
}

/* ==========================================================================
   AMBIENT AUDIO CONTROL
   ========================================================================== */
.ambient-audio-control {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  z-index: 120;
}

.audio-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #faf8f1c7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--olive-rgb), .42);
  color: var(--deep-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(63, 73, 49, 0.08);
}

.audio-btn svg {
  width: 17px;
  height: 17px;
}

.audio-btn:hover {
  background: var(--deep-olive);
  color: var(--white);
  transform: scale(1.05);
}

.audio-btn.playing .audio-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--olive);
  animation: pulseAudio 2s infinite ease-out;
}

@keyframes pulseAudio {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   INVITATION PAGE
   ========================================================================== */
.invitation-page {
  background: linear-gradient(90deg, rgba(var(--olive-rgb), .025) 1px, transparent 1px),
              linear-gradient(rgba(var(--olive-rgb), .025) 1px, transparent 1px),
              var(--ivory);
  background-size: 38px 38px;
  min-height: 100vh;
  position: relative;
  overflow: clip;
}

/* Delicate Ambient December Snowfall */
.ambient-snow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.page-cloud {
  background: var(--white);
  filter: blur(45px);
  opacity: .72;
  pointer-events: none;
  border-radius: 50%;
  width: 480px;
  height: 260px;
  position: absolute;
}

.page-cloud-left {
  top: 10vh;
  left: -250px;
}

.page-cloud-right {
  top: 60vh;
  right: -260px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  place-items: center;
  min-height: 100svh;
  padding: 82px 22px 60px;
  display: grid;
  position: relative;
}

.hero-content {
  z-index: 2;
  text-align: center;
  width: min(100%, 770px);
  position: relative;
}

.hero-arch {
  border: 1px solid rgba(var(--olive-rgb), .34);
  border-bottom: 0;
  border-radius: 50% 50% 0 0/38% 38% 0 0;
  width: min(82vw, 620px);
  height: 78%;
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%);
}

.hero-arch:before, .hero-arch:after {
  content: "";
  background: rgba(var(--olive-rgb), .55);
  width: 42px;
  height: 1px;
  position: absolute;
  bottom: 0;
}

.hero-arch:before { left: -21px; }
.hero-arch:after { right: -21px; }

.arch-leaf {
  border: 1px solid var(--olive);
  background: rgba(var(--olive-rgb), .08);
  border-radius: 100% 0;
  width: 27px;
  height: 12px;
  position: absolute;
}

.arch-leaf-one {
  top: 24%;
  left: -10px;
  transform: rotate(28deg);
}

.arch-leaf-two {
  top: 37%;
  left: -19px;
  transform: rotate(62deg);
}

.arch-leaf-three {
  top: 24%;
  right: -10px;
  transform: scaleX(-1) rotate(28deg);
}

.arch-leaf-four {
  top: 37%;
  right: -19px;
  transform: scaleX(-1) rotate(62deg);
}

.eyebrow {
  color: var(--olive);
  letter-spacing: .29em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-size: clamp(.62rem, 1.5vw, .74rem);
  font-weight: 600;
  line-height: 1.6;
}

.parents-line {
  color: var(--deep-olive);
  letter-spacing: .04em;
  justify-content: center;
  align-items: center;
  gap: 13px;
  font-size: clamp(.78rem, 2vw, .92rem);
  display: flex;
}

.parents-line i {
  color: var(--olive);
  font-family: var(--font-script);
  font-size: 1.55rem;
  font-style: normal;
}

.invitation-copy {
  color: rgba(63, 73, 49, 0.72);
  max-width: 540px;
  margin: 20px auto 32px;
  font-size: clamp(.76rem, 1.8vw, .9rem);
  font-weight: 300;
  line-height: 1.9;
}

.couple-names {
  color: var(--deep-olive);
  font-family: var(--font-script);
  letter-spacing: -.02em;
  text-shadow: 0 16px 45px rgba(63, 73, 49, 0.08);
  flex-direction: column;
  align-items: center;
  margin: 0 0 18px;
  font-size: clamp(5.1rem, 17vw, 9.2rem);
  font-weight: 400;
  line-height: .66;
  /* Slowed to 12s — prevents jitter/glitch appearance */
  animation: 12s ease-in-out infinite names-float;
  display: flex;
  will-change: transform;
  backface-visibility: hidden;
}

.couple-names b {
  color: var(--olive);
  font-family: var(--font-body);
  letter-spacing: .04em;
  margin: .18em 0 .03em;
  font-size: .19em;
  font-weight: 300;
}

@keyframes names-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.save-date {
  border-top: 1px solid rgba(var(--olive-rgb), .38);
  border-bottom: 1px solid rgba(var(--olive-rgb), .38);
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 13px 23px;
  display: inline-flex;
}

.save-date span {
  color: var(--olive);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 600;
}

.save-date strong {
  letter-spacing: .08em;
  font-size: clamp(.72rem, 2vw, .88rem);
  font-weight: 500;
}

/* Countdown container */
.countdown-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid rgba(var(--olive-rgb), 0.25);
  padding: 0.8rem 1.4rem;
  border-radius: 16px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(63, 73, 49, 0.05);
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}

.countdown-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-olive);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  font-weight: 600;
}

.countdown-sep {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--olive);
  margin-top: -6px;
}

.discover-link {
  width: max-content;
  color: var(--olive);
  letter-spacing: .17em;
  text-transform: uppercase;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 38px auto 0;
  font-size: .58rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  transition: transform 0.2s ease;
}

.discover-link:hover {
  transform: translateY(2px);
}

.discover-link span {
  font-size: 1rem;
  animation: 2.4s ease-in-out infinite scroll-cue;
  display: inline-block;
  will-change: transform;
}

@keyframes scroll-cue {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* ==========================================================================
   CELEBRATION SECTION
   ========================================================================== */
.celebration-section {
  background: var(--deep-olive);
  color: var(--ivory);
  padding: clamp(90px, 12vw, 150px) 22px;
  position: relative;
}

.celebration-section:before, .celebration-section:after {
  content: "";
  pointer-events: none;
  width: 100%;
  height: 70px;
  position: absolute;
  left: 0;
}

.celebration-section:before {
  background: linear-gradient(rgba(250, 248, 241, 0.14), transparent);
  top: 0;
}

.celebration-section:after {
  background: linear-gradient(transparent, rgba(250, 248, 241, 0.07));
  bottom: 0;
}

.section-heading {
  text-align: center;
  width: min(100%, 760px);
  margin: 0 auto 56px;
}

.celebration-section .eyebrow {
  color: rgba(250, 248, 241, 0.66);
}

.section-heading h2 {
  font-family: var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
}

.decorative-rule {
  background: rgba(250, 248, 241, 0.48);
  width: 60px;
  height: 2px;
  margin: 20px auto 0;
  display: block;
}

.venue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
}

.venue-card {
  background: rgba(250, 248, 241, 0.04);
  border: 1px solid rgba(250, 248, 241, 0.25);
  border-radius: 2px 72px 2px 2px;
  min-height: 440px;
  padding: clamp(32px, 5vw, 52px);
  transition: transform .35s, background .35s;
  position: relative;
  overflow: hidden;
}

.venue-card:nth-child(2) {
  border-radius: 72px 2px 2px;
}

.venue-card:hover {
  background: rgba(250, 248, 241, 0.09);
  transform: translateY(-5px);
}

.card-number {
  color: rgba(250, 248, 241, 0.08);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1;
  position: absolute;
  top: 18px;
  right: 24px;
}

.venue-card > p {
  color: rgba(250, 248, 241, 0.64);
  letter-spacing: .23em;
  text-transform: uppercase;
  margin: 22px 0 32px;
  font-size: .66rem;
  font-weight: 600;
}

.venue-card time {
  letter-spacing: .08em;
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 600;
  color: var(--ivory);
  display: block;
}

.venue-card h3 {
  max-width: 390px;
  font-family: var(--font-body);
  letter-spacing: .03em;
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}

.venue-hall {
  color: var(--ivory);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .08em;
  margin-bottom: 2px;
  display: block;
}

.venue-place {
  color: rgba(250, 248, 241, 0.75);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 500;
  display: block;
}

.venue-card a {
  color: var(--ivory);
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 248, 241, 0.5);
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: .62rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  position: absolute;
  bottom: 42px;
  left: clamp(32px, 5vw, 52px);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.venue-card a:hover {
  border-color: var(--white);
  opacity: 0.9;
}

/* ==========================================================================
   PHOTO ALBUM COLLAGE SECTION
   ========================================================================== */
.gallery-section {
  padding: clamp(70px, 10vw, 120px) 22px;
  background: var(--ivory);
  position: relative;
}

.gallery-section .section-heading h2 {
  color: var(--deep-olive);
}

.gallery-section .decorative-rule {
  background: rgba(var(--olive-rgb), 0.4);
}

.collage-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: clamp(16px, 3vw, 28px);
  width: min(100%, 1040px);
  margin: 0 auto;
}

.collage-item {
  position: relative;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.collage-item:hover {
  transform: translateY(-8px) scale(1.02) !important;
  z-index: 10;
}

/* Creative asymmetric masonry collage positioning — 5 images */
.collage-item-1 {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  transform: rotate(-1.5deg);
}

.collage-item-2 {
  grid-column: 8 / span 5;
  grid-row: 1 / span 1;
  transform: rotate(2deg);
}

.collage-item-3 {
  grid-column: 8 / span 5;
  grid-row: 2 / span 1;
  transform: rotate(-1deg);
}

.collage-item-4 {
  grid-column: 1 / span 6;
  grid-row: 3 / span 1;
  transform: rotate(1.8deg);
}

.collage-item-5 {
  grid-column: 7 / span 6;
  grid-row: 3 / span 1;
  transform: rotate(-1.2deg);
}

.collage-frame {
  background: var(--white);
  padding: 12px 12px 28px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--olive-rgb), 0.18);
  box-shadow: 0 15px 35px rgba(63, 73, 49, 0.1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.collage-img {
  width: 100%;
  height: clamp(220px, 30vw, 340px);
  object-fit: cover;
  object-position: center 20%; /* Prioritizes faces */
  border-radius: 8px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Specific 4:3 Aspect Ratio for Cherished Love (Collage Item 1) */
.collage-item-1 .collage-img {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 260px;
}

/* Balanced heights for items 2, 3, 4, 5 */
.collage-item-2 .collage-img,
.collage-item-3 .collage-img {
  height: clamp(190px, 24vw, 270px);
}

.collage-item-4 .collage-img,
.collage-item-5 .collage-img {
  height: clamp(220px, 28vw, 300px);
}

/* Black & White artistic treatment for item 3 — restores on hover */
.collage-item-3 .collage-img {
  filter: grayscale(100%) contrast(1.08) brightness(1.04);
}
.collage-item-3:hover .collage-img {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.04);
}

.collage-item:hover .collage-img {
  transform: scale(1.04);
}

.collage-overlay {
  margin-top: 10px;
  text-align: center;
}

.collage-caption {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--deep-olive);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   RSVP SECTION
   ========================================================================== */
.rsvp-section {
  background: var(--ivory);
  padding: clamp(90px, 13vw, 160px) 22px;
}

.rsvp-panel {
  border: 1px solid rgba(var(--olive-rgb), .3);
  background: radial-gradient(circle at 8% 8%, rgba(var(--olive-rgb), .11), transparent 28%), var(--white);
  border-radius: 100px 2px;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(34px, 7vw, 80px);
  display: grid;
  box-shadow: 0 30px 90px rgba(63, 73, 49, 0.08);
}

.rsvp-copy h2 {
  color: var(--deep-olive);
  font-family: var(--font-body);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.rsvp-copy > p:last-child {
  color: rgba(63, 73, 49, 0.75);
  margin: 0;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.8;
}

.contact-list {
  gap: 14px;
  display: grid;
}

.contact-card {
  border: 1px solid rgba(var(--olive-rgb), .21);
  background: var(--ivory);
  padding: 22px;
  border-radius: 4px;
}

.contact-card strong {
  letter-spacing: .08em;
  margin-bottom: 17px;
  font-size: clamp(1rem, 3vw, 1.22rem);
  font-weight: 500;
  display: block;
}

.contact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}

.contact-actions a {
  border: 1px solid var(--olive);
  min-height: 44px;
  color: var(--olive);
  letter-spacing: .14em;
  text-transform: uppercase;
  place-items: center;
  font-size: .6rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .22s, color .22s;
  display: grid;
}

.contact-actions a:last-child, .contact-actions a:hover {
  color: var(--white);
  background: var(--olive);
}

.contact-actions a:last-child:hover {
  background: var(--deep-olive);
}

/* ==========================================================================
   RSVP INTERACTIVE FORM
   ========================================================================== */
.rsvp-form-wrap {
  margin-bottom: 28px;
}

.rsvp-input-group {
  margin-bottom: 20px;
}

.rsvp-field-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}

.rsvp-name-input {
  width: 100%;
  border: 1.5px solid rgba(var(--olive-rgb), .35);
  background: var(--ivory);
  border-radius: 10px;
  color: var(--deep-olive);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 18px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
}

.rsvp-name-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(var(--olive-rgb), .12);
}

.rsvp-name-input::placeholder {
  color: rgba(63, 73, 49, 0.38);
}

.rsvp-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rsvp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, opacity .2s;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.rsvp-btn:hover:not(:disabled) { transform: translateY(-2px); }
.rsvp-btn:active:not(:disabled) { transform: translateY(0) scale(.98); }

.rsvp-btn-icon { font-size: 1.1rem; }

.rsvp-btn-yes {
  background: var(--deep-olive);
  color: var(--ivory);
  box-shadow: 0 8px 22px rgba(63, 73, 49, 0.22);
}
.rsvp-btn-yes:hover:not(:disabled) {
  background: var(--olive);
  box-shadow: 0 12px 28px rgba(63, 73, 49, 0.28);
}

.rsvp-btn-no {
  background: var(--white);
  color: var(--deep-olive);
  border: 1.5px solid rgba(var(--olive-rgb), .3);
  box-shadow: 0 4px 14px rgba(63, 73, 49, 0.08);
}
.rsvp-btn-no:hover:not(:disabled) {
  border-color: var(--olive);
  box-shadow: 0 8px 18px rgba(63, 73, 49, 0.12);
}

.rsvp-field-error {
  color: #c0392b;
  font-size: .78rem;
  font-weight: 500;
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
}

/* Success state */
.rsvp-success-state {
  text-align: center;
  padding: 20px 0;
}

.rsvp-success-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  animation: successBounce .6s cubic-bezier(.16,1,.3,1);
}

@keyframes successBounce {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.rsvp-success-name {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--deep-olive);
  margin-bottom: 8px;
}

.rsvp-success-msg {
  color: rgba(63, 73, 49, 0.7);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.rsvp-btn-reset {
  background: none;
  border: 1px solid rgba(var(--olive-rgb), .35);
  border-radius: 99px;
  color: var(--olive);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.rsvp-btn-reset:hover {
  background: var(--olive);
  color: var(--ivory);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.invitation-footer {
  color: var(--ivory);
  background: var(--olive);
  text-align: center;
  padding: 70px 22px 90px;
}

.invitation-footer p {
  letter-spacing: .19em;
  text-transform: uppercase;
  margin: 0;
  font-size: .62rem;
  font-weight: 500;
}

.invitation-footer h2 {
  font-family: var(--font-script);
  margin: 18px 0 28px;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

.invitation-footer h2 span {
  font-family: var(--font-body);
  font-size: .22em;
  font-weight: 300;
}

.invitation-footer a {
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250, 248, 241, 0.5);
  padding-bottom: 7px;
  font-size: .58rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s ease;
}

.invitation-footer a:hover {
  border-color: var(--white);
}

.admin-link {
  display: block !important;
  margin-top: 28px;
  font-size: .52rem !important;
  opacity: .35;
  letter-spacing: .2em !important;
  transition: opacity .2s !important;
}
.admin-link:hover { opacity: .8 !important; }

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity 1.1s var(--delay, 0s) ease, transform 1.1s var(--delay, 0s) cubic-bezier(.22, 1, .36, 1);
  transform: translateY(22px);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 760px) {
  .hero-section {
    min-height: 100svh;
    padding-top: 96px;
  }

  .hero-arch {
    width: min(86vw, 460px);
    height: 82%;
    top: 7%;
  }

  .parents-line {
    flex-direction: column;
    gap: 2px;
  }

  .parents-line i {
    line-height: .9;
  }

  .invitation-copy {
    max-width: 330px;
  }

  .couple-names {
    line-height: .7;
  }

  .save-date {
    flex-direction: column;
    gap: 7px;
    width: min(100%, 300px);
  }

  .collage-container {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .collage-item-1, .collage-item-2, .collage-item-3, .collage-item-4, .collage-item-5 {
    grid-column: span 1;
    grid-row: auto;
    transform: none !important;
  }

  .collage-item-1 {
    grid-column: 1 / span 2;
  }

  .collage-item-1 .collage-img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 230px;
  }

  .collage-item-2 .collage-img,
  .collage-item-3 .collage-img,
  .collage-item-4 .collage-img,
  .collage-item-5 .collage-img {
    height: clamp(170px, 42vw, 220px);
  }

  .venue-grid, .rsvp-panel {
    grid-template-columns: 1fr;
  }

  .venue-card, .venue-card:nth-child(2) {
    border-radius: 2px 54px 2px 2px;
    min-height: 390px;
  }

  .rsvp-panel {
    border-radius: 60px 2px;
    gap: 34px;
  }

  .intro-whisper {
    white-space: normal;
    text-align: center;
    max-width: 75vw;
    bottom: 72px;
  }
}

@media (max-width: 390px) {
  .hero-section, .celebration-section, .rsvp-section {
    padding-left: 17px;
    padding-right: 17px;
  }

  .couple-names {
    font-size: 4.5rem;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
