/* ============ Kapil's Birthday — golden-hour elegance ============ */
:root {
  /* card palette */
  --sky-top: #9CA6C2;
  --sky-mid: #F3CDA1;
  --sky-bottom: #E07A43;
  --horizon: #D2652F;
  --light-core: #FFF1C4;
  --light-glow: #FFC24D;
  --towel: #1B3A27;
  --ink-green: #1E3A24;
  --gold: #A9843B;
  --gold-line: #C29A4A;
  --cream: #F4ECD8;
  --candle-glow: #FFC96B;
  /* page surfaces */
  --bg: #FDF9F0;
  --bg-alt: #F6EDDD;
  --ink: #241f18;
  --muted: #6d6353;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;
  --card-shadow: 0 24px 60px -18px rgba(29, 24, 15, 0.35);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3 { font-weight: 500; }

/* ============ String lights ============ */
.string-lights {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 110px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.95;
}
.string-lights .wire {
  position: absolute;
  top: 30px; left: -2%;
  width: 104%;
  height: 56px;
  border-bottom: 2px solid rgba(30, 58, 36, 0.38);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.bulb {
  position: absolute;
  top: 44px;
  left: var(--x);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--light-core), var(--light-glow) 70%);
  box-shadow: 0 0 20px 8px rgba(255, 194, 77, 0.6);
  animation: twinkle 2.6s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle {
  0%, 100% { opacity: 1; box-shadow: 0 0 22px 9px rgba(255, 194, 77, 0.65); }
  50% { opacity: 0.55; box-shadow: 0 0 9px 3px rgba(255, 194, 77, 0.3); }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 118px 20px 48px;
  gap: 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(156, 166, 194, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 42% at 50% 102%, rgba(255, 201, 107, 0.5), transparent 68%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-bottom) 78%, var(--horizon) 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 32% at 50% 100%, rgba(210, 101, 47, 0.5), transparent 70%);
  pointer-events: none;
}

.card-frame {
  position: relative;
  z-index: 2;
  max-width: 380px;
  width: 100%;
  flex-shrink: 0;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.card-inner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 196, 0.55);
  outline: 8px solid rgba(244, 236, 216, 0.16);
  box-shadow: var(--card-shadow), 0 0 80px rgba(255, 194, 77, 0.28);
  background: #000;
}
.hero-card { display: block; width: 100%; height: auto; }

.hero-cta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, #C9A24E, var(--gold));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(169, 132, 59, 0.7);
}
.btn-gold:hover { box-shadow: 0 12px 30px -8px rgba(169, 132, 59, 0.9); }

.btn-ghost {
  background: rgba(30, 58, 36, 0.32);
  color: #fff;
  border: 1px solid rgba(255, 249, 240, 0.85);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(30, 58, 36, 0.45); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink-green);
  border: 1px solid var(--gold-line);
}
.btn-ghost-dark:hover { background: rgba(169, 132, 59, 0.08); }

.btn-whatsapp {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.7);
}
.wa-icon {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 13px;
}

/* ============ Countdown ============ */
.countdown { position: relative; z-index: 2; }
.count-label {
  font-style: italic;
  color: #43331f;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(255, 241, 196, 0.5);
}
.count-tiles {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0 8px;
}
.tile {
  min-width: 76px;
  padding: 12px 12px 9px;
  background: rgba(253, 249, 240, 0.88);
  border: 1px solid rgba(169, 132, 59, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px -12px rgba(29, 24, 15, 0.4);
}
.tile-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tile-unit {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5a5142;
  margin-top: 6px;
}
.count-date {
  font-style: italic;
  color: #43331f;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(255, 241, 196, 0.5);
}

/* ============ Sections ============ */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 84px 24px;
}
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 48px; }
.overline {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 46px);
  color: var(--ink-green);
  letter-spacing: 0.02em;
}
.gold-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 16px;
  color: var(--gold-line);
}
.gold-rule::before,
.gold-rule::after {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.gold-rule::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.gold-rule span { font-size: 18px; }

.section-lead {
  text-align: center;
  max-width: 620px;
  margin: -20px auto 44px;
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}

/* ============ About ============ */
.about-story {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-story p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 26px;
  color: #3d362b;
}
.about-story .drop-cap {
  font-size: 3.6em;
  float: left;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--gold);
  font-weight: 600;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p {
  font-size: 19px;
  margin-bottom: 18px;
  color: #3d362b;
}
.about-text p:first-child::first-letter {
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  color: var(--gold);
  font-weight: 600;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(29, 24, 15, 0.45);
}
.about-photos img:nth-child(even) { transform: translateY(18px); }

/* ============ Details ============ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.detail-card {
  background: rgba(253, 249, 240, 0.92);
  border: 1px solid rgba(169, 132, 59, 0.28);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -18px rgba(169, 132, 59, 0.5);
}
.detail-icon { font-size: 30px; margin-bottom: 12px; }
.detail-card h3 {
  font-size: 13px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 10px;
}
.detail-card p { font-size: 19px; color: var(--ink-green); }
.details-note {
  text-align: center;
  margin-top: 28px;
  font-style: italic;
  color: var(--muted);
}
.calendar-day {
  display: inline-grid;
  place-items: end center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold-line);
  border-top: 9px solid var(--gold-line);
  border-radius: 5px;
  color: var(--ink-green);
  font: 700 17px/1 "Inter", sans-serif;
}
.venue-actions {
  text-align: center;
  margin: 20px auto 0;
}
.venue-actions address {
  font-style: normal;
  white-space: pre-line;
  color: var(--ink-green);
  font-size: 20px;
  font-weight: 600;
}
.action-row, .travel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

/* ============ Getting home safely ============ */
.travel-section { max-width: 900px; }
.travel-actions .btn { border-color: var(--gold-line); }
.travel-reminder {
  margin: 32px auto;
  padding: 18px 22px;
  border-left: 4px solid var(--gold-line);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink-green);
  font-family: "Inter", sans-serif;
  font-size: 15px;
}
.travel-feed, .travel-report {
  border: 1px solid rgba(169, 132, 59, 0.3);
  border-radius: 18px;
  background: #fffdf8;
  padding: 26px;
  margin-top: 20px;
}
.travel-feed h3, .travel-report h3 { color: var(--ink-green); font-size: 26px; }
.travel-small, .travel-empty { color: var(--muted); font: 14px/1.5 "Inter", sans-serif; margin-top: 10px; }
.travel-item { border-top: 1px solid rgba(169, 132, 59, 0.25); margin-top: 16px; padding-top: 16px; }
.travel-item strong { color: var(--ink-green); font: 600 15px/1.4 "Inter", sans-serif; }
.travel-item p { margin: 5px 0; }
.travel-item small { color: var(--muted); font: 12px/1.4 "Inter", sans-serif; }
.travel-report { display: flex; flex-direction: column; gap: 10px; }
.travel-report label { color: var(--ink-green); font: 600 13px "Inter", sans-serif; margin-top: 8px; }
.travel-report input, .travel-report select, .travel-report textarea {
  border: 1px solid rgba(109, 99, 83, 0.45);
  border-radius: 10px;
  padding: 12px;
  font: 16px "Inter", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.travel-report button { align-self: flex-start; margin-top: 8px; }
.travel-report button:disabled { opacity: .55; cursor: wait; }
.chat-fab[hidden] { display: none; }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 34px -16px rgba(29, 24, 15, 0.5);
  transition: transform 0.3s ease;
}
.gallery img:hover { transform: scale(1.03) rotate(-0.5deg); }
.gallery-placeholder {
  grid-column: 1 / -1;
  border: 2px dashed rgba(169, 132, 59, 0.4);
  border-radius: 14px;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 19px;
}
.gallery-placeholder span {
  display: block;
  font-size: 40px;
  margin-bottom: 12px;
  font-style: normal;
}

/* ============ Guest photo wall ============ */
.wall-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 36px;
}
.wall-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(169, 132, 59, 0.25);
  box-shadow: 0 14px 34px -18px rgba(29, 24, 15, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wall-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 20px 44px -18px rgba(169, 132, 59, 0.55);
}
.wall-card[role="button"] { cursor: pointer; }
.wall-card:focus-visible, .btn:focus-visible, .lightbox-close:focus-visible {
  outline: 3px solid var(--ink-green);
  outline-offset: 3px;
}
.wall-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.wall-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(20, 37, 26, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wall-card { position: relative; }
.wall-card:hover .wall-zoom,
.wall-card .wall-zoom { opacity: 1; }

/* ============ Full-size lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 12, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-panel {
  position: relative;
  max-width: 680px;
  width: 100%;
  background: #fffdf8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  animation: lb-in 0.25s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 37, 26, 0.7);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #111;
}
.lightbox-gallery { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; background: #111; }
.lightbox-gallery img { min-width: 0; max-height: 56vh; }
.lightbox-nav { background: transparent; color: white; border: 0; font-size: 26px; min-height: 60px; cursor: pointer; }
.lightbox-nav:disabled { opacity: .25; cursor: default; }
.lightbox-nav:focus-visible, .lightbox-close:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
#lightbox-position { text-align: center; margin: 9px 0; color: var(--muted); font-size: 13px; }
#lb-heading { padding: 16px 58px 12px 20px; color: var(--ink-green); font-style: normal; font-weight: 700; }
.guest-access { max-width: 560px; margin: 0 auto 20px; padding: 25px 30px; background: #fffdf8; border: 1px solid rgba(169,132,59,.3); border-radius: 20px; box-shadow: var(--card-shadow); }
.guest-access h3 { margin: 0; color: var(--ink-green); }
.guest-access p { font-size: 14px; color: var(--muted); }
.guest-access label { display: block; font-size: 13px; margin-top: 12px; }
.guest-access input { width: 100%; padding: 11px; border: 1px solid rgba(109,99,83,.35); border-radius: 10px; }
.guest-access .btn { margin-top: 14px; }
#guest-identity { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
#guest-identity[hidden] { display: none; }
@media (max-width: 520px) { .lightbox { padding: 8px; } .lightbox-gallery { grid-template-columns: 36px minmax(0,1fr) 36px; } .guest-access { padding: 22px; } }
.lightbox-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox-form[hidden] { display: none; }
.lb-lead {
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}
.lightbox-form input {
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(109, 99, 83, 0.35);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.lightbox-form input:focus { border-color: var(--gold); }
.lightbox-form .btn { margin-top: 6px; }
.lightbox-status {
  padding: 0 24px 20px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  margin: 0;
  min-height: 1.4em;
}
.lightbox-status[hidden] { display: none; }
.lightbox-status.ok { color: #2f8a4c; }
.lightbox-status.warn { color: #a15a3c; }
.wall-card figcaption {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wall-name {
  font-family: "Great Vibes", cursive;
  font-size: 22px;
  color: var(--ink-green);
  line-height: 1.1;
}
.wall-cap {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.wall-upload {
  max-width: 560px;
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid rgba(169, 132, 59, 0.3);
  border-radius: 22px;
  padding: 32px 34px;
  box-shadow: var(--card-shadow);
}
.wall-upload label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 8px;
}
.wall-upload input[type="file"] {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  padding: 12px;
  border: 1.5px dashed rgba(169, 132, 59, 0.5);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
}
.wall-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wall-field { display: block; }
.wall-field label { margin-top: 18px; }
.wall-field input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(109, 99, 83, 0.35);
  border-radius: 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.wall-field input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 132, 59, 0.16);
}
.wall-upload .btn-gold {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}
.wall-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted);
}
.wall-preview { text-align: center; }
.wall-preview img {
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  box-shadow: 0 14px 34px -16px rgba(29, 24, 15, 0.5);
}
.wall-preview p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-green);
  font-style: italic;
}

/* ============ RSVP ============ */
.rsvp-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid rgba(169, 132, 59, 0.3);
  border-radius: 22px;
  padding: 40px 38px;
  box-shadow: var(--card-shadow);
}
.rsvp-card label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 20px 0 8px;
}
.rsvp-card input[type="text"],
.rsvp-card input[type="number"],
.rsvp-card textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid rgba(109, 99, 83, 0.35);
  border-radius: 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.rsvp-card input:focus,
.rsvp-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 132, 59, 0.16);
}
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; }
.radio {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--ink) !important;
  cursor: pointer;
}
.radio input { accent-color: var(--gold); width: 17px; height: 17px; }
.rsvp-card .btn-whatsapp { margin-top: 28px; }
.rsvp-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}
.rsvp-done {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fffdf8;
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 22px;
  padding: 44px 32px;
  font-size: 21px;
  color: var(--ink-green);
}
.rsvp-done .btn { margin-top: 22px; }

/* ============ Footer ============ */
.footer {
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255, 194, 77, 0.16), transparent 70%),
    linear-gradient(180deg, #14251a 0%, #0d1a12 100%);
  color: var(--cream);
  text-align: center;
  padding: 64px 24px 40px;
}
.footer-script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 6vw, 58px);
  color: var(--light-glow);
  text-shadow: 0 0 30px rgba(255, 194, 77, 0.35);
  line-height: 1.2;
}
.footer-line {
  margin-top: 14px;
  font-style: italic;
  font-size: 19px;
  color: rgba(244, 236, 216, 0.85);
}
.footer-small {
  margin-top: 22px;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: rgba(244, 236, 216, 0.5);
}
.footer-small a { color: var(--light-glow); text-decoration: none; }
.footer-small a:hover { text-decoration: underline; }

/* ============ Chat ============ */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #C9A24E, var(--gold));
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(169, 132, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-fab-icon { font-size: 26px; }

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 50;
  width: min(370px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid rgba(169, 132, 59, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(29, 24, 15, 0.5);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--ink-green), #2a4a32);
  color: var(--cream);
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
}
.chat-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: msg-in 0.25s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-bot {
  align-self: flex-start;
  background: #f2ecdd;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #C9A24E, var(--gold));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg a { color: inherit; font-weight: 600; }
.chat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 4px;
}
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(169, 132, 59, 0.5);
  background: transparent;
  color: var(--ink-green);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chip:hover { background: rgba(169, 132, 59, 0.12); }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
}
.chat-input input {
  flex: 1;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(109, 99, 83, 0.35);
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  outline: none;
  background: var(--bg);
}
.chat-input input:focus { border-color: var(--gold); }
.chat-input button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--ink-green);
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.chat-input button:hover { background: #2a4a32; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-frame { animation: none; }
  .bulb { animation: none; }
}

@media (max-height: 820px) {
  .hero { min-height: auto; padding: 118px 20px 56px; }
  .card-frame { max-width: 340px; }
  .countdown { margin-bottom: 8px; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .about-photos img:nth-child(even) { transform: none; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .section { padding: 60px 18px; }
  .card-frame { max-width: 320px; }
  .tile { min-width: 66px; padding: 10px 8px 8px; }
  .tile-num { font-size: 26px; }
  .rsvp-card { padding: 30px 22px; }
  .hero { padding: 104px 16px 40px; gap: 20px; }
  .wall-upload { padding: 26px 20px; }
  .wall-form-row { grid-template-columns: 1fr; }
  .wall-field label { margin-top: 16px; }
  .wall-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}