/* Temple Door Remastered */
:root {
  --night: #0b0504; --granite: #140a09; --maroon: #5a1414; --gold: #d9a441; --gold-hi: #f6d98a; --gold-dk: #8a5a12; --silk: #f8efdc;
  --bg: var(--granite); --ink: #f1e3c6; --muted: rgba(241, 227, 198, .7); --accent: var(--gold-hi); --accent-ink: #2a1206;
  --card: rgba(255, 236, 190, .04); --line: rgba(217, 164, 65, .32); --corner: var(--gold);
  --font-display: "Cinzel", Georgia, serif; --font-body: "Cormorant Garamond", Georgia, serif; --font-script: "Cormorant Garamond", serif;
  --font-label: "Cinzel", Georgia, serif; --font-ta: "Noto Serif Tamil", serif; --radius: 2px;
  --ease-lux: cubic-bezier(.65, 0, .2, 1);
  --foil: linear-gradient(110deg, #9a6a1c 0%, #f6d98a 16%, #fff4cf 22%, #d9a441 34%, #8a5a12 52%, #e9c26a 70%, #fff1c4 78%, #b07a22 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .85 0 0 0 0 .6 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --corners:
    linear-gradient(var(--corner), var(--corner)) top left / 26px 1.5px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top left / 1.5px 26px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top right / 26px 1.5px no-repeat,
    linear-gradient(var(--corner), var(--corner)) top right / 1.5px 26px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom left / 26px 1.5px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom left / 1.5px 26px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom right / 26px 1.5px no-repeat,
    linear-gradient(var(--corner), var(--corner)) bottom right / 1.5px 26px no-repeat;
}
body { font-size: 19px; background: var(--night); }
::selection { background: rgba(217, 164, 65, .35); }

.tr-foil, .tr-hero .name, .tr-granite .sec h2, .tr-closing .foot-names {
  background: var(--foil); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tr-shimmer 9s linear infinite;
}
@keyframes tr-shimmer { from { background-position: 0% 0; } to { background-position: 260% 0; } }

/* ======================= cover: dusk at the gopuram ======================= */
.tr-intro { background: var(--night); overflow: hidden; transition: opacity .8s ease 2.3s, visibility 0s linear 3.1s;
  --gh: min(64vh, 132vw, 700px); --gw: calc(var(--gh) * .7); --base: max(12vh, 74px); --gx: 50%; }
.tr-intro::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 60% 55% at 50% 55%, #fff6dd, #ffcf7a 40%, rgba(181, 86, 26, .6) 75%, transparent); transition: opacity 1s ease 1.6s; }
.tr-scene { position: absolute; inset: 0; transform-origin: 50% 58%; transition: transform 2.8s var(--ease-lux) .45s; will-change: transform; }
.tr-sky { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 38% at 50% 34%, rgba(255, 150, 80, .32), transparent 70%),
  linear-gradient(180deg, #0f0818 0%, #2b1124 26%, #6b2618 46%, #2a0e08 64%, var(--night) 100%); }
.tr-sky::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 9%, #fff8, transparent), radial-gradient(1px 1px at 78% 6%, #fff6, transparent), radial-gradient(1.5px 1.5px at 64% 14%, #fff9, transparent), radial-gradient(1px 1px at 30% 18%, #fff5, transparent), radial-gradient(1px 1px at 90% 20%, #fff4, transparent); }
.tr-gopuram { position: absolute; left: var(--gx); bottom: calc(var(--base) + var(--gh) * .86); width: calc(var(--gw) * 1.4); max-width: none; transform: translateX(-50%); filter: drop-shadow(0 0 30px rgba(255, 140, 60, .25)); }

.tr-wall { position: absolute; left: 0; right: 0; bottom: var(--base); height: calc(var(--gh) * .4);
  background: var(--noise), repeating-linear-gradient(0deg, transparent 0 calc(var(--gh) * .066 - 1px), rgba(0, 0, 0, .35) calc(var(--gh) * .066 - 1px) calc(var(--gh) * .066)), linear-gradient(180deg, #2a1610, #150a07);
  box-shadow: inset 0 3px 0 #3d2216, inset 0 4px 0 rgba(224, 168, 58, .22);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
/* The gopuram's stone base: the gateway is set into it, and it carries the tower down to the ground. */
.tr-base { position: absolute; left: var(--gx); bottom: var(--base); width: calc(var(--gw) * 1.26); height: calc(var(--gh) * .86 + 2px); transform: translateX(-50%);
  background: var(--noise),
    repeating-linear-gradient(0deg, transparent 0 calc(var(--gh) * .072 - 1px), rgba(0, 0, 0, .4) calc(var(--gh) * .072 - 1px) calc(var(--gh) * .072)),
    linear-gradient(90deg, #1a0d08, #3a2016 12%, #2c1810 50%, #3a2016 88%, #1a0d08);
  box-shadow: inset 0 2px 0 rgba(224, 168, 58, .35), 0 0 60px rgba(0, 0, 0, .5); }
.tr-base::before, .tr-base::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(224, 168, 58, .08), rgba(0, 0, 0, .35)); }
.tr-base::before { left: 2%; } .tr-base::after { right: 2%; }
.tr-gate { position: absolute; left: var(--gx); bottom: var(--base); width: var(--gw); height: var(--gh); transform: translateX(-50%); padding: 16px;
  border-radius: 50% 50% 4px 4px / 30% 30% 4px 4px;
  background: var(--noise), linear-gradient(90deg, #22110a, #4a2a1c 18%, #382015 50%, #4a2a1c 82%, #22110a);
  box-shadow: inset 0 0 0 3px #150a06, inset 0 0 0 5px rgba(224, 168, 58, .55), inset 0 0 0 11px #2b160e, inset 0 0 0 12px rgba(224, 168, 58, .3), 0 50px 90px rgba(0, 0, 0, .75); }
.tr-doorway { position: absolute; inset: 16px; border-radius: 50% 50% 2px 2px / 29% 29% 2px 2px; overflow: hidden; perspective: 1500px; background: #070302;
  box-shadow: inset 0 0 0 2px rgba(224, 168, 58, .4); }
.tr-doorway::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 3;
  background: linear-gradient(transparent, rgba(255, 216, 140, .9) 30%, #fff1c9 60%, rgba(255, 216, 140, .9) 80%, transparent); filter: blur(1.5px); animation: tr-seam 2.6s ease-in-out infinite; transition: opacity .4s; }
@keyframes tr-seam { 50% { opacity: .45; } }
.tr-sanctum { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 62%, #fff4d6, #ffc86e 26%, #b5561a 56%, #2a0d05 88%); filter: brightness(.6); transition: filter 1.8s ease .7s; }
.tr-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 236, 190, .32) 0 3.5deg, transparent 3.5deg 13deg); mix-blend-mode: screen; animation: tr-spin 40s linear infinite; }
.tr-deity-glow { position: absolute; left: 50%; top: 62%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fffbe8, rgba(255, 220, 150, .2) 60%, transparent 70%); animation: tr-breathe 3s ease-in-out infinite; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
@keyframes tr-breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .8; } }
.tr-door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transform-style: preserve-3d; transition: transform 2.3s var(--ease-lux) .5s, filter 2.3s ease .5s; box-shadow: inset 0 0 70px rgba(0, 0, 0, .55); }
.tr-door svg { width: 100%; height: 100%; display: block; max-width: none; }
.tr-door-l { left: 0; transform-origin: left center; }
.tr-door-r { right: 0; transform-origin: right center; }
.tr-door-r svg { transform: scaleX(-1); }
.tr-thoranam { position: absolute; left: 6%; right: 6%; top: 26%; width: 88%; height: calc(var(--gh) * .085); max-width: none; z-index: 4; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); }
.tr-bell { position: absolute; top: 3%; z-index: 5; width: clamp(20px, calc(var(--gw) * .075), 34px); margin-left: calc(clamp(20px, calc(var(--gw) * .075), 34px) / -2); height: auto; max-width: none; transform-origin: 50% 0; transform: scaleY(var(--len, 1)); animation: tr-swing var(--sw, 4s) ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .6)); }
@keyframes tr-swing { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes tr-ring { 0% { rotate: 0deg; } 12% { rotate: 22deg; } 28% { rotate: -18deg; } 44% { rotate: 12deg; } 60% { rotate: -7deg; } 78% { rotate: 3deg; } 100% { rotate: 0deg; } }
.tr-floor { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--base) + 2px);
  background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(255, 170, 80, .22), transparent 70%), linear-gradient(180deg, #24120b, #0b0504); box-shadow: inset 0 1px 0 rgba(224, 168, 58, .25); }
.tr-floor::after { content: ""; position: absolute; left: var(--gx); top: 0; width: var(--gw); height: 100%; transform: translateX(-50%); opacity: 0; transition: opacity 1.4s ease 1s;
  background: radial-gradient(ellipse 50% 90% at 50% 0%, rgba(255, 214, 140, .7), transparent 70%); }
.tr-lamp { position: absolute; bottom: calc(var(--base) - 8px); width: clamp(54px, 12vw, 104px); z-index: 6; max-width: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); }
.tr-lamp { width: clamp(50px, calc(var(--gw) * .22), 104px); }
.tr-lamp-l { left: max(1vw, calc(var(--gx) - var(--gw) / 2 - clamp(46px, calc(var(--gw) * .3), 130px))); }
.tr-lamp-r { left: min(calc(99vw - clamp(50px, calc(var(--gw) * .22), 104px)), calc(var(--gx) + var(--gw) / 2 + clamp(46px, calc(var(--gw) * .3), 130px) - clamp(50px, calc(var(--gw) * .22), 104px))); }
.tr-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: tr-flicker 1.5s ease-in-out infinite; }
.tr-flame.f2 { animation-duration: 1.9s; animation-delay: -.6s; } .tr-flame.f3 { animation-delay: -1.1s; }
.tr-halo { transform-box: fill-box; transform-origin: center; animation: tr-halo 3.2s ease-in-out infinite; }
@keyframes tr-flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.93, 1.09) skewX(2deg); } 60% { transform: scale(1.05, .95) skewX(-2deg); } }
@keyframes tr-halo { 50% { opacity: .7; transform: scale(1.1); } }
.tr-pillar { display: none; position: absolute; bottom: var(--base); width: clamp(64px, 5.4vw, 110px); height: calc(var(--gh) * 1.08); z-index: 3;
  background: var(--noise), repeating-linear-gradient(90deg, #1c0e09 0 6px, #2c170f 6px 9px, #1a0c08 9px 14px), linear-gradient(90deg, #120806, #3a2016 45%, #120806);
  box-shadow: inset 2px 0 0 rgba(224, 168, 58, .22), inset -2px 0 0 rgba(0, 0, 0, .5), 0 30px 60px rgba(0, 0, 0, .6); }
.tr-pillar::before, .tr-pillar::after { content: ""; position: absolute; left: -16%; right: -16%; height: 9%; background: linear-gradient(180deg, #3a2016, #1a0c08); box-shadow: inset 0 2px 0 rgba(224, 168, 58, .35), 0 -6px 0 -2px #2a150d, 0 6px 0 -2px #2a150d; }
.tr-pillar::before { top: 0; } .tr-pillar::after { bottom: 0; }
.tr-pillar-l { left: calc(var(--gx) - var(--gw) / 2 - clamp(150px, 16vw, 330px)); }
.tr-pillar-r { left: calc(var(--gx) + var(--gw) / 2 + clamp(150px, 16vw, 330px) - clamp(64px, 5.4vw, 110px)); }
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) { .tr-pillar { display: block; } }
.tr-motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }

.tr-cover { position: absolute; inset: 0; z-index: 8; pointer-events: none; transition: opacity .6s ease; }
.tr-cover > * { pointer-events: auto; }
/* Portrait: the title sits on the dusk sky above the gateway; the doors stay fully visible. */
.tr-cover::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 48%; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 3, 5, .88), rgba(8, 3, 5, .6) 55%, transparent); }
.tr-title { position: absolute; top: max(64px, 7vh); left: 6vw; right: 6vw; text-align: center; transition: transform .9s var(--ease-lux); }
.tr-cta { position: absolute; left: 0; right: 0; bottom: calc(var(--base) - 36px); display: flex; flex-direction: column; align-items: center; transition: transform .9s var(--ease-lux); }
.tr-kicker { font-family: var(--font-label); font-size: 11.5px; letter-spacing: .48em; text-transform: uppercase; color: var(--gold); }
.tr-kicker [lang="ta"] { font-family: var(--font-ta); letter-spacing: .06em; font-size: 14px; }
.tr-cover-names { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin: 10px 0 8px; }
.tr-cn { width: 100%; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 11vw, 72px); line-height: 1.06; letter-spacing: .03em;
  background: var(--foil); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tr-shimmer 9s linear infinite; filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .55)); }
.tr-cn [lang="ta"] { font-family: var(--font-ta); font-size: .62em; line-height: 1.5; }
.tr-amp { font-family: var(--font-body); font-style: italic; font-size: clamp(20px, 4.5vw, 32px); line-height: 1.1; color: var(--gold); }
.tr-cover-date { font-style: italic; color: #ecd8ae; font-size: clamp(16px, 2.2vw, 24px); letter-spacing: .04em; }
.tr-bell-btn { position: relative; margin-top: 18px; width: 72px; height: 72px; flex: none; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: #3a1f05;
  background: radial-gradient(circle at 35% 30%, #fff4c9, #e9c26a 35%, #b07a22 70%, #6b4710); box-shadow: 0 0 0 1px rgba(255, 236, 190, .7) inset, 0 0 0 6px rgba(217, 164, 65, .18), 0 0 40px rgba(255, 190, 90, .45), 0 18px 30px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ease-lux), box-shadow .3s; }
.tr-bell-btn svg { width: 34px; height: 34px; transform-origin: 50% 15%; animation: tr-nudge 3.4s ease-in-out infinite; }
.tr-bell-btn:hover { transform: scale(1.06); }
@keyframes tr-nudge { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: 14deg; } 84% { rotate: -10deg; } 92% { rotate: 5deg; } }
.tr-bell-ring { position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(246, 217, 138, .7); animation: tr-pulse 2.4s ease-out infinite; }
@keyframes tr-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.tr-hint { margin-top: 10px; font-style: italic; font-size: 16px; color: #d8c39a; }
.tr-lang { position: fixed; z-index: 10; top: max(14px, env(safe-area-inset-top)); right: 14px; background: rgba(10, 4, 2, .5); color: var(--gold-hi); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 14px; backdrop-filter: blur(6px); }

html.intro-opening .tr-cover { opacity: 0; pointer-events: none; }
html.intro-opening .tr-title { transform: translateY(-16px); }
html.intro-opening .tr-cta { transform: translateY(16px); }
html.intro-opening .tr-bell { animation: tr-ring 1.6s ease-out; }
html.intro-opening .tr-door-l { transform: rotateY(-112deg); filter: brightness(.55); }
html.intro-opening .tr-door-r { transform: rotateY(112deg); filter: brightness(.55); }
html.intro-opening .tr-doorway::after { opacity: 0; }
html.intro-opening .tr-sanctum { filter: brightness(1.25); }
html.intro-opening .tr-floor::after { opacity: 1; }
html.intro-opening .tr-scene { transform: scale(1.55) translateY(3%); }
html.intro-opening .tr-intro::after { opacity: .95; }
html.intro-opening .tr-intro { opacity: 0; visibility: hidden; }

/* ======================= hero ======================= */
.tr-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, #4f1812 0%, #250a0a 52%, #0e0506 100%); }
.tr-hero-rays { position: absolute; left: 50%; top: 40%; width: 170vmax; aspect-ratio: 1; margin: -85vmax 0 0 -85vmax; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(217, 164, 65, .085) 0 2.5deg, transparent 2.5deg 11deg);
  -webkit-mask: radial-gradient(circle, #000 0 22%, transparent 55%); mask: radial-gradient(circle, #000 0 22%, transparent 55%); animation: tr-spin 160s linear infinite; }
.tr-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 38%), rgba(255, 196, 110, .13), transparent 62%); transition: background .2s; }
.tr-hero-gopuram { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; display: flex; justify-content: center; opacity: .42; will-change: transform; -webkit-mask: linear-gradient(transparent 35%, #000 85%); mask: linear-gradient(transparent 35%, #000 85%); }
.tr-hg { width: min(112vw, 580px, 64vh); max-width: none; }
.tr-hero-body { text-align: center; padding: clamp(56px, 9vh, 96px) var(--gutter) clamp(70px, 11vh, 120px); max-width: 900px; }
.tr-eyebrow { font-family: var(--font-label); font-size: 12px; letter-spacing: .44em; text-transform: uppercase; color: var(--gold); }
.tr-eyebrow [lang="ta"] { font-family: var(--font-ta); letter-spacing: .04em; font-size: 15px; text-transform: none; }
.tr-divider { width: 220px; margin: clamp(10px, 2vh, 18px) auto; color: var(--gold); }
.tr-lead { font-style: italic; color: rgba(241, 227, 198, .78); font-size: clamp(18px, 2.4vw, 23px); max-width: 560px; margin: 0 auto clamp(18px, 4vh, 38px); }
.tr-hero .couple { gap: 6px; }
.tr-hero .name { font-weight: 500; font-size: clamp(44px, min(12.5vw, 10.5vh), 124px); line-height: 1; letter-spacing: .04em; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5)); }
.tr-hero .name [lang="ta"] { font-family: var(--font-ta); font-weight: 600; font-size: .5em; line-height: 1.7; letter-spacing: 0; display: inline-block; }
.tr-hero .parents { font-size: 18px; color: rgba(236, 216, 174, .85); margin-top: 10px; }
.tr-hero .weds { display: flex; align-items: center; gap: 18px; font-style: italic; font-size: clamp(22px, 3.4vh, 30px); color: var(--gold); margin: clamp(6px, 1.6vh, 18px) 0; }
.tr-hero .weds::before, .tr-hero .weds::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.tr-hero .weds::after { transform: scaleX(-1); }
.tr-hero .weds [lang="ta"] { font-style: normal; font-size: 18px; }
.tr-cartouche { display: inline-grid; gap: 6px; margin-top: clamp(22px, 4.5vh, 44px); padding: 20px 36px; border: 1px solid rgba(217, 164, 65, .55); outline: 1px solid rgba(217, 164, 65, .35); outline-offset: 6px;
  background: var(--corners), rgba(10, 4, 3, .35); --corner: var(--gold-hi); backdrop-filter: blur(4px); }
.tr-cart-label { font-family: var(--font-label); font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.tr-cart-label [lang="ta"] { font-family: var(--font-ta); letter-spacing: .05em; font-size: 13px; }
.tr-cart-date { font-family: var(--font-label); font-size: clamp(17px, 3.4vw, 22px); letter-spacing: .2em; text-transform: uppercase; color: #fff1c9; }
.tr-cart-date [lang="ta"] { font-family: var(--font-ta); letter-spacing: .02em; text-transform: none; }
.tr-cart-venue { font-style: italic; color: rgba(236, 216, 174, .85); }
.tr-scroll { display: block; width: 1px; height: 56px; margin: clamp(22px, 4vh, 46px) auto 0; background: linear-gradient(transparent, rgba(217, 164, 65, .6)); position: relative; }
.tr-scroll span { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold); animation: tr-drop 2.2s var(--ease-lux) infinite; }
@keyframes tr-drop { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(52px); opacity: 0; } }

/* ======================= bands & frieze ======================= */
.tr-frieze { height: 34px; }
.tr-frieze svg { width: 100%; height: 100%; display: block; max-width: none; }
.tr-frieze-dark { background: #0f0706; }
.tr-frieze-light { background: #efe2c4; }
.tr-band { position: relative; }
.tr-granite { background: var(--noise), radial-gradient(ellipse 80% 70% at 50% 0%, #2a1210, var(--granite) 70%); color: var(--ink); }
.tr-silk { --ink: #2a1208; --muted: #6e5440; --accent: #8a5a12; --accent-ink: #fff8e8; --card: #fffaf0; --line: rgba(138, 90, 18, .28); --corner: #b07a22;
  color: var(--ink); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M45 70C37 62 37 48 45 40C53 48 53 62 45 70Z' fill='none' stroke='%23b07a22' stroke-width='.8' opacity='.18'/%3E%3Ccircle cx='0' cy='0' r='1.6' fill='%23b07a22' opacity='.25'/%3E%3Ccircle cx='90' cy='90' r='1.6' fill='%23b07a22' opacity='.25'/%3E%3C/svg%3E"), linear-gradient(180deg, #faf3e3, #f3e6c8); }
.tr-sanctum-band { background: radial-gradient(ellipse 60% 70% at 50% 45%, #4a1611, #1a0a09 70%); overflow: hidden; }
.tr-sanctum-band::before { content: ""; position: absolute; left: 50%; top: 45%; width: 160vmax; aspect-ratio: 1; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(rgba(217, 164, 65, .07) 0 2.5deg, transparent 2.5deg 11deg); -webkit-mask: radial-gradient(circle, #000, transparent 50%); mask: radial-gradient(circle, #000, transparent 50%); animation: tr-spin 200s linear infinite; }
.tr-sanctum-band > * { position: relative; }

.sec-head::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%23d9a441' stroke-width='1.3'%3E%3Cpath d='M17 3c-6 7-6 17 0 25 6-8 6-18 0-25z'/%3E%3Cpath d='M17 28c-8-1-13-6-15-14 7 0 12 5 15 14zM17 28c8-1 13-6 15-14-7 0-12 5-15 14z'/%3E%3Cpath d='M6 31h22'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.tr-silk .sec-head::before { filter: brightness(.6) saturate(1.3); }
.sec h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; font-size: clamp(28px, 5.4vw, 46px); }
.sec h2 [lang="ta"] { font-family: var(--font-ta); font-weight: 600; letter-spacing: 0; font-size: .72em; }
.tr-silk .sec h2 { color: var(--maroon); }
.eyebrow { font-family: var(--font-body); font-style: italic; font-size: 19px; letter-spacing: .02em; text-transform: none; color: var(--accent); font-weight: 500; }
.eyebrow[lang="ta"], .eyebrow [lang="ta"] { font-style: normal; font-size: 16px; }
h2.eyebrow { font-family: var(--font-display); font-style: normal; font-size: clamp(26px, 5vw, 40px); letter-spacing: .06em; }
.tr-silk h2.eyebrow { color: var(--maroon); }
.sub { font-style: italic; }

/* ======================= premium surfaces ======================= */
.event, .venue, .note, .rsvp-form, .info-card, .faq-item, .muhurtham, .details, .upi-qr + .upi-hint {
  border: 1px solid var(--line); border-radius: 2px; background: var(--corners), var(--card); }
.note, .venue { padding: clamp(34px, 6vw, 56px) clamp(20px, 5vw, 48px); outline: 1px solid var(--line); outline-offset: -9px; }
.tr-granite .note, .tr-granite .venue { background: var(--corners), linear-gradient(180deg, rgba(255, 236, 190, .06), rgba(255, 236, 190, .02)); }
.note blockquote { font-size: clamp(24px, 3.8vw, 32px); }
.tr-silk .note blockquote { color: var(--maroon); }
.signature { font-family: var(--font-body); font-style: italic; font-weight: 500; font-size: clamp(34px, 6vw, 48px); color: var(--accent); }
.venue h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: .04em; }
.tr-silk .venue h3 { color: var(--maroon); }
.map { border-radius: 2px; border: 1px solid var(--line); filter: sepia(.25) saturate(.9); }
.upi-hint { background: none !important; border: 0 !important; }

/* scratch: a brass plate */
.scratch { --foil-1: #8a5a12; --foil-2: #f6d98a; --foil-3: #b07a22; --foil-label: "Rub the brass plate"; --burst: #f6d98a, #d9a441, #e2571c, #fff4cf;
  border-radius: 2px; border: 1px solid var(--line); background: var(--corners), var(--card); --corner: var(--gold); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7); }
.scratch { width: min(100%, 520px); }
.tr-silk .scratch { background: var(--corners), #fffaf0; color: var(--ink); }
.dcell b { font-family: var(--font-display); font-weight: 500; }
.tr-silk .dcell b { color: var(--maroon); }
.tr-granite .dcell b { color: var(--gold-hi); }

/* events: a timeline of medallions */
.events { position: relative; gap: 26px; }
.events::before { content: ""; position: absolute; left: 62px; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(transparent, var(--accent), transparent); opacity: .55; }
.event { grid-template-columns: 88px 1fr; padding: 22px 22px 22px 18px; align-items: center; }
.event-date { position: relative; z-index: 1; width: 88px; height: 88px; margin-left: 0; border-radius: 50%; display: grid; place-content: center; padding: 0;
  background: radial-gradient(circle, var(--date-bg, #1d0c08) 60%, transparent 61%), repeating-conic-gradient(#f6d98a 0 4deg, #9a6a1c 4deg 8deg);
  box-shadow: 0 0 0 1px rgba(217, 164, 65, .5), 0 10px 20px -8px rgba(0, 0, 0, .6); }
.tr-silk .event-date { --date-bg: #fffaf0; }
.event-date b { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--accent); line-height: 1; }
.tr-granite .event-date b { color: var(--gold-hi); }
.event-date span { font-size: 10.5px; margin-top: 2px; letter-spacing: .2em; color: var(--muted); }
.event-date small { display: none; }
.event h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: .03em; font-size: clamp(21px, 4vw, 27px); }
.tr-silk .event h3 { color: var(--maroon); }
.event.is-main { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 164, 65, .12), 0 24px 50px -30px rgba(0, 0, 0, .55); }
.event.is-main .event-date { box-shadow: 0 0 0 1px var(--gold-hi), 0 0 24px rgba(246, 217, 138, .4); }

/* countdown: struck brass coins */
.cd-grid { gap: clamp(8px, 3vw, 24px); }
.cd-cell { aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; padding: 0;
  background: radial-gradient(circle, #1d0c08 57%, transparent 58%), repeating-conic-gradient(#f6d98a 0 3deg, #a8701c 3deg 6deg);
  box-shadow: 0 0 0 1px rgba(246, 217, 138, .6), 0 0 0 6px rgba(217, 164, 65, .08), 0 16px 34px rgba(0, 0, 0, .55), inset 0 0 18px rgba(0, 0, 0, .6); }
.cd-cell b { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 7.4vw, 56px); color: var(--gold-hi); text-shadow: 0 0 18px rgba(246, 217, 138, .35); }
.cd-cell small { font-size: 9.5px; letter-spacing: .24em; margin-top: 4px; color: #d8c39a; }
.tr-tick { animation: tr-tick .5s var(--ease-lux); }
@keyframes tr-tick { from { transform: translateY(-28%) scale(.92); opacity: .15; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.cd-after h2, .cd-during h2 { font-family: var(--font-display); }

/* the rest */
.muhurtham { gap: 0; }
.mh-item { background: transparent; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.mh-item dd { font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; }
.ph-open { padding: 6px; background: linear-gradient(135deg, #f6d98a, #8a5a12 45%, #e9c26a 70%, #9a6a1c); border-radius: 2px; }
.ph-open img { border-radius: 1px; }
.names { font-family: var(--font-body); font-size: clamp(19px, 2.6vw, 23px); }
.btn { border-radius: 999px; letter-spacing: .2em; }
.tr-granite .btn:not(.btn-wa):not(.btn-ghost) { background: linear-gradient(180deg, #f6d98a, #c98d26); color: #2a1206; border: 0; box-shadow: 0 0 0 1px rgba(255, 244, 207, .6) inset, 0 12px 26px -12px rgba(217, 164, 65, .7); }
.tr-silk .btn:not(.btn-wa):not(.btn-ghost) { background: var(--maroon); border-color: var(--maroon); color: #fbe9c2; }
.pill-radio > span, .check-pill > span { border-radius: 2px; }
.rsvp-form input:not([type=radio]):not([type=checkbox]), .rsvp-form textarea { border-radius: 2px; }

/* closing */
.tr-closing { overflow: hidden; }
.tr-foot-gopuram { display: flex; justify-content: center; opacity: .35; margin-top: 40px; }
.tr-fg { width: min(70vw, 420px); max-width: none; }
.tr-closing .foot { padding-top: 26px; }
.tr-closing .foot-names { font-family: var(--font-display); font-weight: 500; letter-spacing: .05em; font-size: clamp(32px, 7vw, 54px); }
.tr-closing .foot-names [lang="ta"] { font-family: var(--font-ta); }

/* floating controls in brass */
.fab-btn { background: rgba(14, 6, 5, .72); color: var(--gold-hi); border-color: rgba(217, 164, 65, .45); }

@media (max-width: 560px) {
  .events::before { left: 48px; }
  .event { grid-template-columns: 68px 1fr; gap: 14px; padding: 18px 16px 18px 14px; }
  .event-date { width: 68px; height: 68px; }
  .event-date b { font-size: 24px; }
  .tr-cartouche { padding: 16px 20px; }
  .cd-cell small { font-size: 8px; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-foil, .tr-hero .name, .tr-granite .sec h2, .tr-closing .foot-names { animation: none; }
  .tr-scene { transition-duration: .01ms; }
}


@media (orientation: portrait) {
  .tr-intro { --gh: min(50vh, 118vw, 660px); }
  .tr-gopuram { opacity: .75; -webkit-mask: linear-gradient(transparent, #000 45%); mask: linear-gradient(transparent, #000 45%); }
  .tr-pillar { display: none !important; }
}
/* Landscape and desktop: words on the left, the whole gateway on the right. */
@media (orientation: landscape) {
  .tr-intro { --gx: 70%; --gh: min(76vh, 52vw, 720px); }
  .tr-pillar { display: none !important; }
  .tr-cover { inset: 0 auto 0 4vw; width: min(46vw, 680px); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 64px 0 5vh; }
  .tr-cover::before { inset: 0 auto 0 -4vw; width: 64vw; height: auto; background: linear-gradient(90deg, rgba(8, 3, 5, .82), rgba(8, 3, 5, .5) 60%, transparent); }
  .tr-title, .tr-cta { position: static; width: 100%; }
  .tr-cta { margin-top: clamp(18px, 4vh, 40px); }
  .tr-cn { font-size: clamp(30px, min(6.4vw, 11vh), 92px); }
  .tr-kicker { font-size: clamp(11px, 1vw, 14px); }
}
@media (orientation: landscape) and (max-height: 560px) {
  .tr-intro { --gh: min(80vh, 52vw); --base: 7vh; }
  .tr-cover { padding-top: 48px; }
  .tr-cn { font-size: clamp(24px, min(5vw, 13vh), 52px); }
  .tr-bell-btn { width: 58px; height: 58px; }
  .tr-bell-btn svg { width: 26px; height: 26px; }
  .tr-hint { font-size: 14px; margin-top: 6px; }
  .tr-cta { margin-top: 12px; }
}
}

@media (max-height: 780px) and (min-width: 700px) {
  .tr-hero-body { padding-top: 40px; padding-bottom: 44px; }
  .tr-scroll { display: none; }
  .tr-hero .parents { margin-top: 4px; font-size: 16px; }
  .tr-cartouche { padding: 14px 30px; }
}
