/* ──────────────────────────────────────────────────────────────
   Pradeep & Imesha — Wedding Invitation
   Mobile-first. Watercolor + Cormorant Garamond aesthetic.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Palette (overridden by Tweaks via data-palette) */
  --bg: #f1ece0;
  --bg-deep: #e7dfcd;
  --card: #fbf7ec;
  --card-edge: #ece4cf;
  --ink: #2b1d12;
  --ink-soft: #6b5642;
  --ink-faint: #9a8870;
  --gold: #b08a3e;
  --gold-soft: #d8b97a;
  --gold-deep: #8a6a2c;
  --accent: #2b1d12;

  /* Type (overridden by Tweaks via data-font) */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sinhala: 'Noto Serif Sinhala', 'Cormorant Garamond', serif;
  --font-script: 'Allura', 'Pinyon Script', 'Dancing Script', cursive;
  --font-ui: 'Inter', system-ui, sans-serif;

  --card-radius: 28px;
  --pad: clamp(20px, 6vw, 36px);
}

/* Palette: Blush & Bronze */
[data-palette="blush"] {
  --bg: #f3e8de;
  --bg-deep: #e8d5c4;
  --card: #fbf2ea;
  --card-edge: #efd9c5;
  --ink: #3a1f17;
  --ink-soft: #7a4c3c;
  --ink-faint: #b48f7c;
  --gold: #b4663a;
  --gold-soft: #e0a880;
  --gold-deep: #8a4626;
  --accent: #3a1f17;
}

/* Palette: Sage & Cream */
[data-palette="sage"] {
  --bg: #ebe9dc;
  --bg-deep: #d8d6c2;
  --card: #f6f4ea;
  --card-edge: #d9d8c0;
  --ink: #1f2a22;
  --ink-soft: #4a5a4a;
  --ink-faint: #8a9989;
  --gold: #6e7f4d;
  --gold-soft: #b6c39a;
  --gold-deep: #4d5a35;
  --accent: #1f2a22;
}

/* Palette: Maroon & Gold */
[data-palette="maroon"] {
  --bg: #efe6da;
  --bg-deep: #ddd0bd;
  --card: #f9f1e3;
  --card-edge: #e8d8bc;
  --ink: #3a0e14;
  --ink-soft: #6a2a30;
  --ink-faint: #a17078;
  --gold: #b88c3e;
  --gold-soft: #e3c587;
  --gold-deep: #8a5e1c;
  --accent: #3a0e14;
}

/* Font swap: Playfair */
[data-font="playfair"] {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}
/* Font swap: EB Garamond throughout */
[data-font="eb"] {
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
}
/* Font swap: Italiana display + Cormorant body */
[data-font="italiana"] {
  --font-display: 'Italiana', 'Cormorant Garamond', serif;
  --font-body: 'Cormorant Garamond', serif;
}

/* Handwritten script variants */
[data-script="allura"]  { --font-script: 'Allura', cursive; }
[data-script="pinyon"]  { --font-script: 'Pinyon Script', cursive; }
[data-script="dancing"] { --font-script: 'Dancing Script', cursive; }
/* When script is off, fall back to serif italic */
[data-script="off"]     { --font-script: var(--font-display); }
[data-script="off"] .handwritten { font-style: italic; }

/* Reusable script style */
.handwritten {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  font-style: normal;
  color: var(--gold-deep);
  line-height: 1.1;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Decorative leaf flourishes on the cream surround */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--gold-soft) 10%, transparent), transparent 60%),
    var(--bg);
}

.page::before, .page::after {
  content: '';
  position: fixed;
  pointer-events: none;
  width: 280px;
  height: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23a8997a' stroke-width='1.2' opacity='0.5'><path d='M100 20 C 130 60 130 120 100 180 M 100 60 C 70 80 60 110 80 130 M 100 80 C 130 100 140 130 120 150 M 100 110 C 75 125 65 145 85 160 M 100 130 C 125 140 130 160 115 170'/><ellipse cx='80' cy='75' rx='6' ry='14' transform='rotate(-30 80 75)'/><ellipse cx='120' cy='95' rx='6' ry='14' transform='rotate(30 120 95)'/><ellipse cx='85' cy='115' rx='5' ry='12' transform='rotate(-25 85 115)'/><ellipse cx='118' cy='135' rx='5' ry='12' transform='rotate(28 118 135)'/><ellipse cx='90' cy='155' rx='4' ry='10' transform='rotate(-20 90 155)'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
}
.page::before { bottom: -40px; left: -60px; transform: rotate(-20deg); }
.page::after  { top: 40px; right: -80px; transform: rotate(140deg); }

/* ── Card (the invitation surface) ───────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: calc(100% - 32px);
  max-width: none;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  border: none;
}

/* ─────────────────────────────────────────────────────
   FULL-WIDTH (desktop) LAYOUT
   Activates explicitly via data-layout="wide" on <html>,
   OR automatically at >= 980px when data-layout="auto".
   ───────────────────────────────────────────────────── */

@media (min-width: 980px) {
  html[data-layout="auto"] .card,
  html[data-layout="wide"] .card {
    width: calc(100% - 32px);
    max-width: none;
  }

/* Full-width watercolor on wide viewports — height controlled instead of aspect ratio */
  html[data-layout="auto"] .hero-art,
  html[data-layout="wide"] .hero-art {
    aspect-ratio: auto;
    height: 70vh;
    min-height: 520px;
    max-height: 820px;
  }
  html[data-layout="auto"] .hero-bg,
  html[data-layout="wide"] .hero-bg {
    object-position: center 35%;
  }
  html[data-layout="auto"] .hero-art-fade,
  html[data-layout="wide"] .hero-art-fade {
    background:
      linear-gradient(180deg, transparent 0%, transparent 50%, color-mix(in srgb, var(--bg) 70%, transparent) 80%, var(--bg) 100%),
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 25%, transparent) 0%, transparent 25%);
  }
  html[data-layout="auto"] .hero-lamp,
  html[data-layout="wide"] .hero-lamp {
    width: 56px;
    top: 36px;
  }
  html[data-layout="auto"] .hero-greet-overlay,
  html[data-layout="wide"] .hero-greet-overlay {
    top: 110px;
  }
  html[data-layout="auto"] .hero-greet-sinhala,
  html[data-layout="wide"] .hero-greet-sinhala {
    font-size: clamp(40px, 5vw, 56px);
  }
  html[data-layout="auto"] .hero-greet-en,
  html[data-layout="wide"] .hero-greet-en {
    font-size: clamp(40px, 5vw, 54px);
  }

  /* The text/couple block sits in a centered narrow column over the bottom of the hero */
  html[data-layout="auto"] .hero-body,
  html[data-layout="wide"] .hero-body {
    margin: -160px auto 0;
    position: relative;
    z-index: 4;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border: 1px solid var(--card-edge);
    border-radius: 28px;
    padding: 36px 48px 44px;
    box-shadow: 0 30px 60px -30px rgba(60,40,15,0.3);
    backdrop-filter: blur(2px);
  }
  html[data-layout="auto"] .hero-greet,
  html[data-layout="wide"] .hero-greet { font-size: 20px; }
  html[data-layout="auto"] .hero-sub,
  html[data-layout="wide"] .hero-sub { font-size: 16px; }
  html[data-layout="auto"] .hero-names,
  html[data-layout="wide"] .hero-names { font-size: clamp(44px, 5vw, 60px); }
  html[data-layout="auto"] .hero-meta,
  html[data-layout="wide"] .hero-meta { font-size: 20px; }
  html[data-layout="auto"] .hero-couple-block,
  html[data-layout="wide"] .hero-couple-block { max-width: 380px; }

  /* Section content widths */
  html[data-layout="auto"] .section,
  html[data-layout="wide"] .section {
    max-width: none;
    margin: 0 auto;
    padding: 64px 64px;
  }
  /* Hero Art section is full-bleed — undo the max-width AND margin so it spans the viewport */
  html[data-layout="auto"] .hero-art-section,
  html[data-layout="wide"] .hero-art-section {
    max-width: none;
    padding: 0;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
  }
  /* Hero is full-bleed — undo the max-width AND margin so it spans the viewport */
  html[data-layout="auto"] .hero,
  html[data-layout="wide"] .hero {
    max-width: none;
    padding: 0;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
  }
  /* On wide layout the hero-body gets its own floating card surface, so the
     outer s-card shell should be invisible — one background, not two. */
  html[data-layout="auto"] .hero-card,
  html[data-layout="wide"] .hero-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    overflow: visible;
  }
  html[data-layout="auto"] .hero-card::before,
  html[data-layout="wide"] .hero-card::before {
    display: none;
  }
  html[data-layout="auto"] .section + .section,
  html[data-layout="wide"] .section + .section { padding-top: 24px; }

  html[data-layout="auto"] .s-title,
  html[data-layout="wide"] .s-title { font-size: clamp(36px, 4vw, 48px); }

  /* Countdown: bigger cells */
  html[data-layout="auto"] .countdown-grid,
  html[data-layout="wide"] .countdown-grid {
    max-width: 860px;
    gap: 16px;
  }
  html[data-layout="auto"] .cd-cell,
  html[data-layout="wide"] .cd-cell {
    padding: 28px 12px 20px;
    border-radius: 18px;
  }
  html[data-layout="auto"] .cd-num,
  html[data-layout="wide"] .cd-num { font-size: clamp(40px, 4vw, 56px); }
  html[data-layout="auto"] .cd-unit,
  html[data-layout="wide"] .cd-unit { font-size: 12px; }

  /* Story: image spans full card height (incl. title row) blending into right text */

  /* s-card becomes a 2-col × 2-row grid:
     col 1 (image) spans both rows → full card height
     col 2 row 1  → s-header (title)
     col 2 row 2  → story-text                                */
  html[data-layout="auto"] #story .s-card,
  html[data-layout="wide"] #story .s-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    padding: 0;
    overflow: hidden;
    min-height: 520px;
  }

  /* Title lives in the right column, top row */
  html[data-layout="auto"] #story .s-header,
  html[data-layout="wide"] #story .s-header {
    grid-column: 2;
    grid-row: 1;
    padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 44px) 20px 28px;
    margin-bottom: 0;
  }

  /* story-grid is transparent to the grid — children become grid items */
  html[data-layout="auto"] .story-grid,
  html[data-layout="wide"] .story-grid {
    display: contents;
  }

  /* Image: left column, spans both rows → fills the full card height */
  html[data-layout="auto"] .story-image,
  html[data-layout="wide"] .story-image {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  /* img fills the panel like a background */
  html[data-layout="auto"] .story-image img,
  html[data-layout="wide"] .story-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  /* Gradient: image dissolves into card color at its right edge */
  html[data-layout="auto"] .story-image::after,
  html[data-layout="wide"] .story-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      transparent 0%,
      transparent 44%,
      color-mix(in srgb, var(--card) 28%, transparent) 64%,
      color-mix(in srgb, var(--card) 76%, transparent) 84%,
      var(--card) 100%
    );
    pointer-events: none;
    z-index: 1;
  }
  /* Caption stays above the gradient overlay */
  html[data-layout="auto"] .story-caption,
  html[data-layout="wide"] .story-caption {
    z-index: 2;
    right: 30%;
  }

  /* Text: right column, second row */
  html[data-layout="auto"] .story-text,
  html[data-layout="wide"] .story-text {
    grid-column: 2;
    grid-row: 2;
    padding: 0 clamp(28px, 5vw, 44px) clamp(32px, 5vw, 52px) 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--card);
  }
  html[data-layout="auto"] .story-text p,
  html[data-layout="wide"] .story-text p { font-size: 19px; }

  /* Schedule: horizontal bridge on wide */
  html[data-layout="auto"] .schedule-pair,
  html[data-layout="wide"] .schedule-pair {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  html[data-layout="auto"] .sp-block,
  html[data-layout="wide"] .sp-block {
    width: auto;
    flex: 1;
    max-width: 220px;
    padding: 12px 16px;
  }
  html[data-layout="auto"] .sp-time,
  html[data-layout="wide"] .sp-time { font-size: 46px; }
  html[data-layout="auto"] .sp-divider,
  html[data-layout="wide"] .sp-divider {
    flex-direction: row;
    flex: 0 0 100px;
    padding: 0 4px;
    gap: 10px;
  }
  html[data-layout="auto"] .sp-line,
  html[data-layout="wide"] .sp-line {
    width: auto;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  }

  /* Venue: image spans full card height blending into right details */

  /* s-card: 2-col × 2-row grid — image spans both rows */
  html[data-layout="auto"] #venue .s-card,
  html[data-layout="wide"] #venue .s-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    padding: 0;
    overflow: hidden;
    min-height: 520px;
  }

  /* Title: right column, top row */
  html[data-layout="auto"] #venue .s-header,
  html[data-layout="wide"] #venue .s-header {
    grid-column: 2;
    grid-row: 1;
    padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 44px) 20px 28px;
    margin-bottom: 0;
  }

  /* venue-card is transparent to the grid */
  html[data-layout="auto"] .venue-card,
  html[data-layout="wide"] .venue-card {
    display: contents;
  }

  /* Image: left column, spans both rows → full card height */
  html[data-layout="auto"] .venue-art,
  html[data-layout="wide"] .venue-art {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    aspect-ratio: auto;
    height: auto;
    overflow: hidden;
    background: linear-gradient(180deg, #f0e6d0 0%, #e8d8b8 100%);
  }
  html[data-layout="auto"] .venue-art img,
  html[data-layout="wide"] .venue-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  /* Gradient: image dissolves into card color at its right edge */
  html[data-layout="auto"] .venue-art::after,
  html[data-layout="wide"] .venue-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      transparent 0%,
      transparent 44%,
      color-mix(in srgb, var(--card) 28%, transparent) 64%,
      color-mix(in srgb, var(--card) 76%, transparent) 84%,
      var(--card) 100%
    );
    pointer-events: none;
    z-index: 1;
    display: block;
  }

  /* Details: right column, second row */
  html[data-layout="auto"] .venue-body,
  html[data-layout="wide"] .venue-body {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    padding: 0 clamp(28px, 5vw, 44px) clamp(32px, 5vw, 52px) 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--card);
  }
  html[data-layout="auto"] .venue-name,
  html[data-layout="wide"] .venue-name { font-size: 32px; }

  /* RSVP: form in a centered narrow column on wide */
  html[data-layout="auto"] #rsvp .rsvp-form,
  html[data-layout="wide"] #rsvp .rsvp-form,
  html[data-layout="auto"] #rsvp .rsvp-success,
  html[data-layout="wide"] #rsvp .rsvp-success {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Side scroll-cues shift further from the edge on wide */
  html[data-layout="auto"] .dots,
  html[data-layout="wide"] .dots { right: 28px; }
  html[data-layout="auto"] .progress,
  html[data-layout="wide"] .progress { left: 28px; }
}

/* Explicit wide override even on smaller viewports */
html[data-layout="wide"] .card { width: 100%; max-width: 100%; }
html[data-layout="wide"] .page { padding: 0; }

/* Explicit card override even on wide viewports */
html[data-layout="card"] .card { width: calc(100% - 32px); max-width: none; }

/* Wide layout: each s-card is wider and gets some breathing room */

/* ── Section base ───────────────────────────────────────── */
.section {
  position: relative;
  scroll-margin-top: 16px;
}
.section + .section { padding-top: 8px; }

/* Inner "card" container used by each non-hero section so the
   page reads as a stack of invitation cards. */
.s-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 22px;
  padding: clamp(24px, 6vw, 40px) clamp(20px, 5vw, 36px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 14px 28px -18px rgba(60,40,15,0.18);
  position: relative;
}
.s-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: 16px;
  pointer-events: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 0;
  position: relative;
}

/* Hero Art section — full-width */
.hero-art-section {
  padding: 0;
  position: relative;
}

/* Watercolor hero artwork — Sigiriya */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, #f6ecd6 0%, #f1e4c8 60%, #efe2c2 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Show the sky strip at the top so the title overlays on it,
     with the rock falling naturally below the title. */
  object-position: center top;
}
/* Subtle top lightening for ambient mood (the localised wash behind the
   greeting does the heavy lifting for legibility). */
.hero-art::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 24%;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--card) 30%, transparent) 0%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}
/* Fade the bottom of the watercolor into the card surface */
.hero-art-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 50%, color-mix(in srgb, var(--card) 60%, transparent) 72%, var(--card) 92%);
  pointer-events: none;
  z-index: 2;
}
.hero-lamp {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  color: var(--gold-deep);
  z-index: 4;
  filter: drop-shadow(0 1px 2px rgba(60,40,15,0.15));
}

/* "Ayubowan" greeting overlaid on the watercolor, with soft blend */
.hero-greet-overlay {
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  text-align: center;
  z-index: 4;
  padding: 18px 24px 22px;
  isolation: isolate;
}
/* Soft cream wash behind the greeting so the watercolor "blends" into the text */
.hero-greet-overlay::before {
  content: '';
  position: absolute;
  inset: -16px -12% -8px;
  background:
    radial-gradient(ellipse 60% 110% at 50% 55%,
      color-mix(in srgb, var(--card) 96%, transparent) 0%,
      color-mix(in srgb, var(--card) 80%, transparent) 35%,
      color-mix(in srgb, var(--card) 40%, transparent) 65%,
      transparent 90%);
  pointer-events: none;
  z-index: -1;
}
.hero-greet-sinhala {
  font-family: var(--font-sinhala);
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.hero-greet-en {
  font-family: var(--font-script);
  font-size: clamp(30px, 8vw, 38px);
  color: var(--gold-deep);
  line-height: 1;
  margin-top: 10px;
  font-weight: 400;
}

.hero-body {
  text-align: center;
  padding: 4px var(--pad) var(--pad);
  position: relative;
  margin-top: -8px;
}

/* Bilingual invitation paragraph */
.hero-invite {
  max-width: 480px;
  margin: 8px auto 18px;
}
.hero-invite-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 4vw, 19px);
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 10px;
  text-wrap: pretty;
}
.hero-invite-si {
  font-family: var(--font-sinhala);
  font-size: clamp(14px, 3.6vw, 16px);
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
  text-wrap: pretty;
}

/* The hero section's watercolor is a FULL-WIDTH banner — break out of the
   outer .card width and span the whole viewport. */
.hero {
  padding: 0;
  margin: 0 calc(50% - 50vw);   /* break out of the card's max-width */
  width: 100vw;
  position: relative;
}
.hero .hero-art {
  border-radius: 0;
  border: none;
}

/* Hero card sits below (slightly overlapping) the watercolor — same
   width as the other section cards in the stack. */
.hero-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
  margin-top: -120px;
  position: relative;
  z-index: 2;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top-color: transparent;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--card) 55%, transparent) 60px,
    var(--card) 120px
  );
}
.hero-card::before {
  inset: 6px;
  top: 100px;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.hero-card .hero-body {
  padding: clamp(24px, 6vw, 40px) clamp(20px, 5vw, 36px) clamp(28px, 6vw, 44px);
  margin-top: 0;
}

/* Mobile-safe: don't pull the card up if the banner is short */
@media (max-width: 519px) {
  .hero-card { margin-top: -40px; }
}

/* Watercolor hero artwork — Sigiriya — full-bleed inside the card */

/* Pill-shaped date display (replaces the old double-rule date card) */
.hero-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gold-soft) 55%, var(--card)) 0%,
    color-mix(in srgb, var(--gold) 30%, var(--card)) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold-soft) 25%, transparent),
    0 16px 36px -12px rgba(60,40,15,0.35),
    0 1px 0 rgba(255,255,255,0.6) inset;
  margin: 18px auto 10px;
  color: var(--gold-deep);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(22px, 5.5vw, 30px);
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.hero-date-num {
  color: var(--ink);
}
.hero-date-dot {
  color: var(--gold-deep);
  opacity: 0.8;
  font-size: 1.1em;
  line-height: 0;
  position: relative;
  top: -2px;
}
.hero-date-flourish {
  width: 24px;
  height: 24px;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.hero-date-flourish--left { transform: rotate(-15deg); }
.hero-date-flourish--right { transform: rotate(15deg) scaleX(-1); }

.hero-date-discover {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 11px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 500;
  margin: 6px 0 14px;
}

/* Standalone couple illustration block (below the names) */
.hero-couple-block {
  margin: 22px auto 6px;
  width: 78%;
  max-width: 320px;
}
.hero-couple-block img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 8px 16px rgba(60,40,15,0.12));
}

.hero-greet {
  font-family: var(--font-sinhala);
  color: var(--gold-deep);
  font-size: 16px;
  letter-spacing: 0.04em;
  margin: 6px 0 12px;
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1.0;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,250,235,0.5);
}
.hero-sub {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--ink);
  margin: 4px 0 14px;
  font-weight: 500;
  line-height: 1.4;
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 14px;
  text-transform: uppercase;
}
.hero-amp {
  display: block;
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 1.0em;
  margin: 2px 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
  line-height: 0.9;
}
.hero-meta {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  margin-top: 6px;
}
.hero-place {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-display);
}

/* "RSVP Today" CTA inside the hero card (matches reference) */
.hero-rsvp-cta {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 18px;
}
.btn-rsvp-pill {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 14px;
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  padding: 18px 60px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.4);
}
.btn-rsvp-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }

/* ── Divider with lotus ───────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px auto;
  color: var(--gold);
  max-width: 220px;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.divider svg { width: 18px; color: var(--gold); }
.divider .stack { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.divider .stack .line { width: 80px; }

/* ── Scroll cue at end of hero ─────────────────────────── */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 0 22px;
  margin-top: 36px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.4s ease;
  opacity: 0.9;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue.hide { opacity: 0; pointer-events: none; }
.scroll-cue .mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 30%, transparent);
}
.scroll-cue .mouse::after {
  content: '';
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  left: 50%; top: 6px;
  transform: translateX(-50%);
  animation: mouseDot 1.6s ease-in-out infinite;
}
@keyframes mouseDot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  60%  { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}
.scroll-cue .chev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -2px;
}
.scroll-cue .chev span {
  display: block;
  width: 12px; height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: chev 1.8s ease-in-out infinite;
  margin-top: -5px;
}
.scroll-cue .chev span:nth-child(2) { animation-delay: 0.2s; }
.scroll-cue .chev span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chev {
  0%, 100% { opacity: 0.2; transform: rotate(45deg) translate(0,0); }
  50%      { opacity: 1;   transform: rotate(45deg) translate(3px,3px); }
}
.scroll-cue-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.scroll-cue-label span { display: block; }
.scroll-cue-label-si {
  font-family: var(--font-sinhala);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.8;
}

/* ── Countdown ──────────────────────────────────────────── */
.countdown {
  text-align: center;
}
.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
.cd-cell {
  background: color-mix(in srgb, var(--gold-soft) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: 14px;
  padding: 14px 6px 10px;
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ── Section header ─────────────────────────────────────── */
.s-header {
  text-align: center;
  margin-bottom: 18px;
}
.s-eyebrow {
  font-family: var(--font-sinhala);
  color: var(--gold-deep);
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.s-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 7vw, 32px);
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0;
}
.s-kicker {
  font-family: var(--font-script);
  font-size: clamp(24px, 6vw, 30px);
  letter-spacing: 0.01em;
  color: var(--gold-deep);
  margin-bottom: -2px;
  line-height: 1;
  font-weight: 400;
}

/* ── Story ──────────────────────────────────────────────── */
.story-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 6px 0 18px;
  box-shadow: 0 8px 24px -12px rgba(60,40,15,0.25);
  border: 1px solid var(--card-edge);
}
.story-image img { display: block; width: 100%; }
.story-caption {
  position: absolute;
  bottom: 10px; left: 12px; right: 12px;
  font-style: italic;
  font-size: 13px;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
}
.story-text p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.story-text p:first-letter {
  font-family: var(--font-display);
  font-size: 2.3em;
  float: left;
  line-height: 0.9;
  padding: 6px 8px 0 0;
  color: var(--gold-deep);
  font-weight: 500;
}
.story-quote {
  font-family: var(--font-script);
  text-align: center;
  font-size: clamp(28px, 7vw, 34px);
  color: var(--gold-deep);
  margin: 24px 6px 4px;
  padding: 0 14px;
  position: relative;
  line-height: 1.15;
  font-weight: 400;
}
.story-quote::before, .story-quote::after { display: none; }
.story-quote .signature {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Schedule timeline ─────────────────────────────────── */
.schedule-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 16px 0 8px;
}
.sp-block {
  text-align: center;
  width: 100%;
  max-width: 280px;
  padding: 18px 16px 12px;
}
.sp-time {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.sp-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 500;
}
.sp-title-si {
  font-size: 13px;
  color: var(--gold-deep);
  margin-top: 4px;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.sp-desc {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 6px;
  opacity: 0.75;
}
/* vertical ornament between blocks on mobile */
.sp-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.sp-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
}
.sp-gem {
  color: var(--gold);
  font-size: 9px;
  line-height: 1;
  opacity: 0.8;
}

/* ── Venue card ────────────────────────────────────────── */
.venue-card {
  border: 1px solid var(--card-edge);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--gold-soft) 8%, var(--card));
  box-shadow: 0 8px 24px -16px rgba(60,40,15,0.2);
}
.venue-art {
  position: relative;
  aspect-ratio: 5 / 4;
  background: linear-gradient(180deg, #f0e6d0 0%, #e8d8b8 100%);
  overflow: hidden;
}
.venue-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.venue-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--card) 85%, transparent) 100%);
}
.venue-body {
  padding: 18px 20px 20px;
  text-align: center;
}
.venue-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2px;
}
.venue-addr {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 12px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: var(--gold-deep);
  text-decoration: none;
  padding: 10px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gold-soft) 55%, var(--card)) 0%,
    color-mix(in srgb, var(--gold) 30%, var(--card)) 100%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-soft) 25%, transparent);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--gold); color: var(--card); box-shadow: 0 6px 18px -8px rgba(60,40,15,0.35); }

/* ── RSVP form ─────────────────────────────────────────── */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 10px;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-soft) 30%, transparent);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: #b3471d;
  background: color-mix(in srgb, #b3471d 6%, var(--card));
}
.field-error {
  font-size: 12px;
  color: #b3471d;
  font-style: italic;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choices label {
  cursor: pointer;
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  background: var(--card);
  transition: all 0.2s;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
}
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}
.choices label .em {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
  font-style: normal;
  font-family: var(--font-sinhala);
}
.btn-primary {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  background: var(--ink);
  color: var(--card);
  border: none;
  padding: 18px 28px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5); }
.btn-primary:active { transform: translateY(0); }

/* RSVP success */
.rsvp-success {
  text-align: center;
  padding: 22px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--gold-soft) 16%, var(--card));
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}
.rsvp-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  color: var(--card);
}
.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 4px;
}
.rsvp-success p {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.rsvp-success .ay {
  font-family: var(--font-sinhala);
  color: var(--gold-deep);
  font-size: 18px;
  margin-bottom: 8px;
}
.rsvp-success .reset {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Cover (envelope) screen ─────────────────────────────
   Full-viewport opening cover that the guest must dismiss
   with the "Open Invitation" button. Slides up off-screen
   on dismissal, revealing the page beneath.
*/
.cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.6s ease 0.5s;
  background: var(--bg);
}
.cover--open {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.cover-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(0.9);
  opacity: 0.95;
  transform: scale(1.05);
}
.cover-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%,
      color-mix(in srgb, var(--card) 72%, transparent) 0%,
      color-mix(in srgb, var(--card) 55%, transparent) 50%,
      color-mix(in srgb, var(--bg) 60%, transparent) 100%);
}
.cover-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 32px;
  color: var(--ink);
}
.cover-eyebrow {
  font-size: clamp(22px, 6vw, 28px);
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.cover-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.cover-names {
  font-family: var(--font-display);
  font-size: clamp(48px, 13vw, 76px);
  line-height: 1.0;
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 8px 0 18px;
}
.cover-amp {
  display: block;
  font-family: var(--font-script);
  font-size: 0.95em;
  color: var(--gold);
  line-height: 0.85;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin: 4px 0;
}
.cover-meta {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  margin: 2px 0;
  font-style: italic;
}
.cover-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px auto;
  color: var(--gold);
  width: min(220px, 80%);
}
.cover-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.cover-divider svg { width: 18px; }
.cover-to {
  font-size: clamp(20px, 5.5vw, 26px);
  color: var(--gold-deep);
}
.cover-please {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 6px 0 28px;
}
.cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--card);
  border: none;
  padding: 16px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(60,40,15,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: coverPulse 2.4s ease-in-out infinite;
  margin-top: 25px;
}
.cover-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(60,40,15,0.55);
}
.cover-btn {
  flex-direction: column;
  gap: 4px;
}
.cover-btn-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cover-btn-si {
  font-family: 'Noto Serif Sinhala', serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: none;
  opacity: 0.82;
  line-height: 1.3;
}
@keyframes coverPulse {
  0%, 100% { box-shadow: 0 12px 28px -12px rgba(60,40,15,0.5), 0 0 0 0 color-mix(in srgb, var(--gold) 50%, transparent); }
  50%      { box-shadow: 0 12px 28px -12px rgba(60,40,15,0.5), 0 0 0 12px color-mix(in srgb, var(--gold) 0%, transparent); }
}

/* ── Bride & Groom Pair section ──────────────────────────── */
.pair-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 6px 0;
}
.pair-card {
  text-align: center;
  padding: 18px 16px 20px;
  border: 1px solid var(--card-edge);
  border-radius: 18px;
  background: color-mix(in srgb, var(--gold-soft) 6%, var(--card));
}
.pair-portrait {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold-soft) 18%, var(--card));
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pair-portrait svg { width: 100%; height: 100%; }
.pair-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pair-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 4px 0 2px;
}
.pair-role {
  font-size: clamp(20px, 5vw, 24px);
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.pair-parents {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.pair-divider {
  text-align: center;
  margin: -4px 0;
}
.pair-amp {
  font-size: clamp(40px, 10vw, 52px);
  color: var(--gold);
  line-height: 1;
}

/* Wide layout: bride/groom side-by-side */
@media (min-width: 980px) {
  html[data-layout="auto"] .pair-grid,
  html[data-layout="wide"] .pair-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
  }
  html[data-layout="auto"] .pair-portrait,
  html[data-layout="wide"] .pair-portrait { width: 120px; height: 120px; }
  html[data-layout="auto"] .pair-name,
  html[data-layout="wide"] .pair-name { font-size: 26px; }
  html[data-layout="auto"] .pair-amp,
  html[data-layout="wide"] .pair-amp { font-size: 72px; }
}
.foot {
  text-align: center;
  padding: 24px var(--pad) 36px;
  color: var(--ink-faint);
}
.foot-script {
  font-size: clamp(22px, 5.5vw, 28px);
  color: var(--gold-deep);
  margin-top: 6px;
  line-height: 1.4;
}
.foot-signature {
  font-size: clamp(36px, 9vw, 48px);
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.3;
}
.foot .hashtag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 14px;
  margin-top: 28px;
  letter-spacing: 0.06em;
}

/* ── Scroll indicators (page-level chrome) ─────────────── */

/* Section dots (right edge) */
.dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 6px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--card-edge) 60%, transparent);
  box-shadow: 0 6px 18px -10px rgba(60,40,15,0.18);
  transition: opacity 0.3s, transform 0.3s;
}
.dots.hidden { opacity: 0; pointer-events: none; transform: translate(20px, -50%); }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}
.dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dot:hover::after, .dot.active::after { opacity: 1; }
.dot.active {
  background: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-soft) 40%, transparent);
}

/* Side progress bar (left) */
.progress {
  position: fixed;
  left: 16px;
  top: 16vh;
  bottom: 16vh;
  width: 2px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 4px;
  z-index: 10;
  transition: opacity 0.3s;
}
.progress.hidden { opacity: 0; pointer-events: none; }
.progress .fill {
  position: absolute;
  left: -2px; right: -2px;
  top: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 4px;
  transition: height 0.1s linear;
  box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 60%, transparent);
}
.progress .fill::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-soft) 40%, transparent);
}
.progress-pct {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .dots { right: 6px; gap: 12px; }
  .dot::after { display: none; }
  .progress { left: 6px; }
  .progress-pct { display: none; }
}

/* On very narrow screens, hide left progress to avoid clutter */
@media (max-width: 360px) {
  .progress { display: none; }
}

/* Reveal animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Small flourishes */
.lamp-svg { color: var(--gold-deep); }
.lotus-svg { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   HERO V2 — Cinematic full-viewport hero (reference design)
   ══════════════════════════════════════════════════════════ */

/* Full-bleed container — inherits .hero breakout rule */
.hero-v2 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  /* Subtle top gradient tint for ambient mood */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--gold-soft) 12%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

@media (max-width: 640px) {
  .hero-v2 {
    overflow: visible;
    align-items: flex-start;
    padding-bottom: 40px;
  }
}

/* Thin gold inner-frame border */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  pointer-events: none;
  z-index: 2;
}

/* ── Faded couple watermark ─────────────────────────────── */
.hero-v2-wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-v2-wm img {
  height: 88%;
  width: auto;
  max-width: 65%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.13;
  filter: sepia(15%);
  transform: translateX(4%);
}

/* ── Side rotated labels ────────────────────────────────── */
.hero-v2-side {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.hero-v2-side span {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  font-weight: 500;
}
.hero-v2-side::before,
.hero-v2-side::after {
  content: '';
  display: block;
  width: 1px;
  height: 44px;
  background: color-mix(in srgb, var(--gold) 40%, transparent);
  flex-shrink: 0;
}
.hero-v2-side--left {
  left: 22px;
  transform-origin: center center;
  transform: translateY(-50%) rotate(-90deg);
}
.hero-v2-side--right {
  right: 22px;
  transform-origin: center center;
  transform: translateY(-50%) rotate(90deg);
}

/* ── Center content column ──────────────────────────────── */
.hero-v2-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px clamp(64px, 10vw, 120px);
  width: 100%;
}

/* ── Heart motif ────────────────────────────────────────── */
.hero-v2-heart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 5px;
}
.hero-v2-rule {
  flex: 1;
  max-width: 130px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--ink) 28%, transparent),
    transparent);
  display: block;
}
.hero-v2-rule--short {
  flex: none;
  width: 50px;
  max-width: 50px;
}
.hero-v2-heart {
  width: 30px;
  height: 30px;
  color: var(--ink);
  flex-shrink: 0;
}
.hero-v2-small-heart {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  opacity: 0.55;
}

/* ── Eyebrow / ceremony subtitle ────────────────────────── */
.hero-v2-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(9px, 1.3vw, 14px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.5;
}
.hero-v2-eyebrow-sep {
  opacity: 0.4;
  margin: 0 2px;
}
.hero-v2-eyebrow-si {
  font-family: var(--font-sinhala);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ── Large English names ─────────────────────────────────── */
.hero-v2-names-en {
  font-family: var(--font-display);
  font-size: clamp(54px, 9.5vw, 9.5rem);
  font-weight: 400;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0 0 40px;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255,252,240,0.4);
}
.hero-v2-amp {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-deep);
  font-size: 0.92em;
}

/* ── Sinhala names ───────────────────────────────────────── */
.hero-v2-names-si {
  font-family: var(--font-sinhala);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 44px;
  line-height: 1.3;
}
.hero-v2-amp-si {
  font-family: var(--font-script);
  color: var(--gold-deep);
  font-weight: 400;
  font-style: italic;
}

/* ── Invitation paragraph ────────────────────────────────── */
.hero-v2-invite {
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-v2-invite-en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.9vw, 22px);
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.hero-v2-invite-si {
  font-family: var(--font-sinhala);
  font-size: clamp(12px, 1.5vw, 17px);
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
  text-wrap: pretty;
}

/* ── Discover label ──────────────────────────────────────── */
.hero-v2-discover-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-v2-discover-label {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ── Mobile overrides ────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-v2-content {
    padding: 20px 28px 56px;
  }
  .hero-v2-side {
    display: none; /* rotated labels don't fit on mobile */
  }
  .hero-v2::before {
    inset: 8px;
  }
  .hero-v2-eyebrow-sep { display: none; }
  .hero-v2-eyebrow-si  { display: block; margin-top: 4px; }
  .hero-date-pill {
    padding: 14px 20px;
    gap: 8px;
    font-size: clamp(16px, 4.5vw, 20px);
    letter-spacing: 0.12em;
    max-width: calc(100% - 16px);
  }
  .hero-date-flourish {
    width: 18px;
    height: 18px;
  }
  .hero-v2-side {
    display: none; /* rotated labels don't fit on mobile */
  }
  .hero-v2::before {
    inset: 8px;
  }
  .hero-v2-wm img {
    opacity: 0.08;
    height: 65%;
    transform: translateX(15%);
  }
  .hero-v2-names-en {
    font-size: clamp(40px, 11vw, 60px);
  }
  .hero-v2-names-si {
    font-size: clamp(22px, 7vw, 34px);
  }
  .hero-v2-invite-en {
    font-size: 15px;
  }
  .hero-v2-invite-si {
    font-size: 12px;
  }
}

/* ── Wide layout: hero-v2 also gets full-bleed treatment ── */
@media (min-width: 980px) {
  html[data-layout="auto"] .hero-v2,
  html[data-layout="wide"] .hero-v2 {
    max-width: none;
    padding: 0;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
  }
  html[data-layout="auto"] .hero-v2-content,
  html[data-layout="wide"] .hero-v2-content {
    padding: 80px clamp(80px, 10vw, 140px);
  }
}

/* ── Rose Petal Rain ────────────────────────────────────── */

/* Shared overlay */
.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Base petal — all states are position:fixed */
.petal {
  position: fixed;
  top: 0;
  will-change: transform, opacity;
  filter: blur(0.3px);
}

/* ── 1. FALLING ─────────────────────────────────────────── */
@keyframes petalFall {
  0% {
    transform: translateY(-50px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  7% {
    opacity: var(--petal-opacity);
  }
  93% {
    opacity: var(--petal-opacity);
  }
  100% {
    /* End near the bottom edge so the "land" transition is invisible */
    transform: translateY(calc(100vh - 40px)) translateX(var(--drift)) rotate(var(--spin));
    opacity: calc(var(--petal-opacity) * 0.9);
  }
}

.petal--falling {
  animation: petalFall linear 1 both;
}

/* ── 2. LANDED ───────────────────────────────────────────── */
/* Quick settle: drop into resting position from a tiny height */
@keyframes petalSettle {
  0% {
    transform: rotate(calc(var(--land-angle, 0deg) + 25deg)) translateY(-10px) scale(1.08);
    opacity: 0;
  }
  100% {
    transform: rotate(var(--land-angle, 0deg)) translateY(0) scale(1);
    opacity: var(--petal-opacity);
  }
}

.petal--landed {
  top: auto;
  bottom: var(--land-bottom, 8px);
  animation: petalSettle 0.45s ease-out both;
}

/* ── 3. BLOWING AWAY ─────────────────────────────────────── */
/* Wind gust: sweep sideways + lift + spin, then fade */
@keyframes petalBlow {
  0% {
    transform: rotate(var(--land-angle, 0deg)) translateX(0) translateY(0);
    opacity: var(--petal-opacity);
  }
  25% {
    opacity: var(--petal-opacity);
  }
  100% {
    transform: rotate(var(--blow-spin, 180deg)) translateX(var(--blow-x, 200px)) translateY(var(--blow-y, -40px));
    opacity: 0;
  }
}

.petal--blowing {
  top: auto;
  bottom: var(--land-bottom, 8px);
  /* animation-fill-mode: both keeps the 0% keyframe applied during the stagger delay */
  animation: petalBlow 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1 both;
  animation-delay: var(--blow-delay, 0s);
}

/* ── Directions Accordion ──────────────────────────────── */
.dir-accordion {
  margin-top: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Each route item */
.dir-item {
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 85%, var(--ink) 3%);
  transition: border-color 0.2s ease;
}
.dir-item.open {
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
}

/* Header button */
.dir-item-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.dir-item-header:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.dir-item.open .dir-item-header {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

/* Numbered badge */
.dir-item-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--ink-soft, color-mix(in srgb, var(--ink) 55%, transparent));
}
.dir-item.open .dir-item-num {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}

/* Route name pair */
.dir-item-names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dir-item-name-en {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dir-item-name-si {
  font-family: var(--font-body, serif);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft, color-mix(in srgb, var(--ink) 55%, transparent));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron */
.dir-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--ink-soft, color-mix(in srgb, var(--ink) 55%, transparent));
}
.dir-chevron.open { transform: rotate(180deg); }

/* Steps list */
.dir-steps {
  list-style: none;
  margin: 0;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dir-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.dir-step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0;
  color: var(--ink-soft, color-mix(in srgb, var(--ink) 55%, transparent));
  margin-top: 3px;
}

.dir-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dir-en {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.dir-si {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft, color-mix(in srgb, var(--ink) 60%, transparent));
  font-style: italic;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .dir-item-name-en { font-size: 11px; letter-spacing: 0.12em; }
  .dir-item-name-si { font-size: 11.5px; }
  .dir-en { font-size: 13px; }
  .dir-si { font-size: 12px; }
  .dir-item-header { padding: 12px; }
  .dir-steps { padding: 10px 12px 12px; gap: 9px; }
}

/* ══════════════════════════════════════════════════════════
   COVER VARIANTS  A · B · C · D · E
   All share .cover base (open/close animation).
   ══════════════════════════════════════════════════════════ */

/* ── Shared helpers ───────────────────────────────────────── */
/* All variant covers use .cover-btn already defined above */

/* ── Cover A · Wax Seal Envelope ─────────────────────────── */
.cov-a {
  background: var(--bg);
}
.cov-a .cover-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cov-a-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  padding: 40px 28px;
  position: relative;
  z-index: 2;
}
.cov-a-eyebrow {
  font-size: clamp(20px, 5.5vw, 28px);
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.cov-a-env-wrap {
  position: relative;
  width: min(300px, 84vw);
}
.cov-a-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(60,40,15,0.18));
}
.env-body {
  fill: color-mix(in srgb, var(--gold-soft) 18%, var(--card));
  stroke: color-mix(in srgb, var(--gold) 55%, transparent);
  stroke-width: 1.5;
}
.env-side {
  fill: color-mix(in srgb, var(--gold-soft) 32%, var(--card));
  stroke: color-mix(in srgb, var(--gold) 28%, transparent);
  stroke-width: 0.7;
  stroke-linejoin: round;
}
.env-bottom {
  fill: color-mix(in srgb, var(--gold-soft) 26%, var(--card));
  stroke: color-mix(in srgb, var(--gold) 28%, transparent);
  stroke-width: 0.7;
}
.env-flap {
  fill: color-mix(in srgb, var(--gold-soft) 44%, var(--card));
  stroke: color-mix(in srgb, var(--gold) 32%, transparent);
  stroke-width: 0.7;
}
.env-seal-bg  { fill: var(--gold); }
.env-seal-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--card) 45%, transparent);
  stroke-width: 1;
}
.cov-a-seal-mono {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(17px, 5vw, 23px);
  color: var(--card);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.cov-a-names {
  font-family: var(--font-display);
  font-size: clamp(28px, 8.5vw, 50px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cov-a-sub {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: -5px;
}

/* ── Cover B · Cinematic Diptych ─────────────────────────── */
.cov-b {
  background: var(--bg);
}
.cov-b .cover-inner {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}
.cov-b-panels {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.cov-b-half {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.cov-b-half img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(4px) saturate(0.75);
  transform: scale(1.06);
}
.cov-b-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cov-b-veil--l {
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--bg) 28%, transparent) 0%,
    transparent 55%,
    color-mix(in srgb, var(--bg) 55%, transparent) 100%
  );
}
.cov-b-veil--r {
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--bg) 28%, transparent) 0%,
    transparent 55%,
    color-mix(in srgb, var(--bg) 55%, transparent) 100%
  );
}
.cov-b-name {
  position: absolute;
  z-index: 2;
  bottom: 30%;
  width: 100%;
  text-align: center;
  font-size: clamp(26px, 6vw, 42px);
  color: var(--ink);
  line-height: 1;
  text-shadow: 0 2px 14px rgba(255,252,240,0.65);
}
.cov-b-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(52px, 12vw, 100px);
}
.cov-b-spine-rule {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft), transparent);
}
.cov-b-amp {
  font-size: clamp(44px, 9vw, 72px);
  color: var(--gold-deep);
  line-height: 1;
  margin: 6px 0;
  text-shadow: 0 2px 14px rgba(255,252,240,0.8);
}
.cov-b-foot {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 80%, transparent) 0%,
    var(--bg) 38%
  );
  text-align: center;
  padding: 22px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.cov-b-foot-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 4vw, 21px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.cov-b-foot-date {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ── Cover C · Star Map / Constellation ──────────────────── */
.cov-c {
  background: var(--bg);
}
.cov-c .cover-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cov-c-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  padding: 40px 28px;
  position: relative;
  z-index: 2;
}
.cov-c-map {
  width: min(290px, 80vw);
  height: auto;
  display: block;
  margin-bottom: 4px;
}
.cov-c-grid {
  stroke: color-mix(in srgb, var(--gold) 12%, transparent);
  stroke-width: 0.3;
}
.cov-c-bgstar {
  fill: var(--ink-faint);
  opacity: 0.38;
  animation: cStarTwinkle 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.38s);
}
.cov-c-cline {
  stroke: color-mix(in srgb, var(--gold-soft) 65%, transparent);
  stroke-width: 0.8;
}
.cov-c-star-glow {
  fill: color-mix(in srgb, var(--gold-soft) 38%, transparent);
  transform-origin: center;
  transform-box: fill-box;
  animation: cStarGlow 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.23s);
}
.cov-c-star {
  fill: var(--gold);
  animation: cStarTwinkle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.23s);
}
@keyframes cStarTwinkle {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.42; }
}
@keyframes cStarGlow {
  0%, 100% { opacity: 0.32; transform: scale(1); }
  50%       { opacity: 0.66; transform: scale(1.55); }
}
.cov-c-coord {
  font-family: var(--font-display);
  letter-spacing: 0.38em;
  font-size: clamp(20px, 5.5vw, 28px);
  color: var(--gold-deep);
  font-weight: 500;
}
.cov-c-names {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cov-c-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ── Cover D · Botanical Arch ────────────────────────────── */
.cov-d {
  background: var(--bg);
}
.cov-d .cover-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cov-d-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cov-d-branch {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(72px, 18vw, 118px);
  height: 100%;
  pointer-events: none;
}
.cov-d-branch--l { left: 0; }
.cov-d-branch--r { right: 0; }
.cov-d-stem {
  stroke: color-mix(in srgb, var(--gold-deep) 75%, var(--ink));
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cov-d-leaf {
  fill: color-mix(in srgb, var(--gold-deep) 52%, var(--ink));
  opacity: 0.68;
}
.cov-d-bloom {
  fill: color-mix(in srgb, var(--gold-soft) 82%, var(--card));
  stroke: var(--gold-deep);
  stroke-width: 0.9;
}
.cov-d-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 60px clamp(76px, 21vw, 138px);
  z-index: 2;
  position: relative;
}
.cov-d-eyebrow {
  font-size: clamp(20px, 5vw, 26px);
  color: var(--gold-deep);
}
.cov-d-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: -4px;
}
.cov-d-names {
  font-family: var(--font-display);
  font-size: clamp(28px, 7.5vw, 50px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cov-d-meta {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: -4px;
}

/* ── Cover E · Monogram Seal ─────────────────────────────── */
.cov-e {
  background: var(--bg);
}
.cov-e .cover-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cov-e-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  padding: 40px 28px;
  position: relative;
  z-index: 2;
}
.cov-e-seal-wrap {
  position: relative;
  width: min(220px, 60vw);
  height: min(220px, 60vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.cov-e-ornament {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: eSealRotate 60s linear infinite;
}
@keyframes eSealRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cov-e-ring-svg {
  stroke: color-mix(in srgb, var(--gold) 52%, transparent);
  stroke-width: 1.2;
}
.cov-e-ring-svg--dashed {
  stroke-width: 0.7;
  stroke-dasharray: 3 6;
}
.cov-e-tick {
  stroke: color-mix(in srgb, var(--gold) 46%, transparent);
  stroke-width: 0.9;
}
.cov-e-diamond {
  fill: var(--gold);
}
.cov-e-mono {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.cov-e-initial {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 60px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.cov-e-sep {
  font-size: clamp(26px, 7.5vw, 40px);
  color: var(--gold-deep);
  margin: 0 2px;
}
.cov-e-names {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 44px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cov-e-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: -5px;
}

/* ── WebP <picture> layout fix ───────────────────────────────
   <picture> is display:inline by default. Wrapping <img> in it
   breaks flex-child sizing (height:88%) and absolute positioning.
   display:contents makes <picture> invisible to layout so all
   existing img rules keep applying exactly as before.           */
.hero-v2-wm picture,
.cov-b-half picture,
.pair-portrait picture,
.story-image picture,
.venue-art picture {
  display: contents;
}
