/* ==========================================================
   Kaushini & Thamindu — Wedding Invitation
   Palette inspired by the sunset photo: twilight plum, sunset
   gold, coral glow and warm sand.
   ========================================================== */

:root {
  --night: #1a1426;
  --night-2: #241a33;
  --night-3: #2f2240;
  --gold: #e8b86b;
  --gold-2: #f6d9a0;
  --gold-3: #c9954a;
  --coral: #ef8a5f;
  --rose: #e9a59c;
  --sand: #fbf4ea;
  --sand-2: #f4e7d4;
  --sand-3: #e9d5b9;
  --ink: #3a2a2c;
  --ink-soft: #7a6261;
  --white: #fffaf3;

  --f-script: 'Pinyon Script', cursive;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Jost', system-ui, sans-serif;

  --sunset: linear-gradient(135deg, #f6d9a0 0%, #e8b86b 40%, #ef8a5f 100%);
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 20px 60px -20px rgba(26, 20, 38, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-serif);
  color: var(--ink);
  background: var(--night);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--night); }

/* ---------- Ambient canvas ---------- */
#ambient {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ==========================================================
   INTRO GATE
   ========================================================== */
#gate {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  perspective: 1600px;
}
.gate-door {
  position: absolute; top: 0; bottom: 0;
  width: 50.5%;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(239, 138, 95, .35), transparent 60%),
    radial-gradient(ellipse at 50% -20%, rgba(232, 184, 107, .18), transparent 55%),
    linear-gradient(180deg, #1d1529 0%, #2a1d38 60%, #3a2440 100%);
  transition: transform 1.6s var(--ease), opacity 1.6s ease;
  overflow: hidden;
}
.gate-left  { left: 0;  transform-origin: left center;  border-right: 1px solid rgba(232,184,107,.35); }
.gate-right { right: 0; transform-origin: right center; border-left: 1px solid rgba(232,184,107,.35); }

.gate-pattern {
  position: absolute; inset: 0;
  opacity: .12;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 18px, var(--gold) 19px, transparent 20px),
    radial-gradient(circle at 0 0, transparent 18px, var(--gold) 19px, transparent 20px);
  background-size: 56px 56px;
  background-position: 0 0, 28px 28px;
}
.gate-left .gate-pattern  { mask-image: linear-gradient(90deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); }
.gate-right .gate-pattern { mask-image: linear-gradient(270deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); }

.gate-content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--gold-2);
  padding: 2rem;
  transition: opacity .6s ease, transform .8s var(--ease);
}
.gate-guest {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(30px, 6.5vw, 44px);
  letter-spacing: .015em;
  color: #fff9ee;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  margin-bottom: .3rem;
  opacity: 0; animation: fadeUp 1s .3s forwards;
}
.gate-kicker {
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: .45em; text-transform: uppercase;
  color: var(--gold);
  opacity: 0; animation: fadeUp 1s .5s forwards;
}
.gate-hint {
  font-family: var(--f-serif); font-style: italic;
  font-size: 17px; color: rgba(246, 217, 160, .75);
  opacity: 0; animation: fadeUp 1s 1s forwards, breathe 2.6s 2s infinite;
}
.gate-date {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 12px; letter-spacing: .5em;
  margin-top: 2.4rem; color: rgba(246, 217, 160, .55);
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}

/* Wax seal */
.seal {
  position: relative;
  width: 164px; height: 164px;
  margin: 2.2rem auto 1.4rem;
  display: grid; place-items: center;
  opacity: 0;
  animation: sealIn 1.2s .6s var(--ease) forwards;
  -webkit-tap-highlight-color: transparent;
}
.seal-ring {
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 107, .45);
  animation: pulseRing 2.6s ease-out infinite;
}
.seal-core {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 46% 54% 48% 52% / 54% 46% 54% 46%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 35% 28%, #fae6c6 0%, #e4be82 25%, #c29352 65%, #8e622b 100%);
  box-shadow:
    inset 0 -8px 18px rgba(0,0,0,.45),
    inset 0 6px 14px rgba(255,248,220,.65),
    0 14px 35px rgba(0,0,0,.5);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
  transition: transform .5s var(--ease);
}
/* Raised rim around the pressed die */
.seal-rim {
  position: absolute; inset: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f9e2bf 0%, #d8ac6d 50%, #ad7b39 100%);
  box-shadow:
    inset 0 2px 4px rgba(255,248,225,.7),
    inset 0 -3px 6px rgba(40,15,5,.5),
    0 3px 8px rgba(0,0,0,.35);
}
/* Flat pressed die center */
.seal-die {
  position: relative; z-index: 2;
  width: 126px; height: 126px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #f8dfb6 0%, #d8ac6d 40%, #b88645 80%, #95662d 100%);
  box-shadow:
    inset 0 3.5px 8px rgba(45,18,5,.65),
    inset 0 -2px 5px rgba(255,248,225,.45);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
/* Engraved SVG graphics */
.seal-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  color: #fff0d2;
  filter:
    drop-shadow(1px 1.4px 1px rgba(50, 18, 5, .85))
    drop-shadow(-0.8px -0.8px 0.8px rgba(255, 250, 235, .8));
}
/* Content container */
.seal-body {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  user-select: none;
  margin-top: -3px;
}
.seal-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.seal-char {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  color: #fff8ea;
  text-shadow:
    1px 1.5px 1.5px rgba(50, 18, 5, .9),
    -1px -1px 1px rgba(255, 250, 235, .85);
  letter-spacing: .02em;
}
.seal-k { transform: translateX(1px); }
.seal-t { transform: translateX(-1px); }
.seal-sep {
  width: 2px; height: 38px;
  background: #fff8ea;
  box-shadow:
    1px 1.5px 1.5px rgba(50, 18, 5, .9),
    -1px -1px 1px rgba(255, 250, 235, .85);
  border-radius: 1px;
}
.seal-date-text {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  color: #fff8ea;
  margin-top: 5px;
  text-shadow:
    1px 1.2px 1.2px rgba(50, 18, 5, .9),
    -0.8px -0.8px 0.8px rgba(255, 250, 235, .85);
}
.seal:hover .seal-core { transform: scale(1.05) rotate(-3deg); }
.seal:active .seal-core { transform: scale(.96); }

/* Opening state */
#gate.opening .gate-content { opacity: 0; transform: scale(.9); }
#gate.opening .seal-core { transform: scale(1.4) rotate(20deg); }
#gate.opening .gate-left  { transform: rotateY(-100deg); opacity: .2; }
#gate.opening .gate-right { transform: rotateY(100deg);  opacity: .2; }
#gate.gone { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  padding-top: max(14px, env(safe-area-inset-top));
  transform: translateY(-110%);
  transition: transform .5s var(--ease), background .4s ease;
  background: rgba(26, 20, 38, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(232, 184, 107, .15);
}
.nav.show { transform: translateY(0); }
.nav-mono {
  font-family: var(--f-script);
  font-size: 30px; line-height: 1;
  color: var(--gold-2);
}
.nav-mono em { font-style: normal; font-size: 20px; margin: 0 2px; color: var(--gold); }
.nav-links { display: flex; gap: clamp(18px, 3vw, 36px); }
.nav-links a {
  position: relative;
  font-family: var(--f-sans); font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 250, 243, .75);
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 99px;
  background: var(--sunset); color: var(--night);
  box-shadow: 0 6px 20px -6px rgba(239, 138, 95, .6);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -6px rgba(239, 138, 95, .8); }

/* Music button */
.music-btn {
  position: fixed; right: 18px; bottom: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 55;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(26, 20, 38, .7);
  border: 1px solid rgba(232, 184, 107, .4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .3s var(--ease);
}
.music-btn:hover { transform: scale(1.08); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 4px; background: var(--gold); border-radius: 2px; transition: height .3s; }
.music-btn.playing .bars i { animation: eq 1s ease-in-out infinite; }
.music-btn.playing .bars i:nth-child(2) { animation-delay: .2s; }
.music-btn.playing .bars i:nth-child(3) { animation-delay: .4s; }
.music-btn.playing .bars i:nth-child(4) { animation-delay: .1s; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 45%;
  filter: blur(1.5px) saturate(1.15) brightness(.88);
  transform: scale(1.02);
  animation: kenburns 24s ease-in-out infinite alternate;
}
body.locked .hero-media img { animation-play-state: paused; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(26, 20, 38, .55) 0%, rgba(26, 20, 38, .35) 60%, rgba(26, 20, 38, .7) 100%),
    linear-gradient(180deg, rgba(26, 20, 38, .65) 0%, rgba(26, 20, 38, .15) 35%, rgba(26, 20, 38, .35) 65%, var(--night) 100%);
}
.hero-content { padding: 110px 1.5rem 120px; max-width: 900px; }
.hero-kicker {
  font-family: var(--f-sans); font-weight: 400;
  font-size: 11px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold-2);
}
.hero-names {
  font-family: var(--f-script); font-weight: 400;
  line-height: .95;
  margin: 1.4rem 0 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hero-names span { display: block; }
.hero-names .n1, .hero-names .n2 {
  font-size: clamp(62px, 13vw, 136px);
  background: linear-gradient(180deg, #fff8ec 20%, var(--gold-2) 65%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.35));
}
.hero-names .amp {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(44px, 7vw, 72px);
  color: var(--coral);
  margin: -.05em 0 -.1em;
}
.hero-sub {
  font-style: italic; font-weight: 300;
  font-size: clamp(17px, 2.4vw, 21px);
  color: rgba(255, 250, 243, .85);
}
.hero-date {
  display: inline-flex; align-items: center; gap: 1.2rem;
  margin: 2.2rem 0 1rem;
  font-family: var(--f-sans); font-size: 12px;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-2);
}
.hero-date span { padding: 10px 0; border-top: 1px solid rgba(246,217,160,.5); border-bottom: 1px solid rgba(246,217,160,.5); min-width: 110px; }
.hero-date strong {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 58px; letter-spacing: 0; line-height: 1;
  color: var(--white);
}
.hero-venue {
  font-family: var(--f-serif); font-style: italic;
  font-size: 18px; color: rgba(255, 250, 243, .8);
}

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(246, 217, 160, .75);
}
.scroll-cue i {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%; background: var(--white);
  animation: drip 2s ease-in-out infinite;
}

/* ==========================================================
   SECTIONS — shared
   ========================================================== */
.section { position: relative; padding: clamp(80px, 12vw, 130px) 0; overflow: hidden; }
.section.dark   { background: var(--night); color: var(--white); }
.section.light  { background: var(--sand); }
.section.light-2 { background: linear-gradient(180deg, var(--sand-2), var(--sand)); }

.container { width: min(1120px, 100% - 3rem); margin: 0 auto; position: relative; z-index: 1; }
.container.narrow { width: min(760px, 100% - 3rem); }
.center { text-align: center; }

.label {
  font-family: var(--f-sans); font-weight: 400;
  font-size: 11px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: .9rem;
}
.dark .label { color: var(--gold); }
.title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.1;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--ink);
}
.dark .title { color: var(--white); }
.title::after {
  content: ''; display: block;
  width: 64px; height: 1px; margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.lead {
  font-style: italic; font-size: 19px;
  color: var(--ink-soft);
  margin: -1.8rem 0 2.6rem;
}
.dark .lead { color: rgba(255, 250, 243, .7); }
.lead strong { font-style: normal; font-weight: 500; color: var(--gold-3); }
.dark .lead strong { color: var(--gold-2); }

.glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35; pointer-events: none;
}
.glow-a { width: 520px; height: 520px; background: var(--coral); top: -220px; right: -160px; }
.glow-b { width: 480px; height: 480px; background: var(--gold); bottom: -220px; left: -180px; opacity: .2; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2.6rem; }
.btn-row.left { justify-content: flex-start; }
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 99px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s, border-color .3s;
  overflow: hidden;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: var(--sunset); color: var(--night); box-shadow: 0 10px 30px -10px rgba(239, 138, 95, .7); }
.btn-gold:hover { box-shadow: 0 16px 36px -10px rgba(239, 138, 95, .9); }
.btn-gold::before {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
}
.btn-gold:hover::before { left: 130%; }
.btn-ghost { border: 1px solid rgba(246, 217, 160, .45); color: var(--gold-2); }
.btn-ghost:hover { background: rgba(246, 217, 160, .1); border-color: var(--gold-2); }
.btn-dark { background: var(--night); color: var(--gold-2); box-shadow: var(--shadow); }
.btn-dark:hover { background: var(--night-3); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--sand); }
.btn-block { width: 100%; }

.spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text { opacity: .6; }
.btn:disabled { pointer-events: none; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */
.countdown-section { padding-top: clamp(60px, 9vw, 100px); }
.countdown {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(6px, 2vw, 18px);
}
.cd-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: clamp(64px, 17vw, 128px);
  padding: clamp(14px, 3vw, 26px) 6px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(232, 184, 107, .2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.cd-num {
  font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1;
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cd-num.tick { animation: tick .5s var(--ease); }
.cd-lbl {
  margin-top: 10px;
  font-family: var(--f-sans); font-size: clamp(9px, 1.6vw, 11px);
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255, 250, 243, .6);
}
.cd-sep {
  font-size: clamp(26px, 5vw, 48px);
  color: rgba(232, 184, 107, .4);
  padding-top: clamp(14px, 3.4vw, 30px);
  font-weight: 300;
}
.cd-done {
  font-family: var(--f-script);
  font-size: clamp(44px, 9vw, 72px);
  background: var(--sunset);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================
   NOTE
   ========================================================== */
.ornament { width: 220px; height: 30px; margin: 0 auto 2rem; fill: none; stroke: var(--gold-3); stroke-width: 1; }
.ornament circle { fill: var(--coral); stroke: none; }
.note-quote {
  font-style: italic; font-weight: 300;
  font-size: clamp(21px, 3.2vw, 30px);
  line-height: 1.6;
  color: var(--ink);
}
.note-sign {
  margin-top: 1.8rem;
  font-family: var(--f-script);
  font-size: 38px; color: var(--gold-3);
}

/* ==========================================================
   DETAIL CARDS
   ========================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.card {
  position: relative;
  padding: 44px 28px 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(201, 149, 74, .25);
  box-shadow: 0 10px 40px -24px rgba(58, 42, 44, .35);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(239, 138, 95, .14), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px -28px rgba(58, 42, 44, .5); border-color: rgba(201, 149, 74, .55); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night);
  box-shadow: 0 10px 24px -8px rgba(26, 20, 38, .5);
}
.card-icon svg, .tl-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg .accent, .tl-icon svg .accent { stroke: var(--coral); fill: rgba(239, 138, 95, .25); }
.card h3 {
  font-family: var(--f-sans); font-weight: 400;
  font-size: 11px; letter-spacing: .45em; text-transform: uppercase;
  color: var(--gold-3); margin-bottom: 14px;
}
.card-main { font-size: 25px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.card-main sup { font-size: .55em; }
.card-sub { margin-top: 12px; font-style: italic; color: var(--ink-soft); font-size: 16px; }

/* ==========================================================
   TIMELINE
   ========================================================== */
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  top: 10px; bottom: 10px; left: 50%;
  width: 1px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(232, 184, 107, .55) 10%, rgba(239, 138, 95, .55) 90%, transparent);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: 44px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-time {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--gold-2);
  text-align: right; padding-right: 10px;
}
.tl-dot { display: grid; place-items: center; }
.tl-dot span {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px var(--night), 0 0 0 7px rgba(232, 184, 107, .25);
  position: relative;
}
.tl-dot span::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--sunset);
}
.tl-body {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  border: 1px solid rgba(232, 184, 107, .18);
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.tl-body:hover { transform: translateY(-4px); border-color: rgba(232, 184, 107, .45); }
.tl-icon { float: right; margin: -4px 0 6px 12px; opacity: .9; }
.tl-icon svg { width: 38px; height: 38px; }
.tl-body h3 { font-weight: 500; font-size: 25px; color: var(--white); margin-bottom: 6px; }
.tl-body p { font-size: 16.5px; color: rgba(255, 250, 243, .68); line-height: 1.55; }

/* alternate sides on desktop */
.tl-item:nth-child(even) .tl-time { order: 3; text-align: left; padding: 0 0 0 10px; }
.tl-item:nth-child(even) .tl-dot  { order: 2; }
.tl-item:nth-child(even) .tl-body { order: 1; }

.tl-live {
  display: none;
  margin-top: 12px;
  font-family: var(--f-sans); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--coral);
  align-items: center; gap: 8px;
}
.tl-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1.2s infinite; }
.tl-item.now .tl-live { display: inline-flex; }
.tl-item.now .tl-body { border-color: var(--coral); background: linear-gradient(160deg, rgba(239,138,95,.16), rgba(255,255,255,.02)); }
.tl-item.now .tl-dot span { box-shadow: 0 0 0 6px var(--night), 0 0 0 8px var(--coral), 0 0 24px 8px rgba(239,138,95,.5); }
.tl-item.past { opacity: .5; }

/* ==========================================================
   PHOTO MOMENT
   ========================================================== */
.moment-section { padding-top: clamp(70px, 10vw, 110px); }
.moment { position: relative; max-width: 980px; margin: 0 auto; }
.moment-frame {
  position: relative;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(26, 20, 38, .6);
  transform: rotate(-1.2deg);
  transition: transform .8s var(--ease);
}
.moment-frame::after {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(255, 250, 243, .55);
  border-radius: 16px; pointer-events: none;
}
.moment:hover .moment-frame { transform: rotate(0) scale(1.01); }
.moment-frame img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.moment:hover .moment-frame img { transform: scale(1.04); }
.moment figcaption {
  position: absolute; right: clamp(-10px, -2vw, 0px); bottom: -34px;
  background: var(--sand);
  padding: 18px 30px 16px;
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(26,20,38,.45);
  text-align: right;
  transform: rotate(2deg);
}
.moment .script { display: block; font-family: var(--f-script); font-size: clamp(30px, 5vw, 44px); line-height: 1; color: var(--coral); }
.moment-line { font-family: var(--f-sans); font-size: 11px; letter-spacing: .45em; text-transform: uppercase; color: var(--ink-soft); }

/* ==========================================================
   VENUE
   ========================================================== */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.venue-info h3 { font-weight: 500; font-size: clamp(32px, 4vw, 42px); line-height: 1.1; color: var(--ink); }
.venue-sub { font-family: var(--f-script); font-size: 34px; color: var(--coral); margin: 4px 0 18px; }
.venue-addr {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 15px; letter-spacing: .05em; color: var(--ink);
  padding-left: 16px; border-left: 2px solid var(--gold);
  margin-bottom: 18px;
}
.venue-desc { font-style: italic; font-size: 18px; color: var(--ink-soft); }
.venue-info .btn-row { margin-top: 2rem; }
.venue-map {
  position: relative;
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.venue-map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.95); }

/* ==========================================================
   FORMS
   ========================================================== */
.form { display: grid; gap: 22px; padding: clamp(26px, 5vw, 44px); border-radius: 24px; }
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  border: 1px solid rgba(232, 184, 107, .25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.paper {
  background: var(--white);
  border: 1px solid rgba(201, 149, 74, .25);
  box-shadow: 0 30px 60px -36px rgba(58, 42, 44, .45);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { position: relative; display: grid; gap: 8px; border: 0; }
fieldset.field {
  padding: 0;
  margin: 0;
  min-width: 0;
}
.field label, .field legend {
  font-family: var(--f-sans); font-size: 11px; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 2px;
  padding: 0;
  display: block;
  float: left;
  width: 100%;
}
.dark .field label, .dark .field legend { color: var(--gold); }
.opt { text-transform: none; letter-spacing: .05em; opacity: .7; }
.field-hint {
  font-family: var(--f-sans);
  font-size: 11.5px;
  color: var(--ink-soft);
  opacity: .8;
  margin-top: 3px;
  letter-spacing: .02em;
  font-style: italic;
}
.dark .field-hint { color: rgba(255, 250, 243, .6); }
.field input[type=text], .field input[type=tel], .field input[type=number], .field textarea {
  width: 100%;
  font-family: var(--f-serif); font-size: 19px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(201, 149, 74, .3);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: vertical;
}
.dark .field input, .dark .field textarea {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(232, 184, 107, .25);
  color: var(--white);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(122, 98, 97, .55); font-style: italic; }
.dark .field input::placeholder, .dark .field textarea::placeholder { color: rgba(255, 250, 243, .35); }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 184, 107, .18); }
.field.invalid input, .field.invalid textarea { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(239, 138, 95, .18); }
.counter { position: absolute; right: 12px; bottom: 10px; font-family: var(--f-sans); font-size: 11px; color: var(--ink-soft); opacity: .7; }

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, .28);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(232, 184, 107, .2);
  width: 100%;
  box-sizing: border-box;
}
.pill {
  position: relative;
  cursor: pointer;
  margin: 0;
  display: flex;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--f-serif);
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1px solid transparent;
  color: rgba(255, 250, 243, .65);
  background: transparent;
  transition: all .25s var(--ease);
  user-select: none;
  box-sizing: border-box;
}
.pill span::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 184, 107, .4);
  transition: all .25s var(--ease);
  flex-shrink: 0;
  box-sizing: border-box;
}
.pill:hover span {
  color: rgba(255, 250, 243, .9);
  background: rgba(232, 184, 107, .06);
}
.pill:hover span::before {
  border-color: var(--gold-2);
}
.pill input:checked + span {
  background: rgba(232, 184, 107, .16);
  border-color: rgba(232, 184, 107, .5);
  color: var(--gold-2);
  font-weight: 500;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.pill input:checked + span::before {
  content: '✓';
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  color: var(--night);
  background: var(--gold-2);
  border-color: var(--gold-2);
}
.pill input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.stepper { display: flex; align-items: stretch; max-width: 220px; }
.stepper button {
  width: 54px; font-size: 22px; color: var(--gold-2);
  border: 1px solid rgba(232, 184, 107, .3);
  transition: background .3s;
}
.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child  { border-radius: 0 12px 12px 0; }
.stepper button:hover { background: rgba(232, 184, 107, .12); }
.stepper button:disabled { opacity: .28; cursor: not-allowed; pointer-events: none; }
.stepper input { border-radius: 0 !important; text-align: center; border-left: 0 !important; border-right: 0 !important; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#guests-limit-hint { margin-top: 8px; font-size: 13px; color: var(--gold-2); font-style: italic; }
#guests-field { transition: opacity .4s, max-height .5s var(--ease); max-height: 160px; overflow: hidden; }
#guests-field.collapsed { opacity: 0; max-height: 0; margin-top: -22px; }

.form-msg { min-height: 1.2em; text-align: center; font-style: italic; font-size: 16px; color: var(--coral); }
.form-msg.ok { color: #6aa77a; }

/* Checkbox (Wish wall toggle) */
.field-checkbox {
  margin: -2px 0 4px;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: .02em;
}
.check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border: 1.5px solid rgba(201, 149, 74, .6);
  border-radius: 5px;
  background: rgba(255, 255, 255, .95);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all .2s ease;
  flex-shrink: 0;
  margin: 0;
}
.check-label input[type="checkbox"]::before {
  content: "✓";
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-2);
  transform: scale(0);
  transition: transform .15s ease-in-out;
}
.check-label input[type="checkbox"]:checked {
  background: var(--night);
  border-color: var(--gold);
}
.check-label input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.check-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rsvp-thanks { text-align: center; padding: clamp(36px, 6vw, 56px); border-radius: 24px; color: var(--white); animation: popIn .7s var(--ease); }
.thanks-heart { font-size: 46px; color: var(--coral); animation: beat 1.4s ease-in-out infinite; }
.rsvp-thanks h3 { font-family: var(--f-script); font-weight: 400; font-size: 56px; color: var(--gold-2); line-height: 1.1; margin: 8px 0; }
.rsvp-thanks p { font-size: 19px; color: rgba(255, 250, 243, .75); margin-bottom: 1.6rem; }

/* RSVP Deadline Closed States */
.rsvp-closed-card {
  text-align: center;
  padding: clamp(38px, 6vw, 56px) clamp(24px, 5vw, 42px);
  border-radius: 24px;
  color: var(--white);
  animation: popIn .7s var(--ease);
  border: 1px solid rgba(232, 184, 107, .25);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4);
}
.rsvp-closed-card .closed-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .95;
}
.rsvp-closed-card .closed-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--gold-2);
  margin-bottom: 12px;
}
.rsvp-closed-card .closed-desc {
  font-family: var(--f-serif);
  font-size: clamp(17px, 2.2vw, 19px);
  color: rgba(255, 250, 243, .78);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}
.rsvp-closed-card .closed-desc strong {
  color: var(--gold-2);
}

.rsvp-closed-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(232, 184, 107, .22);
}
.rsvp-closed-pill {
  display: inline-block;
  background: rgba(239, 138, 95, .15);
  color: var(--coral);
  border: 1px solid rgba(239, 138, 95, .35);
  font-family: var(--f-sans);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 10px;
}
.rsvp-closed-note p {
  font-family: var(--f-serif);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 250, 243, .68);
  margin-bottom: 0;
}

/* ==========================================================
   WISHES
   ========================================================== */
.wishes-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.wish-wall {
  position: relative;
  max-height: 560px; overflow-y: auto;
  padding: 6px 10px 18px 4px;
  scrollbar-width: thin; scrollbar-color: var(--sand-3) transparent;
  mask-image: linear-gradient(180deg, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
}
.wish-list { columns: 2 240px; column-gap: 16px; }
.wish {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(201, 149, 74, .18);
  box-shadow: 0 14px 30px -24px rgba(58, 42, 44, .5);
  animation: popIn .6s var(--ease) both;
  position: relative;
}
.wish::before {
  content: '“'; position: absolute; top: -6px; left: 14px;
  font-size: 64px; line-height: 1; color: var(--gold); opacity: .35;
}
.wish p { font-style: italic; font-size: 17.5px; color: var(--ink); line-height: 1.55; position: relative; white-space: pre-line; word-wrap: break-word; }
.wish-meta {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 4px;
}
.wish-name {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .02em;
  color: #2b1f28;
  line-height: 1.2;
}
.wish-name::before {
  content: '— ';
  color: var(--gold);
  font-weight: 400;
}
.wish-time {
  margin-left: auto;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .7;
}

/* WhatsApp-style Heart Reaction Badge (Overlapping Bottom-Right Edge) */
.wish-reaction {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  bottom: -12px;
  right: 20px;
  z-index: 10;
  border: 1.5px solid rgba(201, 149, 74, .32);
  background: #ffffff;
  border-radius: 999px;
  padding: 3px 8px 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 8px -1px rgba(43, 31, 40, .18), 0 1px 3px rgba(0, 0, 0, .08);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
  animation: reactionPop .35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes reactionPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wish-reaction:hover,
.wish-reaction:focus-visible,
.wish-reaction.is-active {
  transform: scale(1.12);
  box-shadow: 0 6px 14px -2px rgba(43, 31, 40, .24), 0 2px 5px rgba(0, 0, 0, .1);
  border-color: rgba(201, 149, 74, .6);
  background: #ffffff;
  z-index: 15;
}

.wish-reaction:active {
  transform: scale(0.96);
}

.reaction-heart {
  display: inline-block;
  line-height: 1;
  font-size: 13.5px;
  filter: drop-shadow(0 1px 2px rgba(220, 38, 38, .3));
  transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wish-reaction:hover .reaction-heart,
.wish-reaction.is-active .reaction-heart {
  transform: scale(1.18);
}

/* WhatsApp-style Tooltip / Popup */
.reaction-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #1e1522;
  color: #fff9f3;
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 6px 11px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -4px rgba(18, 9, 24, .45), 0 2px 6px rgba(0, 0, 0, .2);
  border: 1px solid rgba(232, 184, 107, .35);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Downward arrow pointing directly at the heart icon */
.reaction-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 14px;
  transform: translateX(50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #1e1522 transparent transparent transparent;
}

.reaction-tooltip .tt-heart {
  font-size: 11px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(220, 38, 38, .3));
}

.reaction-tooltip .tt-name {
  color: #fff8ef;
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Show tooltip on hover, keyboard focus, or touch/click */
.wish-reaction:hover .reaction-tooltip,
.wish-reaction:focus-visible .reaction-tooltip,
.wish-reaction.is-active .reaction-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.wish:nth-child(3n+2) { background: #fff6ec; }
.wish:nth-child(3n) { background: #fdf0ec; }
.wish-empty { font-style: italic; color: var(--ink-soft); font-size: 18px; text-align: center; padding: 60px 0; column-span: all; }

/* ==========================================================
   GUEST PHOTO DROP & SOCIAL TAGS (Combined Section)
   ========================================================== */
.photo-drop-section {
  position: relative;
  overflow: hidden;
}
.photos-combined-container {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.photos-section-header {
  margin-bottom: clamp(28px, 4vw, 42px);
}

/* Master Glass Showcase Container */
.photo-hub-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1px 1.4fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(232, 184, 107, .32);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

@media (max-width: 860px) {
  .photo-hub-showcase {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: clamp(22px, 5vw, 32px);
  }
}

/* Vertical / Horizontal Divider */
.photo-hub-divider {
  width: 1px;
  height: 80%;
  align-self: center;
  background: linear-gradient(180deg, transparent, rgba(232, 184, 107, .35) 20%, rgba(232, 184, 107, .35) 80%, transparent);
}

@media (max-width: 860px) {
  .photo-hub-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 107, .3) 20%, rgba(232, 184, 107, .3) 80%, transparent);
  }
}

/* Side 1: Social & Hashtag */
.photo-hub-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: var(--white);
}
.social-icon-badge {
  font-size: 28px;
  margin-bottom: 8px;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(232, 184, 107, .5));
}
.label-sm {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 6px;
}
.social-card-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 500;
  color: var(--gold-2);
  line-height: 1.15;
  margin-bottom: 12px;
}
.social-mini-hint {
  font-size: 14.5px;
  color: rgba(255, 250, 243, .72);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 380px;
}

/* Readable Hashtag Card */
.hashtag-pill-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(26, 20, 38, .6);
  border: 1px solid rgba(232, 184, 107, .35);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: all .28s var(--ease);
  text-align: left;
  user-select: none;
  width: 100%;
}
.hashtag-pill-card:hover,
.hashtag-pill-card:focus-visible {
  background: rgba(232, 184, 107, .15);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(232, 184, 107, .35);
  outline: none;
}
.hashtag-pill-card:active {
  transform: translateY(0);
}
.hashtag-text-wrap {
  display: flex;
  align-items: baseline;
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.7vw, 26px);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
}
.hashtag-hash {
  color: var(--gold);
  margin-right: 3px;
  font-weight: 500;
  font-size: 1.05em;
  text-shadow: 0 0 12px rgba(232, 184, 107, .6);
}
.hashtag-name {
  color: #fff9ed;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.hashtag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(232, 184, 107, .16);
  border: 1px solid rgba(232, 184, 107, .38);
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-2);
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.hashtag-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hashtag-pill-card:hover .hashtag-badge {
  background: var(--sunset);
  color: var(--night);
  border-color: transparent;
}
.hashtag-pill-card.copied {
  border-color: #55b778;
}
.hashtag-pill-card.copied .hashtag-badge {
  background: rgba(85, 183, 120, .25);
  border-color: #55b778;
  color: #8bf0b2;
}

/* Side 2: Photo Vault */
.photo-hub-vault {
  display: flex;
  flex-direction: column;
}
.photo-privacy-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  background: rgba(232, 184, 107, .12);
  border: 1px solid rgba(232, 184, 107, .28);
  border-radius: 99px;
  padding: 7px 18px;
  margin-bottom: 1.25rem;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold-2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.photo-privacy-badge .privacy-icon {
  font-size: 13px;
}
.photo-form {
  display: grid;
  gap: 18px;
}
.photo-dropzone {
  position: relative;
  border: 2px dashed rgba(232, 184, 107, .38);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 42px) 20px;
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  cursor: pointer;
  transition: all .3s var(--ease);
  outline: none;
}
.photo-dropzone:hover,
.photo-dropzone:focus-visible,
.photo-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(232, 184, 107, .1);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -12px rgba(232, 184, 107, .35);
}
.photo-dropzone.dragover {
  border-style: solid;
  border-color: var(--coral);
}
.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.dropzone-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
  animation: beat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(232, 184, 107, .4));
}
.dropzone-title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: 500;
  color: #fff9ed;
  margin: 0;
  letter-spacing: .02em;
}
.dropzone-hint {
  font-family: var(--f-sans);
  font-size: 13px;
  color: rgba(255, 250, 243, .65);
  max-width: 440px;
  margin: 0;
  line-height: 1.45;
}

/* Preview Tray */
.photo-preview-tray {
  background: rgba(26, 20, 38, .6);
  border: 1px solid rgba(232, 184, 107, .3);
  border-radius: 16px;
  padding: 16px;
  animation: popIn .3s ease;
}
.tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tray-count {
  font-weight: 600;
  color: var(--gold-2);
}
.btn-clear-tray {
  color: var(--coral);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s;
}
.btn-clear-tray:hover {
  background: rgba(239, 138, 95, .15);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 12px;
}
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1426;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  border: 1px solid rgba(232, 184, 107, .3);
  animation: popIn .3s var(--ease) both;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-item-info {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 3px 6px;
  font-family: var(--f-sans);
  font-size: 9.5px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 20, 38, .85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid;
  place-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 3;
}
.preview-remove:hover {
  background: var(--coral);
  transform: scale(1.1);
}

/* Guest Name & Caption Inputs */
.photo-meta-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.photo-meta-fields .field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(26, 20, 38, .6);
  border: 1px solid rgba(232, 184, 107, .28);
  border-radius: 12px;
  color: #fff9ed;
  font-family: var(--f-sans);
  font-size: 14px;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.photo-meta-fields .field input::placeholder {
  color: rgba(255, 250, 243, .45);
  font-style: italic;
}
.photo-meta-fields .field input:focus {
  border-color: var(--gold);
  background: rgba(26, 20, 38, .85);
  box-shadow: 0 0 0 3px rgba(232, 184, 107, .2);
}

@media (max-width: 600px) {
  .photo-meta-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Submit button state */
#photo-submit-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.3);
  box-shadow: none;
  transform: none;
}
#photo-submit-btn:disabled::before {
  display: none;
}

/* Progress bar */
.photo-progress-wrap {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  margin-top: 4px;
}
.photo-progress-bar {
  height: 100%;
  background: var(--sunset);
  border-radius: 99px;
  transition: width .25s ease-out;
}

/* Success Card */
.photo-thanks {
  text-align: center;
  padding: clamp(32px, 5vw, 48px) 20px;
  border-radius: 20px;
  border: 1px solid rgba(232, 184, 107, .35);
  background: rgba(26, 20, 38, .6);
  animation: popIn .5s var(--ease);
}
.photo-thanks .thanks-heart {
  font-size: 44px;
  margin-bottom: 8px;
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(232, 184, 107, .5));
}
.photo-thanks h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 42px);
  color: var(--gold-2);
  line-height: 1.15;
  margin: 6px 0 12px;
}
.photo-thanks p {
  font-size: 16px;
  color: rgba(255, 250, 243, .8);
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

/* ==========================================================
   FOOTER (Unified Grand Finale)
   ========================================================== */
.footer {
  text-align: center;
  padding: clamp(80px, 10vw, 110px) 1.5rem clamp(60px, 8vw, 80px);
  padding-bottom: max(70px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 0%, rgba(239, 138, 95, .16), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(239, 138, 95, .28), transparent 60%),
    linear-gradient(180deg, var(--night), #110c19 50%, #0b0711);
  color: var(--white);
  border-top: 1px solid rgba(232, 184, 107, .2);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Hashtag Keepsake */
.footer-share {
  max-width: 520px;
  margin: 0 auto;
}

.footer-share .label {
  margin-bottom: 1rem;
}

.hashtag-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid rgba(232, 184, 107, .35);
  border-radius: 99px;
  color: inherit;
  cursor: pointer;
  box-shadow: 
    0 16px 36px -12px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, background .3s;
}

.hashtag-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold-2);
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  box-shadow: 
    0 20px 44px -10px rgba(239, 138, 95, .35),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

.hashtag-pill:active {
  transform: translateY(0);
}

.hashtag-text {
  font-family: var(--f-script);
  font-size: clamp(34px, 5.5vw, 48px);
  line-height: 1;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 2px;
}

.hashtag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(232, 184, 107, .16);
  border: 1px solid rgba(232, 184, 107, .32);
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-2);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.hashtag-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hashtag-pill:hover .hashtag-badge {
  background: var(--sunset);
  color: var(--night);
  border-color: transparent;
}

.footer-share-note {
  margin-top: 1.15rem;
  font-style: italic;
  font-size: 16.5px;
  color: rgba(255, 250, 243, .65);
}

/* Monogram Crest Divider */
.footer-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 440px;
  margin: clamp(42px, 6vw, 60px) auto clamp(38px, 5vw, 52px);
}

.crest-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 107, .4), transparent);
}

.crest-monogram {
  font-family: var(--f-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .35em;
  color: var(--gold-2);
  text-transform: uppercase;
  padding: 0 4px;
}

.crest-monogram em {
  font-family: var(--f-script);
  font-size: 24px;
  font-style: normal;
  letter-spacing: 0;
  color: var(--gold);
  margin: 0 2px;
}

/* Thank You Closing */
.footer-closing {
  max-width: 600px;
  margin: 0 auto;
}

.footer-script {
  font-family: var(--f-script);
  font-size: clamp(58px, 11vw, 94px);
  line-height: 1;
  color: var(--gold-2);
}

.footer-names {
  font-size: 22px;
  margin-top: 10px;
  letter-spacing: .05em;
}

.footer-date {
  font-family: var(--f-sans);
  font-weight: 300;
  letter-spacing: .5em;
  font-size: 13px;
  color: var(--gold);
  margin: 14px 0;
}

.footer-note {
  font-style: italic;
  color: rgba(255, 250, 243, .55);
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 13px 24px; border-radius: 99px;
  background: var(--night); color: var(--gold-2);
  border: 1px solid rgba(232, 184, 107, .35);
  font-family: var(--f-sans); font-size: 13px; letter-spacing: .08em;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), opacity .4s ease, visibility .4s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================
   REVEAL ON SCROLL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .btn-row.reveal { transition-delay: .12s; }
.cards .reveal:nth-child(3) { transition-delay: .24s; }
.hero .reveal:nth-child(2) { transition-delay: .15s; }
.hero .reveal:nth-child(3) { transition-delay: .35s; }
.hero .reveal:nth-child(4) { transition-delay: .5s; }
.hero .reveal:nth-child(5) { transition-delay: .65s; }

/* ==========================================================
   KEYFRAMES
   ========================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sealIn { from { opacity: 0; transform: scale(.4) rotate(-40deg); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes breathe { 0%,100% { opacity: .75; } 50% { opacity: .35; } }
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.06) translate(1.5%, 0); }
}
@keyframes drip { 0% { top: -40%; } 100% { top: 110%; } }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .venue-grid, .wishes-grid { grid-template-columns: 1fr; }
  .venue-info { text-align: center; }
  .venue-addr { border-left: 0; padding-left: 0; }
  .venue-info .btn-row { justify-content: center; }
  .wish-wall { max-height: 480px; }
}

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

  /* Hero Mobile: Beautifully centered text lockup with subtle blurred background */
  .hero {
    min-height: 100vh; min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 0;
    position: relative;
    text-align: center;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
  }
  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: blur(2.5px) saturate(1.12) brightness(.84);
    transform: scale(1.05);
    opacity: .84;
    animation: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(ellipse 80% 65% at 50% 50%, rgba(26, 20, 38, .58) 0%, rgba(26, 20, 38, .36) 55%, rgba(26, 20, 38, .78) 100%),
      linear-gradient(180deg, rgba(26, 20, 38, .7) 0%, rgba(26, 20, 38, .2) 30%, rgba(26, 20, 38, .4) 70%, var(--night) 100%);
  }
  .hero-content {
    padding: 60px 1.25rem 70px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    margin: auto 0;
    z-index: 2;
  }
  .hero-kicker {
    font-size: 10px;
    letter-spacing: .4em;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  }
  .hero-names {
    margin: .6rem 0 .5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .5);
  }
  .hero-names .n1, .hero-names .n2 {
    font-size: clamp(48px, 13.5vw, 76px);
  }
  .hero-names .amp {
    font-size: 34px;
    margin: -.05em 0 -.1em;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
  }
  
  .hero-bottom-block {
    margin-top: 1.6rem;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-date {
    margin: 0 0 .5rem;
    gap: .7rem;
    letter-spacing: .2em;
    font-size: 10px;
  }
  .hero-date span { min-width: 76px; padding: 6px 0; }
  .hero-date strong { font-size: 38px; }
  .hero-venue {
    font-size: 14.5px;
    margin-top: .35rem;
    margin-bottom: 0;
  }
  .scroll-cue {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 5px;
    z-index: 3;
  }
  .scroll-cue i { height: 26px; }

  .timeline::before { left: 18px; }
  .tl-item, .tl-item:nth-child(even) {
    grid-template-columns: 36px 1fr;
    grid-template-areas: "dot time" "dot body";
    row-gap: 8px; margin-bottom: 34px;
  }
  .tl-item .tl-time, .tl-item:nth-child(even) .tl-time { grid-area: time; text-align: left; padding: 0 0 0 10px; font-size: 24px; order: 0; }
  .tl-item .tl-dot, .tl-item:nth-child(even) .tl-dot { grid-area: dot; align-self: start; padding-top: 10px; order: 0; }
  .tl-item .tl-body, .tl-item:nth-child(even) .tl-body { grid-area: body; margin-left: 10px; order: 0; }
  .tl-body { padding: 20px; }

  .moment-frame img { aspect-ratio: 4 / 3; }
  .moment figcaption { right: 50%; transform: translateX(50%) rotate(2deg); white-space: nowrap; text-align: center; }

  .choice { grid-template-columns: 1fr; }
  .wish-list { columns: 1; }
  .btn { padding: 14px 22px; }
}

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