/* Kolam Kovil: a South Indian temple wedding.
   Gate (hold to draw the rice-flour kolam -> bells -> the floor settles into the threshold -> the brass-studded
   doors open -> scroll walks through into the lamp-lit names) -> save the date (turmeric foil on a banana leaf)
   -> brass lamp countdown -> silk family panels -> gopuram event card -> light the kuthuvilakku -> footer.
   A string of jasmine down the left edge grows as you read. */

:root {
  --jasmine: #fbf6ea;
  --jasmine-2: #f3ead6;
  --ink: #3a1d14;
  --ink-soft: #6e5242;
  --brass: #c9973e;
  --brass-hi: #f3d68a;
  --brass-lo: #7e5418;
  --line: rgba(201, 151, 62, .5);
  --magenta: #b5266b;
  --magenta-deep: #7d1149;
  --parrot: #1f6b4a;
  --parrot-deep: #10432e;
  --leaf: #2f7d3a;
  --oxide: #7a2a1a;
  --oxide-deep: #4a160d;
  --night: #1a0c08;

  --f-body: "Cormorant Garamond", Georgia, serif;
  --f-label: "Marcellus", Georgia, serif;
  --f-sans: "Jost", system-ui, sans-serif;
  --f-ta: "Noto Serif Tamil", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-bg: var(--jasmine);
  --fx-music-bg: var(--magenta-deep);
  --fx-music-ring: var(--brass);
  --fx-music-ink: #ffe7b4;

  /* zari teeth: the stepped temple-tower border woven into Kanjivaram silk */
  --teeth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath fill='%23d2a54d' d='M0 0H16V1.4H13.8V3H11.6V4.6H9.4V8H6.6V4.6H4.4V3H2.2V1.4H0Z'/%3E%3Ccircle cx='8' cy='1.2' r='.9' fill='%23fff1c4'/%3E%3C/svg%3E");
  /* mango-leaf thoranam over the door */
  --mavilai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23234f1c'/%3E%3Cstop offset='.5' stop-color='%23508d33'/%3E%3Cstop offset='1' stop-color='%231d4417'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 2.5Q20 6 40 2.5' stroke='%23c9973e' stroke-width='1.2' fill='none'/%3E%3Cg transform='rotate(-5 10 4)'%3E%3Cpath d='M10 4C16 14 15.5 30 10 44 4.5 30 4 14 10 4Z' fill='url(%23g)'/%3E%3Cpath d='M10 6V41' stroke='%23a9c97a' stroke-width='.6' opacity='.7'/%3E%3C/g%3E%3Cg transform='rotate(6 30 4)'%3E%3Cpath d='M30 4C35.5 13 35 27 30 39 25 27 24.5 13 30 4Z' fill='url(%23g)'/%3E%3Cpath d='M30 6V36' stroke='%23a9c97a' stroke-width='.6' opacity='.7'/%3E%3C/g%3E%3Ccircle cx='20' cy='5.2' r='2.2' fill='%23f3a21c'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body {
  background:
    repeating-linear-gradient(90deg, rgba(180, 140, 70, .025) 0 1px, transparent 1px 3px),
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .6), transparent 70%),
    var(--jasmine);
  color: var(--ink);
  font: 400 19px/1.6 var(--f-body);
}
a { color: inherit; }
main, .foot { position: relative; z-index: 1; }
.art { position: absolute; width: 0; height: 0; overflow: hidden; }

/* zari: a gold silk band with the stepped temple teeth; --zc is the thread colour of its dots */
.zari { position: relative; display: block; height: 20px; pointer-events: none; }
.zari::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background:
    radial-gradient(circle at 50% 50%, var(--zc, var(--magenta)) 0 1.7px, transparent 2.3px) 3px 50% / 12px 12px repeat-x,
    linear-gradient(180deg, transparent 0 2px, rgba(90, 50, 8, .35) 2px 2.6px, transparent 2.6px 9.4px, rgba(90, 50, 8, .35) 9.4px 10px, transparent 10px),
    linear-gradient(90deg, rgba(255, 245, 210, 0) 30%, rgba(255, 245, 210, .55) 50%, rgba(255, 245, 210, 0) 70%) var(--glint, 0) 0 / 300% 100% no-repeat,
    linear-gradient(180deg, #8a5f1c, #f3d68a 28%, #c9973e 55%, #f0d18a 80%, #8a5f1c);
}
.zari::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: var(--teeth) 0 0 / 16px 8px repeat-x; }
.zari--bottom { transform: scaleY(-1); }

/* =================================================================== JASMINE PROGRESS */

.jasmine {
  position: fixed; left: max(3px, env(safe-area-inset-left)); top: 0; bottom: 0; width: 12px; z-index: 60;
  pointer-events: none; opacity: 0; transition: opacity .8s;
}
html.past .jasmine { opacity: 1; }
.jasmine__string {
  position: absolute; left: 0; top: 0; width: 12px; height: calc(var(--sp, 0) * 100%);
  background:
    radial-gradient(ellipse 3.4px 5.2px at 50% 50%, #fffdf6 0 70%, #e2d6b4 88%, transparent 100%) 0 2px / 12px 14px repeat-y,
    linear-gradient(90deg, transparent 5.4px, #5d8a3e 5.4px 6.6px, transparent 6.6px);
  filter: drop-shadow(0 1px 1.5px rgba(70, 50, 20, .35));
}
.jasmine__bloom { position: absolute; left: 6px; top: calc(var(--sp, 0) * 100%); width: 20px; height: 20px; translate: -50% -50%; rotate: calc(var(--sy, 0) * .4deg); filter: drop-shadow(0 1px 2px rgba(70, 50, 20, .4)); }

/* =================================================================== GATE */

.gate { position: relative; height: 270svh; background: #120806; }
.gate__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html:not(.js) .gate { height: auto; }
html:not(.js) .gate__pin { position: relative; height: auto; min-height: 100svh; }
html:not(.js) :is(.gate__scene, .gate__tap, .gate__skip) { display: none; }

/* ---------- inside: lamp light, the names ---------- */
.gate__inside {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 36px;
}
html:not(.js) .gate__inside { position: relative; min-height: 100svh; }
.gate__inside::before {          /* the lamp-light that fills the doorway, fading as you step through */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 55%, #fffaf0 0, #ffe0a0 35%, #f0a24a 72%, #b35a1c 100%);
  opacity: calc(1 - var(--reveal, 1));
}
.inside__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(30% 22% at 8% 96%, rgba(255, 180, 90, .45), transparent 70%),
    radial-gradient(30% 22% at 92% 96%, rgba(255, 180, 90, .45), transparent 70%),
    radial-gradient(80% 55% at 50% 48%, rgba(255, 190, 110, .35), transparent 70%),
    radial-gradient(120% 90% at 50% 100%, #8a3220, #5a1c10 60%, #2a0b08);
}
.inside__bg .loop { opacity: .4; mix-blend-mode: screen; }
.inside__bg video.loop.playing { opacity: .42; }
.inside__kolam { position: absolute; left: 50%; top: 50%; width: min(170vw, 780px); translate: -50% -50%; opacity: .17; }
.inside__kolam svg { display: block; width: 100%; height: auto; }
.inside__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(20, 6, 3, .65));
}

/* strings of jasmine hanging from above, swaying */
.strings { position: absolute; inset: 0 0 auto; height: 40%; z-index: 1; pointer-events: none; }
.strings i {
  position: absolute; top: -8px; width: 10px; height: calc(42% + var(--i) * 9% - (var(--i) / 3) * 3%);
  left: calc(4% + var(--i) * 3.2%);
  background:
    radial-gradient(ellipse 3.3px 5px at 50% 50%, #fffdf6 0 70%, #e5d9b8 88%, transparent 100%) 0 0 / 10px 12px repeat-y,
    linear-gradient(90deg, transparent 4.4px, #5d8a3e 4.4px 5.6px, transparent 5.6px);
  transform-origin: 50% 0; animation: sway 4.8s ease-in-out calc(var(--i) * -.7s) infinite alternate;
  filter: drop-shadow(0 2px 2px rgba(20, 6, 2, .4));
}
.strings i:nth-child(n+4) { left: auto; right: calc(4% + (var(--i) - 3) * 3.2%); height: calc(42% + (5 - var(--i)) * 9%); }
.strings i:nth-child(3n+2) { height: 30%; }
@keyframes sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }

.hero {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%;
  opacity: var(--reveal, 1);
  transform: translateY(calc((1 - var(--reveal, 1)) * 50px)) scale(calc(.9 + var(--reveal, 1) * .1));
}
.hero__card {
  position: relative; width: min(100%, 440px);
  padding: 0 clamp(18px, 6vw, 36px);
  background:
    radial-gradient(100% 60% at 50% 30%, #fffdf7, rgba(251, 246, 234, .96) 70%),
    var(--jasmine);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(201, 151, 62, .6), 0 0 0 7px rgba(251, 246, 234, .12), 0 30px 70px -20px rgba(10, 2, 0, .8), 0 0 90px rgba(255, 190, 110, .25);
}
.hero__card .zari { margin: 0 calc(-1 * clamp(18px, 6vw, 36px)); }
.hero__card .zari--top { margin-bottom: 14px; }
.hero__card .zari--bottom { margin-top: 20px; }
.hero__card .zari::before { animation: glint 6s ease-in-out 1s infinite; }
@keyframes glint { 0% { --glint: 100%; } 40%, 100% { --glint: -100%; } }
@property --glint { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }
.hero__gopuram { display: block; width: 40px; height: 50px; margin: 0 auto 6px; color: var(--brass); }
.hero__lead { font: italic 400 17px/1.4 var(--f-body); color: var(--ink-soft); }
.hero__names { margin: 10px 0 8px; font: italic 500 clamp(40px, 11vw, 56px)/1.02 var(--f-body); color: var(--magenta); letter-spacing: -.01em; }
.hero__names span { display: block; }
.hero__amp { font: 400 .5em/1.5 var(--f-label); color: var(--brass); font-style: normal; }
.hero__invite { font: italic 400 17px/1.4 var(--f-body); color: var(--ink-soft); }
.hero__date {
  display: inline-block; margin-top: 14px; padding: 8px 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 400 clamp(13px, 3.6vw, 15px)/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--parrot-deep);
}
.hero__venue { margin-top: 10px; font: 400 15px/1.5 var(--f-sans); color: var(--ink-soft); }
.hero__tag { margin-top: 22px; max-width: 24em; font: italic 400 18px/1.45 var(--f-body); color: #fbe3bd; text-shadow: 0 1px 12px rgba(20, 6, 2, .9); }
@media (max-height: 700px) {
  .hero__names { font-size: clamp(34px, 9.5vw, 48px); }
  .hero__gopuram { width: 32px; height: 40px; }
  .hero__tag { margin-top: 14px; font-size: 16px; }
}

/* ---------- the scene: wall, doors and floor; scaled about the doorway by JS ---------- */
.gate__scene { position: absolute; inset: 0; z-index: 4; will-change: transform, opacity; }
.stage {
  position: absolute; inset: 0; overflow: hidden; container-type: size;
  background: #1d0c08; perspective: 110cqh; perspective-origin: 50% 42%;
}
@media (min-aspect-ratio: 3/4) {
  .stage {
    inset: auto; left: 50%; top: 50%; translate: -50% -50%;
    height: min(92svh, calc(94vw * 16 / 9)); aspect-ratio: 9 / 16;
    border-radius: 16px;
    box-shadow: 0 0 0 100vmax #120806, 0 30px 70px rgba(0, 0, 0, .8);
  }
}

/* dawn sky, the gopuram rising behind the front wall */
.wall {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #241a33 0%, #4b2a3c 9%, #a2503a 18%, #d9894c 23%, #3a2018 23.2%, #3a2018 100%);
}
.wall__gopuram { position: absolute; left: 50%; top: 1cqh; width: 62cqw; height: 77cqw; translate: -50% 0; color: #1c0f0d; filter: drop-shadow(-1px 0 0 rgba(255, 170, 100, .45)); }
.wall::before {                  /* the front wall: granite courses catching the first light from the left */
  content: ""; position: absolute; left: 0; right: 0; top: 18cqh; height: 34cqh;
  background:
    linear-gradient(90deg, rgba(255, 170, 100, .16), transparent 40%, rgba(0, 0, 0, .3)),
    repeating-linear-gradient(180deg, transparent 0 calc(4.2cqh - 1px), rgba(0, 0, 0, .35) calc(4.2cqh - 1px) 4.2cqh),
    linear-gradient(180deg, #4b3127, #3a241c);
  box-shadow: inset 0 3px 0 rgba(255, 190, 120, .25);
}
.wall::after {                   /* the threshold step */
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--fl) - 2.6cqh); height: 2.6cqh;
  background: linear-gradient(180deg, #6a4a3a, #3b261d);
}
.stage { --fl: 51.6cqh; }        /* floor line: where the tilted floor meets the wall */
.pillar {
  position: absolute; top: 19cqh; bottom: calc(100cqh - var(--fl) + 2.6cqh); width: 13cqw;
  background:
    repeating-linear-gradient(180deg, transparent 0 7cqh, #c9973e 7cqh 7.6cqh, transparent 7.6cqh 8.4cqh, #c9973e 8.4cqh 8.8cqh, transparent 8.8cqh 12cqh),
    linear-gradient(90deg, #2c1912, #6a4a39 30%, #4a3226 60%, #24140e);
  box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}
.pillar::before {                /* bracket capital */
  content: ""; position: absolute; left: -2cqw; right: -2cqw; top: -1.6cqh; height: 2.4cqh;
  background: linear-gradient(180deg, #7a5a46, #3a241c); border-radius: 2px;
}
.pillar--l { left: 8cqw; }
.pillar--r { right: 8cqw; }
.lintel {
  position: absolute; left: 6cqw; right: 6cqw; top: 17cqh; height: 3.4cqh;
  background:
    radial-gradient(circle at 50% 50%, #3a241c 0 1.4px, transparent 2px) 0 50% / 11px 100% repeat-x,
    linear-gradient(180deg, #8a5f1c, #f0cd80 30%, #b9862f 60%, #6e4612);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .5);
}
.bell { position: absolute; top: 20.4cqh; width: 6cqw; height: 15cqw; transform-origin: 50% 0; z-index: 1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.bell--l { left: 21.4cqw; }
.bell--r { right: 21.4cqw; }
.gate.ring .bell { animation: bellSwing 1.4s ease-out 2; }
.gate.ring .bell--r { animation-delay: .18s; }
@keyframes bellSwing { 0% { rotate: 0deg; } 20% { rotate: 16deg; } 45% { rotate: -11deg; } 70% { rotate: 6deg; } 100% { rotate: 0deg; } }

.doorway {
  position: absolute; left: 27cqw; right: 27cqw; top: 20.4cqh; bottom: calc(100cqh - var(--fl) + 2.6cqh);
  perspective: 90cqh; background: #0d0503;
  box-shadow: 0 0 0 1.2cqw #2a1812, 0 0 0 1.6cqw #c9973e, 0 0 0 2.6cqw #3a241c;
}
.corridor {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(40% 30% at 50% 62%, #fff4cf, #ffc66a 30%, rgba(214, 120, 40, .7) 60%, transparent 85%),
    linear-gradient(180deg, #2d0f06, #6a2a10 55%, #8e4318 62%, #3a1608);
}
.col {
  position: absolute; top: calc(10% + var(--k) * 11%); bottom: calc(14% + var(--k) * 6%);
  width: calc(13% - var(--k) * 2.4%);
  background: linear-gradient(90deg, #1a0904, #5a2a12 50%, #241006);
  box-shadow: 0 0 12px rgba(255, 170, 80, calc(.1 + var(--k) * .08));
}
.col--l { left: calc(var(--k) * 11%); }
.col--r { right: calc(var(--k) * 11%); }
.corridor__lamp { position: absolute; left: 50%; top: 50%; width: 8%; aspect-ratio: 1 / 2.2; translate: -50% -50%; }
.corridor__lamp i, .wick i, .vilakku__flame {
  position: absolute; left: 50%; bottom: 0; width: 100%; height: 100%; translate: -50% 0;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe6 0, #ffd65a 35%, #ff8a1c 70%, rgba(255, 90, 0, 0) 100%);
  box-shadow: 0 0 18px 6px rgba(255, 170, 60, .55);
  transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite alternate;
}
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-2deg); }
  40% { transform: scale(.94, 1.08) rotate(2deg); }
  70% { transform: scale(1.04, .95) rotate(-1deg); }
  100% { transform: scale(.97, 1.04) rotate(1.5deg); }
}

/* the doors: heavy wood, brass bands and bosses */
.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    linear-gradient(180deg, transparent 31%, #c9973e 31% 32.4%, #6e4612 32.4% 33%, transparent 33% 66%, #c9973e 66% 67.4%, #6e4612 67.4% 68%, transparent 68%),
    linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 14%, transparent 86%, rgba(0, 0, 0, .45)),
    repeating-linear-gradient(90deg, #4f2614 0 8px, #3c1c0e 8px 9px, #562b17 9px 17px);
  border: 2px solid #b9862f;
  transition: transform 2.2s cubic-bezier(.55, .05, .25, 1), filter 2.2s;
  backface-visibility: hidden;
}
.door::before {                  /* brass bosses in a grid */
  content: ""; position: absolute; inset: 6% 12%;
  background: radial-gradient(circle at 50% 50%, #fff2c4 0 1px, #e3b65c 2px, #8a5f1c 3.4px, rgba(0, 0, 0, .45) 4px, transparent 4.8px) 50% 0 / 33.34% 12.5%;
}
.door--l { left: 0; transform-origin: 0 50%; }
.door--r { right: 0; transform-origin: 100% 50%; }
.door__ring {
  position: absolute; top: 50%; width: 22%; aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; border: 2.5px solid #e3b65c; box-shadow: 0 2px 3px rgba(0, 0, 0, .6), inset 0 0 0 1px #6e4612;
}
.door--l .door__ring { right: 8%; }
.door--r .door__ring { left: 8%; }
.gate[data-phase="open"] .door--l { transform: rotateY(-108deg); filter: brightness(.6); }
.gate[data-phase="open"] .door--r { transform: rotateY(108deg); filter: brightness(.6); }

/* mango-leaf thoranam across the door */
.thoranam {
  position: absolute; left: 7cqw; right: 7cqw; top: 19.6cqh; height: 6.6cqh;
  background: var(--mavilai) 50% 0 / auto 100% repeat-x;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55));
}

/* the doors clip, if present: plays over the wall, under the floor */
.doors__film {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--fl) + 6cqh); object-fit: cover; object-position: 50% 30%;
  opacity: 0; transition: opacity .9s ease; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent);
}
.doors__film.on { opacity: 1; }

/* ---------- the floor: red oxide at dawn; tilts down into the threshold once the kolam is drawn ---------- */
.floor {
  position: absolute; top: 0; height: 100%; left: -50%; width: 200%;
  transform-origin: 50% 100%;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 196, 140, .13) 42%, rgba(255, 196, 140, .05) 50%, transparent 58%),
    radial-gradient(30% 22% at 54% 50%, rgba(255, 220, 190, .1), transparent 70%),
    radial-gradient(25% 30% at 30% 30%, rgba(0, 0, 0, .2), transparent 70%),
    radial-gradient(28% 26% at 72% 74%, rgba(0, 0, 0, .18), transparent 70%),
    radial-gradient(60% 50% at 50% 48%, #8a3220, #6e2414 60%, #4a150b);
  transition: transform 1.8s cubic-bezier(.6, .05, .25, 1);
}
.floor::after {                  /* polished sheen + edge vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(28% 50% at 50% 50%, transparent 40%, rgba(25, 6, 2, .55)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 4px);
}
.gate:not([data-phase="idle"]):not([data-phase="drawing"]) .floor { transform: rotateX(66deg); }
.floor__spill {                  /* lamp light pouring out of the doorway over the floor */
  position: absolute; left: 30%; right: 30%; top: 0; height: 70%; z-index: 1;
  background: radial-gradient(50% 70% at 50% 0%, rgba(255, 206, 120, .55), rgba(255, 150, 60, .2) 55%, transparent 80%);
  opacity: 0; transition: opacity 2s ease .6s; mix-blend-mode: screen;
}
.gate[data-phase="open"] .floor__spill { opacity: 1; }
.floor__kolam {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: min(80cqw, 46cqh); aspect-ratio: 1; translate: -50% -50%;
}
.floor__kolam svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* kolam art (built in script.js) */
.kolam__dot { fill: #f7efe0; opacity: .85; transition: fill .6s, r .6s; }
.kolam__line { fill: none; stroke: #fbf5ea; stroke-linecap: round; stroke-linejoin: round; }
.kolam__halo { fill: none; stroke: rgba(255, 240, 220, .18); stroke-linecap: round; stroke-linejoin: round; }
.kolam__tip { fill: #fffaf0; opacity: 0; transition: opacity .3s; }
.gate[data-phase="drawing"] .kolam__tip { opacity: 1; }
.kolam__start { fill: none; stroke: #fff6e6; stroke-width: 1; opacity: .9; transform-box: fill-box; transform-origin: center; animation: startPulse 1.8s ease-out infinite; }
.gate:not([data-phase="idle"]) .kolam__start, .gate.begun .kolam__start { display: none; }
@keyframes startPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.gate.drawn .kolam__line { animation: kolamGlow 2.4s ease-out; }
@keyframes kolamGlow { 30% { filter: drop-shadow(0 0 3px #fff3d6) drop-shadow(0 0 8px rgba(255, 210, 140, .9)); } }
.gate.drawn .kolam__dot:nth-child(odd) { fill: #e0452c; }
.gate.drawn .kolam__dot:nth-child(even) { fill: #f2b51e; }

/* ---------- hints over the scene ---------- */
.gate__head {
  position: absolute; left: 0; right: 0; top: max(22px, env(safe-area-inset-top)); z-index: 6; text-align: center; pointer-events: none;
  font: italic 500 clamp(22px, 7cqw, 30px)/1.1 var(--f-body); color: #fbe9cf; text-shadow: 0 2px 12px rgba(20, 5, 2, .8);
  transition: opacity .6s;
}
.gate__head span { font: 400 .62em var(--f-label); color: var(--brass-hi); font-style: normal; }
.gate__head small { display: block; margin-top: 6px; font: 400 11px/1 var(--f-label); letter-spacing: .32em; color: rgba(243, 214, 138, .8); }
.gate:not([data-phase="idle"]):not([data-phase="drawing"]) .gate__head { opacity: 0; }
.gate__hint {
  position: absolute; left: 50%; bottom: max(8%, 56px); translate: -50% 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: min(88%, 30em); text-align: center; pointer-events: none;
  transition: opacity .5s;
}
.gate__to { font: italic 400 19px/1.3 var(--f-body); color: #ffe7c4; text-shadow: 0 1px 8px rgba(20, 5, 2, .9); }
.gate__ta { font: 500 clamp(22px, 7cqw, 30px)/1.5 var(--f-ta); color: #fff6e8; text-shadow: 0 2px 14px rgba(20, 5, 2, .9); letter-spacing: .02em; }
.gate__line {
  font: 400 clamp(11px, 3.2cqw, 13px)/1.4 var(--f-label); letter-spacing: .24em; text-indent: .24em; text-transform: uppercase;
  color: rgba(255, 240, 220, .92); text-shadow: 0 1px 10px rgba(20, 5, 2, .9);
}
.gate__line--busy { display: none; }
.gate[data-phase="drawing"] .gate__line--idle, .gate.begun .gate__line--idle { display: none; }
.gate[data-phase="drawing"] .gate__line--busy, .gate.begun .gate__line--busy { display: block; }
.gate.begun:not([data-phase="drawing"]) .gate__line--busy::after { content: " · hold again"; }
.gate__hint--draw { animation: hintFloat 4.6s ease-in-out infinite alternate; }
.gate:not([data-phase="idle"]):not([data-phase="drawing"]) .gate__hint--draw { opacity: 0; animation: none; }
@keyframes hintFloat { to { translate: -50% -6px; } }
.gate__hint--enter { bottom: max(5%, 40px); opacity: 0; }
.gate__hint--enter .gate__line { color: #fff1d6; }
.gate[data-phase="open"] .gate__hint--enter { opacity: clamp(0, calc(1 - var(--p, 0) * 12), 1); transition: none; }
.gate[data-phase="open"] .gate__hint--enter > * { animation: fadeIn .9s ease 2.6s both; }
.gate.instant .gate__hint--enter > * { animation-delay: 0s; }
@keyframes fadeIn { from { opacity: 0; } }
.gate__chev {
  width: 14px; height: 14px; margin-top: 8px;
  border-right: 2px solid #ffe7b4; border-bottom: 2px solid #ffe7b4; rotate: 45deg;
  animation: chev 1.6s ease-in-out infinite;
}
.gate.nudge .gate__chev { animation-duration: .9s; }
@keyframes chev { 0%, 100% { translate: 0 -3px; opacity: .5; } 50% { translate: 0 4px; opacity: 1; } }

.gate__tap {
  position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  border: 0; padding: 0; background: none; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.gate__tap:focus-visible { outline: 3px solid #ffe7b4; outline-offset: -14px; }
.gate[data-phase="open"] .gate__tap { cursor: default; }
.gate.is-through .gate__tap, .gate.is-through .gate__skip { display: none; }
.gate__skip {
  position: absolute; right: 14px; top: max(14px, env(safe-area-inset-top)); z-index: 7;
  font: 400 11px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 240, 215, .85); background: rgba(20, 8, 3, .4); border: 1px solid rgba(255, 230, 190, .3);
  border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.gate__skip:focus-visible, .up:focus-visible, .btn:focus-visible, .wick:focus-visible, .ev__bell:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* no transitions when jumping straight in (?open, Skip) */
.gate.instant :is(.floor, .door, .floor__spill) { transition: none; }

/* reduced motion: no tilt or zoom; the scene fades once the kolam is drawn */
.gate.is-flat { height: 100svh; }
.gate.is-flat .gate__scene { opacity: 0 !important; transition: opacity .6s; pointer-events: none; }
.gate.is-flat :is(.gate__tap, .gate__skip) { display: none; }

/* =================================================================== SECTIONS */

.sec { position: relative; max-width: 640px; margin: 0 auto; padding: 88px 20px; text-align: center; }
.sec__label { font: 400 12px/1.5 var(--f-label); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--brass-lo); }
.sec__title { margin: 6px 0 0; font: italic 500 clamp(38px, 10vw, 50px)/1.1 var(--f-body); color: var(--magenta); }
.sec__title::after {             /* a little kolam knot under each title */
  content: ""; display: block; width: 46px; height: 12px; margin: 14px auto 0;
  background:
    radial-gradient(circle, var(--brass) 0 2px, transparent 2.6px) 50% 50% / 12px 12px no-repeat,
    radial-gradient(circle, var(--brass) 0 1.5px, transparent 2px) 0 50% / 12px 12px no-repeat,
    radial-gradient(circle, var(--brass) 0 1.5px, transparent 2px) 100% 50% / 12px 12px no-repeat,
    linear-gradient(90deg, transparent 8px, var(--line) 8px 18px, transparent 18px 28px, var(--line) 28px 38px, transparent 38px) 0 50% / 100% 1px no-repeat;
}

/* ---------- save the date: a banana leaf with turmeric foil ---------- */
.sec--date { padding-top: 96px; padding-bottom: 40px; }
.leaf {
  position: relative; width: min(100%, 470px); margin: 34px auto 0; padding: 34px 28px 38px 40px;
  border-radius: 14px 50% 50% 14px / 14px 40% 60% 14px;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .18), transparent 40%),
    repeating-linear-gradient(100deg, rgba(255, 255, 240, .07) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #4f9a3a, #2f7d32 40%, #236628 75%, #1b5222);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 220, .15), inset -14px 0 24px rgba(10, 40, 10, .3), 0 24px 40px -22px rgba(30, 60, 20, .8);
  rotate: -1.5deg;
}
.leaf__rib { position: absolute; left: 0; right: 7%; top: 9px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #b9d48a, #6f9e47); opacity: .8; }
.leaf__flower { position: absolute; width: 22px; height: 22px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.leaf__flower:nth-of-type(1) { left: 12px; bottom: 16px; }
.leaf__flower:nth-of-type(2) { left: 30px; bottom: 6px; width: 16px; height: 16px; }
.leaf__flower:nth-of-type(3) { right: 26px; top: 24px; }
.leaf__flower:nth-of-type(4) { right: 12px; top: 44px; width: 15px; height: 15px; }
.leaf__flower:nth-of-type(5) { right: 34px; bottom: 26px; width: 18px; height: 18px; }
.leaf .scratch { rotate: 1.5deg; width: min(100%, 290px); margin: 0 auto; border-radius: 8px; }
.cal {
  display: grid; justify-items: center; padding: 18px 12px 16px; border-radius: 8px;
  background: radial-gradient(100% 80% at 50% 30%, #fffdf6, var(--jasmine-2));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 5px #fffdf6, inset 0 0 0 6px var(--line);
}
.cal__wd { font: 400 12px/1.4 var(--f-label); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--parrot); }
.cal__day { font: 500 82px/1 var(--f-body); font-variant-numeric: lining-nums; color: var(--magenta); }
.cal__my { font: 400 14px/1.4 var(--f-label); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: var(--ink); }
.cal__time { margin-top: 4px; font: italic 400 17px/1 var(--f-body); color: var(--ink-soft); }
.scratch__hint { margin-top: 22px; font-style: italic; color: var(--ink-soft); }
.revealed .scratch__hint { visibility: hidden; }

/* ---------- countdown: brass lamps ---------- */
.count { display: flex; justify-content: center; gap: clamp(10px, 4vw, 22px); margin-top: 18px; }
.vilakku { position: relative; display: flex; flex-direction: column; align-items: center; width: 70px; padding-top: 30px; }
.vilakku__flame { width: 12px !important; height: 24px !important; left: 50%; bottom: auto !important; top: 4px; opacity: 0; transition: opacity .8s; }
.revealed .vilakku__flame { opacity: 1; }
.revealed .vilakku:nth-child(2) .vilakku__flame { transition-delay: .2s; }
.revealed .vilakku:nth-child(3) .vilakku__flame { transition-delay: .4s; }
.revealed .vilakku:nth-child(4) .vilakku__flame { transition-delay: .6s; }
.vilakku__bowl {
  position: relative; display: grid; place-items: center; width: 70px; height: 50px;
  border-radius: 8px 8px 50% 50% / 8px 8px 70% 70%;
  background:
    radial-gradient(60% 40% at 35% 30%, rgba(255, 248, 220, .7), transparent 70%),
    linear-gradient(90deg, #7e5418, #e9c46f 25%, #b9862f 50%, #f3d68a 72%, #8a5f1c);
  box-shadow: inset 0 3px 0 rgba(255, 245, 210, .6), inset 0 -4px 8px rgba(90, 50, 8, .45), 0 8px 14px -6px rgba(90, 50, 8, .6);
}
.vilakku__bowl::before {         /* rim */
  content: ""; position: absolute; left: -5px; right: -5px; top: -4px; height: 8px; border-radius: 50%;
  background: linear-gradient(90deg, #8a5f1c, #f6dc95 40%, #b9862f 70%, #7e5418);
}
.vilakku__bowl::after {          /* stem and foot */
  content: ""; position: absolute; left: 50%; top: 100%; width: 34px; height: 16px; translate: -50% 0;
  background:
    linear-gradient(90deg, #7e5418, #e9c46f 30%, #b9862f 60%, #7e5418) 50% 0 / 10px 10px no-repeat,
    radial-gradient(50% 50% at 50% 100%, #c9973e 60%, transparent 62%) 50% 100% / 100% 12px no-repeat;
}
.vilakku b { position: relative; font: 500 30px/1 var(--f-body); font-variant-numeric: lining-nums tabular-nums; color: #4a2a06; text-shadow: 0 1px 0 rgba(255, 240, 200, .6); margin-top: -4px; }
.vilakku small { margin-top: 24px; font: 400 10px/1 var(--f-label); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: var(--ink-soft); }
.count__done { margin-top: 26px; font-style: italic; font-size: 22px; color: var(--magenta); }

/* ---------- families: silk panels ---------- */
.families { display: grid; gap: 18px; margin-top: 34px; }
.silk {
  --body: var(--parrot); --body-2: var(--parrot-deep); --zc: var(--magenta);
  position: relative; text-align: center; color: #fff4dc; overflow: hidden; border-radius: 3px;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .14) 38%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--body), var(--body-2));
  box-shadow: 0 22px 40px -24px rgba(40, 10, 20, .7);
}
.silk--bride { --body: var(--magenta); --body-2: var(--magenta-deep); --zc: var(--parrot); }
.silk__body { position: relative; padding: 20px 20px 22px; }
.silk__mango { position: absolute; top: 14px; width: 22px; height: 30px; color: rgba(243, 214, 138, .55); }
.silk__body::before, .silk__body::after { content: ""; }
.silk__mango { left: 16px; }
.silk--bride .silk__mango { left: auto; right: 16px; transform: scaleX(-1); }
.silk__side { font: 400 11px/1.4 var(--f-label); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--brass-hi); }
.silk__name { margin: 6px 0 4px; font: italic 500 clamp(30px, 8.4vw, 38px)/1.1 var(--f-body); color: #fffaf0; }
.silk__rel { font: italic 400 17px/1.4 var(--f-body); color: rgba(255, 240, 210, .8); }
.silk__parents { font: 400 16px/1.5 var(--f-sans); color: #fff4dc; text-wrap: balance; }
/* slide in from the sides */
.silk.reveal { translate: -70px 0; transition-duration: 1.2s; }
.silk--bride.reveal { translate: 70px 0; transition-delay: .15s; }
.silk.reveal.in { translate: 0 0; }
.families__knot { display: grid; place-items: center; margin: -6px auto; width: 46px; height: 46px; border-radius: 50%; background: var(--jasmine); box-shadow: 0 0 0 1px var(--line), 0 0 0 5px var(--jasmine), 0 0 0 6px var(--line); position: relative; z-index: 1; }
.families__knot svg { width: 28px; height: 28px; }
.families__knot.in svg { animation: spinIn 1.4s var(--ease) .4s both; }
@keyframes spinIn { from { rotate: -180deg; scale: .3; } }
@media (min-width: 700px) {
  .families { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
  .families__knot { margin: 0 -10px; }
  .silk { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
}

.kin { margin-top: 52px; }
.kin__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 16px; }
.kin ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.kin li { display: grid; }
.kin li span { font: italic 500 21px/1.2 var(--f-body); color: var(--ink); }
.kin li small { font: 400 10.5px/1.5 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-lo); }
.kin.in li { animation: rise .8s var(--ease) calc(.3s + var(--i) * .15s) both; }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

/* ---------- event: under a gopuram ---------- */
.sec--events { max-width: none; background:
    radial-gradient(70% 50% at 50% 40%, rgba(255, 200, 140, .12), transparent 70%),
    linear-gradient(180deg, var(--oxide), var(--oxide-deep));
  color: #fff1dc; padding-bottom: 96px; overflow: hidden; }
.sec--events::before {          /* the floor kolam again, faint */
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background: radial-gradient(circle, #fff 0 1.4px, transparent 2px) 0 0 / 22px 22px;
}
.sec--events .sec__label { color: var(--brass-hi); }
.sec--events .sec__title { color: #fff6e6; }
.events { position: relative; display: grid; gap: 64px; max-width: 460px; margin: 30px auto 0; }
.ev { position: relative; padding-top: 118px; }
.ev__gopuram { position: absolute; left: 50%; top: 0; z-index: 1; width: 108px; height: 134px; translate: -50% 0; color: var(--brass); filter: drop-shadow(0 6px 10px rgba(20, 5, 2, .5)); transition: translate 1.4s var(--ease) .3s; }
.ev.reveal:not(.in) .ev__gopuram { translate: -50% 60px; }
.ev__arch {
  position: relative; padding: 76px 22px 28px;
  border-radius: 48% 48% 6px 6px / 22% 22% 6px 6px;
  background: radial-gradient(100% 60% at 50% 20%, #fffdf6, var(--jasmine));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 7px var(--jasmine), inset 0 0 0 8px var(--brass), 0 30px 60px -24px rgba(10, 2, 0, .8);
}
.ev__bell { position: absolute; left: 50%; top: 136px; z-index: 2; translate: -50% 0; width: 30px; height: 50px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 0; }
.ev__bell svg { width: 100%; height: 100%; }
.ev__bell.ring { animation: bellSwing 1.4s ease-out; }
.ev__name { margin: 10px 0 0; font: italic 500 clamp(34px, 9vw, 42px)/1.1 var(--f-body); color: var(--magenta); }
.ev__cal { display: inline-grid; justify-items: center; margin: 16px auto 6px; min-width: 84px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -10px rgba(60, 20, 0, .5); background: #fffdf6; }
.ev__mon { width: 100%; padding: 4px 10px; background: var(--parrot); color: #fff4dc; font: 400 11px/1.4 var(--f-label); letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; }
.ev__day { font: 500 40px/1.1 var(--f-body); font-variant-numeric: lining-nums; color: var(--ink); }
.ev__wd { padding-bottom: 6px; font: 400 10px/1 var(--f-label); letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; color: var(--ink-soft); }
.ev__when { margin-top: 8px; font: 400 13px/1.5 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--parrot-deep); }
.ev__where { margin-top: 10px; font: 400 16px/1.5 var(--f-sans); color: var(--ink-soft); }
.ev__where strong { font: italic 500 22px/1.4 var(--f-body); color: var(--ink); }
.ev__note { margin: 14px auto 0; max-width: 24em; font-style: italic; color: var(--ink-soft); }
.ev__dress { margin-top: 12px; font: 400 15px/1.6 var(--f-sans); }
.ev__dress span { display: block; font: 400 11px/1.6 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lo); }
.ev__dress em { font-style: normal; }
.ev__dress em + em::before { content: " · "; }
.ev__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--brass); color: var(--ink); text-decoration: none;
  font: 500 13px/1 var(--f-sans); letter-spacing: .04em; background: rgba(255, 253, 246, .7);
  transition: background .3s, color .3s;
}
.btn:hover { background: #fff3d8; }
.btn--solid { background: var(--magenta); border-color: var(--magenta); color: #fff6ec; }
.btn--solid:hover { background: var(--magenta-deep); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hashtag { margin-top: 6px; font: italic 500 32px/1.2 var(--f-body); color: var(--magenta); }

/* ---------- closing: the kuthuvilakku ---------- */
.sec--close {
  max-width: none; overflow: hidden; color: #fbe9cf;
  padding-bottom: 72px;
  background: #160805;
}
.close__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 30% at 50% 36%, rgba(255, 170, 70, calc(.06 + var(--glow, 0) * .3)), transparent 70%),
    radial-gradient(3px 3px at 20% 30%, rgba(255, 200, 120, .5), transparent),
    radial-gradient(4px 4px at 78% 22%, rgba(255, 200, 120, .4), transparent),
    radial-gradient(3px 3px at 86% 60%, rgba(255, 200, 120, .35), transparent),
    radial-gradient(5px 5px at 12% 70%, rgba(255, 200, 120, .3), transparent),
    linear-gradient(180deg, #1d0a06, #2e1009 60%, #160805);
  transition: background .8s;
}
.close__bg .loop { opacity: 0; }
.close__bg video.loop.playing { opacity: .45; }
.close__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #160805, transparent 25%, transparent 75%, #160805); }
.sec--close > :not(.close__bg) { position: relative; z-index: 1; }
.sec--close .sec__label { color: var(--brass-hi); }
.sec--close .sec__title { color: #fff1dc; }
.kv { position: relative; width: min(74vw, 290px); margin: 30px auto 0; aspect-ratio: 240 / 420; }
.kv__art { display: block; width: 100%; height: 100%; overflow: visible; }
.kv__glow { fill: rgba(255, 170, 60, .4); filter: blur(24px); opacity: calc(var(--glow, 0) * 1); transition: opacity .8s; }
.wick {
  position: absolute; left: var(--x); top: var(--y); width: 44px; height: 54px; translate: -50% -100%;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
}
.wick::before {                  /* the cotton wick */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 9px; translate: -50% 0; border-radius: 2px;
  background: linear-gradient(180deg, #2a1a0c, #fff2d6 60%);
}
.wick::after {                   /* "tap me" ring while unlit */
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 26px; height: 26px; translate: -50% 50%; border-radius: 50%;
  border: 1px solid rgba(255, 220, 160, .7); animation: wickPulse 2s ease-out infinite;
}
.wick:nth-of-type(2)::after { animation-delay: .4s; } .wick:nth-of-type(3)::after { animation-delay: .8s; }
.wick:nth-of-type(4)::after { animation-delay: 1.2s; } .wick:nth-of-type(5)::after { animation-delay: 1.6s; }
@keyframes wickPulse { 0% { scale: .6; opacity: .9; } 100% { scale: 1.8; opacity: 0; } }
.wick i { width: 13px; height: 28px; bottom: 7px; opacity: 0; scale: .2; transition: opacity .4s, scale .5s var(--ease); }
.wick[aria-pressed="true"] i { opacity: 1; scale: 1; }
.wick[aria-pressed="true"]::after { display: none; }
.kv__hint { margin-top: 14px; font-style: italic; color: rgba(251, 233, 207, .75); }
.kv__done { margin-top: 14px; font: italic 500 26px/1.3 var(--f-body); color: var(--brass-hi); animation: rise 1s var(--ease) both; }
.close__line { margin: 26px auto 0; max-width: 24em; text-wrap: balance; font-size: 19px; color: rgba(251, 233, 207, .85); }
.up { display: inline-block; margin-top: 30px; font: 400 11px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-hi); text-underline-offset: 5px; }

/* =================================================================== FOOTER */

.foot { padding: 0 16px calc(90px + env(safe-area-inset-bottom)); text-align: center; background: var(--parrot-deep); color: #f4e3c4; --zc: var(--magenta); }
.foot .zari { margin: 0 -16px 44px; }
.foot__names { font: italic 500 clamp(32px, 8.4vw, 42px)/1.2 var(--f-body); color: #fff1d6; }
.foot__names span { font: 400 .55em var(--f-label); color: var(--brass-hi); font-style: normal; }
.foot__date { margin-top: 8px; font: 400 13px/1 var(--f-label); letter-spacing: .3em; color: var(--brass-hi); }
.foot__cal { margin-top: 22px; font: 400 15px/1.6 var(--f-sans); }
.foot__music { margin-top: 18px; font-size: 15px; font-style: italic; color: rgba(244, 227, 196, .65); }
.foot__credit { margin-top: 14px; font: 400 10px/1.7 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 227, 196, .65); }
.foot a { color: inherit; text-underline-offset: 3px; }

/* =================================================================== OG CARD (?og) */

html.og .ogcard {
  flex-direction: row; align-items: center; gap: 50px; padding: 0 56px 0 64px;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .1) 45%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--magenta), var(--magenta-deep));
  color: #fff4dc; --zc: var(--parrot);
}
.ogcard .zari { position: absolute; left: 0; right: 0; height: 40px; }
.ogcard .zari::before { height: 24px; background-size: 24px 24px, 100% 100%, 300% 100%, 100% 100%; }
.ogcard .zari::after { top: 24px; height: 16px; background-size: 32px 16px; }
.ogcard .zari--top { top: 0; }
.ogcard .zari--bottom { bottom: 0; }
.ogcard__floor {
  flex: none; display: grid; place-items: center; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 45%, #8a3220, #6e2414 65%, #4a150b);
  box-shadow: 0 0 0 6px #c9973e, 0 0 0 9px #7e5418, 0 0 0 16px rgba(243, 214, 138, .25), 0 30px 60px rgba(20, 0, 10, .5);
}
.ogcard__kolam { width: 316px; height: 316px; }
.ogcard__kolam svg { display: block; width: 100%; height: 100%; }
.ogcard .kolam__dot:nth-child(odd) { fill: #e0452c; }
.ogcard .kolam__dot:nth-child(even) { fill: #f2b51e; }
.ogcard__text { flex: 1; min-width: 0; text-align: center; }
.ogcard__gopuram { display: block; width: 64px; height: 80px; margin: 0 auto 8px; color: var(--brass-hi); }
.ogcard__lead { font: 400 20px/1.4 var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--brass-hi); }
.ogcard__names { margin: 6px 0 16px; font: italic 500 88px/1.02 var(--f-body); color: #fffaf0; text-wrap: balance; }
.ogcard__names span { font: 400 .5em var(--f-label); color: var(--brass-hi); font-style: normal; }
.ogcard__date { display: inline-block; padding: 12px 6px; border-top: 1px solid rgba(243, 214, 138, .6); border-bottom: 1px solid rgba(243, 214, 138, .6); font: 400 25px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; }
.ogcard__venue { margin-top: 14px; font: 400 26px/1.4 var(--f-sans); color: rgba(255, 244, 220, .9); }

/* =================================================================== MOTION */

@media (prefers-reduced-motion: reduce) {
  .strings i, .hero__card .zari::before { animation: none; }
  .silk.reveal, .silk--bride.reveal { translate: 0 0; }
}
