﻿:root {
  --bg: #fbf6ec;
  --surface: #fffdf8;
  --surface-soft: rgba(255,253,248,0.92);
  --text: #40342a;
  --muted: #806f5d;
  --accent: #b98a2f;
  --accent-deep: #87611e;
  --accent-soft: #efe0bc;
  --line: #eadfca;
  --shadow: 0 30px 80px rgba(94,72,37,0.14);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter',system-ui,-apple-system,Segoe UI,sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.95), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #f6ead7 46%, #fffaf0 100%);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}
body:before,
body:after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
}
body:before {
  left: -78px;
  top: 120px;
  width: 260px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.86) 0 8%, transparent 9%),
    linear-gradient(100deg, transparent 46%, rgba(184,138,47,.55) 47% 48%, transparent 49%);
  transform: rotate(-18deg);
}
body:after {
  right: -70px;
  bottom: 100px;
  width: 250px;
  height: 420px;
  background:
    radial-gradient(circle at 50% 84%, rgba(255,255,255,.92) 0 10%, transparent 11%),
    linear-gradient(80deg, transparent 45%, rgba(184,138,47,.42) 47% 48%, transparent 50%);
  transform: rotate(22deg);
}
img, video {
  display: block;
  width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
#petalsCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .92;
}
.flower-shower {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.fall-flower {
  position: absolute;
  top: -42px;
  left: var(--start-x);
  font-size: var(--flower-size, 24px);
  line-height: 1;
  color: rgba(255,255,255,.92);
  text-shadow:
    0 1px 0 rgba(255,244,217,.9),
    0 0 12px rgba(218,174,77,.22),
    0 8px 18px rgba(117,79,29,.08);
  filter: drop-shadow(0 3px 8px rgba(183,132,38,.12));
  opacity: 0;
  transform: translate3d(0,0,0) rotate(0deg);
  animation: flowerFall var(--flower-duration, 9s) linear forwards;
  animation-delay: var(--flower-delay, 0s);
  will-change: transform, opacity;
}
.fall-flower.gold {
  color: rgba(225,188,91,.82);
}
@keyframes flowerFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8vh, 0) rotate(0deg) scale(.82);
  }
  8% {
    opacity: var(--flower-opacity, .72);
  }
  54% {
    opacity: var(--flower-opacity, .72);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), 118vh, 0) rotate(var(--flower-rotate, 180deg)) scale(1);
  }
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #d9b257, #fff1bf, #a8721f);
  z-index: 100;
}
.qr-choice {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.82), rgba(246,231,203,.92)),
    url('assets/gallery2/gallery-25.jpeg') center/cover no-repeat;
}
.qr-choice.show {
  display: grid;
}
.qr-choice-card {
  width: min(480px, 100%);
  padding: 34px 28px;
  border-radius: 8px;
  background: rgba(255,253,248,.9);
  border: 1px solid rgba(184,138,47,.36);
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-choice-card h1 {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(48px, 13vw, 76px);
  line-height: .92;
  margin: 14px 0;
  color: #73531f;
}
.qr-choice-card h1 span {
  color: var(--accent);
}
.qr-choice-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto 22px;
}
.qr-choice-actions {
  display: grid;
  gap: 12px;
}
.qr-choice .gate-language {
  position: static;
  display: inline-flex;
  margin-top: 18px;
  transform: none;
}
body.qr-choice-active {
  overflow: hidden;
}
body.memory-only .invite-gate,
body.memory-only .topbar,
body.memory-only .side-menu,
body.memory-only .bottom-nav,
body.memory-only #home,
body.memory-only #story,
body.memory-only #gallery,
body.memory-only #location,
body.memory-only .final,
body.memory-only #rsvp {
  display: none !important;
}
body.memory-only main {
  padding-top: 0;
}
body.memory-only .rsvp-upload {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
body.memory-only .split-grid {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  margin: 0 auto;
  grid-template-columns: 1fr !important;
}
body.memory-only .upload-panel {
  width: 100%;
}
body.memory-only .upload-panel .section-title h2 {
  font-size: clamp(42px, 7vw, 64px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(18px, 4vw, 44px);
  background: rgba(255,253,248,0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231,211,209,0.72);
  transition: box-shadow .25s ease, background .25s ease;
}
.topbar .logo {
  justify-self: start;
}
.topbar .desktop-nav {
  justify-self: center;
}
.topbar .top-actions {
  justify-self: end;
}
.topbar.scrolled {
  box-shadow: 0 18px 45px rgba(94,72,37,0.12);
  background: rgba(255,253,248,0.95);
}
.logo, .monogram {
  font-family: 'Cormorant Garamond', Cambria, Georgia, serif;
  font-weight: 700;
  letter-spacing: .015em;
  font-size: 26px;
}
.logo span, .monogram span, .countdown-content h1 > span:not(.name-gold), .invite-card h1 span {
  color: var(--accent);
}
.desktop-nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.desktop-nav a {
  font-weight: 700;
  font-size: 13px;
  color: #594638;
  position: relative;
}
.desktop-nav a:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.desktop-nav a:hover:after {
  transform: scaleX(1);
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-switch, .menu-langs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch button, .menu-langs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 12px;
  color: #675352;
}
.lang-switch button.active, .menu-langs button.active {
  background: var(--accent);
  color: #fff;
}
.menu-btn, .menu-close, .music-btn {
  border: 0;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: var(--text);
}
.music-btn {
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 900;
  color: var(--accent-deep);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.music-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #9f711f, #d9b65d 52%, #ad7a24);
  color: #fff;
}
.music-btn:hover {
  transform: translateY(-1px);
}
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  justify-items: end;
  background: rgba(45,34,21,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.side-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.side-menu-panel {
  width: min(86vw, 360px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,253,248,.98), rgba(248,236,214,.98));
  border-left: 1px solid rgba(184,138,47,.28);
  box-shadow: -28px 0 70px rgba(62,47,25,.18);
  transform: translateX(100%);
  transition: transform .28s ease;
}
.side-menu.open .side-menu-panel {
  transform: translateX(0);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.side-menu-panel > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: #5c4520;
  font-weight: 800;
}
.side-menu-panel > a:hover {
  background: rgba(184,138,47,.1);
}
.menu-langs {
  margin-top: auto;
  justify-content: center;
}
body.menu-open {
  overflow: hidden;
}
html.gate-locked,
body.gate-locked {
  overflow: hidden;
  height: 100%;
}
.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  min-height: 100svh;
  background: #fff7ec;
  transition: opacity .7s ease, transform .7s ease, visibility .7s ease;
  perspective: 1500px;
}
.gate-language {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  background: rgba(255,253,248,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(94,72,37,.12);
}
.invite-gate.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}
.gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.42), rgba(246,231,203,.62)),
    url('assets/floral-gold-door.webp') center/cover no-repeat;
  opacity: .64;
  filter: blur(1.6px) saturate(.84) sepia(.04) brightness(1.08);
  transform: scale(1.08);
}
.gate-bg:before,
.gate-bg:after {
  content: '';
  position: absolute;
  inset: 0;
}
.gate-bg:before {
  background:
    linear-gradient(105deg, transparent 0 10%, rgba(183,132,38,.26) 10.3%, transparent 12% 100%),
    radial-gradient(circle at 12% 24%, rgba(255,255,255,.9) 0 5%, transparent 5.4%),
    radial-gradient(circle at 87% 75%, rgba(255,255,255,.82) 0 6%, transparent 6.5%);
}
.gate-bg:after {
  opacity: .45;
  background:
    linear-gradient(75deg, transparent 0 82%, rgba(202,160,72,.35) 83%, transparent 84%),
    radial-gradient(circle at 22% 32%, rgba(202,160,72,.32) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 68%, rgba(202,160,72,.28) 0 1px, transparent 2px);
  background-size: auto, 44px 44px, 38px 38px;
}
.door-scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: min(100vw, calc(100svh * .667));
  min-width: min(100vw, 390px);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  perspective: 1800px;
  box-shadow: 0 0 90px rgba(105,74,25,.16), 0 0 0 1px rgba(255,255,255,.48);
}
.door-panel {
  position: absolute;
  top: 0;
  width: 50.08%;
  height: 100%;
  background-image: url('assets/floral-gold-door.webp');
  background-size: 200% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 36px rgba(127,89,30,.08);
  transition: transform 1.35s cubic-bezier(.18,.76,.2,1), filter 1.1s ease;
  will-change: transform;
}
.door-left {
  left: 0;
  transform-origin: left center;
  background-position: left center;
}
.door-right {
  right: 0;
  transform-origin: right center;
  background-position: right center;
}
.door-panel:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.door-left:after {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0 91%, rgba(184,138,47,.34) 99%, rgba(255,255,255,.5) 100%);
}
.door-right:after {
  background: linear-gradient(270deg, rgba(255,255,255,0) 0 91%, rgba(184,138,47,.34) 99%, rgba(255,255,255,.5) 100%);
}
.door-center {
  position: relative;
  z-index: 4;
  width: min(86vw, 560px);
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(26px, 6vw, 54px) clamp(18px, 5vw, 44px);
  color: var(--ink);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .55s ease, transform .75s cubic-bezier(.18,.76,.2,1);
}
.door-center:before {
  content: '';
  position: absolute;
  inset: -20px max(-12px, -2vw);
  z-index: -1;
  border-radius: 999px 999px 16px 16px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.72), rgba(255,255,255,.28) 58%, transparent 73%);
  filter: blur(.2px);
}
.door-center .monogram {
  font-family: 'Cormorant Garamond', Cambria, Georgia, serif;
  font-weight: 700;
  color: var(--accent-deep);
  font-size: clamp(26px, 6vw, 38px);
  margin-bottom: 8px;
}
.door-center .eyebrow {
  margin: 0;
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.door-center .gate-title {
  text-shadow: 0 5px 18px rgba(95,68,30,.12);
}
.door-center .btn {
  margin-top: 6px;
  box-shadow: 0 16px 34px rgba(153,103,18,.18);
}
.spark-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.spark {
  position: absolute;
  left: 50%;
  top: 58%;
  width: var(--spark-size, 7px);
  height: var(--spark-size, 7px);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255,255,255,.96) 0 18%, rgba(255,222,128,.96) 28% 55%, rgba(191,133,26,0) 72%);
  box-shadow: 0 0 18px rgba(218,166,55,.85), 0 0 4px rgba(255,255,255,.9);
  transform: translate(-50%,-50%);
  animation: sparkBurst var(--spark-duration, 980ms) cubic-bezier(.18,.7,.24,1) forwards;
}
.spark.star {
  border-radius: 0;
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
}
.invite-gate.opening .door-scene:before {
  content: '';
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.98) 18%, rgba(229,178,68,.88) 50%, rgba(255,255,255,.96) 82%, transparent);
  box-shadow: 0 0 34px rgba(255,220,129,.95), 0 0 90px rgba(255,255,255,.8);
  animation: doorLight 1.05s ease forwards;
}
.invite-gate.opening .door-left {
  transform: translateX(-104%) rotateY(-8deg);
  filter: brightness(1.08);
}
.invite-gate.opening .door-right {
  transform: translateX(104%) rotateY(8deg);
  filter: brightness(1.08);
}
.invite-gate.opening .door-center {
  opacity: 0;
  transform: translateY(-18px) scale(.96);
}
@keyframes sparkBurst {
  0% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(.45) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(.12) rotate(var(--spark-rotate, 120deg));
  }
}
@keyframes doorLight {
  0% { opacity: 0; transform: translateX(-50%) scaleY(.1); }
  18% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1.08); }
}
.envelope-scene {
  position: relative;
  z-index: 2;
  width: min(94vw, 640px);
  min-height: min(86svh, 600px);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.envelope {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 560px);
  aspect-ratio: 1.78;
  transform: translate(-50%,-46%);
  transform-style: preserve-3d;
  filter: drop-shadow(0 34px 44px rgba(82,61,31,.18));
  pointer-events: none;
  z-index: 4;
  transition: transform .85s cubic-bezier(.22,.78,.18,1), opacity .55s ease;
}
.env-back,
.env-front,
.env-flap,
.env-letter-shadow {
  position: absolute;
  inset: 0;
}
.env-back {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(243,222,187,.96)),
    linear-gradient(45deg, transparent 49%, rgba(191,144,54,.35) 50%, transparent 51%);
  border: 1px solid rgba(188,146,65,.42);
}
.env-letter-shadow {
  inset: auto 8% 42% 8%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(95,72,38,.16), transparent 68%);
  transform: translateZ(1px);
}
.env-front {
  clip-path: polygon(0 36%, 50% 70%, 100% 36%, 100% 100%, 0 100%);
  background:
    linear-gradient(160deg, rgba(255,252,246,.98), rgba(239,218,179,.98)),
    linear-gradient(35deg, transparent 47%, rgba(194,146,55,.46) 48%, transparent 49%);
  border-radius: 0 0 8px 8px;
  transform: translateZ(8px);
}
.env-flap {
  clip-path: polygon(0 0, 100% 0, 50% 68%);
  background: linear-gradient(180deg, #fffdf8, #efd9ad);
  border-radius: 8px 8px 0 0;
  transform-origin: top center;
  transform: rotateX(0deg) translateZ(16px);
  transition: transform .9s cubic-bezier(.2,.76,.25,1), opacity .5s ease;
}
.wax-seal {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 5;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%,-50%) translateZ(26px);
  font-family: 'Noto Serif Display', Georgia, serif;
  color: #fff9e8;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(145deg, #d8b45d, #956718);
  border: 1px solid rgba(255,238,176,.75);
  box-shadow: inset 0 2px 10px rgba(255,255,255,.25), 0 12px 24px rgba(99,72,27,.18);
  transition: opacity .35s ease, transform .65s ease;
}
.invite-card {
  position: relative;
  z-index: 3;
  width: min(90vw, 520px);
  min-height: 430px;
  padding: 16px;
  text-align: center;
  border-radius: 44px 44px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255,254,250,.98), rgba(255,251,243,.98)),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.92), transparent 26%);
  box-shadow: 0 38px 110px rgba(82,61,31,0.18);
  border: 1px solid rgba(189,145,55,0.45);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(96px) scale(.78) rotate(-0.35deg);
  transition: transform .95s cubic-bezier(.22,.78,.18,1), opacity .6s ease;
}
.invite-card:before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(184,138,47,.48);
  border-radius: 30px 30px 4px 4px;
  pointer-events: none;
}
.invite-card:after {
  content: none;
}
.invite-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 398px;
  padding: 28px clamp(22px, 5vw, 38px) 26px;
}
.invite-rule {
  position: relative;
  width: min(190px, 52%);
  height: 14px;
  margin-bottom: 7px;
  border-top: 1px solid rgba(184,138,47,.42);
}
.invite-rule:after {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(184,138,47,.55);
}
.paper-ornament {
  position: absolute;
  pointer-events: none;
  opacity: .52;
  z-index: 1;
}
.paper-ornament.top {
  left: -30px;
  top: 96px;
  width: 130px;
  height: 210px;
  background:
    radial-gradient(circle at 26% 76%, rgba(255,255,255,.95) 0 18px, transparent 19px),
    linear-gradient(78deg, transparent 45%, rgba(184,138,47,.58) 46% 47%, transparent 49%),
    radial-gradient(ellipse at 54% 22%, rgba(198,152,63,.55) 0 10px, transparent 11px);
  transform: rotate(-24deg);
}
.paper-ornament.bottom {
  right: -26px;
  bottom: 26px;
  width: 150px;
  height: 220px;
  background:
    radial-gradient(circle at 64% 78%, rgba(255,255,255,.96) 0 24px, transparent 25px),
    linear-gradient(96deg, transparent 44%, rgba(184,138,47,.6) 45% 46%, transparent 48%),
    radial-gradient(ellipse at 36% 28%, rgba(198,152,63,.5) 0 12px, transparent 13px);
  transform: rotate(18deg);
}
.invite-card .monogram {
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1;
  margin-bottom: 4px;
}
.invite-card .eyebrow {
  letter-spacing: .24em;
  line-height: 1.3;
  max-width: 100%;
}
.gate-title {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(44px, 8vw, 66px);
  font-weight: 400;
  margin: 12px 0 0;
  line-height: .95;
  max-width: 100%;
  white-space: nowrap;
}
.invite-gate.presented .invite-card {
  z-index: 7;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-18px) scale(1) rotate(0deg);
}
.invite-gate.presented .envelope {
  transform: translate(-50%,-36%) scale(.94);
  opacity: .74;
}
.invite-gate.presented .env-flap {
  transform: rotateX(-172deg) translateZ(16px);
}
.invite-gate.presented .wax-seal {
  opacity: 0;
  transform: translate(-50%,-50%) translateZ(26px) scale(.82);
}
.invite-gate.opening .invite-card {
  transform: translateY(-52px) scale(1.03) rotate(0deg);
  opacity: 1;
}
.invite-gate.opening .env-flap {
  transform: rotateX(-172deg) translateZ(16px);
}
.invite-gate.opening .wax-seal {
  opacity: 0;
  transform: translate(-50%,-50%) translateZ(26px) scale(.82);
}
.invite-date, .hero-date {
  letter-spacing: .28em;
  font-weight: 800;
  color: var(--accent-deep);
  margin: 18px 0;
}
.gate-copy {
  max-width: 330px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.65;
}
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 2px;
}
.section {
  position: relative;
  z-index: 2;
  padding: 92px clamp(18px, 5vw, 72px);
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  filter: blur(8px);
  transition:
    opacity .95s ease,
    transform 1s cubic-bezier(.18,.76,.2,1),
    filter .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.reveal > .section-title,
.reveal .card-soft,
.reveal .story-card,
.reveal .gallery-item,
.reveal .location-card,
.reveal .map-card,
.reveal .final-card {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .8s ease,
    transform .9s cubic-bezier(.18,.76,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in > .section-title,
.reveal.in .card-soft,
.reveal.in .story-card,
.reveal.in .gallery-item,
.reveal.in .location-card,
.reveal.in .map-card,
.reveal.in .final-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.section-panel {
  position: relative;
  z-index: 2;
}
.section-title {
  text-align: center;
  margin: 0 auto 32px;
  max-width: 760px;
}
.section-title.small {
  text-align: left;
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 800;
}
.section h2, .section-title h2 {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(44px, 9vw, 74px);
  font-weight: 400;
  color: #73531f;
  line-height: 1.02;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.panel-card .section-title h2 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1;
  max-width: 100%;
}
#rsvp .section-title h2 {
  font-size: clamp(34px, 5vw, 50px);
}
.panel-card .eyebrow {
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.subtitle {
  color: var(--muted);
  line-height: 1.75;
  margin: 10px auto 0;
  max-width: 680px;
}
.card-soft {
  background: var(--surface-soft);
  border: 1px solid rgba(232,215,182,0.85);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}
.countdown-widget {
  min-height: 94svh;
  display: grid;
  place-items: stretch center;
  overflow: hidden;
  padding: 96px 20px 34px;
  background: #f4ead8;
}
.countdown-widget picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.countdown-widget picture:before {
  content: '';
  position: absolute;
  inset: -24px;
  background: url('assets/hero-arkaplan2.png') center / cover no-repeat;
  filter: blur(20px);
  transform: scale(1.04);
  opacity: .5;
}
.countdown-widget picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.countdown-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,248,235,.58) 0%, rgba(255,248,235,.08) 30%, rgba(255,248,235,.04) 58%, rgba(51,33,19,.54) 100%),
    radial-gradient(circle at 50% 52%, transparent 0 28%, rgba(255,246,229,.18) 58%, rgba(118,78,29,.2) 100%);
}
.countdown-content {
  position: relative;
  z-index: 3;
  width: min(calc(100vw - 32px), 780px);
  margin: 0 auto;
  min-height: calc(94svh - 130px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  color: #513621;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  align-items: start;
}
.hero-title-block {
  justify-self: center;
  width: min(100%, 720px);
  padding-top: clamp(8px, 2.4vh, 24px);
  text-shadow: 0 2px 18px rgba(255,255,255,.72);
}
.countdown-content h1 {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(52px, 8vw, 88px);
  line-height: .92;
  margin: 0 0 8px;
  color: #543827;
  text-shadow: 0 2px 18px rgba(255,255,255,.82);
}
.countdown-content h1 .name-gold {
  color: #c28b24;
}
.countdown-content .hero-sub {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(18px, 2.3vw, 26px);
  margin: 0 0 4px;
  color: #7a5526;
  font-weight: 600;
}
.hero-invite-line {
  margin: 0 auto;
  max-width: 540px;
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(15px, 2vw, 21px);
  color: #6d4b34;
  font-style: italic;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(255,255,255,.72);
}
.countdown-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: clamp(6px, 1.5vw, 12px);
  align-items: center;
  width: min(100%, 560px);
  margin: 0 auto 18px;
  align-self: end;
}
.hero-visual-space {
  min-height: clamp(190px, 34vh, 360px);
}
.countdown-grid div {
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 13px 10px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 34px rgba(70,43,18,.16);
}
.countdown-grid b {
  color: rgba(255,248,239,.84);
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
}
.countdown-grid strong {
  display: block;
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(28px, 4.2vw, 42px);
  color: #3d3c3c;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(70,43,18,.34);
}
.countdown-grid span {
  display: block;
  color: rgb(93 92 92 / 86%);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
}
.hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.reminder-btn {
  min-width: 0;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  color: #fffaf2;
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 18px 44px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}
.countdown-content .hero-buttons {
  width: min(100%, 640px);
  margin: 0 auto;
}
.countdown-content .hero-buttons .btn {
  min-height: 54px;
  padding: 14px 16px;
  white-space: normal;
  text-align: center;
  line-height: 1.18;
  color: #674521;
}
.countdown-content .hero-buttons .primary {
  background: linear-gradient(135deg, #9f711f, #d9b65d 52%, #ad7a24);
  color: #674521;
  box-shadow: 0 18px 34px rgba(0,0,0,.2);
}
.countdown-content .hero-buttons .glass {
  background: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.72);
  color: #674521;
}
.reminder-btn:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-1px);
}
.hero-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(100%, 560px);
  margin: 0 auto 18px;
}
.hero-details div {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 34px rgba(70,43,18,.14);
}
.hero-details .time-detail {
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,232,181,.11)),
    radial-gradient(circle at 18% 12%, rgba(217,182,93,.22), transparent 34%);
  border-color: rgba(218,174,77,.44);
}
.hero-details .time-detail:before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d9b65d, transparent);
}
.hero-details strong {
  display: block;
  font-size: 10px;
  color: rgb(61 60 60 / 82%);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 6px;
}
.hero-details span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #373024;
  text-shadow: 0 2px 10px rgba(70,43,18,.25);
}
.hero-details .time-detail span {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: 20px;
  color: #373024;
  letter-spacing: .08em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(184,138,47,0.2);
}
.btn.primary {
  background: linear-gradient(135deg, #9f711f, #d9b65d 52%, #ad7a24);
  color: #fff;
}
.btn.glass {
  background: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.95);
  color: #60461d;
}
.btn-big {
  min-width: 220px;
}
#openInvite:after {
  content: none;
}
@keyframes continueArrow {
  0%, 100% { transform: translateX(0); opacity: .78; }
  50% { transform: translateX(5px); opacity: 1; }
}
.story-grid {
  display: grid;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
}
.story-copy {
  padding: 36px;
}
.timeline {
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(230,216,214,0.85);
  border-radius: 24px;
}
.step span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e6cf99;
  color: var(--accent);
  font-size: 22px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  max-width: 980px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 8px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #fffaf0, #ead9bb);
  border: 1px solid rgba(172,127,49,0.28);
  box-shadow: 0 10px 24px rgba(79,52,27,0.12);
  cursor: pointer;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: sepia(.1) contrast(.96) saturate(.92);
}
.video-item {
  cursor: pointer;
}
.video-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(255,250,240,.94), rgba(205,165,89,.34));
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.play-badge {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: var(--accent);
  box-shadow: 0 14px 28px rgba(76,49,31,0.18);
  font-size: 15px;
}
.location-grid {
  display: grid;
  gap: 24px;
}
.location-card, .map-card {
  padding: 24px;
}
.location-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}
.location-card p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.7;
}
.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 28px;
}
.rsvp-upload {
  padding-top: 60px;
}
.split-grid {
  display: grid;
  gap: 24px;
}
.panel-card {
  padding: 28px;
}
.form-card label, .upload-form label {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.form-card input, .form-card select, .form-card textarea,
.upload-form input, .upload-form textarea {
  width: 100%;
  border: 1px solid #e5d5d3;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.radio-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.form-card .radio-box label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e8d9d6;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0;
  min-height: 52px;
  line-height: 1.35;
}
.form-card .radio-box input {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
.form-card .radio-box span {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}
.file-drop {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}
.file-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.file-drop-title {
  width: fit-content;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #9f711f, #d9b65d 52%, #ad7a24);
  color: #fff;
  font-weight: 800;
}
.file-drop-text {
  color: var(--muted);
}
.upload-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.upload-row {
  display: grid;
  gap: 6px;
}
.upload-row strong {
  font-size: 14px;
}
.upload-row progress {
  width: 100%;
  accent-color: var(--accent);
  height: 10px;
}
.upload-retry {
  justify-self: start;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #9f711f, #d9b65d 52%, #ad7a24);
  color: #fff;
  font-weight: 800;
}
.bottom-nav {
  display: none !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(24,13,15,0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img,
.lightbox video {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 24px;
  display: none;
  background: #120f0d;
  box-shadow: 0 24px 70px rgba(18,10,8,0.32);
}
.lightbox.media-image img,
.lightbox.media-video video {
  display: block;
}
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,0.75);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: var(--text);
}
#lightboxClose {
  top: 20px;
  right: 20px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255,253,248,0.86);
  color: var(--accent);
  box-shadow: 0 14px 32px rgba(37,21,15,0.18);
  font-size: 42px;
  line-height: 1;
  z-index: 2;
}
.lightbox-prev {
  left: 22px;
}
.lightbox-next {
  right: 22px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(55,34,34,0.92);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 160;
}
.toast.show {
  opacity: 1;
  visibility: visible;
}
.final {
  padding-top: 52px;
}
.final-card {
  position: relative;
  overflow: hidden;
  width: min(92vw, 860px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) clamp(22px, 5vw, 58px) clamp(22px, 4vw, 44px);
  text-align: center;
  border-radius: 4px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.92), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.8), transparent 20%),
    linear-gradient(180deg, rgba(255,252,244,.94), rgba(245,231,202,.9)),
    var(--surface-soft);
  border: 1px solid rgba(158,111,31,.62);
  box-shadow: 0 28px 70px rgba(86,58,26,.14);
}
.final-card:before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(151,103,28,.58);
  pointer-events: none;
}
.final-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 9%, rgba(255,255,255,.86) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 14%, rgba(223,180,80,.36) 0 1px, transparent 3px),
    radial-gradient(circle at 74% 8%, rgba(255,255,255,.78) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 22%, rgba(223,180,80,.34) 0 1px, transparent 3px);
  background-size: 120px 120px, 86px 86px, 150px 150px, 110px 110px;
  opacity: .64;
  pointer-events: none;
}
.final-card > * {
  position: relative;
  z-index: 1;
}
.final-kicker,
.final-thanks,
.final-await {
  margin: 0 auto;
  max-width: 680px;
  color: #4f3924;
  text-transform: uppercase;
  letter-spacing: clamp(.14em, .9vw, .34em);
  line-height: 1.7;
}
.final-kicker {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(16px, 2.2vw, 23px);
  margin-top: clamp(18px, 3vw, 36px);
}
.final-script {
  margin: clamp(10px, 2vw, 16px) auto clamp(18px, 3vw, 28px);
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(28px, 5.2vw, 44px);
  font-style: italic;
  line-height: 1.1;
  color: #8d6826;
  white-space: nowrap;
}
.final-divider,
.final-flourish {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(270px, 70%);
  margin: 0 auto clamp(22px, 4vw, 34px);
  color: #c79b3a;
}
.final-divider:before,
.final-divider:after,
.final-flourish:before,
.final-flourish:after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,116,33,.82), transparent);
}
.final-monogram {
  width: clamp(88px, 14vw, 132px);
  aspect-ratio: 1;
  margin: 0 auto clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  border: 1px solid rgba(177,130,42,.58);
  border-radius: 50%;
  color: #9d7229;
  font-family: 'Cormorant Garamond', Cambria, Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.45), 0 0 28px rgba(216,177,91,.16);
}
.final-monogram i {
  display: block;
  width: 1px;
  height: 58%;
  background: rgba(151,103,28,.65);
}
.final-card h2 {
  margin: 0 auto;
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 400;
  line-height: .98;
  color: #9a6f25;
  font-style: italic;
  white-space: nowrap;
}
.final-card h2 span {
  color: #c4932f;
}
.final-flourish {
  width: min(360px, 74%);
  margin: clamp(16px, 3vw, 24px) auto clamp(22px, 4vw, 34px);
}
.final-thanks {
  font-size: clamp(14px, 1.9vw, 18px);
}
.final-divider-small {
  width: min(190px, 55%);
  margin: clamp(20px, 4vw, 34px) auto clamp(14px, 2vw, 22px);
}
.final-await {
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(21px, 3.2vw, 31px);
  color: #6a4a1f;
}
.footer-car-wrap {
  position: relative;
  width: min(100%, 680px);
  margin: clamp(14px, 3vw, 28px) auto 0;
  padding: clamp(10px, 2vw, 18px) 0 4px;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}
.footer-car-wrap:before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2%;
  height: 28%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(212,166,65,.34), transparent 68%),
    radial-gradient(ellipse at center, rgba(255,255,255,.6), transparent 54%);
  filter: blur(14px);
  opacity: .82;
  z-index: -1;
}
.footer-car-wrap:after {
  content: '';
  position: absolute;
  inset: 4% 9% auto;
  height: 42%;
  background:
    radial-gradient(circle at 18% 32%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(214,168,63,.72) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 64%, rgba(255,255,255,.72) 0 1px, transparent 3px);
  opacity: .68;
  animation: carSparkle 4.8s ease-in-out infinite;
}
.footer-car {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: .92;
  filter:
    drop-shadow(0 18px 26px rgba(91,61,29,.18))
    drop-shadow(0 0 18px rgba(214,168,63,.18))
    saturate(.96)
    contrast(.98);
  animation: carFloat 6.5s ease-in-out infinite;
}
@keyframes carFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.15deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(.15deg); }
}
@keyframes carSparkle {
  0%, 100% { opacity: .36; transform: translateY(0); }
  50% { opacity: .82; transform: translateY(-5px); }
}
@media (min-width: 760px) {
  .desktop-nav { display: flex; }
  .menu-btn { display: none; }
  .section { padding-top: 110px; padding-bottom: 110px; }
  .hero-buttons, .hero-details { justify-content: flex-start; }
  .hero-details { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .story-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .rsvp-upload { padding-top: 82px; }
  .split-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .location-grid { grid-template-columns: .95fr 1.05fr; align-items: start; }
  .bottom-nav { display: none; }
}
@media (max-width: 760px) {
  .topbar {
    display: flex;
    justify-content: space-between;
  }
  .lang-switch {
    display: none;
  }
  .gate-language {
    display: flex;
  }
  .door-center { width: min(88vw, 460px); padding-top: 78px; }
  .door-center .gate-title { font-size: clamp(42px, 11.5vw, 58px); white-space: normal; }
  .countdown-widget { min-height: auto; padding: 80px 18px 0; }
  .countdown-widget picture:before { opacity: .22; }
  .countdown-widget picture img {
    object-fit: cover;
    object-position: center bottom;
  }
  .countdown-overlay {
    background:
      linear-gradient(180deg, rgba(255,248,235,.52) 0%, rgba(255,248,235,.06) 30%, rgba(255,248,235,.02) 62%, rgba(51,33,19,.3) 100%),
      radial-gradient(circle at 50% 52%, transparent 0 32%, rgba(255,246,229,.12) 62%, rgba(118,78,29,.12) 100%);
  }
  .countdown-content {
    min-height: 0;
    width: min(calc(100vw - 24px), 390px);
    grid-template-rows: auto auto auto auto auto;
  }
  .hero-title-block { padding-top: 0; transform: translateY(-6px); }
  .hero-visual-space { min-height: clamp(142px, 26vh, 220px); }
  .hero-details {
    grid-template-columns: 1fr 1fr;
    width: min(100%, 330px);
    gap: 8px;
  }
  .hero-details .place-detail {
    grid-column: 1 / -1;
    width: min(74%, 230px);
    justify-self: center;
  }
  .countdown-content .hero-buttons {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
  }
  .countdown-grid { gap: 5px; margin-bottom: 10px; }
  .countdown-grid div { min-height: 72px; border-radius: 16px; padding: 10px 8px; }
  .panel-card {
    padding: 24px;
    min-width: 0;
  }
  .panel-card .section-title h2 {
    font-size: clamp(36px, 12vw, 48px);
  }
  body.memory-only .upload-panel .section-title h2 {
    font-size: clamp(36px, 10.8vw, 48px);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery-item {
    padding: 6px;
    border-radius: 9px;
  }
  .fall-flower {
    font-size: calc(var(--flower-size, 24px) * .82);
  }
  .final { padding-top: 34px; }
  .final-card {
    width: min(94vw, 520px);
    padding: 34px 20px 22px;
  }
  .final-card:before { inset: 10px; }
  .final-kicker,
  .final-thanks,
  .final-await {
    letter-spacing: .14em;
  }
  .final-script { font-size: clamp(23px, 7.1vw, 32px); }
  .final-card h2 { font-size: clamp(34px, 10vw, 46px); }
  .final-thanks { font-size: 13px; }
  .final-await { font-size: clamp(20px, 7vw, 28px); }
  .footer-car-wrap { width: min(100%, 500px); margin-top: 10px; }
  .rsvp-upload { padding-top: 60px; }
  #story.section { padding-top: 36px; }
  .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .topbar { padding: 14px 16px; }
  .countdown-content { padding: 10px 20px 20px; width: min(calc(100vw - 24px), 390px); }
  .countdown-content h1 { font-size: clamp(40px, 12vw, 50px); }
  .countdown-content .hero-sub { margin-bottom: 4px; }
  .hero-invite-line { font-size: 15px; max-width: 310px; }
  .countdown-grid { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 4px; margin: 0 auto 10px; width: min(100%, 350px); }
  .countdown-grid div { min-height: 58px; padding: 7px 5px; border-radius: 13px; }
  .countdown-grid strong { font-size: clamp(24px, 8vw, 30px); }
  .countdown-grid span { font-size: 9px; letter-spacing: .1em; }
  .countdown-grid b { font-size: 20px; }
  .hero-buttons { gap: 8px; }
  .hero-visual-space { min-height: clamp(132px, 24vh, 205px); }
  .hero-details { gap: 8px; margin-bottom: 10px; width: min(100%, 326px); }
  .hero-details div {
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 14px;
  }
  .hero-details .place-detail {
    min-height: 46px;
    padding: 7px 12px;
    border-radius: 999px;
  }
  .hero-details strong { font-size: 8px; letter-spacing: .16em; margin-bottom: 4px; }
  .hero-details span { font-size: 13px; }
  .hero-details .time-detail span { font-size: 18px; }
  .hero-buttons .btn { padding: 12px 12px; min-height: 50px; }
  .door-center { width: min(90vw, 370px); padding: 72px 18px 24px; }
  .door-center .monogram { font-size: 28px; }
  .door-center .gate-title { font-size: clamp(38px, 10.8vw, 46px); }
  .invite-date { letter-spacing: .18em; font-size: 13px; }
  .gate-copy { font-size: 14px; max-width: 280px; }
  .btn-big { min-width: 180px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .panel-card { padding: 22px 20px; }
  .panel-card .section-title h2 {
    font-size: clamp(32px, 10.5vw, 42px);
  }
  body.memory-only .upload-panel .section-title h2 {
    font-size: clamp(34px, 10vw, 40px);
  }
  .form-card input, .form-card select, .form-card textarea, .upload-form input, .upload-form textarea { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  #petalsCanvas, .flower-shower { display: none; }
  .reveal,
  .reveal > .section-title,
  .reveal .card-soft,
  .reveal .story-card,
  .reveal .gallery-item,
  .reveal .location-card,
  .reveal .map-card,
  .reveal .final-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
