/* ⚠️ SELF-HOSTED FONTS. The Google Fonts <link> came out of index.html on
   11 September 2026 — an invitation is opened by a guest who never agreed to
   anything, and that stylesheet made their browser announce itself to a third
   party before the first paint. 205 KB of woff2 we serve ourselves instead.
   ⚠️ Every family named anywhere below must have a rule here. A family with
   no @font-face falls back to a system serif silently: the page looks
   slightly wrong rather than broken, which is how it survives review.
   ⚠️ Noto Serif Telugu is the FIRST Indic face in the range. It exists
   because this is the South Indian template and its blessings are Telugu;
   everything else in the sheet is Latin. A Devanagari or Tamil blessing has
   no glyphs here and still falls through to the system serif, exactly as
   before — see the note on .invocation. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Marcellus SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/marcellus-sc-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cardo-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Cardo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/cardo-latin-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Noto Serif Telugu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/tel-400.woff2) format("woff2");
}
@font-face {
  font-family: "Noto Serif Telugu";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/tel-600.woff2) format("woff2");
}
@font-face {
  font-family: "Tangerine";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/tangerine-latin-700-normal.woff2) format("woff2");
}

/* ═══════════════════════════════════════════════════════════
   Vaikuntha Mahal · vowstory Utsav
   Mobile first. Light template.
   Signature: the kolam thread, drawn as you scroll.
   ⚠️ REPAINTED on 11 September 2026: green-teal and brass became
   blue-teal and gold. Every :root token below moved, and 35
   hardcoded copies of the old values were translated with them.
   Both hero artworks were re-exported in the same drop and now
   carry a veil each; they used to be cream inside (luminance
   240.6, std 1.0) and the copy sat in the arch with no veil.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ⚠️ The whole palette moved on 11 September 2026. The old green-teal and
     brass values are listed here so a stale literal can still be recognised
     for what it is:
       --paper #fcf3e2  --paper-2 #f6ead2  --teal #0f5b54  --teal-d #0a423d
       --gold #b8862a  --gold-lt #dbb86a  --gold-pale #f0dca6
       --lotus #d56686  --ink #3b2a1c  --ink-2 #6e5843  --ink-3 #9a8a72
     ⚠️ --teal and --teal-d both got DARKER, which is why the dark bands
     needed no correction: everything pale sitting on them gained contrast. */
  --paper: #f5efdf; /* the artwork's own cream, so hero and page meet */
  --paper-2: #eadfc6;
  --teal: #254a61;
  --teal-d: #193646;
  --blue: #319ce2;
  --gold: #c69940;
  --gold-lt: #dbb86a;
  --gold-pale: #eedca8;
  --lotus: #d56686;
  --green: #374115;
  --ink: #26414e;
  /* ⚠️ #536561, not the #586a66 the redesign shipped. The same shape as
     Raj Mahal: --paper-2 went from 0.83 to 0.74 relative luminance while the
     ink scale stayed put, taking secondary text on that wash from 5.62:1 to
     4.32:1, under the 4.5:1 small text needs. Moved down inside the same hue
     until it clears 4.5 on the darker wash.
     ⚠️ --ink-3 below is NOT corrected — it never passed on any wash, so
     moving it would be a palette decision rather than a merge correction. */
  --ink-2: #536561;
  --ink-3: #8c978f;
  --line: rgba(198, 153, 64, 0.32);

  --col: 480px;
  --pad: 24px;
  --gap: 78px;
  --es: cubic-bezier(0.22, 0.61, 0.36, 1);
  --eo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--teal-d);
  color: var(--ink);
  font-family: "Cardo", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
sup {
  font-size: 0.56em;
  vertical-align: 0.5em;
}
body:not(.open) {
  overflow: hidden;
  height: 100%;
}
button {
  font: inherit;
  color: inherit;
}

#page {
  position: relative;
  z-index: 2;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 1s var(--es);
}
body.open #page {
  opacity: 1;
}

@media (min-width: 600px) {
  :root {
    --col: 640px;
    --pad: 42px;
    --gap: 96px;
  }
  body {
    font-size: 18px;
  }
}
@media (min-width: 960px) {
  :root {
    --col: 840px;
    --pad: 64px;
    --gap: 116px;
  }
  body {
    font-size: 19px;
  }
}
@media (min-width: 1400px) {
  :root {
    --col: 920px;
  }
}

/* ═══ COVER ═══ */
#cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--teal-d);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.7s ease,
    transform 1.1s var(--eo);
}
.cv-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50.5%;
  overflow: hidden;
  transition: transform 1.25s var(--eo);
  will-change: transform;
}
.cv-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100vw;
  background:
    radial-gradient(
      ellipse 62% 44% at 50% 44%,
      rgba(28, 132, 120, 0.5) 0%,
      rgba(25, 54, 70, 0) 70%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(238, 220, 168, 0.05) 0 1px,
      rgba(238, 220, 168, 0) 1px 14px
    ),
    radial-gradient(ellipse 112% 78% at 50% 50%, #12665e 0%, #082f2b 78%);
}
.cv-l {
  left: 0;
}
.cv-r {
  right: 0;
}
.cv-l::before {
  left: 0;
}
.cv-r::before {
  right: 0;
}
.cv-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-pale) 22%,
    var(--gold-pale) 78%,
    transparent
  );
  opacity: 0.7;
}
.cv-l .cv-edge {
  right: 0;
}
.cv-r .cv-edge {
  left: 0;
}

.cv-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.cv-dust i {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-pale);
  filter: blur(0.4px);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-92vh) scale(1.15);
    opacity: 0;
  }
}

.cv-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.55s ease,
    transform 1s var(--eo);
}

/* the kolam, drawn stroke by stroke */
.cv-kolam {
  width: min(300px, 74%);
  height: auto;
}
.cv-kolam * {
  fill: none;
  stroke: var(--gold-lt);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.k-spin {
  transform-origin: 150px 150px;
  animation: kSpin 78s linear infinite;
}
@keyframes kSpin {
  to {
    transform: rotate(360deg);
  }
}
.k-draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: kDraw 2.1s var(--eo) forwards;
}
.k-d2 {
  animation-delay: 0.35s;
  opacity: 0.6;
}
.k-d3 {
  animation-delay: 0.7s;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
.k-d4 {
  animation-delay: 1.05s;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  opacity: 0.62;
}
@keyframes kDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.k-petals path {
  stroke: var(--gold-pale);
}

.cv-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  animation: fadeUp 0.9s var(--eo) 1.6s forwards;
}
.cv-corner::before,
.cv-corner::after {
  content: "";
  position: absolute;
  background: var(--gold-lt);
}
.cv-corner::before {
  width: 100%;
  height: 1px;
}
.cv-corner::after {
  width: 1px;
  height: 100%;
}
.c-tl {
  top: 9%;
  left: 11%;
}
.c-tl::before {
  top: 0;
  left: 0;
}
.c-tl::after {
  top: 0;
  left: 0;
}
.c-tr {
  top: 9%;
  right: 11%;
}
.c-tr::before {
  top: 0;
  right: 0;
}
.c-tr::after {
  top: 0;
  right: 0;
}
.c-bl {
  bottom: 9%;
  left: 11%;
}
.c-bl::before {
  bottom: 0;
  left: 0;
}
.c-bl::after {
  bottom: 0;
  left: 0;
}
.c-br {
  bottom: 9%;
  right: 11%;
}
.c-br::before {
  bottom: 0;
  right: 0;
}
.c-br::after {
  bottom: 0;
  right: 0;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cv-tap {
  position: absolute;
  bottom: min(13vh, 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: tapIn 1.1s var(--eo) 2.1s forwards;
}
@keyframes tapIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cv-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(238, 220, 168, 0.55);
  position: relative;
  animation: breathe 3s ease-in-out infinite;
}
.cv-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(219, 184, 106, 0.5);
  animation: halo 3s ease-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}
@keyframes halo {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  70%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
/* The colour is set by the gold-leaf shine at the foot of this sheet, which
   needs it transparent — declaring it here as well would only be overridden.
   See .cv-word there. */
.cv-word {
  font-family: "Marcellus SC", serif;
  font-size: 12px;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  text-indent: 0.48em;
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  max-width: var(--col);
  margin: 0 auto;
}
#flash.run {
  opacity: 1;
}
#flash .ray {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%) scaleY(0);
  background: linear-gradient(180deg, transparent, var(--gold-pale), transparent);
  box-shadow: 0 0 30px 7px rgba(238, 220, 168, 0.5);
}
#flash.run .ray {
  animation: rayUp 0.6s var(--eo) forwards;
}
@keyframes rayUp {
  0% {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scaleY(1);
    opacity: 0;
  }
}
#flash .bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180vmax;
  height: 180vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(
    circle,
    rgba(238, 220, 168, 0.3) 0%,
    rgba(198, 153, 64, 0.12) 32%,
    rgba(25, 54, 70, 0) 62%
  );
}
#flash.run .bloom {
  animation: bloom 1.4s var(--eo) forwards;
}
@keyframes bloom {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

body.opening #cover {
  transform: scale(1.06);
  opacity: 0;
}
body.opening .cv-l {
  transform: translateX(-102%) rotate(-1.4deg);
}
body.opening .cv-r {
  transform: translateX(102%) rotate(1.4deg);
}
body.opening .cv-stage {
  opacity: 0;
  transform: translateY(-22px) scale(0.94);
}
body.opened #cover {
  display: none;
}

/* ═══ ambient ═══ */
.amb {
  position: fixed;
  inset: 0;
  /* Above #page (2) and the margin borders (1) since the redesign, so the
     drifting motes cross the printed borders rather than vanishing behind. */
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.open .amb {
  opacity: 1;
}
.amb i {
  position: absolute;
  display: block;
  will-change: transform;
}
.amb .mote {
  border-radius: 50%;
  background: radial-gradient(circle, #fff6dc 0%, #dbb86a 42%, rgba(198, 153, 64, 0) 72%);
  animation: rise2 linear infinite;
}
@keyframes rise2 {
  0% {
    transform: translate3d(0, 12vh, 0) scale(0.6);
    opacity: 0;
  }
  14% {
    opacity: var(--o);
  }
  86% {
    opacity: calc(var(--o) * 0.55);
  }
  100% {
    transform: translate3d(var(--dx), -108vh, 0) scale(1.1);
    opacity: 0;
  }
}
.amb .petal {
  border-radius: 62% 38% 60% 40%/50% 58% 42% 50%;
  background: linear-gradient(140deg, #f0c4d2, #d56686);
  animation: fall linear infinite;
}
@keyframes fall {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: var(--o);
  }
  88% {
    opacity: calc(var(--o) * 0.5);
  }
  100% {
    transform: translate3d(var(--dx), 112vh, 0) rotate(var(--rot));
    opacity: 0;
  }
}

/* ═══ music ═══ */
.music {
  position: fixed;
  top: 18px;
  z-index: 90;
  right: max(16px, calc(50vw - var(--col) / 2 + 16px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(25, 54, 70, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--gold-pale);
  transition: transform 0.3s var(--es);
}
body.open .music {
  display: flex;
  animation: fadein 1s 0.9s backwards;
}
.music:hover {
  transform: scale(1.08);
}
.music svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  position: relative;
  z-index: 2;
}
.music .ic-off {
  display: none;
}
.music[aria-pressed="false"] .ic-on {
  display: none;
}
.music[aria-pressed="false"] .ic-off {
  display: block;
}
.mu-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold-lt);
  opacity: 0;
}
.music[aria-pressed="true"] .mu-ring {
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ═══ HERO — page one ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.hero-art {
  position: absolute;
  inset: -14% 0 -14%;
  background: url(assets/hero.webp) center 46% / cover no-repeat;
  will-change: transform;
  animation: kb 18s var(--eo) forwards;
}
/* the slow zoom moves background-size so the parallax can own transform */
@keyframes kb {
  from {
    background-size: 116% auto;
  }
  to {
    background-size: 104% auto;
  }
}
/* no veil: the interior measures 240.6 with std 1.0 — a wash would only
   muddy the artwork. The copy is held inside the arch instead. */
.hero-in {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 30px 16vh;
}
.hero-in > * {
  max-width: min(70%, 32rem);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 600px) {
  .hero-in {
    padding: 13vh 56px 15vh;
  }
  .hero-in > * {
    max-width: min(58%, 32rem);
  }
}

/* ⚠️ Half again as large since the 11 Sep 2026 redesign (was
   clamp(76px, 19vw, 112px)). The Venkateshwara painting was re-exported with
   more detail and read as a smudge at the old size. */
.deity {
  width: clamp(104px, 26vw, 150px);
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 20px rgba(38, 65, 78, 0.26));
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 6px 18px rgba(38, 65, 78, 0.22));
  }
  50% {
    filter: drop-shadow(0 8px 30px rgba(198, 153, 64, 0.42));
  }
}
/* ⚠️ Noto Serif Telugu FIRST. This is the South Indian template and its
   blessing is Telugu; the face carries no Latin and no Devanagari, so a
   couple whose blessing is in another script falls straight through to Cardo
   and then to the system serif — which is what happened for every script
   before this face existed. Nothing regresses; Telugu stops being the one
   that renders in a system fallback. */
.invocation {
  margin: 0 0 16px;
  font-family: "Noto Serif Telugu", "Cardo", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.09em;
  color: var(--gold);
}
.eyebrow {
  margin: 0 0 12px;
  font-family: "Marcellus SC", serif;
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-lt {
  color: var(--gold-pale);
  opacity: 0.92;
}
.hero-names {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(36px, 9.6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: var(--teal);
}
.hero-names .ln {
  display: block;
}
.hero-names .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: chIn 0.9s var(--eo) forwards;
}
@keyframes chIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-names em {
  display: block;
  font-family: "Tangerine", cursive;
  font-style: normal;
  font-weight: 700;
  font-size: 0.82em;
  color: var(--gold);
  margin: -2px 0 -6px;
  line-height: 1.1;
  opacity: 0;
  animation: chIn 1s var(--eo) 1.1s forwards;
}
.hair {
  display: block;
  width: min(200px, 54%);
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-date {
  margin: 0 0 10px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(12px, 3vw, 15px);
  letter-spacing: 0.2em;
  color: var(--ink);
  text-transform: uppercase;
}
.hero-venue {
  margin: 0;
  font-size: clamp(15px, 3.2vw, 17px);
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.55;
}
.hero-venue span {
  font-style: normal;
  font-size: 0.84em;
  letter-spacing: 0.07em;
  color: var(--ink-3);
}

/* the deepams hang from the very top edge; the crops carry their own chain */
.hang {
  position: absolute;
  top: 0;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite;
  opacity: 0;
}
body.open .hang {
  animation:
    hangIn 1.1s var(--eo) forwards,
    sway 7s ease-in-out 1.1s infinite;
}
body.open .hang-b {
  animation:
    hangIn 1.1s var(--eo) 0.18s forwards,
    sway 8.6s ease-in-out 1.28s infinite;
}
@keyframes hangIn {
  from {
    opacity: 0;
    transform: translateY(-56px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(2.2deg);
  }
}
.hang img {
  width: 100%;
}
.hang-a {
  left: 5%;
  width: clamp(30px, 8vw, 52px);
}
.hang-b {
  right: 6%;
  width: clamp(26px, 7vw, 46px);
}
@media (min-width: 960px) {
  .hang-a {
    left: 12%;
  }
  .hang-b {
    right: 13%;
  }
}

.cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.cue span:first-child {
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}
.cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: top;
  }
  56% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
.cue.gone {
  opacity: 0;
  transform: translateY(14px);
}

/* ═══ sections ═══ */
.sec {
  position: relative;
  padding: var(--gap) var(--pad);
  overflow: hidden;
  text-align: center;
  background: var(--paper);
}
.sec-teal {
  background: var(--teal);
  color: var(--paper);
}
.sec-teal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 50% at 50% 28%,
    rgba(238, 220, 168, 0.1),
    transparent 70%
  );
}
.inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}
.h2 {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(28px, 6.4vw, 42px);
  line-height: 1.22;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.h2-lt {
  color: var(--gold-pale);
}
.prose {
  margin: 0 auto 16px;
  max-width: 36ch;
  color: var(--ink-2);
}
.sec-teal .prose,
.rv-lead {
  color: #e9dcc4;
}
.tag {
  margin: 26px 0 0;
  font-family: "Marcellus SC", serif;
  font-size: clamp(12px, 2.4vw, 14px);
  letter-spacing: 0.24em;
  color: var(--gold);
}
.sec-teal .tag {
  color: var(--gold-pale);
}
.tag-sm {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  margin-top: 14px;
}
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.988);
  filter: blur(5px);
  transition:
    opacity 1.05s var(--eo),
    transform 1.05s var(--eo),
    filter 1.05s var(--eo);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
/* A gentle stagger, so a section's lines arrive in reading order rather than
   all at once. Delays only — nothing here changes what is finally shown. */
.sec .reveal:nth-child(2).in {
  transition-delay: 0.05s;
}
.sec .reveal:nth-child(3).in {
  transition-delay: 0.11s;
}
.sec .reveal:nth-child(4).in {
  transition-delay: 0.17s;
}

.deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
/* sized so its rendered height always stays inside the section padding */
.deco-leaf {
  width: clamp(40px, 10vw, 72px);
  right: 12px;
  top: 0;
  opacity: 0.5;
}

/* ═══ FAMILIES — page two, on Hero_2 ═══
   ⚠️ This was THREE STACKED SLICES until 11 September 2026 — a gopuram crown
   (fam-top.jpg), a 24px strip of the artwork's flat interior tiled down the
   middle (fam-mid.png, row spread 1.75 so the repeat was invisible) and a
   base (fam-bot.jpg) — because the painting's flat area was too small to hold
   the copy at any single crop. The re-exported artwork removed that
   constraint: it is one full-bleed background again, and the section is sized
   by its own content.
   ⚠️ The veil is what makes the copy legible, and it is NOT the one the
   redesign shipped. That one peaked at 0.84 and fell to 0.18 by 78%, which
   left the outer family column short of the 4.5:1 small text needs. Peak
   opacity and extent were both raised by measurement; it still reaches zero
   at the edge so the painted border reads. */
.sec-fam {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: url(assets/hero2.webp) center / cover no-repeat;
  padding: clamp(74px, 17vw, 140px) var(--pad);
}
.fam-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 104% 94% at 50% 50%,
    rgba(245, 239, 223, 0.94) 0%,
    rgba(245, 239, 223, 0.89) 44%,
    rgba(245, 239, 223, 0.68) 72%,
    rgba(245, 239, 223, 0.2) 88%,
    rgba(245, 239, 223, 0) 100%
  );
}
.fam-in {
  position: relative;
  z-index: 1;
  max-width: min(90%, 30rem);
  margin: 0 auto;
  text-align: center;
}

/* Larger with the redesign (was min(118px, 30%)) — the monogram is the
   section's anchor now that there is no painted crown above it. */
.seal {
  width: min(150px, 40%);
  margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 0 6px var(--paper),
    0 0 0 7px rgba(198, 153, 64, 0.24);
}
.weds {
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(19px, 4.4vw, 25px);
  line-height: 1.3;
  color: var(--teal);
}
.weds em {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-style: normal;
  font-size: 1.6em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.weds em::before,
.weds em::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--line);
}
.side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.side-name {
  margin: 0 0 8px;
  line-height: 1.2;
  font-weight: 400;
}
.side-role {
  margin: 0 0 6px;
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.side-parents {
  margin: 0;
  font-family: "Cardo", serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 26ch;
}

/* ═══ countdown ═══ */
.sec-count {
  padding-top: 0;
}
.chand {
  display: block;
  width: clamp(76px, 19vw, 120px);
  margin: 0 auto calc(var(--gap) * 0.4);
  animation: sway 9s ease-in-out infinite;
  transform-origin: 50% 0;
}
.clock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 400px;
  margin: 26px auto 0;
}
.unit {
  padding: 20px 4px 15px;
  background: rgba(245, 239, 223, 0.07);
  border: 1px solid var(--line);
}
.unit b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(26px, 7vw, 38px);
  color: var(--gold-pale);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.unit i {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: "Marcellus SC", serif;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 220, 168, 0.62);
}

/* ═══ EVENTS — the kolam thread ═══ */
.sec-events {
  padding-bottom: calc(var(--gap) + 10px);
}
.rail {
  position: relative;
  margin-top: 34px;
}
.thread {
  position: absolute;
  left: 10px;
  top: 0;
  width: 26px;
  height: 100%;
  overflow: visible;
}
.thread path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  opacity: 0.55;
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
  transition: stroke-dashoffset 2.6s var(--eo);
}
.thread.drawn path {
  stroke-dashoffset: 0;
}
.ev {
  position: relative;
  padding-left: 56px;
  margin-bottom: 40px;
  text-align: left;
}
.ev:last-child {
  margin-bottom: 0;
}
.ev-lamp {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--paper);
  z-index: 2;
}
.ev-lamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff0c4, var(--gold-lt));
  animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.12);
  }
}
.ev-art {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px 999px 3px 3px/28% 28% 3px 3px;
}
.ev-art img {
  width: 100%;
  transition: transform 1.4s var(--eo);
}
.ev:hover .ev-art img {
  transform: scale(1.04);
}
.ev-name {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(25px, 5.8vw, 33px);
  color: var(--teal);
  line-height: 1;
}
.ev-when {
  margin: 0 0 2px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(11.5px, 2.7vw, 14px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}
.ev-time {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--ink-2);
}
.ev-venue {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ev-venue span {
  font-size: 0.86em;
  color: var(--ink-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--gold);
  font-family: "Marcellus SC", serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  background: transparent;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
.btn:hover {
  background: var(--teal);
  color: var(--gold-pale);
  border-color: var(--teal);
}

@media (min-width: 960px) {
  .thread {
    left: 50%;
    transform: translateX(-50%);
  }
  .ev {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding-left: 0;
    margin-bottom: 54px;
  }
  .ev-lamp {
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -9px;
  }
  .ev-art {
    margin: 0;
  }
  .ev .ev-body {
    padding-left: 36px;
  }
  .ev-flip .ev-art {
    order: 2;
  }
  .ev-flip .ev-body {
    order: 1;
    text-align: right;
    padding-left: 0;
    padding-right: 36px;
  }
}

/* ═══ gallery ═══ */
.sec-gal {
  padding-left: 0;
  padding-right: 0;
}
.sec-gal .inner {
  padding: 0 var(--pad);
}
.car {
  margin-top: 28px;
  overflow: hidden;
}
.car-track {
  display: flex;
  gap: 14px;
  padding: 0 var(--pad);
  will-change: transform;
}
.ph {
  margin: 0;
  flex: 0 0 clamp(210px, 62vw, 260px);
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px;
}
.ph img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
/* A painted frame around the couple's own photographs, from the 11 Sep 2026
   redesign. It replaces the ruled box entirely — the border and padding are
   dropped, the frame art carries them instead, and the photograph is cropped
   to fill rather than letterboxed.
   ⚠️ Only the square slides. .ph-wide is the dashed "your photo here" slot
   the shipped demo carries; a couple's own config never has one, and framing
   an empty slot would look like a broken image. */
.ph:not(.ph-wide) {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  overflow: visible;
}
.ph:not(.ph-wide) img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
}
.ph:not(.ph-wide)::after {
  content: "";
  position: absolute;
  inset: -5% -5.5%;
  background: url(assets/couple-frame.webp) center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 8px 20px rgba(37, 74, 97, 0.18));
}
/* the caption has to stay above the frame art */
.ph:not(.ph-wide) .ph-tag {
  z-index: 4;
}
.ph-tag {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Marcellus SC", serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--gold-pale);
  padding: 4px 11px;
  white-space: nowrap;
}
.ph-wide {
  flex: 0 0 clamp(230px, 68vw, 300px);
  background: rgba(245, 239, 223, 0.06);
  border-style: dashed;
}
.ph-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1;
  text-align: center;
  padding: 16px;
}
.ph-empty svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--gold-lt);
  stroke-width: 1.1;
  opacity: 0.7;
}
.ph-empty b {
  font-family: "Marcellus SC", serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--gold-lt);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}
.dot[aria-current="true"] {
  background: var(--gold-lt);
}

/* ═══ venue ═══ */
/* ⚠️ .mandap and mandapam.webp are gone. The redesign replaced them with a
   wide temple elevation that spans the section rather than sitting inside the
   text column — see .venue-temple at the foot of this sheet. */
.v-name {
  margin: 0 0 6px;
  font-family: "Marcellus SC", serif;
  font-size: clamp(14px, 3.2vw, 18px);
  color: var(--teal);
  letter-spacing: 0.04em;
}
.v-addr {
  margin: 0 0 24px;
  color: var(--ink-2);
}
.mapcard {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 20px;
  background: rgba(37, 74, 97, 0.05);
  border: 1px solid var(--line);
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  transition:
    border-color 0.3s,
    transform 0.3s var(--es);
}
.mapcard:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.mc-pin {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-pin svg {
  width: 21px;
  height: 21px;
  stroke: var(--gold);
}
.mc-txt {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.mc-txt b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--teal);
  margin-bottom: 2px;
}
.mc-go {
  flex: none;
}
.mc-go svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

/* ═══ RSVP ═══ */
.rv-lead {
  margin: 0 auto 26px;
  max-width: 34ch;
}
.rv-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto 26px;
}
.rv-ch {
  border: 1px solid var(--line);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(245, 239, 223, 0.05);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.2s var(--es);
}
.rv-ch:active {
  transform: scale(0.98);
}
.rv-ch.sy {
  border-color: var(--gold-lt);
  background: rgba(219, 184, 106, 0.12);
}
.rv-ch.sn {
  border-color: #c98a78;
  background: rgba(201, 138, 120, 0.1);
}
.rv-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(238, 220, 168, 0.08);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.rv-ico svg {
  width: 22px;
  height: 22px;
  stroke: rgba(238, 220, 168, 0.6);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.rv-ch.sy .rv-ico {
  background: rgba(219, 184, 106, 0.2);
  border-color: var(--gold-lt);
}
.rv-ch.sy .rv-ico svg {
  stroke: var(--gold-pale);
}
.rv-ch.sn .rv-ico {
  background: rgba(201, 138, 120, 0.14);
  border-color: #c98a78;
}
.rv-ch.sn .rv-ico svg {
  stroke: #e0a192;
}
.rv-lbl {
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  color: var(--paper);
  transition: color 0.3s;
}
.rv-ch.sy .rv-lbl {
  color: var(--gold-pale);
}
.rv-ch.sn .rv-lbl {
  color: #e0a192;
}

.rv-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.rv-form.act {
  opacity: 1;
  pointer-events: all;
}
.f-lbl {
  font-family: "Marcellus SC", serif;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(238, 220, 168, 0.75);
  display: block;
  margin-bottom: 8px;
  text-align: left;
}
.f-opt {
  opacity: 0.5;
  letter-spacing: 0.1em;
}
.f-in,
.f-ta {
  width: 100%;
  background: rgba(25, 54, 70, 0.5);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: "Cardo", serif;
  font-size: 16px;
  color: var(--paper);
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.f-in::placeholder,
.f-ta::placeholder {
  color: rgba(238, 220, 168, 0.34);
}
.f-in:focus,
.f-ta:focus {
  border-color: var(--gold-lt);
  box-shadow: 0 0 0 3px rgba(198, 153, 64, 0.16);
}
.f-ta {
  resize: none;
  min-height: 88px;
}
.ff.hide {
  display: none;
}
.btn-sub {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold-lt), #a0761f);
  color: var(--teal-d);
  border: none;
  border-radius: 50px;
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s var(--es),
    opacity 0.2s;
  margin-top: 4px;
}
.btn-sub:active {
  transform: scale(0.97);
}
.btn-sub:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.rv-contact {
  max-width: 400px;
  margin: 28px auto 0;
  text-align: center;
  padding: 22px;
  background: rgba(245, 239, 223, 0.05);
  border: 1px solid var(--line);
}
.rc-lbl {
  font-family: "Marcellus SC", serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 220, 168, 0.55);
  margin: 0 0 8px;
}
.rc-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--paper);
  margin: 0 0 6px;
}
.rc-ph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Marcellus SC", serif;
  font-size: 13.5px;
  color: var(--gold-pale);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.rc-ph svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-lt);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.rv-ok {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 20px;
  max-width: 400px;
  margin: 0 auto;
}
.rv-ok.show {
  display: flex;
}

/* The refused-reply line under the form (pack 0011 T8) — the form's body
   size, in a deep wine so it reads as a warning without a new colour token. */
.rv-err {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #7c3040;
}
.ok-r {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-lt), #8c6a18);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ok-r svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal-d);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.ok-t {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 30px;
  color: var(--gold-pale);
  margin: 0;
}
.ok-x {
  font-family: "Cardo", serif;
  font-size: 15px;
  color: #e4d6bc;
  line-height: 1.75;
  margin: 0;
}

/* ═══ footer ═══ */
.foot {
  background: var(--teal-d);
  padding: var(--gap) var(--pad) 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.foot-orn {
  width: min(230px, 58%);
  margin: 0 auto 26px;
  opacity: 0.9;
}
.foot-line {
  margin: 0 0 6px;
  font-style: italic;
  color: rgba(233, 220, 196, 0.72);
}
.foot-names {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(27px, 6.4vw, 38px);
  color: var(--gold-pale);
}
.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  text-decoration: none;
  color: rgba(233, 220, 196, 0.68);
  font-size: 14px;
  transition: color 0.3s;
}
.ig:hover {
  color: var(--gold-pale);
}
.ig svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: currentColor;
}
.foot-rule {
  display: block;
  width: min(180px, 50%);
  height: 1px;
  margin: 42px auto 26px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.made {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.made:hover {
  opacity: 1;
}
.made span {
  font-family: "Marcellus SC", serif;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(233, 220, 196, 0.58);
}
/* The circular vowstory badge (vowstory-logo.webp), which replaced a wide
   wordmark — same optical weight at two thirds the width. */
.made img {
  width: 88px;
  height: auto;
}

@media (min-width: 600px) {
  .weds {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
  }
  .weds .side {
    flex: 1;
    max-width: 260px;
  }
  .weds em {
    margin-top: 8px;
    flex: none;
  }
  .car-track {
    gap: 18px;
  }
}
@media (min-width: 960px) {
  .music {
    width: 48px;
    height: 48px;
    top: 24px;
  }
  .ph {
    flex-basis: 290px;
  }
  .ph-wide {
    flex-basis: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    /* ⚠️ .reveal gained a blur() with the redesign. Killing the transition
       alone would leave every un-revealed block blurred for good. */
    filter: none;
  }
  .amb {
    display: none;
  }
  .hero-names .ch,
  .hero-names em {
    opacity: 1;
    transform: none;
  }
  .k-draw {
    stroke-dashoffset: 0;
  }
  .cv-corner,
  .cv-tap {
    opacity: 1;
  }
  .hang {
    opacity: 1;
  }
  .thread path {
    stroke-dashoffset: 0;
  }
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ═══ config-driven additions ═══
   Everything below exists because the page is painted from
   script#wedding-config: elements the couple left empty are hidden rather
   than deleted, and a few slots have no counterpart in the shipped demo. */

/* Outranks the flex/grid/inline-flex display rules on .rc-ph, .mapcard,
   .ig, .btn and the name spans, so `hidden` always wins. */
[hidden] {
  display: none !important;
}

/* The deity when the couple's blessing has no artwork of its own. Venkateshwara
   is the one this template draws, so most other blessings land here — set in
   Cormorant Garamond 300, the display face, over the hero's cream. */
.glyph {
  margin: 0 auto 14px;
  /* Telugu first for the same reason as .invocation — the blessings that land
     here are most often the Telugu Venkateshwara, whose glyph is శ్రీ. */
  font-family: "Noto Serif Telugu", "Cormorant Garamond", serif;
  font-weight: 300;
  line-height: 1;
  font-size: clamp(44px, 10.5vw, 66px);
  color: var(--gold);
  text-shadow: 0 6px 20px rgba(38, 65, 78, 0.18);
}

/* "Hosted by …" — for when an uncle or a brother is the official host.
   ⚠️ Three elements since the 11 Sep 2026 redesign, where it was one <p>
   whose text began with the words "Hosted by". The label is markup now, so
   script.js writes only the names — see #hosted-names. It also moved BELOW
   the two families rather than above them. */
.hosted {
  margin: 28px auto 0;
  text-align: center;
  max-width: 440px;
}
.hosted-rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: 0 auto 13px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hosted-label {
  margin: 0 0 6px;
  font-family: "Marcellus SC", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
}
.hosted-names {
  margin: 0;
  font-family: "Cardo", Georgia, serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
}

/* Dress code and note, two labelled cells under an event's venue.
   ⚠️ Was one italic run-on line ("Dress code: Kanjeevaram silk · Muhurtham &
   wedding lunch") until the 11 Sep 2026 redesign.
   ⚠️ The columns are generated per cell, NOT declared as `1fr 1fr`. Most
   couples fill in one of the two, and a declared pair of tracks stays open
   whether or not anything is in it — the lone cell would sit at half width
   beside a hole. `grid-auto-flow: column` with `grid-auto-columns: 1fr` makes
   one track per cell that exists. */
.ev-meta {
  margin: 12px auto 16px;
  max-width: 300px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 9px;
}
.ev-meta > div {
  background: rgba(37, 74, 97, 0.06);
  border: 1px solid var(--line);
  padding: 7px 11px;
  min-width: 0;
}
.ev-meta dt {
  font-family: "Marcellus SC", serif;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ev-meta dd {
  margin: 3px 0 0;
  font-family: "Cardo", Georgia, serif;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* A second query contact, when the couple gives one. */
.rc-ph + .rc-name {
  margin-top: 18px;
}

/* The page alternates ivory and temple teal exactly. When a couple leaves a
   section empty its neighbours can end up the same tone — a photoless gallery
   puts the events against the venue — so a hairline marks the join and the
   rhythm still reads as deliberate. Re-tinting is not an option: .unit, .ph,
   the .rv-* fields and the -lt heading variants are each built for one tone.
   script.js sets the class. */
.sec.tone-join::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translateX(-50%);
  width: min(180px, 50%);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sec-teal.tone-join::after {
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
  opacity: 0.6;
}

/* ═══ printed margin borders ═══
   Shown only from 1180px up, where there is room outside the 920px page.
   ⚠️ These are CSS background-images declared INSIDE the media query, not
   <img> tags with display:none. A display:none <img> is still fetched by
   every browser, and the two borders were 1.5 MB between them as PNG — paid
   for by every phone that never shows one. Declared here, the request
   happens only when the query matches. (They are WebP now and a fifth of
   that; the rule is unchanged, and so is the reason for it.)
   The geometry is unchanged by the switch: height:100vh with background-size
   contain in a 22vw box resolves to the same painted box as width:auto on an
   <img> did. */
.edge {
  display: none;
  position: fixed;
  top: 0;
  height: 100vh;
  width: 22vw;
  max-width: 22vw;
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: contain;
}
.edge-l {
  left: 0;
  background-position: left center;
}
.edge-r {
  right: 0;
  background-position: right center;
}
@media (min-width: 1180px) {
  .edge {
    display: block;
  }
  .edge-l {
    background-image: url(assets/border-l.webp);
  }
  .edge-r {
    background-image: url(assets/border-r.webp);
  }
}

/* ═══ the venue route ═══
   Decorative only — see the comment on .route in index.html. The SVG's own
   overflow stays visible so the pulsing ring around the destination pin is
   not clipped by the viewBox. */
.route {
  margin: 26px auto 2px;
  width: min(330px, 86%);
}
.route-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* ═══ the venue's temple elevation ═══
   Replaced .mandap / mandapam.webp. It sits outside .inner so it can span the
   section, and above the section's own decoration at z-index 1. */
.venue-temple {
  display: block;
  width: min(540px, 96%);
  margin: 0 auto clamp(20px, 4vw, 34px);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 30px rgba(37, 74, 97, 0.18));
}

/* ═══ "Tap to open" ═══
   ⚠️ background-clip:text needs BOTH -webkit-text-fill-color:transparent and
   color:transparent to show through — under an opaque colour the gradient is
   painted and then covered, which is dead CSS that looks like working CSS.
   ⚠️ It is also safe here only because .cv-word has no transformed children:
   in Blink a background-clipped text node whose descendants are composited
   separately renders as nothing at all. */
.cv-word {
  background: linear-gradient(
    100deg,
    #8a6a24 0%,
    #c69940 26%,
    #f2e4b4 46%,
    #dbb86a 56%,
    #319ce2 74%,
    #254a61 92%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cvShine 3.6s linear infinite;
}
@keyframes cvShine {
  to {
    background-position: 240% 0;
  }
}
.cv-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(49, 156, 226, 0.16),
    rgba(49, 156, 226, 0) 58%
  );
  animation: cvGlow 4.5s ease-in-out infinite;
}
@keyframes cvGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
