/* Kalyana Mandapam: pale temple sandstone, kumkum red, brass gold, jasmine white. Every picture is the painted art in media/. */
:root {
  --script: 'Great Vibes', 'Pinyon Script', cursive; --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif; --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Mulish', system-ui, sans-serif;
  --ink: #7a1f2b; --deep: #5a1220; --text: #3d2b20; --soft: #5e4630; --gold: #85570f; --line: #d4b27a; --cream: #fbf3e2; --page: #f3e7d2; --bless-color: #7a1f2b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; color: var(--text); font: 500 19px/1.5 var(--serif); background: var(--page) url("media/km-lattice.webp?v=1") center top / 140px; background-blend-mode: soft-light; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; height: 100svh; touch-action: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-wide { display: block; } .only-narrow { display: none; } }
.content { position: relative; overflow: clip; }
section { position: relative; }
.wrap { width: min(760px, 100% - 40px); margin: 0 auto; }
.h2 { font: 600 30px/1.2 var(--display); color: var(--ink); text-align: center; letter-spacing: .04em; }
@media (min-width: 900px) { .h2 { font-size: 42px; } }
/* the zari border of a Kanchipuram silk divides the sections */
.zari { height: 34px; background: url("media/km-border.webp?v=2") center / auto 100% repeat-x; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(70, 40, 20, .18)); }
@media (min-width: 900px) { .zari { height: 46px; } }

/* ---------- button: polished brass with a kumkum heart ---------- */
.btn-temple { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #8e2633, #6a1522); color: #fff8ea; font: 600 16px/1 var(--sans); letter-spacing: .03em; cursor: pointer; box-shadow: 0 0 0 2px #c9963d, 0 0 0 4px #7a1f2b, 0 8px 18px rgba(80, 30, 20, .28); transition: transform .25s, opacity .4s; }
.btn-temple::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(255, 226, 160, .55); border-radius: inherit; pointer-events: none; }
.btn-temple:active { transform: scale(.96); } .btn-temple:focus-visible { outline: 3px solid #c9963d; outline-offset: 5px; } .btn-temple.wide { width: 100%; }

/* ---------- stage: the courtyard, and in front of it the temple gate ---------- */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #3a2418; }
.hero, .hero-art, .gate, .gate-scene, .km-scene, .drift, .rays { position: absolute; inset: 0; }
.hero-art, .gate-scene { will-change: transform; } .hero-art { transform-origin: 50% 62%; }
.km-scene { overflow: hidden; } .km-box { position: absolute; }
.km-img, .km-live { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.km-live { opacity: 0; transition: opacity .6s; } .km-live.on { opacity: 1; }
.gate .km-scene { overflow: visible; }
.gate .km-img, .gate .km-scene .km-live { z-index: 2; pointer-events: none; }
/* while the living gate is drawn, the still one behind it would show through its edges */
.gate .km-box:has(> .km-live.on) > .km-img { visibility: hidden; }
/* warm light from inside the temple spills out as the doors part */
.spill { position: absolute; inset: -10% -30%; z-index: 0; opacity: 0; background: radial-gradient(closest-side, rgba(255, 226, 160, .95), rgba(255, 200, 110, .5) 45%, rgba(255, 190, 90, 0)); pointer-events: none; }
/* the temple elephants stand by the steps; on phones they walk in from the sides when the guest taps */
.ele { position: absolute; z-index: 3; width: 40.5%; aspect-ratio: 692 / 634; top: 74%; pointer-events: none; transition: transform 2.4s cubic-bezier(.2, .8, .3, 1), opacity 1.4s ease; }
.ele.l { left: -12%; } .ele.r { right: -12%; transform: scaleX(-1); }
/* on phones the gate card covers their feet at first; once it fades they step a little closer */
.gate.opening .ele.l { transform: translateX(10%); } .gate.opening .ele.r { transform: translateX(-10%) scaleX(-1); }
.ele img, .ele .km-live { position: absolute; inset: 0; width: 100%; height: 100%; }
.ele:has(.km-live.on) img { visibility: hidden; }
@media (min-width: 900px) { .ele { width: 25.6%; top: 59%; } .ele.l { left: .5%; transform: none; opacity: 1; } .ele.r { right: .5%; transform: scaleX(-1); opacity: 1; } }
.sky { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.kite { position: absolute; left: 0; top: 0; width: 76px; max-width: none; transform-origin: 50% 40%; will-change: transform; }
.is-off .sky { display: none; }
/* the doorway: two carved teak doors behind the stone, opening into the courtyard */
.doorway { position: absolute; z-index: 1; left: 29%; top: 31%; width: 42%; height: 49%; perspective: 1400px; }
.lintel { position: absolute; z-index: 3; left: 29%; top: 31%; width: 42%; height: 49%; pointer-events: none; }
@media (min-width: 900px) { .doorway, .lintel { left: 41.2%; top: 36%; width: 17.6%; height: 44.4%; } }
.door { position: absolute; top: 0; width: 50%; height: 100%; background: center / 100% 100% no-repeat; will-change: transform; }
.door.l { left: 0; transform-origin: 0 50%; background-image: url("media/km-door-l.webp?v=1"); }
.door.r { right: 0; transform-origin: 100% 50%; background-image: url("media/km-door-r.webp?v=1"); }
.door i { position: absolute; inset: 0; opacity: var(--shade, 0); background: linear-gradient(90deg, rgba(30, 14, 6, .1), rgba(30, 14, 6, .75)); }
.door.r i { background: linear-gradient(270deg, rgba(30, 14, 6, .1), rgba(30, 14, 6, .75)); }
.toran { position: absolute; left: -10%; width: 120%; max-width: none; top: -9%; transform-origin: 50% 0; animation: toranSway 6s ease-in-out infinite; }
.bell { position: absolute; top: -2%; width: 13%; transform-origin: 50% 0; animation: bellIdle 4.6s ease-in-out infinite; }
.bell.b1 { left: 13%; } .bell.b2 { right: 13%; animation-delay: -2.1s; }
.gate.ring .bell { animation: bellRing 2.6s cubic-bezier(.3, .1, .3, 1) both; } .gate.ring .bell.b2 { animation-delay: .18s; }
@keyframes bellIdle { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
@keyframes bellRing { 0% { rotate: 0deg; } 10% { rotate: 16deg; } 24% { rotate: -13deg; } 38% { rotate: 10deg; } 52% { rotate: -7deg; } 66% { rotate: 4deg; } 80% { rotate: -2deg; } 100% { rotate: 0deg; } }
@keyframes toranSway { 0%, 100% { rotate: -.4deg; translate: 0 0; } 50% { rotate: .4deg; translate: 0 2px; } }

.gate-card { position: absolute; z-index: 5; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(340px, 100% - 40px); padding: 14px 20px 18px; text-align: center; background: var(--cream) var(--stone) center / 300px; border-radius: 20px 20px 22px 22px; box-shadow: 0 0 0 2px #c9963d, 0 0 0 5px var(--cream), 0 0 0 6px #b0802e, 0 18px 40px rgba(40, 20, 10, .45); }
.gate-card::before { content: ''; position: absolute; left: 50%; top: -15px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe9a8, #c9963d 45%, #7a5014); box-shadow: 0 0 0 3px var(--cream), 0 2px 6px rgba(60, 30, 10, .3); }
.gate-card .sym { width: auto; height: 58px; margin: 4px auto 4px; } .gate-card .sym-rings { height: 44px; } .gate-card .sym-cross { height: 70px; }
.gate-card .ganesha.bless { display: block; width: 52px; aspect-ratio: 1; margin: 6px auto 4px; background: var(--bless-color); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.gate-card .om { font: 400 40px/1 'Tiro Devanagari Hindi', serif; color: var(--ink); margin: 6px 0 2px; }
.mantra { font: 400 34px/1.1 var(--script); color: var(--ink); overflow-wrap: anywhere; }
.intro { margin: 6px auto 14px; max-width: 290px; font: 500 17px/1.35 var(--serif); color: var(--text); }
@media (max-height: 700px) { .gate-card { padding: 10px 18px 14px; } .mantra { font-size: 29px; } .intro { margin: 4px auto 10px; font-size: 16px; } .gate-card .sym { height: 44px; } }
@media (min-width: 900px) { .gate-card { width: 420px; bottom: 30px; padding: 16px 28px 22px; } .mantra { font-size: 40px; } .intro { max-width: 350px; font-size: 18px; } }
@media (min-width: 900px) and (max-height: 820px) { .gate-card { bottom: 14px; padding: 10px 26px 14px; } .gate-card .sym { height: 44px; } .mantra { font-size: 34px; } .intro { margin: 2px auto 10px; } }

/* ---------- the courtyard ---------- */
/* the kolam lies on the washed stone floor and draws itself round once the doors open */
.kolam { position: absolute; z-index: 1; left: 50%; top: 92.6%; width: 44%; transform: translate(-50%, -50%) perspective(900px) rotateX(64deg); pointer-events: none; }
@media (min-width: 900px) { .kolam { top: 90%; width: 26%; } }
/* it begins at the centre circle and spreads outward, ring by ring, as if being drawn by hand */
.kolam img { width: 100%; opacity: .9; --rad: 0%; -webkit-mask: radial-gradient(circle closest-side, #000 calc(var(--rad) - 4%), transparent var(--rad)); mask: radial-gradient(circle closest-side, #000 calc(var(--rad) - 4%), transparent var(--rad)); }
@property --rad { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.kolam.draw img { animation: kolamDraw 3.6s cubic-bezier(.35, .1, .35, 1) .4s forwards; }
@keyframes kolamDraw { to { --rad: 106%; } }
.nosweep .kolam img { -webkit-mask: none; mask: none; opacity: 0; transition: opacity 2s; } .nosweep .kolam.draw img { opacity: .9; animation: none; }
/* sun beams through the morning mist */
.rays { z-index: 1; pointer-events: none; overflow: hidden; mix-blend-mode: normal; }
.rays i { position: absolute; top: -20%; width: 22%; height: 120%; background: linear-gradient(180deg, rgba(255, 236, 196, .34), rgba(255, 236, 196, 0) 75%); transform-origin: 50% 0; rotate: -24deg; filter: blur(14px); animation: rayBreath 9s ease-in-out infinite; }
.rays i:nth-child(1) { left: 58%; } .rays i:nth-child(2) { left: 70%; width: 12%; animation-delay: -3s; } .rays i:nth-child(3) { left: 82%; width: 16%; animation-delay: -6s; }
@keyframes rayBreath { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
/* a mango leaf toran hangs across the top of the screen once we are inside */
.hang-toran { position: absolute; z-index: 2; left: 0; right: 0; top: -6px; display: flex; justify-content: center; pointer-events: none; opacity: 0; transform: translateY(-30px); transition: opacity 1.4s ease .3s, transform 1.6s cubic-bezier(.2, .9, .3, 1.1) .3s; }
.hang-toran img { flex: none; width: calc(100vw + 150px); max-width: none; margin: 0 -40px; transform-origin: 50% 0; animation: toranSway 6s ease-in-out infinite; } .hang-toran img + img { display: none; animation-delay: -3s; }
/* the toran runs past both edges of the screen, so it never ends in mid-air; on wide screens it would have to be too tall, so the painting's own garlands do the work */
@media (min-width: 900px) { .hang-toran { display: none; } }
body.opened .hang-toran { opacity: 1; transform: none; }
.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; top: 17%; padding: 0 20px; text-align: center; opacity: 0; transform: translateY(26px); filter: blur(9px); transition: opacity 1.7s ease, transform 1.7s ease, filter 1.7s ease; }
body.opened .hero-copy { opacity: 1; transform: none; filter: none; }
.hero-names { display: flex; flex-direction: column; align-items: center; font: 400 calc(clamp(54px, 16vw, 86px) * var(--fs, 1))/1.04 var(--script); color: var(--deep); text-shadow: 0 1px 16px rgba(255, 240, 222, 1), 0 0 6px rgba(255, 244, 230, .95), 0 0 2px rgba(255, 244, 230, .95); white-space: nowrap; }
.hero-names .amp { font-size: .55em; line-height: 1.15; color: var(--deep); }
.hero-line { margin: 10px auto 0; max-width: 300px; font: italic 600 19px/1.35 var(--serif); color: #3a100e; text-shadow: 0 0 12px rgba(255, 240, 225, 1), 0 0 4px rgba(255, 240, 225, 1), 0 0 2px rgba(255, 240, 225, 1); }
@media (min-width: 900px) { .hero-copy { top: 10%; } .hero-names { flex-direction: row; justify-content: center; align-items: baseline; gap: .26em; width: max-content; margin: 0 auto; font-size: calc(clamp(76px, 7.4vw, 120px) * var(--fs, 1)); line-height: 1.1; } .hero-names .amp { font-size: .6em; } .hero-line { max-width: 640px; font-size: 25px; margin-top: 2px; } }
.drift { z-index: 2; pointer-events: none; overflow: hidden; }
.dp { position: absolute; top: -40px; width: 22px; opacity: 0; animation: driftDown linear infinite; } body.opened .dp { opacity: .95; }
@keyframes driftDown { 0% { transform: translate3d(0, -40px, 0) rotate(0deg) scale(var(--s)); } 50% { transform: translate3d(calc(var(--x) * -.6), 52vh, 0) rotate(200deg) scale(var(--s)); } 100% { transform: translate3d(var(--x), 108vh, 0) rotate(420deg) scale(var(--s)); } }
.is-off .drift, .is-off .rays { display: none; }
.petals { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -40px; width: 22px; height: 22px; background: center / contain no-repeat; animation: petalFall linear forwards; }
@keyframes petalFall { to { transform: translate3d(var(--x), 110vh, 0) rotate(var(--r)); } }

/* ---------- families: silk coming down from a brass rod ---------- */
.families { padding: 0 0 90px; background: url("media/km-lattice.webp?v=1") center top / 140px, linear-gradient(180deg, #4a2010, #2c1208); background-blend-mode: soft-light, normal; box-shadow: inset 0 30px 40px -20px rgba(20, 8, 2, .7), inset 0 -30px 40px -20px rgba(20, 8, 2, .7); } .families > .zari { margin-bottom: 50px; }
.families::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 30% at 50% 18%, rgba(255, 190, 100, .22), transparent), radial-gradient(ellipse 50% 30% at 50% 68%, rgba(255, 190, 100, .18), transparent); }
.families .wrap, .after-cere .wrap { display: grid; gap: 44px; justify-items: center; }
.silk { position: relative; width: min(340px, 100% - 30px); container-type: inline-size; }
.silk .rod { position: relative; z-index: 2; width: 116%; max-width: none; margin: 0 -8%;  }
.cloth { position: relative; margin-top: -9%; aspect-ratio: 664 / 1100; }
.silk.kasavu .cloth { margin-top: 0; aspect-ratio: 760 / 1056; }
.cloth-in { position: absolute; inset: 0; }
.cloth-img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the whole hanging, rod and cloth together, comes down onto its hook, swings a little and settles: never cut, never floating */
/* the cloth unrolls: it comes down from the rod with its rolled-up end visible, rolling down to the floor of the frame */
@property --u { syntax: '<number>'; inherits: true; initial-value: 0; }
.silk { --u: 0; transform-origin: 50% 0; }
.silk .rod { transition: transform .9s cubic-bezier(.2, .9, .3, 1.2), opacity .6s; transform: translateY(-14px); opacity: 0; }
.silk.open .rod { transform: none; opacity: 1; }
.cloth-in { clip-path: inset(0 0 calc((1 - var(--u)) * 100%) 0); }
.silk.open { animation: unroll 2.3s cubic-bezier(.45, .05, .25, 1) .55s forwards, hangSway 7s ease-in-out 3.2s infinite; }
@keyframes unroll { to { --u: 1; } }
@keyframes hangSway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(.35deg); } }
/* the roll: the cloth's own bottom border, rounded like a bundle of silk, with light along its top */
.roll { position: absolute; z-index: 2; left: -1.5%; right: -1.5%; top: calc(var(--u) * 94% - 3%); height: 9%; border-radius: 40px / 50%; background: var(--cloth) center 100% / 103% auto no-repeat;
  box-shadow: inset 0 6px 8px -4px rgba(255, 240, 200, .55), inset 0 -10px 12px -6px rgba(30, 10, 2, .7); opacity: calc(1 - max(0, (var(--u) - .9) * 10)); pointer-events: none; }
.silk.kasavu .roll { left: 5%; right: 5%; height: 7%; }
/* once open, one sweep of light runs across the gold zari */
.shine { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--cloth) center / 100% 100% no-repeat; mask: var(--cloth) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 205, .3) 47%, rgba(255, 255, 240, .5) 50%, rgba(255, 244, 205, .3) 53%, transparent 65%) -150% 0 / 250% 100% no-repeat; }
.silk.open .shine { animation: shine 2.2s ease-in-out 3s 1 both; }
@keyframes shine { to { background-position: 150% 0; } }
/* the words are written on the cloth itself: each line shows the moment the roll passes it, as in our other designs' scrolls */
.cloth-text { --k: 1; position: absolute; inset: 8% 17% 21% 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.silk h3 { font: 400 calc(15cqw * var(--k) * var(--fs, 1))/1.1 var(--script); color: #ffe6a8; white-space: nowrap; text-shadow: 0 2px 6px rgba(20, 0, 0, .45); }
.silk .rel { margin-top: calc(4cqw * var(--k)); font: 700 max(14px, calc(4.2cqw * var(--k)))/1.3 var(--sans); color: #f1c66a; letter-spacing: .03em; }
.silk .who { margin-top: 2px; font: 600 max(15px, calc(5.6cqw * var(--k)))/1.28 var(--serif); color: #fff6e4; overflow-wrap: anywhere; } .silk .and { color: #f1c66a; }
.silk.kasavu .cloth-text { inset: 11% 15% 13% 15%; }
.silk.kasavu h3 { font: 600 calc(7.6cqw * var(--k))/1.25 var(--display); color: var(--ink); white-space: normal; text-wrap: balance; text-shadow: none; letter-spacing: .03em; }
.silk.kasavu ul { list-style: none; margin: calc(4cqw * var(--k)) 0 0; padding: 0; }
.silk.kasavu li, .silk.kasavu .who { font: 600 max(18px, calc(7cqw * var(--k)))/1.42 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.silk.kasavu .who { margin-top: calc(4cqw * var(--k)); font-weight: 500; }
@media (min-width: 900px) { .silk { width: 430px; } .families .wrap, .after-cere .wrap { gap: 70px; } .families { padding-bottom: 110px; } }

/* ---------- the date: three brass lamps and their bowls of water ---------- */
.date { padding: 80px 0 100px; background: url("media/km-lattice.webp?v=1") center top / 140px, radial-gradient(ellipse 60% 50% at 50% 42%, #5a2c12, #2a1208 55%, #150803); background-blend-mode: soft-light, normal; box-shadow: inset 0 30px 40px -20px rgba(10, 4, 1, .8), inset 0 -30px 40px -20px rgba(10, 4, 1, .8); }
.date .after { color: #ffd98a; } .date .plaque .tab { color: #f1c66a; }
.date-center { position: relative; z-index: 2; width: min(640px, 100% - 16px); margin: 0 auto; text-align: center; }
.plaques { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding-bottom: 32px; }
.unit { position: relative; width: min(33%, 210px); display: flex; flex-direction: column; align-items: center; }
.lamp { position: relative; width: 52%; aspect-ratio: 251 / 700; margin-bottom: -14%; }
.lamp-img { width: 100%; }
.wick { position: absolute; top: 27%; width: 15%; aspect-ratio: 79 / 220; translate: -50% -100%; }
.wick.w1 { left: 12%; } .wick.w2 { left: 29%; } .wick.w3 { left: 71%; } .wick.w4 { left: 88%; }
.wick .fl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scaleY(0); transform-origin: 50% 96%; transition: transform .7s cubic-bezier(.2, 1.3, .4, 1); }
.wick .glow { position: absolute; left: 50%; top: 70%; width: 420%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 90, .55), rgba(255, 170, 60, .18) 55%, transparent); opacity: 0; transition: opacity 1s; }
.unit.lit .wick .fl { transform: none; } .unit.lit .wick .glow { opacity: 1; animation: glowBreath 2.4s ease-in-out infinite; }
/* the first flame always burns; the other three fade in and out over it, each wick at its own pace, so a flame never goes out */
.unit.lit .wick .f1 { opacity: 1; animation: flameLive 1.7s ease-in-out infinite; }
.unit.lit .wick .f2, .unit.lit .wick .f3, .unit.lit .wick .f4 { animation: flick 1.3s ease-in-out infinite; }
.unit.lit .wick .f3 { animation-duration: 1.1s; animation-delay: -.4s; } .unit.lit .wick .f4 { animation-duration: 1.5s; animation-delay: -.8s; }
.unit.lit .w2 .fl { animation-delay: -.3s; } .unit.lit .w3 .fl { animation-delay: -.6s; } .unit.lit .w4 .fl { animation-delay: -.9s; }
@keyframes flick { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }
@keyframes flameLive { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 30% { transform: scale(.96, 1.06) skewX(-2deg); } 65% { transform: scale(1.03, .95) skewX(2deg); } }
@keyframes glowBreath { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.plaque { position: relative; width: 100%; aspect-ratio: 560 / 329; display: grid; place-items: center; }
.urli { position: absolute; inset: 0; width: 100%; height: 100%; }
.plaque::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 30, 10, .3), transparent); }
.plaque .ring { position: absolute; left: 50%; top: 38%; width: 46%; aspect-ratio: 2.6; translate: -50% -50%; border-radius: 50%; border: 2px solid rgba(255, 240, 200, .9); opacity: 0; transform: scale(.2); }
.unit.show .ring { animation: ripple 1.4s ease-out forwards; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.5); } }
.plaque .v { position: absolute; left: 0; right: 0; top: 38%; translate: 0 -50%; z-index: 2; opacity: 0; transform: translateY(14px) scale(.9); filter: blur(5px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, 1.2, .3, 1), filter .8s ease; font: 600 clamp(20px, 6.2vw, 36px)/1 var(--display); color: #fff4d6; text-shadow: 0 1px 2px rgba(40, 8, 4, .95), 0 0 10px rgba(40, 8, 4, .85), 0 0 3px rgba(40, 8, 4, .9); }
.unit.show .v { opacity: 1; transform: none; filter: none; }
.plaque .tab { position: absolute; left: 0; right: 0; top: calc(100% + 4px); font: 700 15px/1.3 var(--sans); color: var(--gold); letter-spacing: .03em; }
/* scratch card (the couple's choice): the lamps are lit and the date waits under the gold */
/* (the lamps wait unlit: each one lights as its bowl is scratched) */
#date.gov-scratch .plaque .v { opacity: 1; transform: none; filter: none; transition: none; }
#date.gov-scratch .plaque .tab { z-index: 4; }
#date.gov-scratch .reveal-slot > #revealBtn { position: absolute; }
.reveal-slot { position: relative; min-height: 64px; margin-top: 26px; display: grid; place-items: center; } .reveal-slot > * { grid-area: 1 / 1; }
.btn-temple.used { opacity: 0; pointer-events: none; transform: scale(.94); }
.after { font: 400 clamp(34px, 9vw, 48px)/1.2 var(--script); color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity 1s, transform 1s; pointer-events: none; } .after.show { opacity: 1; transform: none; pointer-events: auto; }
.reveal-slot > #revealBtn { position: relative; z-index: 2; } .reveal-slot > .gov-scratch-hint { grid-area: 2 / 1; margin-top: 12px; }
.gov-scratch .reveal-slot { min-height: 80px; }
@media (min-width: 900px) { .date { padding: 110px 0 130px; } .date-center { width: 780px; } .plaques { gap: 26px; } .unit { width: 230px; } .plaque .tab { font-size: 17px; } }

/* ---------- photos: a temple corridor ---------- */
.gallery { padding: 20px 0 30px; }
.gal-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.wall { position: relative; margin-top: 14px; overflow: hidden; height: min(600px, 72svh); }
.wall-bg { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% + 1500px); background: url("media/km-wall.webp?v=1") 0 0 / auto 100% repeat-x; will-change: transform; }
.wall::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 18px 24px -14px rgba(40, 20, 8, .45), inset 0 -18px 24px -14px rgba(40, 20, 8, .45); }
.track { position: relative; height: 100%; overflow: hidden; padding-top: calc(min(600px, 72svh) * .2); }
.track-inner { display: flex; align-items: flex-start; gap: 30px; width: max-content; padding: 0 14vw; will-change: transform; }
.frame3d { --hang: 24px; position: relative; flex: none; width: 52vw; max-width: 230px; margin: var(--drop) 0 0; transform-origin: 50% calc(-1 * (var(--drop) + var(--hang))); }
.frame3d .swing { transform: rotate(var(--tilt)); transform-origin: 50% calc(-1 * (var(--drop) + var(--hang))); }
/* a brass chain runs up from each frame to the wall's own chain */
.cord { position: absolute; left: 50%; bottom: calc(100% - 6%); width: 4px; margin-left: -2px; height: calc(var(--drop) + var(--hang) + 30px); background: repeating-linear-gradient(180deg, #e2b75c 0 4px, #8a5a14 4px 6px, #f4d488 6px 9px, #8a5a14 9px 10px); border-radius: 2px; box-shadow: 0 1px 2px rgba(40, 20, 8, .5); }
.story .cord { bottom: calc(100% - 4px); }
.pf { position: relative; }
.pf-frame { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.pf-photo { position: absolute; z-index: 1; overflow: hidden; background: #efe2c9; } .pf-photo img { width: 100%; height: 100%; object-fit: cover; }
/* the whole photo is always shown, never zoomed or cut: a soft blurred copy of it fills the rest of the frame */
.pf-photo .fill { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(14px) saturate(1.1); opacity: .9; }
.pf-photo .whole { position: relative; object-fit: contain; }
.f-rect .pf-photo { left: 12%; top: 21.4%; width: 75.8%; height: 71%; } .f-oval .pf-photo { left: 16.3%; top: 18.5%; width: 66.8%; height: 70.6%; border-radius: 50%; }
.pf::after { content: ''; position: absolute; z-index: 0; left: 10%; right: 10%; bottom: -3%; height: 9%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(40, 20, 8, .35), rgba(40, 20, 8, .1) 60%, transparent); }
.ph { position: relative; height: 100%; } .ph span { position: absolute; left: 50%; bottom: 12%; translate: -50% 0; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: rgba(255, 250, 238, .94); color: var(--ink); font: 700 14px/1.2 var(--sans); }
.frame3d figcaption { margin-top: 6px; text-align: center; font: 400 28px/1.15 var(--script); color: #fff1d2; text-shadow: 0 2px 6px rgba(40, 18, 6, .8); overflow-wrap: anywhere; }
.story { width: 54vw; max-width: 236px; }
.story-card { position: relative; aspect-ratio: 760 / 1056; } .story-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.story blockquote { position: absolute; inset: 15% 17% 15% 17%; display: grid; place-items: center; text-align: center; font: italic 600 19px/1.38 var(--serif); color: var(--text); }
.pillar { flex: none; align-self: flex-start; height: min(600px, 72svh); width: calc(min(600px, 72svh) * .312); max-width: none; margin: calc(min(600px, 72svh) * -.2) -14px 0; position: relative; z-index: 3; }
.frame-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.frame-nav button { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 2px #c9963d, 0 4px 10px rgba(60, 30, 10, .2); } .frame-nav svg { width: 22px; height: 22px; } .frame-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gal-progress { width: 120px; height: 3px; border-radius: 3px; background: #e2cfaa; overflow: hidden; } .gal-progress i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; }
.gal-swipe .gal-stage { position: relative; height: auto; min-height: 0; padding: 50px 0 40px; } .gal-swipe .track { cursor: grab; user-select: none; -webkit-user-select: none; } .gal-swipe .track:active { cursor: grabbing; }
@media (min-width: 900px) { .wall { height: min(620px, 68vh); } .track { padding-top: calc(min(620px, 68vh) * .22); } .track-inner { gap: 60px; padding: 0 12vw; } .frame3d, .story { width: 270px; max-width: none; } .pillar { height: min(620px, 68vh); width: calc(min(620px, 68vh) * .312); margin: calc(min(620px, 68vh) * -.22) -20px 0; } .silk.kasavu { width: 380px; } }

/* ---------- ceremonies: a carved stone niche for each ---------- */
.ceremonies { padding: 0 16px 80px; } .ceremonies > .zari { margin: 0 -16px 40px; }
.cere-grid { display: grid; gap: 54px; width: min(400px, 100%); margin: 36px auto 0; }
.cere { position: relative; aspect-ratio: 751 / 1000; container-type: inline-size; text-align: center; }
.niche { position: absolute; inset: 0; width: 100%; height: 100%; }
.cere::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 30, 10, .28), transparent); }
.cere-bell { position: absolute; z-index: 2; left: 50%; top: -5%; width: 11%; translate: -50% 0; transform-origin: 50% 0; }
.cere.swung .cere-bell { animation: bellRing 2.6s cubic-bezier(.3, .1, .3, 1) .3s both, bellIdle 4.6s ease-in-out 3s infinite; }
.cere-in { position: absolute; inset: 22% 17% 21% 17%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.cere-art { flex: none; width: 100%; height: 40%; } .cere-art img { width: 100%; height: 100%; object-fit: contain; }
.cere h3 { margin-top: 3cqw; font: 600 calc(7.4cqw * var(--fs, 1))/1.15 var(--display); white-space: nowrap; color: var(--ink); overflow-wrap: anywhere; letter-spacing: .02em; }
.when { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; margin-top: 2cqw; font: 700 max(15px, 5cqw)/1.3 var(--serif); color: var(--text); } .when .t { color: var(--gold); }
.where { display: flex; flex-direction: column; align-items: center; gap: 2cqw; margin-top: 2.4cqw; padding-top: 2.4cqw; border-top: 1px solid rgba(133, 87, 15, .35); width: 100%; } .venue { font: 600 max(15px, 4.6cqw)/1.3 var(--serif); color: var(--text); overflow-wrap: anywhere; text-wrap: balance; }
/* the map link sits under the venue, as a small brass-edged button */
.pin { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; color: #fff8ea; background: linear-gradient(180deg, #8e2633, #6a1522); box-shadow: 0 0 0 2px #c9963d; font: 700 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; } .pin svg { width: 18px; height: 18px; } .pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 900px) { .cere-grid { width: min(1140px, 100%); grid-template-columns: repeat(6, 1fr); gap: 60px 44px; } .cere { grid-column: span 2; } .cere:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; } .cere:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; } .ceremonies { padding-bottom: 110px; } }

/* ---------- compliments, notes, links ---------- */
.after-cere { padding: 0 0 90px; } .after-cere > .zari { margin-bottom: 44px; }
.badges { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; margin-top: 50px; padding: 0 16px; }
.badge { display: grid; justify-items: center; gap: 8px; min-width: 92px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; font: 700 15px/1.3 var(--sans); }
.medal { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); box-shadow: 0 0 0 2px #c9963d, 0 0 0 5px var(--cream), 0 0 0 6px #b0802e, 0 6px 12px rgba(60, 30, 10, .18); } .medal svg { width: 26px; height: 26px; } .badge:focus-visible .medal { outline: 2px solid var(--ink); outline-offset: 9px; }

/* ---------- the evening: the temple tank ---------- */
.outro { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #0e1430; }
.outro-art { position: absolute; inset: 0; } .outro-copy { position: absolute; left: 0; right: 0; top: 47%; translate: 0 -50%; padding: 0 28px; text-align: center; }
.farewell { font: 600 23px/1.3 var(--serif); color: #fff1d6; text-shadow: 0 2px 14px rgba(5, 8, 30, .95), 0 0 4px rgba(5, 8, 30, .9); }
.couple-sm { margin-top: 8px; font: 400 calc(clamp(50px, 14vw, 70px) * var(--fs, 1))/1.1 var(--script); color: #ffd98a; text-shadow: 0 2px 18px rgba(5, 8, 30, .95), 0 0 30px rgba(255, 180, 80, .35); white-space: nowrap; }
.tag { margin-top: 8px; font: 700 17px/1.3 var(--sans); color: #fff1d6; text-shadow: 0 2px 10px rgba(5, 8, 30, .95); }
@media (min-width: 900px) { .outro-copy { top: 66%; } .farewell { font-size: 30px; } .couple-sm { font-size: calc(92px * var(--fs, 1)); } }
.outro::before, .outro::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; height: 40px; pointer-events: none; } .outro::before { top: -1px; background: linear-gradient(var(--page), rgba(243, 231, 210, 0)); } .outro::after { bottom: -1px; background: linear-gradient(rgba(243, 231, 210, 0), var(--page)); }

/* ---------- RSVP ---------- */
.rsvp { padding: 70px 16px 40px; }
.rsvp-card { width: min(600px, 100%); margin: 0 auto; padding: 34px 22px 30px; background: var(--cream); border-radius: 26px; box-shadow: 0 0 0 2px #c9963d, 0 0 0 6px var(--cream), 0 0 0 7px #b0802e, 0 24px 50px rgba(60, 30, 10, .14); }
.rsvp .sub { margin: 8px auto 22px; max-width: 400px; text-align: center; font-size: 19px; color: var(--text); }
.rsvp .two { display: grid; gap: 14px; } .field { display: block; } .field > span, .field-title, .count-q { display: block; margin-bottom: 6px; font: 700 15px/1.35 var(--sans); color: var(--ink); }
.rsvp input:not([type=radio]), .rsvp textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #cdb18a; border-radius: 14px; background: #fff; color: #33241c; font: 500 17px/1.4 var(--sans); } .rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.count-box { margin: 18px 0; padding: 16px; border-radius: 16px; background: #f6e8cf; text-align: center; } .stepper { display: inline-flex; align-items: center; gap: 18px; margin: 4px 0 6px; } .stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer; } .stepper output { min-width: 32px; font: 600 28px/1 var(--display); color: var(--ink); } .count-box small { display: block; font: 600 14px/1.4 var(--sans); color: var(--soft); }
.ev-list { display: grid; gap: 12px; margin-bottom: 18px; } .rsvp-ev { margin: 0; padding: 14px 16px 16px; border: 1px solid #e0c9a4; border-radius: 16px; background: #fff; min-width: 0; } .rsvp-ev legend { padding: 0; float: left; width: 100%; margin-bottom: 10px; font: 600 19px/1.25 var(--display); color: var(--ink); } .rsvp-ev legend small { display: block; font: 700 15px/1.4 var(--sans); color: var(--gold); }
.opts { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .opts label { position: relative; } .opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .opts span { display: grid; place-items: center; min-height: 46px; border-radius: 999px; border: 1px solid #cdb18a; font: 700 16px/1 var(--sans); color: var(--ink); background: #fff; } .opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; } .opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rsvp .hint { margin: 12px 0 0; text-align: center; font: 600 14px/1.45 var(--sans); color: var(--soft); } .rsvp form > .field { margin-bottom: 16px; }
.status { margin: 10px 0 0; text-align: center; font: 700 17px/1.4 var(--sans); } .status.err { color: #a3142c; } .status.ok { color: #2c6a3f; } .status.ok strong { display: block; font: 400 40px/1.15 var(--script); color: var(--ink); }
.rsvp-again { display: block; margin: 12px auto 0; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 15px/1 var(--sans); cursor: pointer; }
.cal-offer { margin-top: 14px; text-align: center; } .cal-note { margin: 10px 0 0; font: 600 14px/1.5 var(--sans); } .cal-note a { font-weight: 700; color: var(--ink); text-decoration: underline; }
@media (min-width: 700px) { .rsvp-card { padding: 44px 44px 40px; } .rsvp .two { grid-template-columns: 1fr 1fr; } }

/* ---------- music, footer, reveal ---------- */
.music-btn { position: fixed; z-index: 60; right: 14px; top: calc(14px + env(safe-area-inset-top)); width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 243, 226, .94); color: var(--ink); box-shadow: 0 0 0 2px #c9963d, 0 4px 14px rgba(60, 30, 10, .25); cursor: pointer; transition: opacity .5s; } .music-btn svg { width: 24px; height: 24px; fill: currentColor; } .music-btn .ic-on { display: none; } .music-btn.on .ic-on { display: block; } .music-btn.on .ic-off { display: none; } .music-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.music-btn.on .w1, .music-btn.on .w2 { animation: mwave 1.6s ease-in-out infinite; } .music-btn.on .w2 { animation-delay: .3s; } @keyframes mwave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
body.locked .music-btn { opacity: 0; pointer-events: none; }
.site-foot { position: relative; padding: 30px 16px 96px; text-align: center; color: var(--soft); font: 600 15px/1.5 var(--sans); } .site-foot a { color: var(--ink); } .site-foot .credit { display: inline-block; max-width: 100%; margin: 0 auto; } html body .site-foot .credit .cr-2 { font-size: 14px; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); } [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .silk { --u: 1; animation: none !important; } .silk .rod, .cloth-text > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; } .roll, .shine { display: none; } [data-reveal], .hero-copy, .cloth-text, .plaque .v, .wick .fl { transition: none !important; } .toran, .bell, .hang-toran img, .rays i, .silk.open .cloth, .unit.lit .wick .fl { animation: none !important; } }

/* a personal link: the guest's own name sits under a fine gold rule, so it never reads as part of "Shubha Vivaham" */
.gate-card .guest-to { width: 74%; margin: 8px auto 4px; padding-top: 9px; border-top: 1px solid rgba(176, 128, 46, .55); position: relative; }
.gate-card .guest-to::before { content: ''; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; rotate: 45deg; background: #c9963d; }
.gate-card .guest-to strong { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 5.8vw, 26px); line-height: 1.25; letter-spacing: .04em; color: var(--deep); }
@media (max-height: 700px) { .gate-card .guest-to strong { font-size: 19px; } }

/* the kolam is the centre of the courtyard floor: the "Scroll down" hint waits at the side instead of covering it */
.gov-scrollhint { left: auto; right: max(12px, env(safe-area-inset-right)); transform: translateY(12px); }
.gov-scrollhint.on { transform: none; }

/* the lamp shrine is decorated like a South Indian wedding entrance: a banana plant standing on each side, jasmine strings hanging from above */
.date { overflow: hidden; }
.shrine { position: absolute; inset: 0; pointer-events: none; }
.jstr { position: absolute; top: -2%; width: auto; max-width: none; transform-origin: 50% 0; animation: strSway 5.6s ease-in-out infinite; }
.j1 { left: 3%; height: 46%; } .j2 { left: 11%; height: 30%; animation-duration: 6.4s; animation-delay: -2s; } .j3 { right: 11%; height: 30%; animation-duration: 6s; animation-delay: -1s; } .j4 { right: 3%; height: 46%; animation-delay: -3.3s; }
.j2, .j3, .j5, .j6 { display: none; } .j1 { left: 0; height: 26%; } .j4 { right: 0; height: 26%; }
@media (min-width: 900px) { .j2, .j3 { display: block; } }
@keyframes strSway { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
.ban { position: absolute; bottom: 6%; width: 36%; max-width: 250px; transform-origin: 50% 100%; animation: banSway 7s ease-in-out infinite; opacity: .96; }
.ban.l { left: -15%; } .ban.r { right: -15%; scale: -1 1; animation-delay: -3.5s; }
@keyframes banSway { 0%, 100% { rotate: -.7deg; } 50% { rotate: .7deg; } }
.date .date-center { z-index: 2; }
@media (min-width: 900px) {
  .ban { width: 250px; bottom: 7%; } .ban.l { left: calc(50% - 650px); } .ban.r { right: calc(50% - 650px); }
  .j1 { left: calc(50% - 420px); height: 34%; } .j2 { left: calc(50% - 250px); height: 22%; } .j3 { right: calc(50% - 250px); height: 22%; } .j4 { right: calc(50% - 420px); height: 34%; }
  .j5, .j6 { display: block; height: 52%; } .j5 { left: calc(50% - 560px); animation-delay: -1.4s; } .j6 { right: calc(50% - 560px); animation-delay: -4s; }
}
@media (prefers-reduced-motion: reduce) { .jstr, .ban { animation: none; } }
.is-off .jstr, .is-off .ban { animation-play-state: paused; }

/* ---------- the lamp shrine: a painted altar, the three lamps standing on its carved shelf ---------- */
.date { padding: 50px 0 70px; background: #2e1006; }
.date .date-center { width: 100%; max-width: none; }
.altar { position: relative; width: 100%; aspect-ratio: 2 / 3; background: url("media/km-shrine.webp?v=1") center top / auto 100% no-repeat; }
/* the painting fades into the dark wood at its edges */
.altar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #2e1006 0, rgba(46, 16, 6, 0) 8%, rgba(46, 16, 6, 0) 86%, #2e1006 100%); }
/* the bowls stand on the shelf top (61% down the painting) */
.altar .plaques { position: absolute; left: 50%; bottom: 39%; translate: -50% 0; width: min(100%, 420px); padding: 0; gap: 0; z-index: 1; }
.altar .unit { width: 33.3%; }
.altar .plaque::before { bottom: -9%; height: 26%; left: 2%; right: 2%; background: radial-gradient(closest-side, rgba(20, 6, 0, .7), transparent); }
.altar .plaque .tab { top: calc(100% + 10px); color: #ffe3a0; text-shadow: 0 1px 3px rgba(20, 6, 0, .95), 0 0 8px rgba(20, 6, 0, .8); }
.date .reveal-slot { margin-top: -34%; position: relative; z-index: 2; }
/* on phones the painting is cropped to its middle, so our own banana plants and jasmine strings dress its sides */
.date .ban { bottom: auto; top: calc(50px + 150vw * .37); width: 30%; }
.date .ban.l { left: -10%; } .date .ban.r { right: -10%; }
@media (min-width: 900px) {
  .date { padding: 30px 0 80px; }
  .altar { aspect-ratio: 3 / 2; max-width: 1500px; margin: 0 auto; background-size: 100% 100%; }
  .altar .plaques { width: 760px; gap: 30px; bottom: 39%; }
  .altar .unit { width: 230px; }
  .date .reveal-slot { margin-top: -12%; }
  .date .shrine { display: none; }   /* the painting has its own plants, pots and jasmine strings */
}
.date .shrine { z-index: 1; } .date .jstr { display: none; }
.date .ban { top: calc(50px + 150vw * .61 - 30vw * 1.5636 + 6px); bottom: auto; }
.date .shrine { display: none !important; }
/* the scratch hint sits right under the shelf (where "Save the Date" appears after), and the countdown gets its own row below */
.date { overflow: visible; overflow-x: clip; }
.date .reveal-slot { margin-top: -38%; }
#date.gov-scratch .reveal-slot > .gov-scratch-hint { grid-area: 1 / 1; margin-top: 0; color: #ffe3a0; }
.date .reveal-slot > .gov-grow { grid-area: 2 / 1; width: 100%; margin-top: 14px; } .date .gov-countdown { --gc-ink: #5a1220 !important; }   /* deep maroon on the cream cells, never the pale gold of the bowl labels */
@media (min-width: 900px) { .date .reveal-slot { margin-top: -13%; } }

/* scratch card: the gold covers only the face of each bowl (the water inside the flowers), and the hint sits right under the bowls */
.altar .plaque { --foil-x: 50; --foil-y: 39; --foil-w: 76; --foil-h: 54; }
.altar .hint-spot { position: absolute; left: 0; right: 0; top: calc(100% + 48px); z-index: 3; display: flex; justify-content: center; pointer-events: none; }
.altar .hint-spot .gov-scratch-hint { color: #ffe3a0 !important; text-shadow: 0 1px 3px rgba(20, 6, 0, .95), 0 0 8px rgba(20, 6, 0, .8); }
@media (min-width: 900px) { .altar .hint-spot { top: calc(100% + 56px); } }
/* the tall lamps stand fully inside the date section, never in front of the families' silk above (a flame touching the silk
   reads as the silk catching fire): room for the lamp stands, plus a clear 24px gap */
@media (max-width: 899px) { .date { padding-top: calc(58vw + 30px); } }
@media (min-width: 900px) { .date { padding-top: calc(min(100vw, 1500px) * .265 + 24px); } }
