/* =====================================================================
   DESIGN TOKENS
   Palette: rich olive & warm beige wedding theme
   Deep olive #4F5B35 · Dark olive #354025 · Muted sage #8A9570
   Warm beige #E8DCC8 · Soft ivory #FAF6ED · Champagne gold #B79255
   Body text (dark warm brown) #352D27
   Type: Playfair Display (display serif) / Cormorant Garamond (body)
         / Parisienne (script accent)
===================================================================== */
:root{
  --ivory:        #FAF6ED;
  --paper:        #F3EAD9;
  --beige:        #E8DCC8;
  --champagne:    #EDE0C6;
  --gold:         #B79255;
  --gold-soft:    #C9A868;
  --gold-deep:    #8C6C36;
  --olive:        #4F5B35;
  --olive-soft:   #8A9570;
  --olive-deep:   #354025;
  --ink:          #352D27;
  --ink-soft:     #5C4F42;
  --wax:          #6E2430;
  --wax-light:    #8B3340;
  --line:         rgba(79, 91, 53, 0.32);
  --shadow-soft:  0 24px 60px rgba(53, 64, 37, 0.20);
  --shadow-lift:  0 12px 32px rgba(53, 64, 37, 0.16);
  --shadow-inset: inset 0 1px 3px rgba(53, 64, 37, 0.18);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-script:  'Parisienne', cursive;

  --ease-silk: cubic-bezier(.6,.05,.2,1);
  --ease-soft: cubic-bezier(.22,.68,.36,1);
}

/* =====================================================================
   RESET & BASE
===================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 45%, var(--ivory) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked{ overflow: hidden; height: 100vh; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--olive-deep);
}

p{ margin: 0; }

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

.script{ font-family: var(--font-script); font-weight: 400; }

svg{ display: block; }

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

/* =====================================================================
   GRAIN OVERLAY — subtle paper texture across the whole experience
===================================================================== */
.grain{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   SHARED ORNAMENT / SVG LINE-ART STYLING (the recurring signature motif)
===================================================================== */
.emboss-pattern,
.hero__flower,
.thankyou__sprig,
.divider svg,
.venue__illustration svg,
.modal__ornament{
  fill: none;
}

.draw-line{
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.draw-dot{ fill: var(--olive); }
.draw-petal{ fill: rgba(117,130,76,0.16); stroke: var(--olive); stroke-width: 1; }

.emboss-pattern .draw-line,
.emboss-pattern .draw-dot{
  stroke: rgba(124,91,51,0.35);
  fill: rgba(124,91,51,0.35);
}

/* self-drawing line animation, triggered by .is-drawn */
.draw-line{
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.8s var(--ease-soft);
}
.is-drawn .draw-line{ stroke-dashoffset: 0; }
.draw-dot, .draw-petal{
  opacity: 0;
  transform-origin: center;
  transition: opacity 1s ease 0.6s, transform 1s var(--ease-soft) 0.6s;
  transform: scale(0.4);
}
.is-drawn .draw-dot,
.is-drawn .draw-petal{ opacity: 1; transform: scale(1); }

.divider{
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px 0;
}
.divider svg{ width: 100%; height: auto; }

/* =====================================================================
   PETAL / PARTICLE FIELD
===================================================================== */
.petal-field{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}
.petal{
  position: absolute;
  top: -5%;
  will-change: transform, opacity;
  opacity: 0.9;
  filter: drop-shadow(0 2px 3px rgba(124,91,51,0.15));
}
.particle{
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  opacity: 0.5;
  will-change: transform, opacity;
}

@keyframes petal-fall{
  0%   { transform: translate3d(0,-10vh,0) rotate(0deg); }
  100% { transform: translate3d(var(--drift,40px), 115vh, 0) rotate(360deg); }
}
@keyframes particle-rise{
  0%   { transform: translate3d(0,0,0); opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translate3d(var(--drift,20px), -100vh, 0); opacity: 0; }
}

/* =====================================================================
   ENVELOPE SCREEN
===================================================================== */
.envelope-screen{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 20%, #fffaf0 0%, var(--champagne) 55%, #ddc79a 100%);
  transition: opacity 1s var(--ease-silk), visibility 1s;
}
.envelope-screen.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  perspective: 1600px;
  padding: 24px;
}

.envelope-guide{
  order: -1;
  width: 24px;
  color: var(--gold-deep);
  opacity: 0.75;
  animation: guide-bounce 1.8s ease-in-out infinite;
  transition: opacity .4s ease;
}
.envelope-guide svg{
  width: 100%; height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.envelope.is-opening ~ .envelope-guide,
.envelope-screen.is-hidden .envelope-guide{ opacity: 0; }

@keyframes guide-bounce{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
}

.envelope{
  position: relative;
  width: min(86vw, 380px);
  height: min(86vw, 380px) * 0.68;
  aspect-ratio: 380 / 258;
  transform-style: preserve-3d;
}

.envelope__back{
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #fffdf8, var(--paper) 60%, var(--champagne));
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.emboss-pattern{ position: absolute; inset: 0; width: 100%; height: 100%; }

.envelope__body{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 78%;
  background: linear-gradient(160deg, #fdfaf3, var(--paper));
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14%;
}
.envelope__paper-texture{
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence baseFrequency='0.03' numOctaves='3' type='fractalNoise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.envelope__monogram{
  font-family: var(--font-script);
  font-size: clamp(20px, 4vw, 26px);
  color: var(--gold-deep);
  opacity: 0.55;
}

.envelope__flap{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 58%;
  background: linear-gradient(200deg, #fffdf7, var(--paper) 70%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  box-shadow: 0 6px 18px rgba(90,62,26,0.12);
  transition: transform 1.1s var(--ease-silk);
  z-index: 3;
}
.envelope__flap-texture{
  position: absolute; inset: 0;
  background: inherit;
  opacity: 0.4;
}
.emboss-pattern--flap{
  top: 8%;
  height: 60%;
  opacity: 0.8;
}
.envelope.is-opening .envelope__flap{
  transform: rotateX(-178deg);
}

.wax-seal{
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 98px; height: 98px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 5;
  background:
    radial-gradient(circle at 32% 28%, var(--wax-light), var(--wax) 55%, #4d151d 100%);
  box-shadow:
    0 6px 14px rgba(78,20,26,0.45),
    inset 0 -4px 8px rgba(0,0,0,0.35),
    inset 0 3px 5px rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.wax-seal::before{
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0);
}
.wax-seal__shine{
  position: absolute;
  top: 14%; left: 22%;
  width: 34%; height: 20%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.55), transparent 70%);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none;
}
.wax-seal__initials{
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 236, 224, 0.92);
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
  transform: translateY(-1px);
  width: 72%;
  text-align: center;
}
.wax-seal:hover{ transform: translate(-50%,-50%) scale(1.04); }
.wax-seal:active,
.wax-seal.is-pressed{
  transform: translate(-50%,-50%) scale(0.88);
  box-shadow:
    0 2px 6px rgba(78,20,26,0.45),
    inset 0 -2px 5px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.2);
}
.envelope.is-opening .wax-seal{
  opacity: 0;
  transform: translate(-50%,-50%) scale(0.4);
  transition: opacity .5s ease, transform .5s ease;
}

/* =====================================================================
   LAYOUT / SECTIONS
===================================================================== */
.invitation{
  position: relative;
  opacity: 0;
}
.invitation.is-visible{
  opacity: 1;
  transition: opacity 1.2s var(--ease-soft);
}

.section{
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 28px;
  text-align: center;
  position: relative;
}

/* alternating soft sage/beige section backgrounds for visual separation */
.section.tint{
  max-width: 100%;
  background: linear-gradient(180deg, rgba(138,149,112,0.10), rgba(232,220,200,0.55) 50%, rgba(138,149,112,0.10));
  box-shadow: inset 0 1px 0 rgba(79,91,53,0.12), inset 0 -1px 0 rgba(79,91,53,0.12);
}
.section.tint > *:not(.section__bg-photo){
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* faint olive botanical watermark tucked into section corners */
.section__corner{
  position: absolute;
  width: 110px;
  height: 110px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.section__corner svg{ width: 100%; height: 100%; }
.section__corner .draw-line{ stroke-dashoffset: 0; }
.section__corner--tl{ top: 18px; left: 8px; }
.section__corner--tr{ top: 18px; right: 8px; transform: scaleX(-1); }
.section__corner--bl{ bottom: 18px; left: 8px; transform: scaleY(-1); }
.section__corner--br{ bottom: 18px; right: 8px; transform: scale(-1,-1); }

/* tall leafy branches flanking a section's sides, like a hand-painted frame —
   always visible, just smaller/subtler on narrow phones */
.section__side{
  position: absolute;
  top: 12px;
  bottom: 12px;
  width: 54px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.section__side svg{ width: 100%; height: 100%; }
.section__side--left{ left: -4px; }
.section__side--right{ right: -4px; transform: scaleX(-1); }
@media (min-width: 640px){
  .section__side{ width: 90px; opacity: 0.4; }
  .section__side--left{ left: -12px; }
  .section__side--right{ right: -12px; }
}
@media (min-width: 900px){
  .section__side{ width: 130px; opacity: 0.55; }
  .section__side--left{ left: -30px; }
  .section__side--right{ right: -30px; }
}
/* these are a passive background watermark, not a reveal moment —
   show them immediately instead of depending on the scroll-in-view trigger */
.section__side .draw-line{ stroke-dashoffset: 0; }
.section__side .draw-dot,
.section__side .draw-petal{ opacity: 1; transform: scale(1); }

/* full-bleed section background photo, same recipe as the hero:
   a cover photo plus a soft ivory gradient so text stays legible,
   with the real content lifted above it on its own stacking layer */
.section__bg-photo{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.section__bg-photo::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250,246,237,0.86) 0%,
    rgba(243,234,217,0.72) 45%,
    rgba(250,246,237,0.92) 100%);
}
.section__bg-photo--welcome{ background-image: url("hands-closeup.jpg"); }
.section__bg-photo--thankyou{ background-image: url("bouquet.jpg"); }
.section__bg-photo--details{ background-image: url("zafa-photo.jpg"); background-position: center 30%; }
.section__content{
  position: relative;
  z-index: 1;
}

.eyebrow{
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--olive-deep);
  margin-bottom: 14px;
}

.section-title{
  font-size: clamp(30px, 5vw, 42px);
  margin-bottom: 22px;
}

/* generic reveal-on-scroll */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
[data-reveal].in-view{
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   HERO
===================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ivory);
}

.hero__photo{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("hero-bg.jpg");
  background-size: cover;
  background-position: center 22%;
}
.hero__photo::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250,246,237,0.80) 0%,
    rgba(243,234,217,0.58) 42%,
    rgba(250,246,237,0.90) 100%);
}

.hero__parallax{
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero__flower{
  position: absolute;
  width: 120px;
  opacity: 0.6;
}
.hero__flower--left{ left: 2%; top: 8%; transform: rotate(-8deg); }
.hero__flower--right{ right: 2%; bottom: 6%; transform: rotate(174deg); }

.hero__content{
  position: relative;
  z-index: 2;
  padding: 0 24px;
  text-align: center;
  max-width: 640px;
}

.hero__names{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: clamp(40px, 9vw, 74px);
  line-height: 1.05;
  margin: 6px 0 18px;
}
.hero__ampersand{
  font-family: var(--font-script);
  font-size: 0.55em;
  color: var(--gold);
}

.hero__request{
  font-size: 19px;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 420px;
  margin: 0 auto 30px;
}

.hero__date{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.hero__date-line{
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero__date-text{
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 18px;
  color: var(--gold-deep);
}
.hero__location{
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 50px;
}

/* bouncing swipe-down guide repeated near the bottom of every section */
.section-swipe{
  margin: 36px auto 0;
  width: 22px;
  color: var(--olive);
  opacity: 0.55;
  animation: swipe-bounce 1.8s ease-in-out infinite;
}
.section-swipe svg{
  width: 100%; height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes swipe-bounce{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
}

.hero__scroll-cue{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}
.hero__scroll-cue span{
  width: 1px; height: 40px;
  background: linear-gradient(var(--olive), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
.hero__scroll-cue p{
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
@keyframes scroll-cue{
  0%{ transform: scaleY(0); transform-origin: top; opacity: 0;}
  50%{ transform: scaleY(1); transform-origin: top; opacity: 1;}
  51%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0;}
}

/* =====================================================================
   WELCOME
===================================================================== */
.welcome__card{
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, rgba(250,246,237,0.85), rgba(232,220,200,0.65));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 32px 30px;
  margin: 8px auto 26px;
  max-width: 600px;
  box-shadow: var(--shadow-lift), var(--shadow-inset);
  backdrop-filter: blur(2px);
}
.welcome__card-sprig{
  width: 130px;
  margin: 0 auto 18px;
  opacity: 0.85;
}
.welcome__text{
  font-size: 20px;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto;
}
.welcome__signature{
  font-size: 32px;
  color: var(--olive-deep);
}

/* =====================================================================
   COUNTDOWN
===================================================================== */
.countdown__heading{
  position: relative;
  z-index: 1;
}
.countdown__heading::before,
.countdown__heading::after{
  content: '❧';
  display: inline-block;
  color: var(--gold);
  font-style: normal;
  margin: 0 10px;
  transform: translateY(1px);
}
.countdown__heading::after{ transform: translateY(1px) scaleX(-1); }

.countdown__grid{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.countdown__unit{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  padding: 26px 8px 20px;
  border-radius: 20px 20px 34px 34px;
  background: linear-gradient(165deg, var(--ivory), var(--beige));
  border: 1px solid var(--olive-soft);
  box-shadow: var(--shadow-lift), var(--shadow-inset);
}
.countdown__unit::before{
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px rgba(183,146,85,0.18);
}
.countdown__number{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 42px);
  color: var(--olive-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.countdown__number.is-ticking{
  animation: countdown-flip 0.5s var(--ease-soft);
}
@keyframes countdown-flip{
  0%   { opacity: 0; transform: translateY(-8px) scale(0.94); }
  60%  { opacity: 1; transform: translateY(1px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.countdown__label{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  opacity: 0.85;
}
.countdown__message{
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--olive-deep);
  position: relative;
  z-index: 1;
}

/* =====================================================================
   DETAILS CARDS
===================================================================== */
.details__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 40px;
}
@media (min-width: 720px){
  .details__grid{ grid-template-columns: repeat(2, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
}

.detail-card{
  background: linear-gradient(165deg, var(--olive), var(--olive-deep));
  border: 1px solid var(--olive-deep);
  border-radius: 14px;
  padding: 34px 22px;
  box-shadow: var(--shadow-lift);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.detail-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(60,68,40,0.32);
}
.detail-card__icon{
  width: 34px; height: 34px;
  margin: 0 auto 16px;
  stroke: var(--champagne);
  stroke-width: 1.4;
  fill: none;
}
.detail-card h3{
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--champagne);
}
.detail-card p{
  color: var(--champagne);
  font-size: 16px;
  line-height: 1.5;
}
.detail-card__muted{
  font-style: italic;
  opacity: 0.85;
}

/* =====================================================================
   TIMELINE
===================================================================== */
.timeline{
  position: relative;
  margin-top: 50px;
  padding-left: 8px;
  text-align: left;
}
.timeline__content[dir="rtl"]{ text-align: right; }
.timeline__line{
  position: absolute;
  left: 27px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
}
.timeline__line::after{
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: var(--progress, 0%);
  background: var(--olive);
  transition: height 0.2s linear;
}

.timeline__item{
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 46px 0;
}
.timeline__item:last-child{ padding-bottom: 0; }

.timeline__marker{
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  z-index: 2;
}
.timeline__marker svg{
  width: 22px; height: 22px;
  stroke: var(--olive-deep);
  stroke-width: 1.6;
  fill: none;
}

.timeline__content{ padding-top: 6px; }
.timeline__time{
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--olive);
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.timeline__content h3{
  font-size: 22px;
  margin-bottom: 6px;
}
.timeline__content p{
  color: var(--ink-soft);
  font-size: 16px;
}

/* =====================================================================
   VENUE
===================================================================== */
.venue__card{
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf9, var(--paper));
  box-shadow: var(--shadow-soft);
  text-align: left;
}
@media (min-width: 640px){
  .venue__card{ grid-template-columns: 1fr 1fr; text-align: left; }
}
.venue__illustration{
  background: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.venue__illustration svg{ width: 100%; max-width: 280px; }
.venue__illustration--photo{
  padding: 0;
  min-height: 260px;
}
.venue__illustration--photo img{
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.venue__info{
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.venue__info h3{ font-size: 26px; margin-bottom: 6px; }
.venue__info p{ color: var(--ink-soft); font-size: 16px; }
.venue__note{ font-style: italic; margin-bottom: 14px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s var(--ease-soft);
  border: 1px solid var(--olive);
}
.btn--outline{
  color: var(--olive-deep);
  background: transparent;
  align-self: flex-start;
}
.btn--outline:hover{
  background: var(--olive);
  color: var(--ivory);
}
.btn--fill{
  background: var(--olive-deep);
  color: var(--ivory);
  border-color: var(--olive-deep);
  width: 100%;
}
.btn--fill:hover{
  background: var(--wax);
  border-color: var(--wax);
}

.venue__map-frame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.85) contrast(1.02);
}
.venue__map{
  position: relative;
  margin-top: 26px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
}
.venue__map-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}
.venue__map-pin{
  width: 30px; color: var(--olive-deep);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
  animation: pin-bounce 2.4s ease-in-out infinite;
}
.venue__map-pin svg{ fill: currentColor; }
@keyframes pin-bounce{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
.venue__map-label{
  position: absolute;
  bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

/* =====================================================================
   GALLERY
===================================================================== */
.gallery{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}
.gallery__item{
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--champagne), var(--paper));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.gallery__item--tall{ aspect-ratio: 1/1.4; }
.gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-soft);
}
.gallery__item:hover img{ transform: scale(1.06); }

.gallery-single{
  margin: 40px auto 0;
  max-width: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.gallery-single img{
  width: 100%;
  height: auto;
  display: block;
}
.gallery-single:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(90,62,26,0.22);
}
.gallery__item::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(110,36,48,0.12));
  opacity: 0;
  transition: opacity .5s ease;
}
.gallery__item:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-soft);
}
.gallery__item:hover::after{ opacity: 1; }

/* =====================================================================
   THANK YOU FOOTER
===================================================================== */
.thankyou{
  padding-bottom: 120px;
  position: relative;
}
.thankyou__sprig{
  width: 70px;
  margin: 0 auto 10px;
  opacity: 0.8;
}
.thankyou__script{
  font-size: 34px;
  color: var(--olive-deep);
  margin-bottom: 6px;
}
.thankyou__names{
  font-family: var(--font-display);
  font-size: 26px;
  margin-top: 18px;
}
.thankyou__meta{
  margin-top: 8px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  font-size: 15px;
}

/* keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* =====================================================================
   RESPONSIVE TWEAKS
===================================================================== */
@media (max-width: 480px){
  body{ font-size: 17px; }
  .section{ padding: 70px 20px; }
  .hero__flower{ width: 90px; }
  .countdown__grid{ gap: 12px; }
  .countdown__unit{ width: 78px; padding: 20px 4px 16px; }
  .section__corner{ width: 70px; height: 70px; opacity: 0.12; }
  .hero__photo{ background-position: center 18%; }
}
