/* ==========================================================================
   harshasohani.com — "Lamplight and Lotus"
   Fixed light theme by design (see DESIGN.md §2). No dark-mode inversion.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Paper (light sections) */
  --paper:          #FBF6EC;
  --paper-deep:     #F4EBDA;
  --paper-line:     #E6D7BC;

  /* Ink */
  --ink:            #2A1A1F;
  --ink-muted:      #6B5A55;

  /* Jewel tones */
  --maroon:         #7A1F2B;
  --maroon-hover:   #5E1520;
  --night:          #3A0F1A;
  --night-deep:     #26080F;
  --peacock:        #0F4C4A;

  /* Gold */
  --gold:           #B8873A;
  --gold-text:      #8A6420;
  --gold-light:     #D9B26A;
  --gold-pale:      #EAD3A2;

  /* Text on dark */
  --on-night:       #FBF6EC;
  --on-night-muted: #D8C6BC;

  /* Effects */
  --shadow-card:   0 1px 2px rgb(42 26 31 / .06), 0 8px 24px -12px rgb(42 26 31 / .18);
  --radius-card:   4px;
  --radius-arch:   999px 999px 4px 4px;
  --focus-ring:    0 0 0 3px var(--paper), 0 0 0 5px var(--maroon);
  --focus-ring-dark: 0 0 0 3px var(--night), 0 0 0 5px var(--gold-light);

  /* Type */
  --font-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-text: "Jost", "Futura", "Segoe UI", system-ui, sans-serif;

  --fs-names:   clamp(3.25rem, 1.9rem + 6vw, 7.5rem);
  --fs-amp:     clamp(2.5rem, 1.5rem + 4.4vw, 5.5rem);
  --fs-h2:      clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);
  --fs-h3:      clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  --fs-count:   clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
  --fs-lead:    clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-body:    clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-small:   clamp(.875rem, .85rem + .1vw, .9375rem);
  --fs-eyebrow: clamp(.75rem, .72rem + .1vw, .8125rem);

  /* Motion */
  --ease-out:  cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 200ms;
  --dur-base: 600ms;
  --dur-slow: 1600ms;

  /* Layout */
  --gutter: clamp(16px, 5vw, 48px);
  --section-pad: clamp(72px, 10vw, 144px);
  --nav-h: 60px;
  --section-bg: var(--paper);

  /* Petal band tile (§5.2), used as a mask so it can take any currentColor */
  --petal-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cg fill='none' stroke='%23000' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 1.5C18 4.5 18 9.5 14 12.5 10 9.5 10 4.5 14 1.5Z'/%3E%3Cpath d='M-2.5 7L0 4.5 2.5 7 0 9.5Z'/%3E%3Cpath d='M30.5 7L28 4.5 25.5 7 28 9.5Z'/%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 900px) {
  :root { --nav-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: "liga", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.menu-open, html.menu-open body { overflow: hidden; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--maroon); text-underline-offset: 4px; }
a:hover { color: var(--maroon-hover); }

section[id] { scroll-margin-top: 80px; }
#top { scroll-margin-top: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ---------- Focus (visible only for keyboard) ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.save-date :focus-visible,
.site-footer :focus-visible,
.menu-sheet :focus-visible,
.site-header:not(.is-solid) :focus-visible,
html.menu-open .site-header :focus-visible {
  box-shadow: var(--focus-ring-dark);
}
main:focus-visible { box-shadow: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--maroon);
  font-weight: 500;
  font-size: var(--fs-small);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: underline;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease-soft), border-color 300ms var(--ease-soft);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monogram {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--gold-light);
  text-decoration: none;
  padding: 11px 4px;
  margin-left: -4px;
  transition: color 300ms var(--ease-soft);
}
.monogram em { font-style: italic; font-weight: 400; margin: 0 .06em; }
.monogram:hover { color: var(--gold-pale); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 36px; }
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-night);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color 300ms var(--ease-soft), border-color 200ms, background-color 200ms;
}
.primary-nav a:not(.nav-rsvp)::after {
  content: "";
  position: absolute;
  left: 0; right: .22em;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms var(--ease-out);
}
.site-header:not(.is-solid) .primary-nav a:not(.nav-rsvp)::after { background: var(--gold-light); }
.primary-nav a[aria-current="true"]::after,
.primary-nav a:not(.nav-rsvp):hover::after { transform: scaleX(1); }

.primary-nav .nav-rsvp {
  min-height: 0;
  padding: 10px 18px 10px calc(18px + .22em);
  border: 1px solid currentColor;
  border-radius: var(--radius-card);
  /* pad the hit area to 44px without changing the visual box */
  position: relative;
}
.primary-nav .nav-rsvp::before {
  content: ""; position: absolute; inset: -6px -2px;
}
.primary-nav .nav-rsvp:hover,
.primary-nav .nav-rsvp[aria-current="true"] { background: rgb(217 178 106 / .14); }

/* State B: solid */
.site-header.is-solid {
  background: var(--paper);
  border-bottom-color: var(--paper-line);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header.is-solid {
    background: rgb(251 246 236 / .88);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
  }
}
.site-header.is-solid .monogram { color: var(--maroon); }
.site-header.is-solid .monogram:hover { color: var(--maroon-hover); }
.site-header.is-solid .primary-nav a { color: var(--ink); }
.site-header.is-solid .primary-nav .nav-rsvp { color: var(--maroon); }
.site-header.is-solid .primary-nav .nav-rsvp:hover { background: rgb(122 31 43 / .06); }

/* Menu button */
.menu-button {
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--on-night);
  cursor: pointer;
  border-radius: var(--radius-card);
  transition: color 300ms var(--ease-soft);
}
.site-header.is-solid .menu-button { color: var(--ink); }
.menu-lines { position: relative; width: 22px; height: 7.5px; }
.menu-lines span {
  position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 300ms var(--ease-out);
}
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 6px; }
.menu-button[aria-expanded="true"] .menu-lines span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* While the sheet is open the header sits transparently on the night sheet */
html.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
html.menu-open .site-header .monogram { color: var(--gold-light); }
html.menu-open .site-header .menu-button { color: var(--on-night); }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .menu-button { display: none; }
}

/* Mobile menu sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 16px) 24px 32px;
  background: var(--night);
  color: var(--on-night);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-soft), visibility 0s linear 300ms;
}
.menu-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms var(--ease-soft), visibility 0s;
}
.sheet-lotus { width: 64px; height: 40px; color: var(--gold-light); stroke-width: 1.5; margin-bottom: 36px; }
.menu-sheet ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.menu-sheet li { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.menu-sheet.is-open li { opacity: 1; transform: none; }
.menu-sheet.is-open li:nth-child(1) { transition-delay: 50ms; }
.menu-sheet.is-open li:nth-child(2) { transition-delay: 100ms; }
.menu-sheet.is-open li:nth-child(3) { transition-delay: 150ms; }
.menu-sheet.is-open li:nth-child(4) { transition-delay: 200ms; }
.menu-sheet a {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--on-night);
  text-decoration: none;
}
.menu-sheet a:hover { color: var(--gold-light); }
.sheet-date { margin-top: 40px; color: var(--gold-light); }
@media (min-width: 900px) { .menu-sheet { display: none; } }

/* ==========================================================================
   Petal band (§5.2) and divider
   ========================================================================== */
.petal-band {
  color: var(--gold);
  border-block: 1px solid currentColor;
  padding-block: 3px;
  pointer-events: none;
}
.petal-band > i,
.petal-divider > i {
  display: block;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: var(--petal-tile) 0 0 / 28px 14px repeat-x;
  mask: var(--petal-tile) 0 0 / 28px 14px repeat-x;
}

.petal-divider {
  position: relative;
  width: 160px;
  margin: 24px auto 0;
  color: var(--gold);
  border-block: 1px solid currentColor;
  padding-block: 3px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.petal-divider > i { -webkit-mask-position: 6px 0; mask-position: 6px 0; }
.petal-divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--section-bg);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 16px 28px 16px calc(28px + .22em);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold-light); color: var(--night); }
.btn-gold:hover { background: var(--gold-pale); color: var(--night); }

.btn-ghost { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }
.btn-ghost:hover { color: var(--on-night); border-color: var(--gold-light); }

.btn-placeholder {
  cursor: default;
  background: transparent;
  border: 1px dashed var(--paper-line);
  border-color: #D9C6A3; /* a touch deeper than --paper-line so the dash reads on --paper-deep */
  color: var(--ink-muted);
}
.btn-placeholder:hover { transform: none; }

.btn-maroon { background: var(--maroon); color: var(--paper); }
.btn-maroon:hover { background: var(--maroon-hover); color: var(--paper); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --section-bg: var(--night);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 32px) 0 120px;
  background: radial-gradient(120% 90% at 50% 30%, #4A1422 0%, var(--night) 55%, var(--night-deep) 100%);
  color: var(--on-night);
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 42%;
  width: 70vmin; height: 70vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(217 178 106 / .14), transparent);
  pointer-events: none;
}

.torana {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 96px; /* 24px above the scroll cue */
  width: calc(100% - 24px);
  height: min(86%, 900px);
  transform: translateX(-50%);
  color: var(--gold-light);
  opacity: .4;
  pointer-events: none;
}
.torana-arch { display: block; width: 100%; height: 100%; }
.torana-finial {
  position: absolute;
  left: 50%; top: 0;
  width: 24px; height: 32px;
  transform: translate(-50%, -62%);
  stroke-width: 1;
  overflow: visible;
}
.torana .torana-inner, .torana .torana-finial { display: none; }
@media (min-width: 768px) {
  /* Departure: spec caps the arch at 640px with "meet"; at desktop type sizes the
     names (~800px) and date lockup then cross the posts. The arch stretches
     (non-scaling strokes stay 1px) to genuinely frame the content. */
  .torana { width: min(940px, 88vw); opacity: .55; }
  .torana .torana-inner, .torana .torana-finial { display: block; }
}
@media (max-height: 600px) { .torana { display: none !important; } }

.hero-content { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero-lotus-wrap { will-change: transform; }
.hero-lotus { display: block; width: 56px; height: 34px; color: var(--gold-light); stroke-width: 1.5; overflow: visible; }
@media (min-width: 768px) { .hero-lotus { width: 72px; height: 44px; stroke-width: 1.25; } }

.hero-eyebrow { margin-top: 24px; color: var(--gold-light); max-width: 100%; }

.hero-names {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--fs-names);
  font-weight: 500;
  line-height: .95;
  color: var(--on-night);
  letter-spacing: 0;
}
.hero-names .name { display: block; }
.hero-names .amp {
  display: block;
  font-size: var(--fs-amp);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin: .02em 0 .08em;
}
@media (min-width: 768px) {
  .hero-names { display: block; white-space: nowrap; }
  .hero-names .name, .hero-names .amp { display: inline-block; }
  .hero-names .amp { margin: 0 .25em; vertical-align: -0.08em; }
}

.hero-fullnames {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--on-night-muted);
  display: flex;
  flex-direction: column;
}
@media (min-width: 420px) {
  .hero-fullnames { display: block; }
}
@media (max-width: 419.98px) { .hero-fullnames .fn-dot { display: none; } }

.date-lockup {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dl-side { color: var(--gold-light); }
.dl-date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--on-night);
}
.dl-rule { display: block; width: 24px; height: 1px; background: var(--gold-light); opacity: .7; }
@media (min-width: 768px) {
  .date-lockup { flex-direction: row; gap: 0; }
  .dl-rule { width: 1px; height: 28px; margin: 0 20px; }
  .dl-date { font-size: 36px; }
}
.hero-venue {
  margin-top: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--on-night-muted);
}

/* Countdown */
.countdown { margin-top: 40px; min-height: 1px; }
.countdown-static {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  color: var(--gold-light);
}
.countdown-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--gold-light);
}
.countdown-units { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.countdown-units[hidden], .countdown-message[hidden], .countdown-static[hidden] { display: none; }
.cd-unit { min-width: 68px; display: flex; flex-direction: column; align-items: center; }
.cd-num {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-count);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--on-night);
  height: 1em;
}
.cd-num > span { display: block; }
.cd-num > span.cd-out {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.cd-num > span.cd-in-start { opacity: 0; transform: translateY(6px); }
.cd-num > span.cd-in { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.cd-seconds .cd-num > span.cd-out { transform: none; transition-duration: 150ms; }
.cd-seconds .cd-num > span.cd-in-start { transform: none; }
.cd-seconds .cd-num > span.cd-in { transition-duration: 150ms; }
.cd-label { margin-top: 8px; color: var(--gold-light); padding-left: .22em; }
.cd-sep {
  position: relative;
  width: 6px; height: 6px;
  flex: none;
  margin-top: calc(var(--fs-count) / 2 - 3px);
}
.cd-sep::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-pale);
  transform: rotate(45deg);
  opacity: .85;
}
@media (max-width: 379.98px) {
  .cd-seconds, .cd-sep-seconds { display: none; }
}
@media (min-width: 480px) {
  .countdown-units { gap: 8px; }
  .cd-unit { min-width: 88px; }
}

/* CTAs */
.hero-ctas {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}
.hero-ctas .btn { width: 100%; }
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .hero-ctas .btn { width: auto; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 46px; /* 24px clear of the petal band at the hero's bottom edge */
  width: 1px; height: 48px;
  transform: translateX(-50%);
  background: linear-gradient(var(--gold-light), rgb(217 178 106 / .2));
  opacity: .8;
}
.scroll-cue span {
  position: absolute;
  left: -1.5px; top: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-pale);
  animation: cue 2.4s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}
@media (max-height: 639.98px) { .scroll-cue { display: none; } }

.hero-band { position: absolute; left: 0; right: 0; bottom: 0; opacity: .5; }

/* Landscape phones */
@media (max-height: 500px) {
  .hero { min-height: 0; padding-bottom: 64px; }
  .torana, .scroll-cue { display: none; }
  .hero-lotus { width: 40px; height: 25px; }
}

/* ==========================================================================
   Sections on paper
   ========================================================================== */
.section { padding-block: var(--section-pad); }

.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-header .eyebrow { color: var(--gold-text); padding-left: .22em; }
.section-header h2 {
  margin-top: 12px;
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: var(--maroon);
}

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 5fr 6fr; gap: 64px; }
}
.story-media { display: flex; justify-content: center; }
.arch-photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
  background:
    radial-gradient(60% 40% at 50% 20%, rgb(255 255 255 / .6), transparent),
    var(--paper-deep);
  border: 1px solid var(--paper-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
}
@media (min-width: 480px) and (max-width: 899.98px) { .arch-photo { max-width: 360px; } }
.arch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* --- With a cut-out portrait: a lamplit maroon niche --------------------
   A warm champagne glow sits behind the heads, where a pale backdrop hides
   the rough cut-out edges in the hair and shoulders. It deepens to Kandyan
   maroon at the arch edges, which ties the frame to the hero. A line lotus
   acts as a halo, and the gold inner line sits BEHIND the subject.        */
.arch-photo.has-photo {
  padding: 0;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--paper-line), var(--shadow-card);
  background:
    radial-gradient(60% 44% at 50% 44%, #FBEFD6 0%, #F1D9A8 30%, #D9B26A 52%, rgb(217 178 106 / 0) 78%),
    radial-gradient(120% 90% at 50% 40%, #7A1F2B 0%, var(--night) 70%, var(--night-deep) 100%);
  isolation: isolate;
}
.arch-photo.has-photo::after {            /* inner gold line, behind the couple */
  z-index: 0;
  inset: 12px;
  border-color: rgb(234 211 162 / .75);  /* --gold-pale */
}
.arch-photo__halo {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 6%;
  width: 62%;
  aspect-ratio: 120 / 72;
  transform: translateX(-50%);
  color: #FFF6E3;
  opacity: .6;
  stroke-width: 1.25;
  overflow: visible;
}
.arch-photo.has-photo .arch-photo__img {
  z-index: 1;
  top: auto;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 112%;              /* crops the empty headroom so the couple fill the frame */
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  /* Light lift for the slightly washed-out photo, plus a soft shadow that grounds the cut-out */
  filter: contrast(1.06) saturate(1.1) drop-shadow(0 14px 22px rgb(38 8 15 / .42));
}
.arch-photo.has-photo::before {          /* the niche floor: bodies sink into the frame's base */
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  height: 18%;
  background: linear-gradient(to top, rgb(38 8 15 / .55), rgb(38 8 15 / 0));
  pointer-events: none;
}
@media (forced-colors: active) {
  .arch-photo.has-photo { background: Canvas; box-shadow: none; }
  .arch-photo__halo, .arch-photo.has-photo::before { display: none; }
  .arch-photo.has-photo .arch-photo__img { filter: none; }
}
/* Inner gold line that follows the arch (outline does not reliably follow border-radius). */
.arch-photo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-arch);
  pointer-events: none;
  z-index: 1;
}
.arch-lotus { width: 96px; height: 59px; color: var(--gold); opacity: .7; stroke-width: 1.25; }
.arch-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-muted);
  text-align: center;
}

.story-text { max-width: 60ch; margin-inline: auto; }
@media (min-width: 900px) { .story-text { margin-inline: 0; } }
.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink);
}
.body-muted { margin-top: 20px; color: var(--ink-muted); }

.timeline {
  position: relative;
  margin-top: 36px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--paper-line);
}
.timeline li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  padding-block: 10px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: calc(10px + .85em - 4.5px);
  width: 9px; height: 9px;
  box-sizing: border-box;
  border: 1px solid var(--gold);
  background: var(--paper);
  transform: rotate(45deg) scale(.78);
}
.tl-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}
.tl-meta { font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; color: var(--ink-muted); }
.tl-final .tl-title { color: var(--maroon); }
.tl-final .tl-meta { color: var(--maroon); font-style: normal; font-family: var(--font-text); font-weight: 400; font-size: var(--fs-small); letter-spacing: .02em; }
.tl-final::before { background: var(--maroon) !important; border-color: var(--maroon) !important; }

/* ---------- Details ---------- */
.details { --section-bg: var(--paper-deep); background: var(--paper-deep); }
.details-intro {
  max-width: 34rem;
  margin: -16px auto 48px;
  text-align: center;
  color: var(--ink-muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
  max-width: 880px;
  margin-inline: auto;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  text-align: center;
}
@media (min-width: 480px) { .card { padding: 40px 32px; } }
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: 32px; right: 32px;
  height: 3px;
  background: var(--gold);
}
.corner {
  position: absolute;
  width: 28px; height: 28px;
  color: var(--gold);
  opacity: .7;
  stroke-width: 1;
  pointer-events: none;
}
.corner-tl { inset: 10px auto auto 10px; }
.corner-tr { inset: 10px 10px auto auto; transform: scaleX(-1); }
.corner-bl { inset: auto auto 10px 10px; transform: scaleY(-1); }
.corner-br { inset: auto 10px 10px auto; transform: scale(-1, -1); }

.event-icon { display: block; width: 40px; height: 40px; margin: 8px auto 16px; color: var(--gold); }
.card h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; color: var(--maroon); }
.card-sub { margin-top: 4px; font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--ink-muted); }
.hairline { display: block; width: 48px; height: 1px; margin: 20px auto; background: var(--paper-line); }
.facts { margin: 0; display: grid; gap: 18px; }
.facts dt { color: var(--gold-text); padding-left: .22em; }
.facts dd { margin: 4px 0 0; font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--ink); }
.card-foot { margin-top: 24px; font-size: 14px; font-weight: 400; color: var(--ink-muted); }

/* TBA chip */
.tba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px dashed var(--gold);
  border-radius: 999px;
  background: rgb(184 135 58 / .06);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.tba::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--peacock);
  animation: tba-pulse 2.4s var(--ease-soft) infinite alternate;
}
@keyframes tba-pulse { from { opacity: 1; } to { opacity: .4; } }
@media (max-width: 399.98px) { .tba { white-space: normal; text-align: left; } }

/* ---------- Save the date ---------- */
.save-date {
  --section-bg: var(--night);
  position: relative;
  background: var(--night);
  color: var(--on-night);
  text-align: center;
  padding-block: 72px;
}
@media (min-width: 768px) { .save-date { padding-block: 96px; } }
.std-band { position: absolute; left: 0; right: 0; opacity: .35; }
.std-band-top { top: 0; }
.std-band-bottom { bottom: 0; }
.std-inner { max-width: calc(640px + 2 * var(--gutter)); padding-block: 24px; }
.std-lotus { display: block; width: 120px; height: 74px; margin: 0 auto; color: var(--gold-light); stroke-width: 1.25; }
.std-eyebrow { margin-top: 24px; color: var(--gold-light); padding-left: .22em; }
.std-date {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(var(--fs-names) * .6);
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--on-night);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.std-date .dot { color: var(--gold-light); }
.std-line { margin: 20px auto 0; max-width: 34rem; color: var(--on-night-muted); }
.cal-actions {
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}
@media (min-width: 480px) {
  .cal-actions { flex-direction: row; justify-content: center; max-width: none; }
}
.std-note { margin: 28px auto 0; max-width: 34rem; font-size: 14px; font-weight: 400; color: var(--on-night-muted); }

/* ---------- RSVP ---------- */
.invite-card {
  --section-bg: var(--paper-deep);
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  padding: 32px 24px;
  background: var(--paper-deep);
  border: 1px solid var(--gold);
  outline: 1px solid var(--paper-line);
  outline-offset: -9px;
  border-radius: var(--radius-card);
  text-align: center;
}
@media (min-width: 480px) { .invite-card { padding: 48px 40px; } }
.invite-card .corner { inset: auto; }
.invite-card .corner-tl { top: 14px; left: 14px; }
.invite-card .corner-tr { top: 14px; right: 14px; }
.invite-card .corner-bl { bottom: 14px; left: 14px; }
.invite-card .corner-br { bottom: 14px; right: 14px; }
.bud { display: block; width: 36px; height: 48px; margin: 8px auto 0; color: var(--gold); stroke-width: 1.25; }
.invite-title { margin-top: 16px; font-size: 32px; font-weight: 500; line-height: 1.2; color: var(--maroon); }
.invite-text { margin: 14px auto 0; max-width: 34rem; color: var(--ink-muted); }
.invite-tba { margin-top: 24px; }
.invite-action { margin-top: 24px; }
.rsvp-contact { margin-top: 28px; text-align: center; font-size: 14px; font-weight: 400; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer {
  --section-bg: var(--night-deep);
  position: relative;
  background: var(--night-deep);
  color: var(--on-night);
  text-align: center;
  padding: 64px 0 40px;
}
.footer-band { position: absolute; top: 0; left: 0; right: 0; opacity: .4; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-lotus { width: 48px; height: 30px; margin-top: 16px; color: var(--gold-light); stroke-width: 1.5; }
.footer-names { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1.2; }
.footer-names em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.footer-date { margin-top: 12px; color: var(--gold-light); padding-left: .22em; }
.footer-hashtag { margin-top: 8px; font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--on-night-muted); }
.footer-hashtag[hidden] { display: none; }
.footer-nav { margin-top: 28px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; row-gap: 0; }
.footer-nav a, .back-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--on-night-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-soft);
}
.footer-nav a:hover, .back-top:hover { color: var(--gold-light); text-decoration: underline; }
.footer-small { margin-top: 20px; font-size: 13px; font-weight: 400; color: var(--on-night-muted); opacity: .7; }
.footer-heart { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; margin-left: .15em; color: var(--gold-light); }
@media (forced-colors: active) { .footer-heart { color: CanvasText; } }
.back-top { margin-top: 8px; min-width: 44px; justify-content: center; }

/* Links on paper keep an underline for affordance */
.section a:not(.btn) { text-decoration: underline; }

/* ==========================================================================
   Motion: initial hidden states only under .js
   ========================================================================== */
.js .hero [data-hero] { opacity: 0; }
.js .hero [data-hero="eyebrow"],
.js .hero [data-hero="late"] { transform: translateY(8px); }
.js .hero [data-hero="name1"],
.js .hero [data-hero="name2"] { transform: translateY(12px); letter-spacing: .04em; }
.js .hero [data-hero="amp"] { transform: scale(.92); }
.js .hero [data-hero="count"],
.js .hero [data-hero="ctas"] { opacity: 1; }
.js .hero [data-hero="count"] > *:not(.visually-hidden),
.js .hero [data-hero="count"] .cd-unit,
.js .hero [data-hero="count"] .cd-sep,
.js .hero [data-hero="ctas"] > * { opacity: 0; transform: translateY(8px); }
.js .hero [data-hero="count"] .countdown-units { opacity: 1; transform: none; }

.js .hero .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero .seeds { opacity: 0; }

.hero.is-in [data-hero] {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.hero.is-in [data-hero="name1"],
.hero.is-in [data-hero="name2"] { letter-spacing: 0; }
.hero.is-in [data-hero="eyebrow"] { transition-delay: 500ms; }
.hero.is-in [data-hero="name1"] { transition: opacity 900ms var(--ease-out) 700ms, transform 900ms var(--ease-out) 700ms, letter-spacing 900ms var(--ease-out) 700ms; }
.hero.is-in [data-hero="amp"]   { transition: opacity 900ms var(--ease-out) 850ms, transform 900ms var(--ease-out) 850ms; }
.hero.is-in [data-hero="name2"] { transition: opacity 900ms var(--ease-out) 1000ms, transform 900ms var(--ease-out) 1000ms, letter-spacing 900ms var(--ease-out) 1000ms; }
.hero.is-in [data-hero="late"] { transition-delay: 1300ms; }

.hero.is-in [data-hero="count"] > *:not(.visually-hidden),
.hero.is-in [data-hero="count"] .cd-unit,
.hero.is-in [data-hero="count"] .cd-sep,
.hero.is-in [data-hero="ctas"] > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-base) var(--ease-out) var(--d, 1500ms), transform var(--dur-base) var(--ease-out) var(--d, 1500ms);
}
.hero.is-in .countdown-units > :nth-child(1) { --d: 1500ms; }
.hero.is-in .countdown-units > :nth-child(2) { --d: 1540ms; }
.hero.is-in .countdown-units > :nth-child(3) { --d: 1580ms; }
.hero.is-in .countdown-units > :nth-child(4) { --d: 1620ms; }
.hero.is-in .countdown-units > :nth-child(5) { --d: 1660ms; }
.hero.is-in .countdown-units > :nth-child(6) { --d: 1700ms; }
.hero.is-in .countdown-units > :nth-child(7) { --d: 1740ms; }
.hero.is-in .hero-ctas > :nth-child(1) { --d: 1820ms; }
.hero.is-in .hero-ctas > :nth-child(2) { --d: 1900ms; }

.hero.is-in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-slow) var(--ease-soft); }
.hero.is-in .torana .draw { transition-duration: 1800ms; transition-delay: 0ms; }
.hero.is-in .petal-0 { transition-delay: 150ms; }
.hero.is-in .petal-1 { transition-delay: 270ms; }
.hero.is-in .petal-2 { transition-delay: 390ms; }
.hero.is-in .petal-3 { transition-delay: 510ms; }
.hero.is-in .seeds { opacity: 1; transition: opacity var(--dur-base) var(--ease-out) 1400ms; }
/* Once the entrance has finished, buttons get their normal hover transitions back */
.hero.is-settled .hero-ctas > .btn {
  transition: background-color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}
/* After draw-on, drop the dash pattern so non-scaling strokes render as solid lines everywhere */
.hero.is-drawn .draw { stroke-dasharray: none; }

/* Scroll reveals */
.js [data-reveal]:not([data-reveal="group"]),
.js [data-reveal-stagger] {
  opacity: 0;
  transform: translateY(24px);
}
.js [data-reveal].is-visible:not([data-reveal="group"]),
.js [data-reveal].is-visible [data-reveal-stagger] {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.js .section-header .petal-divider { transform: scaleX(0); }
.js .section-header.is-visible .petal-divider {
  transform: scaleX(1);
  transition: transform 900ms var(--ease-out) 200ms;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-reveal-stagger] { opacity: 1 !important; transform: none !important; }
  .js .section-header .petal-divider { transform: none; }
  .js .hero .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .hero .seeds { opacity: 1; }
  .scroll-cue span { animation: none; top: 22px; opacity: 1; }
  .tba::before { animation: none; }
  /* Allow short opacity crossfades (<=150ms) in the hero and countdown */
  .hero.is-in [data-hero],
  .hero.is-in .countdown > *,
  .hero.is-in .cd-unit,
  .hero.is-in .cd-sep,
  .hero.is-in .hero-ctas > *,
  .cd-num > span { transition-property: opacity !important; transition-duration: 150ms !important; transition-delay: 0ms !important; transform: none !important; }
  .hero.is-in .name { letter-spacing: 0 !important; }
}

/* ==========================================================================
   Forced colors
   ========================================================================== */
@media (forced-colors: active) {
  svg { stroke: CanvasText; color: CanvasText; }
  .petal-band, .petal-divider { forced-color-adjust: none; color: CanvasText; }
  .petal-band > i, .petal-divider > i { background-color: CanvasText; }
  .petal-divider::after { background: Canvas; border-color: CanvasText; forced-color-adjust: none; }
  .tba { border: 1px solid CanvasText; }
  .tba::before { forced-color-adjust: none; background: CanvasText; }
  .btn { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  .hero, .hero::after, .arch-photo, .scroll-cue { background: Canvas; }
  .torana { opacity: 1; }
  .site-header.is-solid { background: Canvas; }
  .cd-sep::before { forced-color-adjust: none; background: CanvasText; }
  .card::before, .dl-rule, .hairline, .timeline::before { forced-color-adjust: none; background: CanvasText; }
}

/* ==========================================================================
   Invitation cover ("Tap to open"). Only shown when JS runs (.js).
   Two maroon doors slide apart to reveal the site; the tap starts the music.
   ========================================================================== */
.invite-cover { display: none; }
.js .invite-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
  overflow: hidden;
  cursor: pointer;
  color: var(--on-night);
  text-align: center;
}
html.cover-open, html.cover-open body { overflow: hidden; }

/* --- Lamplight behind the doors: spills through the gap as they part --- */
.cover-light {
  position: absolute;
  inset: -10% 0;
  background:
    radial-gradient(18% 60% at 50% 50%, rgb(255 246 222 / .95), rgb(255 246 222 / 0) 70%),
    radial-gradient(45% 75% at 50% 50%, rgb(234 211 162 / .75), rgb(217 178 106 / .25) 50%, rgb(217 178 106 / 0) 75%);
  opacity: 0;
  transform: scaleX(.1);
  pointer-events: none;
}

/* --- The two doors: carved maroon panels with gold inlay --------------- */
.cover-door {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at var(--glow-x) 45%, rgb(217 178 106 / .16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  transition: transform 1.15s cubic-bezier(.7, 0, .25, 1) .2s, box-shadow .3s ease .2s;
  will-change: transform;
}
.cover-door--left  { left: 0;  --glow-x: 100%; }
.cover-door--right { right: 0; --glow-x: 0%; }
/* Kandyan petal band along the top and bottom edge of each door */
.cover-door::before, .cover-door::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: var(--gold);
  opacity: .55;
  -webkit-mask: var(--petal-tile) repeat-x center / 28px 14px;
  mask: var(--petal-tile) repeat-x center / 28px 14px;
}
.cover-door::before { top: 14px; }
.cover-door::after  { bottom: 14px; }
/* Inset double-line panel, like an inlaid door. Only where there is room for it. */
.door-panel, .door-lotus { display: none; }
@media (min-width: 760px) and (min-height: 560px) {
  .door-panel {
    display: block;
    position: absolute;
    inset: 52px 28px;
    border: 1px solid rgb(217 178 106 / .38);
    border-radius: 3px;
  }
  .cover-door--left  .door-panel { left: 40px; }
  .cover-door--right .door-panel { right: 40px; }
  .door-panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgb(217 178 106 / .16);
    border-radius: 2px;
  }
  /* Gold studs on the panel corners */
  .door-panel::after {
    content: "";
    position: absolute;
    inset: -4px;
    --d: radial-gradient(circle, var(--gold-light) 0 2.5px, transparent 3px);
    background:
      var(--d) left top / 8px 8px no-repeat,
      var(--d) right top / 8px 8px no-repeat,
      var(--d) left bottom / 8px 8px no-repeat,
      var(--d) right bottom / 8px 8px no-repeat;
    opacity: .75;
  }
}
/* A large line lotus fills the open field on each door (wide screens only) */
@media (min-width: 1100px) and (min-height: 600px) {
  .door-lotus {
    display: block;
    position: absolute;
    top: 50%;
    width: clamp(160px, 14vw, 240px);
    aspect-ratio: 120 / 72;
    color: var(--gold-light);
    opacity: .22;
    stroke-width: 1;
    /* Centred in the strip of door the card does not cover */
    left: calc((100% - 260px) / 2);
    transform: translate(-50%, -50%);
  }
  .cover-door--right .door-lotus { left: auto; right: calc((100% - 260px) / 2); transform: translate(50%, -50%); }
}

/* --- The card: a lamplit arched invitation lying across the doors ------ */
.cover-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 100%;
  padding: clamp(36px, 7vh, 64px) clamp(20px, 5vw, 44px) clamp(20px, 4vh, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cover-in 1.2s var(--ease-out) both;
}
.cover-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(217 178 106 / .6);
  border-radius: 999px 999px 6px 6px;
  background:
    radial-gradient(70% 45% at 50% 40%, rgb(217 178 106 / .14), transparent 70%),
    linear-gradient(180deg, #4A1422 0%, var(--night) 55%, #2E0B14 100%);
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / .7), 0 0 0 6px rgb(38 8 15 / .55), 0 0 0 7px rgb(217 178 106 / .22);
  pointer-events: none;
}
.cover-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(217 178 106 / .25);
  border-radius: 999px 999px 4px 4px;
}
/* Everything in the card sits above the frame */
.cover-card > :not(.cover-frame) { position: relative; }
.cover-lotus { width: 64px; height: 40px; color: var(--gold-light); margin-top: clamp(28px, 8vh, 64px); }
.cover-eyebrow {
  margin-top: 18px;
  font: 500 var(--fs-eyebrow)/1.6 var(--font-text);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  max-width: 26ch;
  text-wrap: balance;
}
.cover-names {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  line-height: 1.05;
  color: var(--on-night);
  white-space: nowrap;
}
.cover-amp { font-style: italic; font-weight: 400; color: var(--gold-light); margin: 0 .12em; }
/* Narrow cards: Harsha / & / Sohani, as in the hero */
@media (max-width: 519.98px) {
  .cover-names { line-height: .98; }
  .cover-name, .cover-amp { display: block; }
  .cover-amp { font-size: .7em; margin: .04em 0 .02em; }
}
.cover-date {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--on-night-muted);
}

/* --- Gold wax seal: one button, drawn as two halves that break apart --- */
.cover-seal {
  position: relative;
  isolation: isolate;
  margin-top: clamp(28px, 5vh, 40px);
  width: 104px; height: 104px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--night);
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / .45));
  -webkit-tap-highlight-color: transparent;
}
.seal-half {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* Slightly irregular outline, like pressed wax */
  border-radius: 50% 48% 52% 49% / 49% 52% 48% 51%;
  background:
    radial-gradient(circle at 35% 30%, #F6E7C2 0%, var(--gold-light) 36%, var(--gold) 76%, #8F6528 100%);
  box-shadow: inset 0 -3px 8px rgb(90 55 15 / .4), inset 0 2px 4px rgb(255 245 220 / .65), 0 0 0 1px rgb(143 101 40 / .5);
  transition: transform 1.15s cubic-bezier(.7, 0, .25, 1) .2s, opacity .4s ease .9s;
}
.seal-half--r { visibility: hidden; }
.cover-seal-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgb(58 15 26 / .32);
  box-shadow: inset 0 0 0 4px rgb(255 240 210 / .18), inset 0 0 0 5px rgb(58 15 26 / .22);
}
.cover-seal-mono {
  position: relative;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgb(255 240 210 / .45);
}
.cover-seal-mono span { font-style: italic; font-size: .8em; margin: 0 1px; }
/* One gentle, slow lamp-glow behind the seal (replaces the ripple + breathe) */
.cover-seal::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(234 211 162 / .4), rgb(217 178 106 / .12) 60%, transparent);
  animation: seal-glow 3.6s ease-in-out infinite;
  pointer-events: none;
}
.cover-seal:hover .seal-half { transform: scale(1.03); transition-duration: .3s; transition-delay: 0s; }
.cover-seal:focus-visible { outline: none; }
.cover-seal:focus-visible .seal-half--l { box-shadow: inset 0 -3px 8px rgb(90 55 15 / .4), var(--focus-ring-dark); }

.cover-hint {
  margin-top: 22px;
  font: 500 var(--fs-eyebrow)/1.4 var(--font-text);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--on-night);
}
.cover-sound-note {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--on-night-muted);
}
.cover-sound-note svg { width: 14px; height: 14px; color: var(--gold-light); }
.cover-quiet {
  margin-top: 14px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  font: 400 13px/1.2 var(--font-text);
  color: var(--on-night-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(216 198 188 / .4);
}
.cover-quiet[hidden] { display: none; }
.cover-quiet:hover { color: var(--on-night); }
.cover-quiet:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); border-radius: 4px; }

/* --- Opening sequence (about 1.4s) -------------------------------------
   0ms     seal presses in; card text and frame fade out
   200ms   seal breaks along a jagged line; each half rides away on its door
   150ms+  lamplight swells in the widening gap, then fades to the site   */
.invite-cover.is-opening { pointer-events: none; }
.invite-cover.is-opening .cover-card > :not(.cover-seal) { animation: cover-out .4s var(--ease-soft) both; }
.invite-cover.is-opening .cover-seal { animation: seal-press .2s ease-out both; }
.invite-cover.is-opening .cover-seal::after { animation: none; opacity: 0; }
.invite-cover.is-opening .seal-half--r { visibility: visible; }
.invite-cover.is-opening .seal-half--l {
  clip-path: polygon(0 0, 53% 0, 47% 18%, 55% 36%, 46% 55%, 54% 74%, 48% 100%, 0 100%);
  transform: translateX(-51vw) rotate(-16deg);
  opacity: 0;
}
.invite-cover.is-opening .seal-half--r {
  clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 54% 74%, 46% 55%, 55% 36%, 47% 18%);
  transform: translateX(51vw) rotate(16deg);
  opacity: 0;
}
.invite-cover.is-opening .cover-light { animation: light-spill 1.25s cubic-bezier(.4, 0, .2, 1) .15s both; }
.invite-cover.is-opening .cover-door--left  { transform: translateX(-101%); box-shadow: inset -2px 0 0 rgb(234 211 162 / .9), inset -26px 0 30px -18px rgb(255 230 180 / .45); }
.invite-cover.is-opening .cover-door--right { transform: translateX(101%);  box-shadow: inset 2px 0 0 rgb(234 211 162 / .9), inset 26px 0 30px -18px rgb(255 230 180 / .45); }

@keyframes cover-out { to { opacity: 0; transform: scale(.98); } }
@keyframes cover-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cover-fade { to { opacity: 0; } }
@keyframes seal-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes seal-press { 0% { transform: scale(1); } 60% { transform: scale(.92); } 100% { transform: scale(.95); } }
@keyframes light-spill {
  0%   { opacity: 0; transform: scaleX(.08); }
  30%  { opacity: 1; transform: scaleX(.45); }
  65%  { opacity: .85; transform: scaleX(1.1); }
  100% { opacity: 0; transform: scaleX(1.8); }
}

/* --- Short screens (small laptops, landscape phones) ------------------- */
@media (max-height: 640px) {
  .cover-lotus { display: none; }
  .cover-card { padding-top: 32px; }
  .cover-frame { border-radius: 24px; }
  .cover-frame::after { border-radius: 18px; }
  .cover-seal { width: 84px; height: 84px; margin-top: 22px; }
  .cover-seal-mono { font-size: 28px; }
  .cover-hint { margin-top: 16px; }
}
/* Landscape phones: two columns so everything fits without scrolling */
@media (max-height: 480px) and (min-width: 560px) {
  .js .invite-cover { padding-block: 12px; }
  .cover-card {
    width: min(720px, 100%);
    padding: 20px 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "eyebrow seal" "names seal" "date hint" "date note" "date quiet";
    column-gap: 36px;
    align-items: center;
    justify-items: center;
  }
  .cover-frame { border-radius: 18px; }
  .cover-frame::after { border-radius: 12px; }
  .cover-eyebrow { grid-area: eyebrow; margin-top: 0; max-width: none; }
  .cover-names { grid-area: names; font-size: clamp(2.25rem, 1rem + 4vw, 3rem); margin-top: 6px; }
  .cover-date { grid-area: date; align-self: start; margin-top: 8px; }
  .cover-seal { grid-area: seal; align-self: end; width: 76px; height: 76px; margin-top: 0; }
  .cover-seal-mono { font-size: 26px; }
  .cover-hint { grid-area: hint; margin-top: 10px; }
  .cover-sound-note { grid-area: note; margin-top: 4px; }
  .cover-quiet { grid-area: quiet; margin-top: 0; }
}
/* Very short portrait screens */
@media (max-height: 560px) and (max-width: 559.98px) {
  .cover-eyebrow { margin-top: 0; }
  .cover-names { font-size: 2.4rem; margin-top: 8px; }
  .cover-seal { width: 72px; height: 72px; margin-top: 16px; }
  .cover-seal-mono { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-card, .cover-seal::after { animation: none; }
  .cover-door { transition: opacity .35s linear; }
  .seal-half { transition: opacity .3s linear; }
  .invite-cover.is-opening .cover-seal { animation: none; }
  .invite-cover.is-opening .cover-card > :not(.cover-seal) { animation: cover-fade .3s linear both; }
  .invite-cover.is-opening .seal-half--l,
  .invite-cover.is-opening .seal-half--r { transform: none; clip-path: none; opacity: 0; }
  .invite-cover.is-opening .seal-half--r { visibility: hidden; }
  .invite-cover.is-opening .cover-light { animation: none; }
  .invite-cover.is-opening .cover-door--left,
  .invite-cover.is-opening .cover-door--right { transform: none; opacity: 0; box-shadow: none; }
}
@media (forced-colors: active) {
  .cover-door, .cover-frame { background: Canvas; }
  .cover-frame { border-color: CanvasText; box-shadow: none; }
  .cover-light, .door-lotus, .door-panel, .cover-seal::after { display: none; }
  .cover-seal { filter: none; }
  .seal-half { forced-color-adjust: none; background: ButtonFace; color: ButtonText; border: 2px solid ButtonText; box-shadow: none; }
}

/* ==========================================================================
   Music toggle (floating, bottom-right), shown after the cover opens.
   ========================================================================== */
.music-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  min-width: 48px;
  padding: 0 14px;
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  background: rgb(58 15 26 / .92);
  color: var(--gold-light);
  font: 500 var(--fs-eyebrow)/1 var(--font-text);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px -8px rgb(38 8 15 / .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.music-toggle[hidden] { display: none; }
.music-toggle:hover { background: var(--night-deep); color: var(--on-night); }
.music-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); }
.music-icon { width: 20px; height: 20px; flex: none; }
.music-bars { display: none; align-items: flex-end; gap: 3px; height: 16px; width: 20px; justify-content: center; }
.music-bars i { display: block; width: 3px; height: 40%; background: currentColor; border-radius: 1px; animation: music-bar 1.2s var(--ease-soft) infinite alternate; }
.music-bars i:nth-child(2) { animation-delay: -.4s; }
.music-bars i:nth-child(3) { animation-delay: -.8s; }
.music-toggle.is-playing .music-icon { display: none; }
.music-toggle.is-playing .music-bars { display: inline-flex; }
@keyframes music-bar { from { height: 25%; } to { height: 100%; } }
@media (max-width: 599.98px) {
  .music-toggle { padding: 0; width: 48px; justify-content: center; }
  .music-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-bars i { animation: none; height: 70%; }
  .music-bars i:nth-child(2) { height: 100%; }
}
@media (forced-colors: active) {
  .music-toggle { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .music-bars i { forced-color-adjust: none; background: ButtonText; }
}
@media print { .music-toggle, .invite-cover { display: none !important; } }
