/* ============================================================
   Classic Wedding Invitation Template
   Palette: ivory paper · deep emerald · antique gold
   All client content lives in config.js
   ============================================================ */

:root {
  --cream: #f6f1e6;
  --cream-soft: #fbf8f1;
  --cream-deep: #efe7d6;

  --emerald: #123f32;
  --emerald-deep: #0b2b21;
  --emerald-ink: #dfe9dd;

  --gold: #c9a24d;
  --gold-deep: #a8894f;
  --gold-soft: #e3d5b0;

  --ink: #22322b;
  --muted: #5f6b60;

  --serif: "Cormorant Garamond", "Tiro Bangla", "Noto Serif Bengali", Georgia, serif;
  --sans: "Manrope", "Hind Siliguri", "Noto Serif Bengali", system-ui, sans-serif;
  --script: "Great Vibes", "Atma", "Noto Serif Bengali", cursive;

  --paper-line: rgba(18, 63, 50, 0.16);
  --gold-line: rgba(201, 162, 77, 0.45);
  --shadow-card: 0 1px 2px rgba(18, 63, 50, 0.06), 0 12px 32px -12px rgba(18, 63, 50, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--emerald-deep);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 162, 77, 0.10), transparent 60%),
    var(--emerald-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--emerald); color: var(--cream); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ============ Phone-column layout ============ */
.invite {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  overflow-x: clip;
  box-shadow: 0 0 0 1px rgba(201, 162, 77, 0.18), 0 30px 80px -20px rgba(0, 0, 0, 0.55);
}

@media (max-width: 559.98px) {
  .invite { box-shadow: none; }
}

/* ============ Type helpers ============ */
.eyebrow {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--light { color: var(--gold-soft); }
.eyebrow--gold { color: var(--gold-deep); }

.section-title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 8.4vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--emerald);
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(56px, 9vh, 88px) 22px 96px;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(201, 162, 77, 0.14), transparent 55%),
    linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: var(--cream);
  text-align: center;
}

.hero__pattern,
.footer__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a24d' stroke-opacity='0.13'%3E%3Crect x='23' y='23' width='26' height='26'/%3E%3Crect x='23' y='23' width='26' height='26' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='2.4'/%3E%3Cpath d='M0 36 h12 M60 36 h12 M36 0 v12 M36 60 v12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.35));
}

.hero__inner {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Flanking botanical branches — desktop only */
.hero__flank { display: none; }

.hero__arch {
  position: relative;
  width: min(100%, 430px);
  padding: clamp(52px, 11vw, 68px) 26px clamp(44px, 9vw, 56px);
  border: 1px solid var(--gold-line);
  border-radius: min(215px, 47vw) min(215px, 47vw) 8px 8px;
}

.hero__arch::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 162, 77, 0.22);
  border-radius: min(205px, 44vw) min(205px, 44vw) 5px 5px;
  pointer-events: none;
}

.blessing {
  margin: 0 0 clamp(22px, 5vw, 30px);
  font-family: "Noto Serif Bengali", var(--serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--gold-soft);
}

.seal {
  width: 86px;
  height: 86px;
  margin: 0 auto clamp(18px, 4vw, 24px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 0 4px var(--emerald-deep),
    inset 0 0 0 5px rgba(201, 162, 77, 0.55),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(circle at 32% 30%, rgba(201, 162, 77, 0.28), transparent 55%),
    var(--emerald-deep);
}

.seal__initials {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.hero__names {
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__name {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 10.5vw, 54px);
  line-height: 1.25;
  color: var(--cream-soft);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.hero__amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 7vw, 34px);
  line-height: 1.15;
  color: var(--gold);
}

.sprig { color: var(--gold); }
.sprig--hero { width: 150px; margin: clamp(16px, 3.5vw, 22px) auto 0; }
.sprig--footer { width: 58px; margin: 0 auto clamp(18px, 4vw, 26px); }

.hero__date {
  margin: clamp(18px, 4vw, 24px) 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 5vw, 23px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.hero__place {
  margin: 8px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--gold-soft);
  opacity: 0.75;
}

.hero__scroll span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
  animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(5px); opacity: 0.45; }
}

.scallop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.scallop svg { width: 100%; height: 44px; }

/* ============ WELCOME ============ */
.welcome {
  padding: clamp(52px, 9vw, 72px) 26px clamp(40px, 7vw, 56px);
  text-align: center;
  background: var(--cream);
}

.ornament {
  width: 190px;
  margin: 0 auto clamp(22px, 5vw, 30px);
  color: var(--gold);
}

.welcome__parents {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 4.6vw, 19px);
  color: var(--ink);
}

/* Center divider between the two families — desktop only */
.welcome__divider { display: none; }

.welcome__line {
  max-width: 400px;
  margin: clamp(22px, 5vw, 30px) auto 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ============ COUNTDOWN ============ */
.countdown {
  padding: clamp(16px, 4vw, 28px) 26px clamp(52px, 9vw, 72px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}

.countdown__panel {
  padding: clamp(34px, 7vw, 46px) clamp(20px, 5vw, 30px) clamp(30px, 6vw, 40px);
  text-align: center;
  background: var(--cream-soft);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-card);
}

.countdown__panel::before {
  content: "";
  display: block;
  height: 3px;
  margin: -1px auto clamp(30px, 6vw, 40px);
  width: min(200px, 60%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: clamp(26px, 6vw, 34px);
}

.countdown__cell {
  padding: 16px 4px 12px;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  border-radius: 3px;
}

.countdown__num {
  display: block;
  min-height: 1.2em;
  font-family: var(--serif);
  font-size: clamp(30px, 8.5vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  margin-top: 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.countdown__note {
  margin: clamp(22px, 5vw, 28px) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* ============ EVENTS ============ */
.events {
  padding: clamp(52px, 9vw, 72px) 26px;
  background: var(--cream);
  text-align: center;
}

.events__list {
  display: grid;
  gap: 26px;
  max-width: 430px;
  margin: clamp(30px, 6vw, 40px) auto 0;
}

.event-card {
  position: relative;
  padding: clamp(30px, 6vw, 38px) clamp(22px, 5vw, 30px) clamp(26px, 5vw, 32px);
  background: var(--cream-soft);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-card);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}

.event-card__tag {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.event-card__name {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 7.5vw, 34px);
  line-height: 1.15;
  color: var(--emerald);
}

.event-card__tagline {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.event-card__divider {
  width: min(220px, 70%);
  height: 1px;
  margin: clamp(22px, 5vw, 28px) auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.event-card__rows {
  display: grid;
  gap: 14px;
  margin: 0;
  text-align: left;
}

.event-card__rows .row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
}

.event-card__rows dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.event-card__rows dt svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold-deep);
}

.row__dot {
  width: 15px;
  height: 15px;
  display: inline-block;
  text-align: center;
  line-height: 15px;
}

.row__dot::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.event-card__rows dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.45;
  color: var(--ink);
}

.event-card__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: clamp(24px, 5vw, 30px);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--emerald);
  border-bottom: 1px solid var(--gold);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* ============ VENUE / MAP ============ */
.venue {
  padding: clamp(16px, 4vw, 28px) 26px clamp(56px, 9vw, 76px);
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.venue__frame {
  max-width: 470px;
  margin: clamp(30px, 6vw, 40px) auto 0;
  padding: 7px;
  background: var(--cream-soft);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-card);
}

.venue__frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: saturate(0.82) contrast(0.98);
}

.venue__name {
  max-width: 430px;
  margin: clamp(22px, 5vw, 28px) auto 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--emerald);
}

.venue__address {
  max-width: 430px;
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.venue__address:empty { display: none; }

.venue__directions {
  margin-top: 16px;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding: clamp(60px, 11vw, 84px) 30px calc(clamp(48px, 8vw, 64px) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(130% 100% at 50% 100%, rgba(201, 162, 77, 0.16), transparent 55%),
    linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
}

.footer__closing {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 5vw, 21px);
  color: var(--emerald-ink);
}

.footer__names {
  margin: 14px 0 0;
  font-family: var(--script);
  font-size: clamp(38px, 10vw, 48px);
  line-height: 1.3;
  color: var(--gold-soft);
}

.footer__date {
  margin: 6px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald-ink);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 6vw, 36px);
  padding: 15px 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.share-btn svg { width: 17px; height: 17px; }

.share-btn:hover,
.share-btn:focus-visible {
  background: var(--gold);
  color: var(--emerald-deep);
  transform: translateY(-2px);
}

.footer__hashtag {
  margin: clamp(26px, 5vw, 34px) 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer__credit {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 162, 77, 0.22);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(223, 233, 221, 0.55);
}

/* ============ Share FAB + toast ============ */
.share-fab {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(0);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--cream-soft);
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(11, 43, 33, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
}

.share-fab svg { width: 16px; height: 16px; }

.share-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.share-fab:hover { background: var(--gold-soft); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(8px);
  z-index: 70;
  max-width: calc(100vw - 48px);
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream-soft);
  background: var(--emerald);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Reveal-on-scroll (subtle, Classic tier) ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* html.motion-preview (set by the inline preview script in index.html on
   localhost/file:) opts a preview page out of this lockdown, so the full
   motion experience is visible on machines whose OS disables animations.
   Production visitors are unaffected. */
@media (prefers-reduced-motion: reduce) {
  /* html.motion-preview (set by the inline preview script in index.html on
     localhost/file:) opts a preview page out of this lockdown, so the full
     motion experience is visible on machines whose OS disables animations.
     Production visitors are unaffected. Animations are not removed but
     collapsed to a single 0.01ms run, so fill-mode "both"/"forwards" end
     states (fully-drawn artwork, settled digits) render as normal. */
  html:not(.motion-preview) { scroll-behavior: auto; }
  html:not(.motion-preview) *,
  html:not(.motion-preview) *::before,
  html:not(.motion-preview) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html:not(.motion-preview) .reveal { opacity: 1; transform: none; transition: none; }
  html:not(.motion-preview) .hero__pattern { background-position: 0 0 !important; }
  html:not(.motion-preview) .sprig--hero,
  html:not(.motion-preview) .seal { transform: none !important; }
}

/* ============ Floral motion — drifting petals & gentle sway ============
   A canvas overlay (see script.js §8) drifts a handful of translucent
   gold petals down the viewport. Existing botanicals sway almost
   imperceptibly. Keyframes live on the inner <svg> only, so the scroll
   parallax transform on the wrapper elements is never fought.
   ============================================================ */
.petal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50; /* below share pill (60) and toast (70) */
}

.hero__flank svg { transform-origin: 50% 98%; }

.hero__flank--l svg { animation: branch-sway 11.5s ease-in-out -2s infinite; }

.hero__flank--r svg { animation: branch-sway 14s ease-in-out -7s infinite; }

.sprig svg { transform-origin: 50% 50%; }

.sprig--hero svg { animation: sprig-sway 9.5s ease-in-out infinite; }

.sprig--footer svg { animation: sprig-sway 13s ease-in-out -5s infinite; }

@keyframes branch-sway {
  0%, 100% { transform: rotate(-0.7deg); }
  50% { transform: rotate(0.8deg); }
}

@keyframes sprig-sway {
  0%, 100% { transform: rotate(-1.1deg) translateY(1px); }
  50% { transform: rotate(1.2deg) translateY(-1.5px); }
}

/* Scroll parallax — --para-y is set on .hero by script.js §9 */
.hero__pattern { background-position: 0 calc(var(--para-y, 0px) * 0.45); }

.sprig--hero { transform: translateY(calc(var(--para-y, 0px) * -0.4)); }

.seal { transform: translateY(calc(var(--para-y, 0px) * -0.3)); }

/* ============ Focus ============ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   DESKTOP ≥ 960px — full-width layout
   Hero with flanking branches, split families, side-by-side
   event cards, venue details + map in two columns.
   ============================================================ */
@media (min-width: 960px) {
  .invite {
    max-width: none;
    box-shadow: none;
  }

  /* --- Hero --- */
  .hero {
    padding: 72px 48px 108px;
  }

  .hero__flank {
    display: block;
    position: absolute;
    top: 50%;
    width: 84px;
    color: var(--gold);
    opacity: 0.55;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .hero__flank--l {
    left: calc(50% - min(46vw, 560px));
    transform: translateY(calc(-50% + var(--para-y, 0px)));
  }
  .hero__flank--r {
    right: calc(50% - min(46vw, 560px));
    transform: translateY(calc(-50% + var(--para-y, 0px))) scaleX(-1);
  }

  .hero__arch {
    width: min(100%, 640px);
    padding: 72px 64px 60px;
    border-radius: 320px 320px 10px 10px;
  }

  .hero__arch::before {
    inset: 9px;
    border-radius: 306px 306px 6px 6px;
  }

  .blessing { font-size: 17px; }

  .seal {
    width: 104px;
    height: 104px;
    margin-bottom: 26px;
  }

  .seal__initials { font-size: 36px; }

  .hero__name { font-size: 64px; }

  .hero__amp {
    font-size: 38px;
    margin: 4px 0;
  }

  .sprig--hero { width: 180px; }

  .hero__date { font-size: 24px; }

  .hero__place { font-size: 11.5px; }

  .hero__scroll { bottom: 84px; }

  .scallop svg { height: 56px; }

  /* --- Welcome: families side by side --- */
  .welcome {
    padding: 104px 48px 72px;
  }

  .welcome__line { max-width: 560px; }

  .welcome__families {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px 52px;
    max-width: 880px;
    margin: 26px auto 0;
  }

  .welcome__parents { margin: 0; }

  .welcome__parents:first-child { text-align: right; }

  .welcome__parents:last-child { text-align: left; }

  .welcome__divider {
    display: block;
    width: 1px;
    height: 76px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
  }

  /* --- Countdown --- */
  .countdown {
    padding: 24px 48px 104px;
  }

  .countdown__panel {
    max-width: 700px;
    margin: 0 auto;
    padding: 54px 56px 46px;
  }

  .countdown__grid { gap: 14px; margin-top: 38px; }

  .countdown__cell { padding: 22px 8px 16px; }

  .countdown__num { font-size: 46px; }

  .countdown__label { font-size: 9.5px; }

  /* --- Events: cards side by side --- */
  .events {
    padding: 104px 48px;
  }

  .events__list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    justify-content: center;
    gap: 32px;
    max-width: none;
    margin-top: 44px;
  }

  .event-card__name { font-size: 36px; }

  .event-card__rows dd { font-size: 19px; }

  /* --- Venue: details left, map right --- */
  .venue {
    padding: 24px 48px 112px;
  }

  .venue__split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 24px 64px;
    max-width: 1040px;
    margin: 48px auto 0;
  }

  .venue__info { text-align: left; }

  .venue__info .section-title { text-align: left; }

  .venue__name {
    max-width: none;
    margin: 22px 0 0;
    font-size: 22px;
  }

  .venue__address {
    max-width: none;
    margin: 10px 0 0;
  }

  .venue__directions { margin-top: 22px; }

  .venue__frame {
    max-width: none;
    margin: 0;
  }

  .venue__frame iframe { aspect-ratio: 5 / 4; }

  /* --- Footer --- */
  .footer {
    padding: 112px 48px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .footer__inner {
    max-width: 760px;
    margin: 0 auto;
  }

  .footer__names { font-size: 58px; }
}

/* ============================================================
   FINISHING TOUCHES
   Self-drawing botanicals · gold-foil names · paper grain ·
   breathing arch glow · corner flourishes · micro-interactions.
   All motion collapses instantly under prefers-reduced-motion
   (see the block above).
   ============================================================ */

/* ---- Paper grain: a fixed noise veil over everything --------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 45; /* above content, below petals (50) / share pill (60) / toast (70) */
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- Self-drawing line art -----------------------------------
   Each path carries pathLength="1"; strokes draw themselves by
   animating dashoffset 1 → 0. fill-mode both keeps them hidden
   until their delay starts. Default (unanimated) state is fully
   drawn, so reduced motion and no-JS both render complete art. */
@keyframes draw-stroke {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes ink-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero: branches ink in on load — stem first, leaf pairs climbing,
   terminal bud last. Hero sprig follows under the names. */
.hero__flank svg path,
.sprig--hero svg path {
  stroke-dasharray: 1;
  animation: draw-stroke 0.5s ease-out both;
}

.hero__flank svg path:nth-child(1) { animation-duration: 0.9s; animation-delay: 0.1s; }
.hero__flank svg path:nth-child(2),
.hero__flank svg path:nth-child(3) { animation-delay: 0.85s; }
.hero__flank svg path:nth-child(4),
.hero__flank svg path:nth-child(5) { animation-delay: 1.05s; }
.hero__flank svg path:nth-child(6),
.hero__flank svg path:nth-child(7) { animation-delay: 1.25s; }
.hero__flank svg path:nth-child(8),
.hero__flank svg path:nth-child(9) { animation-delay: 1.45s; }
.hero__flank svg path:nth-child(10),
.hero__flank svg path:nth-child(11) { animation-delay: 1.65s; }
.hero__flank svg circle { animation: ink-fade 0.5s ease 2s both; }

.sprig--hero svg path:nth-child(1),
.sprig--hero svg path:nth-child(2) { animation-delay: 0.25s; animation-duration: 0.55s; }
.sprig--hero svg path:nth-child(3) { animation-delay: 0.7s; }
.sprig--hero svg path:nth-child(4) { animation-delay: 0.78s; }
.sprig--hero svg path:nth-child(5) { animation-delay: 0.86s; }
.sprig--hero svg path:nth-child(6) { animation-delay: 0.94s; }
.sprig--hero svg circle { animation: ink-fade 0.4s ease 1.3s both; }

/* Welcome ornament + footer sprig draw as they scroll into view
   (.is-in is added by the observer in script.js §11). */
.ornament.is-in line,
.sprig--footer.is-in path {
  stroke-dasharray: 1;
  animation: draw-stroke 0.6s ease-out both;
}

.ornament.is-in line:nth-child(2) { animation-delay: 0.18s; }
.ornament.is-in rect { animation: ink-fade 0.45s ease 0.55s both; }

.sprig--footer.is-in path:nth-child(1) { animation-duration: 0.75s; }
.sprig--footer.is-in path:nth-child(2),
.sprig--footer.is-in path:nth-child(3) { animation-delay: 0.45s; }
.sprig--footer.is-in path:nth-child(4),
.sprig--footer.is-in path:nth-child(5) { animation-delay: 0.65s; }
.sprig--footer.is-in circle { animation: ink-fade 0.4s ease 1.1s both; }

/* The seal fades in like a wax stamp as the branches start.
   The monogram's stamp is combined with its foil sheen further
   down (the shared foil rule would otherwise replace it). */
.seal { animation: ink-fade 0.7s ease 0.6s both; }

@keyframes seal-stamp {
  from { transform: scale(1.14); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

/* ---- Gold foil: names + monogram, with one slow sheen sweep --- */
.hero__name,
.footer__names,
.seal__initials {
  background-image:
    linear-gradient(105deg, rgba(255, 253, 244, 0) 42%, rgba(255, 253, 244, 0.5) 50%, rgba(255, 253, 244, 0) 58%),
    linear-gradient(180deg, #fffdf4 8%, var(--cream-soft) 46%, var(--gold-soft) 96%);
  background-size: 220% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-sheen 9s ease-in-out 2.5s infinite;
}

/* The monogram stamps in AND carries the foil sheen. */
.seal__initials {
  animation:
    seal-stamp 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.15) 0.6s both,
    foil-sheen 9s ease-in-out 2.5s infinite;
}

/* The clipped gradient replaces the flat fill, so the old soft
   text-shadow (which shows through transparent glyphs) moves to a
   drop-shadow filter that follows the foil shape. */
.hero__name {
  text-shadow: none;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.3));
}

.hero__name:last-child { animation-delay: 3.3s; }

@keyframes foil-sheen {
  0%, 55% { background-position: 0 0, 0 0; }
  100% { background-position: 100% 0, 0 0; }
}

/* ---- Breathing glow behind the arch --------------------------- */
.hero__inner::before {
  content: "";
  position: absolute;
  inset: -10% -22%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(52% 46% at 50% 44%, rgba(201, 162, 77, 0.15), transparent 72%);
  animation: arch-breathe 12s ease-in-out infinite;
}

@keyframes arch-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero__arch { z-index: 1; }

/* ---- Corner flourishes ---------------------------------------- */
.countdown__panel { position: relative; }

.countdown__panel::after,
.event-card::after {
  content: "";
  position: absolute;
  inset: 13px;
  pointer-events: none;
  opacity: 0.75;
  background:
    linear-gradient(var(--gold), var(--gold)) left 0 top 0 / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) left 0 top 0 / 1px 16px,
    linear-gradient(var(--gold), var(--gold)) right 0 top 0 / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) right 0 top 0 / 1px 16px,
    linear-gradient(var(--gold), var(--gold)) left 0 bottom 0 / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) left 0 bottom 0 / 1px 16px,
    linear-gradient(var(--gold), var(--gold)) right 0 bottom 0 / 16px 1px,
    linear-gradient(var(--gold), var(--gold)) right 0 bottom 0 / 1px 16px;
  background-repeat: no-repeat;
}

.countdown__panel::after { inset: 12px; }

/* ---- Hover micro-interactions --------------------------------- */
.event-card {
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.event-card.reveal { transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.45s ease; }

.event-card.reveal.is-in { transition: opacity 0.8s ease, transform 0.55s ease, box-shadow 0.45s ease; }

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 3px rgba(18, 63, 50, 0.05), 0 22px 44px -14px rgba(18, 63, 50, 0.28);
}

.event-card.reveal.is-in:hover { transform: translateY(-3px); }

/* Link buttons re-draw their gold rule outward from the centre. */
.link-btn { position: relative; }

.link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.45s cubic-bezier(0.25, 0.7, 0.3, 1);
}

.link-btn:hover::after,
.link-btn:focus-visible::after { transform: scaleX(1); }

.link-btn:hover,
.link-btn:focus-visible { border-color: transparent; }

/* ---- Countdown digits settle instead of hard-swapping --------- */
.countdown__num.is-settling { animation: num-settle 0.5s ease both; }

@keyframes num-settle {
  from { opacity: 0.25; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Language toggle (EN / বাং)
   Appended block — same pill language as the share FAB
   (cream fill, gold hairline, 999px radius). No existing
   rule above is modified.
   ============================================================ */
.lang-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 60; /* same layer as the share pill, below the toast */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  background: var(--cream-soft);
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(11, 43, 33, 0.55);
  cursor: pointer;
  transition: background 0.3s ease;
}

.lang-toggle[hidden] { display: none; }

.lang-toggle__opt { opacity: 0.5; transition: opacity 0.25s ease; }
.lang-toggle__opt.is-active { opacity: 1; }
.lang-toggle__opt[data-lang-opt="en"] { letter-spacing: 0.18em; }
.lang-toggle__opt[data-lang-opt="bn"] { letter-spacing: 0.02em; }

.lang-toggle__sep { opacity: 0.35; font-weight: 400; }

.lang-toggle:hover,
.lang-toggle:focus-visible { background: var(--gold-soft); }

/* Bangla mode: soften the Latin display-tracking so Bengali glyphs
   breathe. Scoped to html[lang="bn"] — English rendering is untouched. */
html[lang="bn"] .eyebrow { letter-spacing: 0.12em; }
html[lang="bn"] .hero__scroll span { letter-spacing: 0.1em; }

/* Bangla typography refinement (appended).
   Per-glyph fallback keeps English on Cormorant/Vibes/Manrope untouched;
   Bengali glyphs route to Tiro Bangla (serif), Galada (script) and
   Hind Siliguri (sans) — loaded in index.html. */
html[lang="bn"] .section-title,
html[lang="bn"] .event-card__name { font-weight: 400; } /* Tiro Bangla ships 400 only — avoid synthetic bold */
html[lang="bn"] .hero__amp { letter-spacing: 0; }
html[lang="bn"] .hero__name,
html[lang="bn"] .footer__names { font-weight: 300; } /* Atma Light — thin brush script */
