/* ============================================================
   LE JARDIN — template styles (v2: cinematic edition)
   Botanical envelope gate · living reveal · photo gallery
   ============================================================ */
:root {
  --forest:     #0e2018;
  --forest-mid: #1a3525;
  --forest-lt:  #2a4a37;
  --paper:      #f6f2e7;
  --paper-deep: #efe9d9;
  --card:       #fbf8f0;
  --ink:        #2e4034;
  --ink-soft:   #5d6b5c;
  --line:       #d9d2bd;
  --gold:       #b39a5e;
  --gold-deep:  #97804a;
  --blush:      #c98d7e;
  --serif:     "Cormorant Garamond", Georgia, serif;
  --script:    "Great Vibes", cursive;
  --sans:      "Jost", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-weight: 400;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(179, 154, 94, 0.10), transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100dvh; }

a { color: inherit; }

/* ============================================================
   GATE — botanical envelope overlay
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%, rgba(42, 74, 55, 0.85), transparent 68%),
    var(--forest);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transition: opacity 0.7s ease 0.5s, visibility 0.7s ease 0.5s;
}
.gate.opening { opacity: 0; visibility: hidden; pointer-events: none; }

/* language pills */
.gate-langs { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; max-width: 90vw; }
.gate-lang-pill {
  background: none;
  border: 1px solid rgba(179, 154, 94, 0.35);
  color: rgba(246, 242, 231, 0.7);
  font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.4rem 1.1rem; border-radius: 999px;
  cursor: pointer; transition: all 0.3s ease;
}
.gate-lang-pill.active,
.gate-lang-pill:hover { border-color: var(--gold); color: var(--paper); background: rgba(179, 154, 94, 0.1); }

/* ---- envelope ---- */
.envelope {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 16 / 11;
  cursor: pointer;
  filter: drop-shadow(0 24px 54px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
}
.envelope:hover { transform: translateY(-8px) scale(1.02); filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.6)); }
.envelope:active { transform: translateY(-2px) scale(0.99); }

/* back face — always visible */
.env-back {
  position: absolute; inset: 0;
  border-radius: 6px;
  background: linear-gradient(155deg, #1a3525, #0e2018);
}

/* the parchment card that rises out */
.env-card {
  position: absolute;
  left: 8%; right: 8%;
  top: 7%; bottom: 16%;
  border-radius: 3px;
  background: linear-gradient(168deg, var(--card), #f0e9d6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.15rem;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
.envelope.open .env-card { transform: translateY(-55%); }

.env-c-monogram {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--forest-mid);
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.env-c-names {
  font-family: var(--script);
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  color: var(--ink);
  line-height: 1.2;
}
.env-c-date {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.1rem;
}

/* front face — V-crease diamond */
.env-front {
  position: absolute; inset: 0;
  border-radius: 6px;
  z-index: 3;
  background:
    linear-gradient(120deg, transparent 49.3%, rgba(60, 100, 70, 0.18) 49.3%, rgba(60, 100, 70, 0.18) 50.7%, transparent 50.7%),
    linear-gradient(-120deg, transparent 49.3%, rgba(60, 100, 70, 0.18) 49.3%, rgba(60, 100, 70, 0.18) 50.7%, transparent 50.7%),
    linear-gradient(155deg, #253d2d, #1a3525);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
}

/* the top flap — rotates away on open */
.env-flap {
  position: absolute; inset: 0;
  border-radius: 6px 6px 0 0;
  z-index: 4;
  background: linear-gradient(195deg, #2a4a37, #1a3525);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top center;
  transition: transform 0.75s cubic-bezier(0.55, 0, 0.45, 1);
}
.envelope.open .env-flap { transform: rotateX(190deg); z-index: 1; }

/* botanical seal */
.env-seal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #f8f3e6, #ede5cc);
  border: 1.5px solid var(--gold);
  outline: 3px solid rgba(179, 154, 94, 0.25);
  outline-offset: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 0;
  font-family: var(--serif);
  color: var(--forest-mid);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.38), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  animation: sealPulse 2.8s ease-in-out infinite;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.env-seal .seal-mono { font-size: 0.9rem; letter-spacing: 0.06em; }
.env-seal .seal-ring {
  font-size: 0.3rem;
  letter-spacing: 0.44em;
  color: var(--gold);
  margin-top: 0.15rem;
  opacity: 0.8;
}
@keyframes sealPulse {
  0%, 100% { box-shadow: 0 5px 18px rgba(0,0,0,0.38), inset 0 1px 3px rgba(255,255,255,0.4), 0 0 0 0 rgba(179,154,94,0.4); }
  50%       { box-shadow: 0 5px 18px rgba(0,0,0,0.38), inset 0 1px 3px rgba(255,255,255,0.4), 0 0 0 16px rgba(179,154,94,0); }
}
.envelope.open .env-seal { transform: translate(-50%, -50%) scale(0.3) rotate(50deg); opacity: 0; }

/* hint text */
.gate-hint {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: rgba(246, 242, 231, 0.55);
  animation: hintBreathe 2.6s ease-in-out infinite;
}
@keyframes hintBreathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; } }

/* ============================================================
   FIREFLIES
   ============================================================ */
.gate-fireflies { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.firefly {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 240, 130, 0.95);
  box-shadow: 0 0 7px 3px rgba(255, 240, 130, 0.5);
  animation: fly-path var(--dur, 6s) ease-in-out var(--del, 0s) infinite;
}
@keyframes fly-path {
  0%   { transform: translate(0,     0   ) scale(0.4); opacity: 0;    }
  12%  { opacity: 1; }
  30%  { transform: translate(var(--dx1), var(--dy1)) scale(1);   }
  60%  { transform: translate(var(--dx2), var(--dy2)) scale(1.2); opacity: 0.85; }
  85%  { opacity: 0.4; }
  100% { transform: translate(var(--dx3), var(--dy3)) scale(0.6); opacity: 0;    }
}

/* ============================================================
   REVEAL — cinematic screen
   ============================================================ */
.reveal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.reveal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.reveal.out    { opacity: 0; pointer-events: none; }

.reveal-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reveal-veil {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(10, 26, 16, 0.82), rgba(14, 32, 24, 0.75));
}

/* name stage */
.reveal-stage {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
  color: var(--paper);
}

.rv-kicker {
  font-family: var(--sans);
  font-size: clamp(0.58rem, 2vw, 0.72rem);
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: rgba(246, 242, 231, 0.7);
  margin-bottom: 1.4rem;
  opacity: 0;
}
.reveal-stage.go .rv-kicker {
  animation: kicker-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.rv-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.rv-n1 {
  font-family: var(--script);
  font-size: clamp(3.4rem, 14vw, 6.4rem);
  color: var(--paper);
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-60px) skewX(-4deg);
  text-shadow: 0 0 60px rgba(179, 154, 94, 0.25);
}
.reveal-stage.go .rv-n1 {
  animation: name-from-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.rv-amp {
  font-family: var(--script);
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  color: var(--gold);
  display: inline-block;
  opacity: 0;
  transform: scale(0.3) rotate(-25deg);
}
.reveal-stage.go .rv-amp {
  animation: amp-bloom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
}

.rv-n2 {
  font-family: var(--script);
  font-size: clamp(3.4rem, 14vw, 6.4rem);
  color: var(--paper);
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateX(60px) skewX(4deg);
  text-shadow: 0 0 60px rgba(179, 154, 94, 0.25);
}
.reveal-stage.go .rv-n2 {
  animation: name-from-right 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.rv-date {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.5vw, 1.7rem);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(18px);
}
.reveal-stage.go .rv-date {
  animation: date-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.rv-city {
  font-family: var(--sans);
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(246, 242, 231, 0.6);
  margin-top: 0.5rem;
  opacity: 0;
}
.reveal-stage.go .rv-city {
  animation: date-rise 0.7s ease 1.6s forwards;
}

/* skip button */
.reveal-skip {
  position: absolute; bottom: 2rem; right: 2rem; z-index: 3;
  background: none;
  border: 1px solid rgba(246, 242, 231, 0.3);
  color: rgba(246, 242, 231, 0.5);
  font-family: var(--sans);
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.reveal-skip:hover { border-color: rgba(246, 242, 231, 0.6); color: var(--paper); }

/* ---- petals ---- */
.reveal-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.petal {
  position: absolute;
  top: -24px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, rgba(201, 164, 94, 0.88), rgba(179, 130, 70, 0.6));
  opacity: 0;
  animation: petal-fall linear forwards;
}
@keyframes petal-fall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg);              opacity: 0; }
  6%   { opacity: 0.9; }
  88%  { opacity: 0.65; }
  100% { transform: translateY(105vh) translateX(var(--drift)) rotate(var(--spin)); opacity: 0; }
}

/* ---- reveal keyframes ---- */
@keyframes kicker-in {
  from { opacity: 0; letter-spacing: 0.6em; }
  to   { opacity: 1; letter-spacing: 0.44em; }
}
@keyframes name-from-left {
  from { opacity: 0; filter: blur(8px); transform: translateX(-60px) skewX(-4deg); }
  to   { opacity: 1; filter: blur(0);   transform: translateX(0) skewX(0); }
}
@keyframes name-from-right {
  from { opacity: 0; filter: blur(8px); transform: translateX(60px) skewX(4deg); }
  to   { opacity: 1; filter: blur(0);   transform: translateX(0) skewX(0); }
}
@keyframes amp-bloom {
  from { opacity: 0; transform: scale(0.3) rotate(-25deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes date-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FLOATING CONTROLS
   ============================================================ */
.float-controls {
  position: fixed; top: 1rem; right: 1rem; z-index: 200;
  display: flex; gap: 0.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease 1.2s;
}
body.invite-open .float-controls { opacity: 1; pointer-events: auto; }

.float-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(246, 242, 231, 0.88);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.1em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(46, 64, 52, 0.18);
}
.float-btn:hover { background: var(--card); color: var(--ink); border-color: var(--gold); }
.float-btn[hidden] { display: none; }
.float-btn.playing { animation: spin-slow 7s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ============================================================
   INVITE BASE
   ============================================================ */
.invite { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.sect { padding: 4.4rem 0; text-align: center; position: relative; }

/* spring-ease reveal — applied to all sections */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.label {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.67rem; letter-spacing: 0.44em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.4rem;
}
.sect h2 { font-weight: 500; font-size: 2rem; letter-spacing: 0.03em; margin-bottom: 1rem; }

.vine {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--gold);
  margin: 0 auto 2.6rem;
}
.vine::before, .vine::after {
  content: "";
  width: clamp(50px, 18vw, 110px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.vine::after { background: linear-gradient(90deg, var(--line), transparent); }
.vine span { font-size: 1.1rem; letter-spacing: 0.3em; }

/* ============================================================
   HERO
   ============================================================ */
.hero-sect { padding-top: 6.5rem; }
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.46em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-names {
  font-weight: 500;
  font-size: clamp(2.9rem, 11vw, 4.7rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 1.2rem 0 0.4rem;
}
.hero-names .amp {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: 0.5em;
  color: var(--gold);
  line-height: 1.15;
}
.hero-date { font-style: italic; font-size: 1.25rem; color: var(--ink-soft); }
.hero-city {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.35rem;
}

/* arched garden window */
.arch-wrap { margin: 3rem auto 0; width: min(400px, 84vw); position: relative; }
.arch {
  position: relative;
  border-radius: 999px 999px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 28px 68px rgba(46, 64, 52, 0.22), inset 0 0 0 7px var(--card);
  background: var(--card);
  padding: 7px;
}
.arch-inner {
  border-radius: 999px 999px 7px 7px;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  position: relative;
}
.arch-inner video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.arch-inner:hover video { transform: scale(1.04); }
.arch-keystone {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--gold);
  z-index: 3;
  animation: keystoneSway 4s ease-in-out infinite;
}
@keyframes keystoneSway {
  0%, 100% { transform: translateX(-50%) rotate(-6deg); }
  50%       { transform: translateX(-50%) rotate(6deg); }
}
.arch-caption {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============================================================
   STORY
   ============================================================ */
.story-text {
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink);
}
.story-sign {
  font-family: var(--script);
  font-size: 1.85rem;
  color: var(--gold-deep);
  margin-top: 1.4rem;
  display: block;
}

/* ============================================================
   PHOTOS
   ============================================================ */
.photos-sect { text-align: left; overflow: hidden; }

.photos-scroll {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.6rem 0 1.8rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.photos-scroll:active { cursor: grabbing; }
.photos-scroll::-webkit-scrollbar { display: none; }

.photo-card {
  flex: 0 0 200px;
  background: white;
  padding: 0.8rem 0.8rem 1.6rem;
  box-shadow: 0 8px 28px rgba(46, 64, 52, 0.16);
  transform: rotate(var(--rot, -2deg));
  scroll-snap-align: start;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  cursor: pointer;
  opacity: 0;
  animation: polaroid-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--del, 0s) forwards;
}
.photo-card:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 18px 50px rgba(46, 64, 52, 0.28);
  z-index: 2;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.photo-caption {
  font-family: var(--script);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  text-align: center;
  line-height: 1.4;
}
@keyframes polaroid-in {
  from { opacity: 0; transform: rotate(var(--rot, -2deg)) translateY(30px) scale(0.88); }
  to   { opacity: 1; transform: rotate(var(--rot, -2deg)) translateY(0) scale(1); }
}

.scroll-hint {
  font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--line);
  text-align: right;
  padding-right: 0.5rem;
  animation: hintBreathe 2.6s ease-in-out infinite;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 32, 24, 0.92);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.lb-img {
  position: relative; z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: lb-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(246, 242, 231, 0.18);
  border: 1px solid rgba(246, 242, 231, 0.35);
  color: var(--paper);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(246, 242, 231, 0.3); }

/* ============================================================
   COUNTDOWN SENTENCE
   ============================================================ */
.count-sentence {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.55;
}
.count-sentence .n {
  color: var(--gold-deep);
  font-size: 1.28em;
  padding: 0 0.05em;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.count-sentence .n.tick { transform: scale(1.3); }
.count-sub {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* ============================================================
   PROGRAMME — Italian dinner menu card
   ============================================================ */
.menu-card {
  background: var(--card);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 6px;
  padding: 3rem 2.2rem 2.6rem;
  margin-top: 2.4rem;
  box-shadow: 0 20px 50px rgba(46, 64, 52, 0.12);
  position: relative;
}
.menu-card::before {
  content: "❦";
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 0.95rem;
}
.menu-title { font-size: 1.58rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.menu-sub   { font-style: italic; color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 2rem; }

.menu-row {
  padding: 1.05rem 0; text-align: center;
  opacity: 0; transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--row-delay, 0s),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--row-delay, 0s);
}
.menu-row.row-visible { opacity: 1; transform: translateY(0); }
.menu-row + .menu-row { border-top: 1px dotted var(--line); }

.menu-time {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-deep);
}
.menu-name { font-size: clamp(1.1rem, 4.5vw, 1.42rem); font-weight: 500; margin: 0.15rem 0; }
.menu-name .mi { font-size: 0.95rem; margin-right: 0.4rem; }
.menu-detail { font-style: italic; font-size: 0.93rem; color: var(--ink-soft); }
.menu-map {
  display: inline-block; margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color 0.3s;
}
.menu-map:hover { border-color: var(--gold); }

/* ============================================================
   NOTES — dress code & gifts
   ============================================================ */
.notes {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 2.2rem; align-items: start;
  margin-top: 2.4rem; text-align: center;
}
.notes-rule {
  width: 1px; min-height: 120px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.note-block h3 { font-size: 1.42rem; font-weight: 500; margin-bottom: 0.6rem; }
.note-block h3::after {
  content: "❦"; display: block;
  color: var(--gold); font-size: 0.78rem; margin-top: 0.45rem;
}
.note-block p { font-size: 0.98rem; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   RSVP — postcard
   ============================================================ */
.postcard {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(46, 64, 52, 0.14);
  margin-top: 2.4rem;
  padding: 2.2rem;
  position: relative;
  text-align: left;
}
.postcard::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.postcard-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.8rem;
}
.postcard-title { font-style: italic; font-size: 1.12rem; color: var(--ink-soft); max-width: 70%; }

.stamp {
  width: 62px; height: 74px;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 50% 42%, rgba(179, 154, 94, 0.14), transparent 70%), var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--gold-deep);
  position: relative;
  transform: rotate(4deg);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.stamp:hover { transform: rotate(0deg) scale(1.04); }
.stamp::before {
  content: "";
  position: absolute; inset: -5px;
  background-image: radial-gradient(circle, var(--paper) 2.4px, transparent 2.6px);
  background-size: 8.5px 8.5px;
  z-index: -1;
}
.stamp .s-mono { font-size: 1.12rem; }
.stamp .s-year { font-family: var(--sans); font-size: 0.48rem; letter-spacing: 0.2em; margin-top: 0.2rem; }

.rsvp-deadline { font-style: italic; font-size: 0.93rem; color: var(--ink-soft); }

.r-field { margin-bottom: 1.3rem; position: relative; }
.r-field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.35rem;
}
.r-field input, .r-field select, .r-field textarea {
  width: 100%;
  background: transparent;
  border: none; border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  padding: 0.45rem 0.1rem;
  transition: border-color 0.3s;
}
.r-field input:focus, .r-field select:focus, .r-field textarea:focus { outline: none; border-color: var(--gold); }
.r-field textarea { min-height: 76px; resize: vertical; }
.r-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.attend-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.attend-btn {
  background: none;
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1rem; font-style: italic;
  color: var(--ink-soft);
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.attend-btn:hover { border-color: var(--gold-deep); color: var(--ink); }
.attend-btn.selected { border-color: var(--gold); color: var(--ink); background: rgba(179, 154, 94, 0.10); }

.rsvp-submit {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  padding: 1.05rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.rsvp-submit:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.rsvp-submit:active { transform: translateY(0); }
.rsvp-submit:disabled { opacity: 0.5; cursor: wait; transform: none; }

.rsvp-status { margin-top: 1.1rem; text-align: center; font-size: 0.93rem; display: none; font-family: var(--sans); }
.rsvp-status.ok  { display: block; color: #4d6b3f; }
.rsvp-status.err { display: block; color: #a05252; }

/* ============================================================
   FOOTER
   ============================================================ */
.invite-footer { padding: 4rem 0 2.8rem; text-align: center; }
.footer-script { font-family: var(--script); font-size: 2.1rem; color: var(--gold-deep); }
.footer-brand {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-brand a { color: var(--gold-deep); text-decoration: none; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-panel {
  position: fixed; inset: auto 0 0 0; z-index: 500;
  background: var(--card);
  border-top: 2px solid var(--ink);
  padding: 1.4rem 1.6rem 1.8rem;
  max-height: 50vh; overflow: auto;
  display: none;
  font-family: var(--sans);
}
.admin-panel.show { display: block; }
.admin-panel h3 { font-family: var(--serif); margin-bottom: 0.7rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: 0.45rem 0.65rem; text-align: left; }
.admin-table th { color: var(--gold-deep); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.64rem; }
.admin-actions { margin-top: 0.9rem; display: flex; gap: 0.8rem; }
.admin-actions button {
  background: none; border: 1px solid var(--ink); color: var(--ink);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; cursor: pointer;
  transition: background 0.2s;
}
.admin-actions button:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
  .sect { padding: 3.4rem 0; }
  .r-row, .attend-toggle { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; gap: 2rem; }
  .notes-rule { display: none; }
  .postcard { padding: 1.8rem 1.4rem; }
  .rv-names { flex-direction: column; gap: 0; line-height: 1.15; }
  .rv-amp { margin: -0.2em 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gate-fireflies, .reveal-petals, .arch-inner video { display: none; }
  .fade-in { transition: opacity 0.4s ease; transform: none; }
  .petal, .firefly { animation: none; }
}
