/* ==========================================================================
   Sathiyadeepam Paadasalai — custom styles (complements Tailwind)
   Theme: Suddha Sanmarga — the yellow & white of the Sanmarga flag,
   the lamp-flame of Arutperunjothi, the octagon of the Sathya Gnana Sabai.
   ========================================================================== */

:root {
  --jothi: #F2B705;      /* Sanmarga yellow */
  --jothi-deep: #C98A04;
  --ivory: #FFFBF0;      /* Sanmarga white, warmed */
  --night: #160F06;      /* darkness before the Light */
  --ink: #2B1D0E;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Inter", "Mukta Malar", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: "Cormorant Garamond", "Noto Serif Tamil", Georgia, serif; }
.font-tamil   { font-family: "Noto Serif Tamil", serif; }

/* Tamil mode: Tamil-first fonts, gentler sizes (Tamil words run longer) */
html[lang="ta"] body { font-family: "Mukta Malar", "Inter", sans-serif; }
html[lang="ta"] .font-display { font-family: "Noto Serif Tamil", serif; letter-spacing: 0; }
html[lang="ta"] .h-sec   { line-height: 1.35; }
html[lang="ta"] .tracking-caps { letter-spacing: 0.04em; }

/* ---- Sanmarga flag strip (yellow over white) ---- */
.flag-strip { background: linear-gradient(to bottom, var(--jothi) 0 50%, #fff 50% 100%); height: 6px; }

/* ---- Mantra marquee ---- */
.marquee { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 3rem; animation: marquee 48s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Header ---- */
#site-header { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
#site-header.is-scrolled { background: rgba(255, 251, 240, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -12px rgba(90, 60, 10, .35); }
#site-header.is-scrolled .nav-light { color: var(--ink); }
#site-header.is-scrolled .brand-light { color: var(--ink); }
#site-header.is-scrolled .nav-light-active { color: #9A6603; }

/* ---- Hero ---- */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(242,183,5,.32), transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(201,138,4,.25), transparent 60%),
    var(--night);
}
.hero-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Seven veils (ஏழு திரைகள்) — octagonal rings that part to reveal the Light */
.veil { transform-origin: 50% 50%; transform-box: fill-box; opacity: 0; animation: veilPart 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes veilPart {
  0%   { opacity: .95; transform: scale(.35) rotate(0deg); }
  60%  { opacity: .7; }
  100% { opacity: var(--rest, .22); transform: scale(1) rotate(22.5deg); }
}
.veils-spin { animation: spin 160s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lamp flame */
.flame { transform-origin: 50% 100%; animation: flicker 3.2s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255,196,0,.85)) drop-shadow(0 0 60px rgba(255,170,0,.55)); }
.flame-inner { transform-origin: 50% 100%; animation: flicker 2.1s ease-in-out infinite reverse; }
@keyframes flicker {
  0%,100% { transform: scale(1, 1) skewX(0deg); }
  25%     { transform: scale(.97, 1.04) skewX(1.5deg); }
  50%     { transform: scale(1.02, .97) skewX(-1deg); }
  75%     { transform: scale(.98, 1.03) skewX(.8deg); }
}
.glow-pulse { animation: glow 4s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }

.hero-fade { opacity: 0; transform: translateY(18px); animation: fadeUp 1s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.text-jothi-gradient {
  background: linear-gradient(100deg, #FFE27A 0%, #F2B705 45%, #FFD34D 70%, #FFF3C4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }

/* ---- Octagon motif (Sathya Gnana Sabai) ---- */
.octagon { clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%); }
.octagon-pattern {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><path d='M22.6 8h18.8L56 22.6v18.8L41.4 56H22.6L8 41.4V22.6z' fill='none' stroke='%23C98A04' stroke-opacity='.13' stroke-width='1'/></svg>");
}

/* Pillar cards */
.pillar { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(201,138,4,.55); }
.pillar:hover .pillar-icon { background: var(--jothi); color: var(--night); }

/* Timeline */
.tl-dot::before { content: ""; position: absolute; inset: -5px; border-radius: 9999px; background: rgba(242,183,5,.25); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--jothi); outline-offset: 3px; border-radius: 6px; }

[x-cloak] { display: none !important; }

/* ==================== Animated logo ==================== */
/* Layers (same canvas): base, rays, small flame, big flame. Light + dark variants. */
.sd-logo { position: relative; display: block; aspect-ratio: 1000 / 652; }
.sd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.sd-logo .sd-dark { opacity: 0; }
.sd-logo .sd-light, .sd-logo .sd-dark { transition: opacity .35s ease; }
#site-header.is-scrolled .sd-logo .sd-dark { opacity: 1; }
#site-header.is-scrolled .sd-logo .sd-light { opacity: 0; }

.sd-flame-sm { transform-origin: 32.6% 16.7%; animation: logoFlicker 2.8s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255,150,0,.55)); }
.sd-flame-lg { transform-origin: 85.3% 47.4%; animation: logoFlicker 3.4s ease-in-out -1.2s infinite; filter: drop-shadow(0 0 8px rgba(255,170,0,.6)); }
.sd-rays     { transform-origin: 85.5% 23.2%; animation: raysBreathe 7s ease-in-out infinite; }
@keyframes logoFlicker {
  0%,100% { transform: scale(1, 1) skewX(0deg); }
  25%     { transform: scale(.97, 1.04) skewX(1.2deg); }
  50%     { transform: scale(1.015, .97) skewX(-.9deg); }
  75%     { transform: scale(.985, 1.025) skewX(.7deg); }
}
@keyframes raysBreathe {
  0%,100% { transform: rotate(0deg) scale(1); opacity: .8; }
  50%     { transform: rotate(7deg) scale(1.06); opacity: 1; }
}
.sd-logo:hover .sd-flame-lg, .sd-logo:hover .sd-flame-sm { animation-duration: 1.2s; }

/* Ignite: the lamp is lit — base appears, rays unfold, flames rise */
.sd-logo.ignite .sd-base  { animation: igniteBase 1.1s ease-out both; }
.sd-logo.ignite .sd-rays  { animation: igniteRays 1.4s cubic-bezier(.2,.7,.2,1) .7s both, raysBreathe 7s ease-in-out 2.1s infinite; }
.sd-logo.ignite .sd-flame-sm { animation: igniteFlame .9s cubic-bezier(.3,1.4,.5,1) .55s both, logoFlicker 2.8s ease-in-out 1.45s infinite; }
.sd-logo.ignite .sd-flame-lg { animation: igniteFlame 1s cubic-bezier(.3,1.4,.5,1) .9s both, logoFlicker 3.4s ease-in-out 1.9s infinite; }
@keyframes igniteBase  { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes igniteRays  { from { opacity: 0; transform: rotate(-60deg) scale(.4); } to { opacity: .8; transform: rotate(0) scale(1); } }
@keyframes igniteFlame { from { opacity: 0; transform: scale(.2, 0); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1, 1); } }

/* ==================== Lamp-lighting intro (once per visit) ==================== */
#lamp-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #2a1c08, #0d0903 70%); transition: opacity .7s ease, visibility .7s; }
#lamp-intro.done { opacity: 0; visibility: hidden; }
#lamp-intro .sd-logo { width: min(64vw, 420px); }
#lamp-intro p { margin-top: 1.25rem; text-align: center; font-family: "Noto Serif Tamil", serif; color: rgba(255,226,122,.75); letter-spacing: .02em; animation: fadeUp 1s ease 1.6s both; opacity: 0; }
html.intro-seen #lamp-intro { display: none; }

/* ==================== Page transitions ==================== */
body { animation: pageIn .6s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
html.leaving body { opacity: 0; transition: opacity .28s ease; }

/* ==================== Scroll progress — a thread of light ==================== */
#scroll-light { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #C98A04, #F2B705, #FFF3C4); box-shadow: 0 0 10px rgba(242,183,5,.8); pointer-events: none; }

/* ==================== Light that follows the cursor (dark sections) ==================== */
.has-glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(242,183,5,.13), transparent 60%); }
.has-glow:hover::before { opacity: 1; }

/* Spotlight on cards */
.spot { background-image: radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgba(242,183,5,.16), transparent 45%); }

/* Shine sweep on golden buttons */
a.bg-jothi-500, button.bg-jothi-500 { position: relative; overflow: hidden; isolation: isolate; }
a.bg-jothi-500::after, button.bg-jothi-500::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
a.bg-jothi-500:hover::after, button.bg-jothi-500:hover::after { transform: translateX(120%); transition: transform .8s ease; }

/* Section labels: a golden line kindles before the text */
[data-reveal] > p.tracking-caps::before { content: ""; display: inline-block; vertical-align: middle; height: 2px; width: 0; margin-right: 0;
  background: currentColor; transition: width .8s ease .35s, margin .8s ease .35s; }
[data-reveal].is-visible > p.tracking-caps::before { width: 1.75rem; margin-right: .65rem; }

/* Rising embers (any [data-embers] container) */
[data-embers] { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Back to top lamp */
#to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  background: #160F06; color: #F2B705; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s, background .3s; pointer-events: none; }
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#to-top:hover { background: #F2B705; color: #160F06; }
#to-top svg { transform-origin: 50% 100%; }
#to-top:hover svg { animation: flicker 1s ease-in-out infinite; }

/* Pop (value changes) */
.pop { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }

/* Orbit of offerings (Support hero) */
.orbit { animation: spin 48s linear infinite; }
.orbit-counter { animation: spin 48s linear infinite reverse; }
.orbit:hover, .orbit:hover .orbit-counter { animation-play-state: paused; }

/* ==================== Thiruvarutpa page ==================== */
/* Tamil letters rising from the open book */
.rise-letter { position: absolute; bottom: 42%; font-family: "Noto Serif Tamil", serif; font-weight: 600; color: #FFE27A;
  text-shadow: 0 0 12px rgba(242,183,5,.9); opacity: 0; animation: letterRise 7s ease-in infinite; }
@keyframes letterRise {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: .7; }
  100% { transform: translate(var(--dx, 0px), -230px) scale(1.15); opacity: 0; }
}
.page-glow { animation: glow 3.6s ease-in-out infinite; }

/* Bookshelf spines */
.spine { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s, background-color .5s; transform-origin: bottom; }
.spine:hover { transform: translateY(-6px); }
.spine.is-active { transform: translateY(-22px); box-shadow: 0 0 34px rgba(242,183,5,.65); }
.spine-text { writing-mode: vertical-rl; text-orientation: mixed; }

/* Verse reader: chant highlight */
.verse-line { transition: color .8s ease, text-shadow .8s ease, opacity .8s ease; }
.chanting .verse-line { opacity: .35; }
.chanting .verse-line.on { opacity: 1; color: #FFE27A; text-shadow: 0 0 24px rgba(242,183,5,.75); }
.breath { animation: breath 3.8s ease-in-out infinite; }
@keyframes breath { 0%,100% { transform: scale(.85); opacity: .35; } 50% { transform: scale(1.15); opacity: .8; } }

/* Equalizer bars (Songs in Voice) */
.eq span { display: inline-block; width: 4px; border-radius: 2px; background: #F2B705; height: 30%; }
.group:hover .eq span, .eq.playing span { animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.2s !important; } .eq span:nth-child(3) { animation-delay: -.5s !important; }
.eq span:nth-child(4) { animation-delay: -.7s !important; } .eq span:nth-child(5) { animation-delay: -.35s !important; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

/* Three circles: song · compassion · path */
.trinity { animation: spin 90s linear infinite; transform-origin: 50% 50%; }
.trinity text { animation: spin 90s linear infinite reverse; transform-box: fill-box; transform-origin: center; }

/* ==================== Contact page ==================== */
.ripple { animation: ripple 4.5s ease-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes ripple { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.bob { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.letter-card { background: linear-gradient(180deg, #FFF8E1, #F7E7BC); }

/* ==================== Teachings page ==================== */
.tbadge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 9999px; padding: .2rem .65rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.tbadge.src { background: #160F06; color: #FFE27A; }
.tbadge.int { background: #FFF0BF; color: #6B4602; border: 1px solid #F7C21F; }
.tbadge.syn { background: #fff; color: #6B4602; border: 1px dashed #C98A04; }
.hide-labels .tbadge { display: none; }

/* 1 · many lights converge into One */
.conv { animation: conv 4.2s cubic-bezier(.55,0,.6,1) infinite; animation-delay: var(--d); }
@keyframes conv { 0% { transform: translate(var(--x), var(--y)); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }

/* 2 · the key and the door of grace */
.door-l, .door-r { transition: transform 1.6s cubic-bezier(.6,0,.2,1) 1.1s; transform-box: fill-box; }
.door-l { transform-origin: left center; } .door-r { transform-origin: right center; }
.gfx.is-visible .door-l, .gfx.is-visible .door-r { transform: scaleX(.12); }
.key { transform: translateX(-70px); opacity: 0; transition: transform .9s ease .2s, opacity .4s ease .2s; }
.gfx.is-visible .key { transform: translateX(0); opacity: 1; }
.gfx.is-visible .key-turn { animation: keyTurn .5s ease 1s forwards; transform-box: fill-box; transform-origin: right center; }
@keyframes keyTurn { to { transform: rotate(90deg); } }
.door-light { opacity: 0; transition: opacity 1.4s ease 1.6s; }
.gfx.is-visible .door-light { opacity: 1; }

/* 3 · the fire of hunger is quenched */
.hunger { transform-box: fill-box; transform-origin: 50% 100%; animation: hunger 6s ease-in-out infinite; }
@keyframes hunger { 0%,20% { transform: scale(1); fill: #E5482B; } 55%,80% { transform: scale(.35); fill: #F2B705; } 100% { transform: scale(1); fill: #E5482B; } }
.steam { stroke-dasharray: 40; stroke-dashoffset: 40; animation: steam 3s ease-in-out infinite; }
@keyframes steam { 0% { stroke-dashoffset: 40; opacity: 0; } 30% { opacity: .9; } 100% { stroke-dashoffset: -40; opacity: 0; } }

/* 4 · the sprout grows */
.stem { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.8s ease .2s; }
.gfx.is-visible .stem { stroke-dashoffset: 0; }
.leaf { transform: scale(0); transform-box: fill-box; transition: transform .9s cubic-bezier(.3,1.5,.5,1); }
.leaf.l1 { transform-origin: right bottom; transition-delay: 1.4s; } .leaf.l2 { transform-origin: left bottom; transition-delay: 1.8s; }
.gfx.is-visible .leaf { transform: scale(1); }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite 2.6s; }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* 5 · walls dissolve, souls join */
.wall { transition: opacity 1.2s ease .6s, transform 1.2s ease .6s; transform-box: fill-box; transform-origin: center; }
.gfx.is-visible .wall { opacity: 0; transform: scale(.6); }
.link { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 2s ease 1.4s; }
.gfx.is-visible .link { stroke-dashoffset: 0; }
.soul { animation: glow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* 6 · the eye opens */
.lid { transform-box: fill-box; transform-origin: 50% 0%; transition: transform 1.4s cubic-bezier(.6,0,.2,1) .5s; }
.gfx.is-visible .lid { transform: scaleY(0); animation: blink 7s ease-in-out 3s infinite; }
@keyframes blink { 0%,92%,100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }

/* 7 · two wings */
.wing-l, .wing-r { transform-box: fill-box; animation: flap 3.2s ease-in-out infinite; }
.wing-l { transform-origin: right center; } .wing-r { transform-origin: left center; animation-name: flapR; }
@keyframes flap { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes flapR { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
.ring { animation: ringPulse 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ringPulse { 0%,100% { stroke-opacity: .2; } 30% { stroke-opacity: 1; } }

/* 8 · the body becomes light */
.body-fig { animation: bodyLight 7s ease-in-out infinite; }
@keyframes bodyLight { 0%,10% { fill: #4a3a20; } 35% { fill: #F2B705; } 65% { fill: #FFF8E1; } 85%,100% { fill: #FFFFFF; opacity: .15; } }
.body-rays { animation: bodyRays 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bodyRays { 0%,40% { opacity: 0; transform: scale(.6); } 75% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.3); } }

/* Seven veils */
.veil-panel { transition: transform .8s cubic-bezier(.6,0,.2,1), opacity .8s ease; }
.veil-half { transition: transform 1s cubic-bezier(.65,0,.25,1); box-shadow: inset 0 0 30px rgba(0,0,0,.25); }
.veil-half::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 6px, rgba(0,0,0,.06) 6px 14px); }
/* octagonal veil screen (regular octagon, flat top — matches the Sabai) */
.veil-octagon { clip-path: polygon(29.29% 0, 70.71% 0, 100% 29.29%, 100% 70.71%, 70.71% 100%, 29.29% 100%, 0 70.71%, 0 29.29%); }
.jothi-rays { animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.jothi-bloom { animation: jothiBloom 2.2s ease-out both; }
@keyframes jothiBloom { 0% { transform: scale(.85); filter: drop-shadow(0 0 0 rgba(255,210,80,0)); } 60% { transform: scale(1.12); } 100% { transform: scale(1); filter: drop-shadow(0 0 22px rgba(255,210,80,.95)); } }

/* ==================== Sathiyadeepam TV page ==================== */
.scan { background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px); }
.scan-beam { animation: beam 4.5s linear infinite; }
@keyframes beam { 0% { transform: translateY(-110%); } 100% { transform: translateY(110%); } }
.onair { animation: onair 1.6s ease-in-out infinite; }
@keyframes onair { 0%,100% { opacity: 1; box-shadow: 0 0 14px rgba(229,72,43,.9); } 50% { opacity: .45; box-shadow: 0 0 2px rgba(229,72,43,.4); } }
.signal { animation: signal 2.4s ease-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes signal { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.card-in { animation: fadeUp .55s ease both; }
.vcard img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.vcard:hover img { transform: scale(1.06); }
.vcard .vplay { transition: transform .4s cubic-bezier(.3,1.5,.5,1), background-color .3s; }
.vcard:hover .vplay { transform: scale(1.12); }
.marquee-tags { animation: marquee 60s linear infinite; }

/* Home · four Ozhukkam: a light travels from outer to inner */
.ozh-dot { left: 12.5%; animation: ozh 5s ease-in-out infinite; }
@keyframes ozh { 0% { left: 12.5%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 87.5%; opacity: 0; } }

@keyframes missionDot { 0% { left: 16%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 84%; opacity: 0; } }

/* ==================== About page ==================== */
/* Rising embers */
.ember {
  position: absolute; bottom: -10px; width: var(--size); height: var(--size); border-radius: 9999px;
  background: #FFD34D; box-shadow: 0 0 10px 2px rgba(255,196,0,.7);
  animation: rise var(--dur) linear infinite; animation-delay: var(--delay); opacity: 0;
}
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .9; }
  80%  { opacity: .5; }
  100% { transform: translate(var(--drift), -105vh); opacity: 0; }
}

/* Field of lamps */
.lamp { cursor: pointer; outline: none; }
.lamp-glow  { fill: #F2B705; opacity: 0; transition: opacity .8s ease; }
.lamp-flame { fill: #4a3a20; transform-box: fill-box; transform-origin: 50% 100%; transition: fill .6s ease; }
.lamp-bowl  { fill: #7A3E0C; opacity: .6; }
.lamp.lit .lamp-glow  { opacity: .28; filter: blur(4px); }
.lamp.lit .lamp-flame { fill: #FFD34D; animation: flicker 2.6s ease-in-out infinite; }
.lamp:hover .lamp-glow, .lamp:focus-visible .lamp-glow { opacity: .5; }
.lamp:hover .lamp-flame { fill: #8a6a30; }
.lamp.lit:hover .lamp-flame { fill: #FFE27A; }
.lamp.spark .lamp-glow { animation: spark .7s ease-out; }
@keyframes spark { 0% { opacity: .9; transform: scale(.4); } 60% { opacity: .6; transform: scale(1.8); } 100% { opacity: .28; transform: scale(1); } }
.lamp-glow { transform-box: fill-box; transform-origin: center; }
.lamp-ray { stroke: #F2B705; stroke-width: 1.2; stroke-linecap: round; opacity: 0; stroke-dasharray: 200; stroke-dashoffset: 200; transition: opacity .6s ease, stroke-dashoffset .9s ease; }
.lamp-ray.on { opacity: .35; stroke-dashoffset: 0; }
#lamp-field.all-lit .lamp-ray.on { opacity: .6; }
#lamp-field.all-lit .lamp.lit .lamp-glow { opacity: .45; }

/* Journey line */
.journey-fill { transform-origin: top; transform: scaleY(0); transition: transform .15s linear; }
.journey-dot { transition: background-color .5s, box-shadow .5s, color .5s; }
.journey-step.lit .journey-dot { background: #F2B705; color: #160F06; box-shadow: 0 0 0 6px rgba(242,183,5,.18), 0 0 30px rgba(242,183,5,.7); }
.journey-card { transition: border-color .5s, transform .5s; }
.journey-step.lit .journey-card { border-color: rgba(242,183,5,.7); }

/* Portrait frame */
.portrait-ring { animation: spin 60s linear infinite; }

/* ==================== Type scale (reduced) ====================
   H1 = 60% of the original; larger headings and display text scaled
   in proportion (4xl+ 65%, 3xl 75%, 2xl 85%) so the hierarchy holds.
   Body text (xl and below) is unchanged for readability.
   Tamil headings take a further 0.9 (Tamil words run longer). */
.text-2xl { font-size: 1.275rem !important; }
html[lang="ta"] .h-sec.text-2xl, html[lang="ta"] .h-sec .text-2xl { font-size: 1.147rem !important; }
.text-3xl { font-size: 1.406rem !important; }
html[lang="ta"] .h-sec.text-3xl, html[lang="ta"] .h-sec .text-3xl { font-size: 1.266rem !important; }
.text-4xl { font-size: 1.463rem !important; }
html[lang="ta"] .h-sec.text-4xl, html[lang="ta"] .h-sec .text-4xl { font-size: 1.316rem !important; }
.text-5xl { font-size: 1.950rem !important; }
html[lang="ta"] .h-sec.text-5xl, html[lang="ta"] .h-sec .text-5xl { font-size: 1.755rem !important; }
.text-6xl { font-size: 2.438rem !important; }
html[lang="ta"] .h-sec.text-6xl, html[lang="ta"] .h-sec .text-6xl { font-size: 2.194rem !important; }
.text-7xl { font-size: 2.925rem !important; }
html[lang="ta"] .h-sec.text-7xl, html[lang="ta"] .h-sec .text-7xl { font-size: 2.633rem !important; }
.text-8xl { font-size: 3.900rem !important; }
html[lang="ta"] .h-sec.text-8xl, html[lang="ta"] .h-sec .text-8xl { font-size: 3.510rem !important; }
.text-\[2\.75rem\] { font-size: 1.788rem !important; }
html[lang="ta"] .h-sec.text-\[2\.75rem\], html[lang="ta"] .h-sec .text-\[2\.75rem\] { font-size: 1.609rem !important; }
h1.text-2xl, h1 .text-2xl { font-size: 0.900rem !important; }
html[lang="ta"] h1.text-2xl, html[lang="ta"] h1 .text-2xl { font-size: 0.810rem !important; }
h1.text-3xl, h1 .text-3xl { font-size: 1.125rem !important; }
html[lang="ta"] h1.text-3xl, html[lang="ta"] h1 .text-3xl { font-size: 1.012rem !important; }
h1.text-4xl, h1 .text-4xl { font-size: 1.350rem !important; }
html[lang="ta"] h1.text-4xl, html[lang="ta"] h1 .text-4xl { font-size: 1.215rem !important; }
h1.text-5xl, h1 .text-5xl { font-size: 1.800rem !important; }
html[lang="ta"] h1.text-5xl, html[lang="ta"] h1 .text-5xl { font-size: 1.620rem !important; }
h1.text-6xl, h1 .text-6xl { font-size: 2.250rem !important; }
html[lang="ta"] h1.text-6xl, html[lang="ta"] h1 .text-6xl { font-size: 2.025rem !important; }
h1.text-7xl, h1 .text-7xl { font-size: 2.700rem !important; }
html[lang="ta"] h1.text-7xl, html[lang="ta"] h1 .text-7xl { font-size: 2.430rem !important; }
h1.text-8xl, h1 .text-8xl { font-size: 3.600rem !important; }
html[lang="ta"] h1.text-8xl, html[lang="ta"] h1 .text-8xl { font-size: 3.240rem !important; }
h1.text-\[2\.75rem\], h1 .text-\[2\.75rem\] { font-size: 1.650rem !important; }
html[lang="ta"] h1.text-\[2\.75rem\], html[lang="ta"] h1 .text-\[2\.75rem\] { font-size: 1.485rem !important; }
@media (min-width: 640px) {
.sm\:text-2xl { font-size: 1.275rem !important; }
html[lang="ta"] .h-sec.sm\:text-2xl, html[lang="ta"] .h-sec .sm\:text-2xl { font-size: 1.147rem !important; }
.sm\:text-3xl { font-size: 1.406rem !important; }
html[lang="ta"] .h-sec.sm\:text-3xl, html[lang="ta"] .h-sec .sm\:text-3xl { font-size: 1.266rem !important; }
.sm\:text-4xl { font-size: 1.463rem !important; }
html[lang="ta"] .h-sec.sm\:text-4xl, html[lang="ta"] .h-sec .sm\:text-4xl { font-size: 1.316rem !important; }
.sm\:text-5xl { font-size: 1.950rem !important; }
html[lang="ta"] .h-sec.sm\:text-5xl, html[lang="ta"] .h-sec .sm\:text-5xl { font-size: 1.755rem !important; }
.sm\:text-6xl { font-size: 2.438rem !important; }
html[lang="ta"] .h-sec.sm\:text-6xl, html[lang="ta"] .h-sec .sm\:text-6xl { font-size: 2.194rem !important; }
.sm\:text-7xl { font-size: 2.925rem !important; }
html[lang="ta"] .h-sec.sm\:text-7xl, html[lang="ta"] .h-sec .sm\:text-7xl { font-size: 2.633rem !important; }
.sm\:text-8xl { font-size: 3.900rem !important; }
html[lang="ta"] .h-sec.sm\:text-8xl, html[lang="ta"] .h-sec .sm\:text-8xl { font-size: 3.510rem !important; }
.sm\:text-\[2\.75rem\] { font-size: 1.788rem !important; }
html[lang="ta"] .h-sec.sm\:text-\[2\.75rem\], html[lang="ta"] .h-sec .sm\:text-\[2\.75rem\] { font-size: 1.609rem !important; }
h1.sm\:text-2xl, h1 .sm\:text-2xl { font-size: 0.900rem !important; }
html[lang="ta"] h1.sm\:text-2xl, html[lang="ta"] h1 .sm\:text-2xl { font-size: 0.810rem !important; }
h1.sm\:text-3xl, h1 .sm\:text-3xl { font-size: 1.125rem !important; }
html[lang="ta"] h1.sm\:text-3xl, html[lang="ta"] h1 .sm\:text-3xl { font-size: 1.012rem !important; }
h1.sm\:text-4xl, h1 .sm\:text-4xl { font-size: 1.350rem !important; }
html[lang="ta"] h1.sm\:text-4xl, html[lang="ta"] h1 .sm\:text-4xl { font-size: 1.215rem !important; }
h1.sm\:text-5xl, h1 .sm\:text-5xl { font-size: 1.800rem !important; }
html[lang="ta"] h1.sm\:text-5xl, html[lang="ta"] h1 .sm\:text-5xl { font-size: 1.620rem !important; }
h1.sm\:text-6xl, h1 .sm\:text-6xl { font-size: 2.250rem !important; }
html[lang="ta"] h1.sm\:text-6xl, html[lang="ta"] h1 .sm\:text-6xl { font-size: 2.025rem !important; }
h1.sm\:text-7xl, h1 .sm\:text-7xl { font-size: 2.700rem !important; }
html[lang="ta"] h1.sm\:text-7xl, html[lang="ta"] h1 .sm\:text-7xl { font-size: 2.430rem !important; }
h1.sm\:text-8xl, h1 .sm\:text-8xl { font-size: 3.600rem !important; }
html[lang="ta"] h1.sm\:text-8xl, html[lang="ta"] h1 .sm\:text-8xl { font-size: 3.240rem !important; }
h1.sm\:text-\[2\.75rem\], h1 .sm\:text-\[2\.75rem\] { font-size: 1.650rem !important; }
html[lang="ta"] h1.sm\:text-\[2\.75rem\], html[lang="ta"] h1 .sm\:text-\[2\.75rem\] { font-size: 1.485rem !important; }
}
@media (min-width: 768px) {
.md\:text-2xl { font-size: 1.275rem !important; }
html[lang="ta"] .h-sec.md\:text-2xl, html[lang="ta"] .h-sec .md\:text-2xl { font-size: 1.147rem !important; }
.md\:text-3xl { font-size: 1.406rem !important; }
html[lang="ta"] .h-sec.md\:text-3xl, html[lang="ta"] .h-sec .md\:text-3xl { font-size: 1.266rem !important; }
.md\:text-4xl { font-size: 1.463rem !important; }
html[lang="ta"] .h-sec.md\:text-4xl, html[lang="ta"] .h-sec .md\:text-4xl { font-size: 1.316rem !important; }
.md\:text-5xl { font-size: 1.950rem !important; }
html[lang="ta"] .h-sec.md\:text-5xl, html[lang="ta"] .h-sec .md\:text-5xl { font-size: 1.755rem !important; }
.md\:text-6xl { font-size: 2.438rem !important; }
html[lang="ta"] .h-sec.md\:text-6xl, html[lang="ta"] .h-sec .md\:text-6xl { font-size: 2.194rem !important; }
.md\:text-7xl { font-size: 2.925rem !important; }
html[lang="ta"] .h-sec.md\:text-7xl, html[lang="ta"] .h-sec .md\:text-7xl { font-size: 2.633rem !important; }
.md\:text-8xl { font-size: 3.900rem !important; }
html[lang="ta"] .h-sec.md\:text-8xl, html[lang="ta"] .h-sec .md\:text-8xl { font-size: 3.510rem !important; }
.md\:text-\[2\.75rem\] { font-size: 1.788rem !important; }
html[lang="ta"] .h-sec.md\:text-\[2\.75rem\], html[lang="ta"] .h-sec .md\:text-\[2\.75rem\] { font-size: 1.609rem !important; }
h1.md\:text-2xl, h1 .md\:text-2xl { font-size: 0.900rem !important; }
html[lang="ta"] h1.md\:text-2xl, html[lang="ta"] h1 .md\:text-2xl { font-size: 0.810rem !important; }
h1.md\:text-3xl, h1 .md\:text-3xl { font-size: 1.125rem !important; }
html[lang="ta"] h1.md\:text-3xl, html[lang="ta"] h1 .md\:text-3xl { font-size: 1.012rem !important; }
h1.md\:text-4xl, h1 .md\:text-4xl { font-size: 1.350rem !important; }
html[lang="ta"] h1.md\:text-4xl, html[lang="ta"] h1 .md\:text-4xl { font-size: 1.215rem !important; }
h1.md\:text-5xl, h1 .md\:text-5xl { font-size: 1.800rem !important; }
html[lang="ta"] h1.md\:text-5xl, html[lang="ta"] h1 .md\:text-5xl { font-size: 1.620rem !important; }
h1.md\:text-6xl, h1 .md\:text-6xl { font-size: 2.250rem !important; }
html[lang="ta"] h1.md\:text-6xl, html[lang="ta"] h1 .md\:text-6xl { font-size: 2.025rem !important; }
h1.md\:text-7xl, h1 .md\:text-7xl { font-size: 2.700rem !important; }
html[lang="ta"] h1.md\:text-7xl, html[lang="ta"] h1 .md\:text-7xl { font-size: 2.430rem !important; }
h1.md\:text-8xl, h1 .md\:text-8xl { font-size: 3.600rem !important; }
html[lang="ta"] h1.md\:text-8xl, html[lang="ta"] h1 .md\:text-8xl { font-size: 3.240rem !important; }
h1.md\:text-\[2\.75rem\], h1 .md\:text-\[2\.75rem\] { font-size: 1.650rem !important; }
html[lang="ta"] h1.md\:text-\[2\.75rem\], html[lang="ta"] h1 .md\:text-\[2\.75rem\] { font-size: 1.485rem !important; }
}
@media (min-width: 1024px) {
.lg\:text-2xl { font-size: 1.275rem !important; }
html[lang="ta"] .h-sec.lg\:text-2xl, html[lang="ta"] .h-sec .lg\:text-2xl { font-size: 1.147rem !important; }
.lg\:text-3xl { font-size: 1.406rem !important; }
html[lang="ta"] .h-sec.lg\:text-3xl, html[lang="ta"] .h-sec .lg\:text-3xl { font-size: 1.266rem !important; }
.lg\:text-4xl { font-size: 1.463rem !important; }
html[lang="ta"] .h-sec.lg\:text-4xl, html[lang="ta"] .h-sec .lg\:text-4xl { font-size: 1.316rem !important; }
.lg\:text-5xl { font-size: 1.950rem !important; }
html[lang="ta"] .h-sec.lg\:text-5xl, html[lang="ta"] .h-sec .lg\:text-5xl { font-size: 1.755rem !important; }
.lg\:text-6xl { font-size: 2.438rem !important; }
html[lang="ta"] .h-sec.lg\:text-6xl, html[lang="ta"] .h-sec .lg\:text-6xl { font-size: 2.194rem !important; }
.lg\:text-7xl { font-size: 2.925rem !important; }
html[lang="ta"] .h-sec.lg\:text-7xl, html[lang="ta"] .h-sec .lg\:text-7xl { font-size: 2.633rem !important; }
.lg\:text-8xl { font-size: 3.900rem !important; }
html[lang="ta"] .h-sec.lg\:text-8xl, html[lang="ta"] .h-sec .lg\:text-8xl { font-size: 3.510rem !important; }
.lg\:text-\[2\.75rem\] { font-size: 1.788rem !important; }
html[lang="ta"] .h-sec.lg\:text-\[2\.75rem\], html[lang="ta"] .h-sec .lg\:text-\[2\.75rem\] { font-size: 1.609rem !important; }
h1.lg\:text-2xl, h1 .lg\:text-2xl { font-size: 0.900rem !important; }
html[lang="ta"] h1.lg\:text-2xl, html[lang="ta"] h1 .lg\:text-2xl { font-size: 0.810rem !important; }
h1.lg\:text-3xl, h1 .lg\:text-3xl { font-size: 1.125rem !important; }
html[lang="ta"] h1.lg\:text-3xl, html[lang="ta"] h1 .lg\:text-3xl { font-size: 1.012rem !important; }
h1.lg\:text-4xl, h1 .lg\:text-4xl { font-size: 1.350rem !important; }
html[lang="ta"] h1.lg\:text-4xl, html[lang="ta"] h1 .lg\:text-4xl { font-size: 1.215rem !important; }
h1.lg\:text-5xl, h1 .lg\:text-5xl { font-size: 1.800rem !important; }
html[lang="ta"] h1.lg\:text-5xl, html[lang="ta"] h1 .lg\:text-5xl { font-size: 1.620rem !important; }
h1.lg\:text-6xl, h1 .lg\:text-6xl { font-size: 2.250rem !important; }
html[lang="ta"] h1.lg\:text-6xl, html[lang="ta"] h1 .lg\:text-6xl { font-size: 2.025rem !important; }
h1.lg\:text-7xl, h1 .lg\:text-7xl { font-size: 2.700rem !important; }
html[lang="ta"] h1.lg\:text-7xl, html[lang="ta"] h1 .lg\:text-7xl { font-size: 2.430rem !important; }
h1.lg\:text-8xl, h1 .lg\:text-8xl { font-size: 3.600rem !important; }
html[lang="ta"] h1.lg\:text-8xl, html[lang="ta"] h1 .lg\:text-8xl { font-size: 3.240rem !important; }
h1.lg\:text-\[2\.75rem\], h1 .lg\:text-\[2\.75rem\] { font-size: 1.650rem !important; }
html[lang="ta"] h1.lg\:text-\[2\.75rem\], html[lang="ta"] h1 .lg\:text-\[2\.75rem\] { font-size: 1.485rem !important; }
}
h1 { line-height: 1.15 !important; }
/* old Tamil clamps, scaled to match */
html[lang="ta"] .h-hero { line-height: 1.3 !important; }

/* ---------- Home: three Sabhais ---------- */
.sbh-pon .sbh-top{background:radial-gradient(circle at 50% 55%,#5a3c06 0%,#1a1206 75%)}
.sbh-chit .sbh-top{background:radial-gradient(circle at 50% 55%,#3b3a45 0%,#121218 75%)}
.sbh-gnana .sbh-top{background:radial-gradient(circle at 50% 55%,#5c1410 0%,#160807 75%)}
.sbh-pon .sbh-orb svg{filter:drop-shadow(0 0 22px rgba(242,183,5,.8))}
.sbh-chit .sbh-orb svg{filter:drop-shadow(0 0 22px rgba(255,255,255,.75))}
.sbh-gnana .sbh-orb svg{filter:drop-shadow(0 0 24px rgba(220,50,30,.85))}
.sbh-breathe{transform-box:fill-box;transform-origin:center;animation:sbhBreathe 4.5s ease-in-out infinite}
@keyframes sbhBreathe{0%,100%{transform:scale(.92);opacity:.85}50%{transform:scale(1.06);opacity:1}}
.sbh-rays{animation:sbhSpin 28s linear infinite}
@keyframes sbhSpin{to{transform:rotate(360deg)}}
.sbh-ring{transform-box:fill-box;transform-origin:center;animation:sbhRing 4s ease-out infinite}
.sbh-ring2{animation-delay:2s}
@keyframes sbhRing{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.15);opacity:0}}
.sbh-flame{transform-box:fill-box;transform-origin:50% 100%;animation:flicker 2.6s ease-in-out infinite}
.sbh-path{animation:sbhDash 3s linear infinite}
@keyframes sbhDash{to{stroke-dashoffset:-32}}
.sbh-card{transition:transform .5s ease}
.sbh-card:hover{transform:translateY(-6px)}
.sbh-col .sbh-top{background:none}
.sbh-pulse{animation:sbhPulse 1.8s ease-in-out infinite}
@keyframes sbhPulse{0%,100%{box-shadow:0 0 0 0 rgba(242,183,5,.55)}50%{box-shadow:0 0 0 14px rgba(242,183,5,0)}}
:not(.is-on) > .sbh-orb .sbh-breathe,:not(.is-on) > .sbh-orb .sbh-rays,:not(.is-on) > .sbh-orb .sbh-ring,:not(.is-on) > .sbh-orb .sbh-flame{animation-play-state:paused}
@media (prefers-reduced-motion: reduce){.sbh-breathe,.sbh-rays,.sbh-ring,.sbh-flame,.sbh-path,.sbh-pulse{animation:none}}

/* Sabhai gopuram icons */
.sbh-gopuram{animation:sbhFloat 6s ease-in-out infinite}
.sbh-pon .sbh-gopuram{filter:drop-shadow(0 0 18px rgba(242,183,5,.55)) drop-shadow(0 18px 30px rgba(0,0,0,.45))}
.sbh-chit .sbh-gopuram{filter:drop-shadow(0 0 18px rgba(255,255,255,.4)) drop-shadow(0 18px 30px rgba(0,0,0,.45))}
.sbh-gnana .sbh-gopuram{filter:drop-shadow(0 0 20px rgba(255,110,70,.5)) drop-shadow(0 18px 30px rgba(0,0,0,.45))}
@keyframes sbhFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.sbh-gflame{transform-box:fill-box;transform-origin:50% 100%;animation:flicker 2.4s ease-in-out infinite}
@media (prefers-reduced-motion: reduce){.sbh-gopuram,.sbh-gflame{animation:none}}
/* Arutperunjothi name in the veil sanctum: high contrast over the glow */
.jothi-name{background:rgba(20,12,3,.82);color:#FFE27A;border:1.5px solid rgba(242,183,5,.85);
  text-shadow:0 0 10px rgba(242,183,5,.9),0 0 2px #000;box-shadow:0 0 24px rgba(242,183,5,.55),inset 0 0 12px rgba(242,183,5,.25)}
/* Teaching 7 — Inai Neri: two complementary halves join into one ring around the flame */
.gfx .inai-l{transform:translateX(-30px);opacity:.25;transition:transform 1.6s cubic-bezier(.2,.8,.2,1),opacity 1.6s}
.gfx .inai-r{transform:translateX(30px);opacity:.25;transition:transform 1.6s cubic-bezier(.2,.8,.2,1),opacity 1.6s}
.gfx.is-visible .inai-l,.gfx.is-visible .inai-r{transform:none;opacity:1}
.gfx .inai-join{opacity:0;transition:opacity .8s 1.4s}
.gfx.is-visible .inai-join{opacity:1;animation:inaiJoin 2.6s ease-in-out 1.6s infinite}
@keyframes inaiJoin{0%,100%{filter:drop-shadow(0 0 2px #F2B705)}50%{filter:drop-shadow(0 0 9px #FFE27A)}}
.inai-rays{animation:inaiRays 3s ease-in-out infinite}
@keyframes inaiRays{0%,100%{opacity:.55}50%{opacity:1}}
@media (prefers-reduced-motion: reduce){.gfx .inai-l,.gfx .inai-r{transform:none;opacity:1;transition:none}.inai-rays,.gfx.is-visible .inai-join{animation:none}}

/* ==========================================================================
   MOBILE-FIRST LAYER — most visitors are on phones
   ========================================================================== */
html { scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (min-width: 1024px) { html { scroll-padding-top: 5.5rem; } }
html, body { overflow-x: clip; }                       /* no sideways scroll from decorations */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, svg, video, iframe { max-width: 100%; }
/* iOS zooms into inputs smaller than 16px — keep them at 16px on phones */
@media (max-width: 767px) { input, select, textarea { font-size: 16px !important; } }

/* Bottom tab bar */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(22,15,6,.94); border-top: 1px solid rgba(242,183,5,.28);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 -10px 30px -12px rgba(0,0,0,.6); }
.bottom-nav__inner { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 40rem; margin: 0 auto; }
.bn-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 6px 2px; font-size: 11px; line-height: 1.1; font-weight: 600;
  color: rgba(247,245,238,.7); text-align: center; position: relative; text-decoration: none; }
html[lang="ta"] .bn-item { font-size: 10.5px; }
.bn-item svg { width: 22px; height: 22px; }
.bn-item:active { background: rgba(242,183,5,.12); }
.bn-item.is-active { color: #F2B705; }
.bn-item.is-active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px;
  border-radius: 0 0 4px 4px; background: #F2B705; box-shadow: 0 0 12px #F2B705; }
.bn-give { color: #160F06; }
.bn-give svg { background: #F2B705; border-radius: 999px; padding: 5px; width: 32px; height: 32px; margin-top: -4px;
  box-shadow: 0 0 18px -2px rgba(242,183,5,.8); color: #160F06; }
.bn-give span { color: #F2B705; }
@media (max-width: 1023px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  #to-top { bottom: calc(70px + env(safe-area-inset-bottom)); right: .9rem; width: 2.75rem; height: 2.75rem; }
  /* the heavy blurred glows are costly on phone GPUs: keep them still */
  .glow-pulse { animation: none !important; }
}
/* Touch screens: no hover-only effects */
@media (hover: none) {
  .has-glow::before { display: none !important; }
  .spot { background-image: none !important; }
}
/* Comfortable reading widths and tap targets on small screens */
@media (max-width: 639px) {
  .h-sec { line-height: 1.15; }
  p { overflow-wrap: break-word; }
  .marquee__track { animation-duration: 40s; }
}
.mobile-sheet { max-height: calc(100svh - 4rem - 58px - env(safe-area-inset-bottom)); }

/* ---------- Home: Activities tiles ---------- */
.act-tile{display:block;border-radius:1.25rem;background:#fff;border:1px solid rgba(242,183,5,.25);padding:1rem .9rem 1.05rem;text-align:center;
  box-shadow:0 12px 30px -22px rgba(107,70,2,.55);transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;min-height:9.5rem}
.act-tile:active{transform:scale(.97)}
@media (hover:hover){.act-tile:hover{transform:translateY(-4px);border-color:rgba(242,183,5,.7);box-shadow:0 20px 40px -24px rgba(201,138,4,.75)}}
.act-ico{display:inline-flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;color:#F2B705;background:#160F06;
  clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%);
  box-shadow:inset 0 0 18px rgba(242,183,5,.25);transition:background .35s ease,color .35s ease}
@media (hover:hover){.act-tile:hover .act-ico{background:#F2B705;color:#160F06}}
.act-tile.is-visible .act-ico svg{animation:actPop .7s cubic-bezier(.3,1.6,.5,1) both}
@keyframes actPop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
@media (min-width:640px){.act-tile{padding:1.4rem 1.1rem;min-height:11rem}}
@media (prefers-reduced-motion: reduce){.act-tile.is-visible .act-ico svg{animation:none}}

/* ---------- Vallalar page: figure with a living golden glow ---------- */
.vl-figure{height:min(56svh,27rem);aspect-ratio:416/1200;display:flex;align-items:flex-end;justify-content:center}
@media (min-width:1024px){.vl-figure{height:min(78vh,38rem)}}
.vl-img{filter:drop-shadow(0 0 6px rgba(255,236,170,.95)) drop-shadow(0 0 18px rgba(242,183,5,.75)) drop-shadow(0 0 42px rgba(242,183,5,.45));
  animation:vlGlow 4.8s ease-in-out infinite;will-change:filter}
@keyframes vlGlow{
  0%,100%{filter:drop-shadow(0 0 5px rgba(255,236,170,.85)) drop-shadow(0 0 14px rgba(242,183,5,.6)) drop-shadow(0 0 32px rgba(242,183,5,.35))}
  50%{filter:drop-shadow(0 0 9px rgba(255,240,190,1)) drop-shadow(0 0 26px rgba(242,183,5,.9)) drop-shadow(0 0 60px rgba(242,183,5,.6))}}
.vl-aura{position:absolute;left:50%;top:46%;width:240%;aspect-ratio:1/1.35;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(255,236,170,.55) 0%,rgba(242,183,5,.32) 30%,rgba(242,183,5,.1) 55%,transparent 72%);
  animation:vlAura 4.8s ease-in-out infinite}
@keyframes vlAura{0%,100%{opacity:.75;transform:translate(-50%,-50%) scale(.95)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}}
.vl-rays{position:absolute;left:50%;top:40%;width:330%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:repeating-conic-gradient(from 0deg,rgba(242,183,5,.16) 0deg 4deg,transparent 4deg 15deg);
  -webkit-mask:radial-gradient(circle,#000 18%,transparent 62%);mask:radial-gradient(circle,#000 18%,transparent 62%);
  animation:vlSpin 60s linear infinite}
@keyframes vlSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.vl-floor{position:absolute;left:50%;bottom:-2%;width:170%;height:9%;transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(ellipse,rgba(242,183,5,.55),transparent 70%);filter:blur(4px)}
@media (max-width:767px){.vl-rays{animation-duration:90s}}
@media (prefers-reduced-motion: reduce){.vl-img,.vl-aura,.vl-rays{animation:none}}

/* Veil section title: room for Tamil vowel signs above and below the line */
.sb-vtitle { line-height: 1.35; padding-block: .12em; }
html[lang="ta"] .sb-vtitle { font-family: "Noto Serif Tamil", serif; line-height: 1.7; font-size: clamp(1.6rem, 6.2vw, 2.6rem); }

/* Activities on phones: two cards per row, full name and line (short label not used) */
.act-short{display:none}
@media (max-width:639px){
  .act-tile{padding:1rem .75rem 1.1rem}
  .act-ico{width:3.1rem;height:3.1rem}
  .act-ico svg{width:1.5rem;height:1.5rem}
}

/* ---------- Blog ---------- */
.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}
.blog-chip{flex:none;border-radius:9999px;border:1px solid rgba(242,183,5,.4);background:#fff;padding:.55rem 1rem;font-size:.875rem;font-weight:600;color:#6B4602;white-space:nowrap;transition:background .2s,color .2s}
.blog-chip.is-on{background:#160F06;border-color:#160F06;color:#FFE27A}
.blog-card{border-radius:1.5rem;background:#fff;border:1px solid rgba(242,183,5,.25);box-shadow:0 18px 40px -28px rgba(107,70,2,.55);transition:transform .25s,border-color .25s,box-shadow .25s}
.blog-card:active{transform:scale(.985)}
@media (hover:hover){.blog-card:hover{transform:translateY(-3px);border-color:rgba(242,183,5,.7);box-shadow:0 24px 48px -26px rgba(201,138,4,.7)}}
.blog-cover{display:grid;place-items:center;isolation:isolate}
.blog-cover::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 50%,rgba(255,226,122,.35),transparent 60%)}
.blog-ico{display:grid;place-items:center;width:5rem;height:5rem;color:#FFE27A;background:rgba(22,15,6,.55);clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%);box-shadow:0 0 30px rgba(242,183,5,.5)}
.blog-title{line-height:1.3}
html[lang="ta"] .blog-title{font-family:"Noto Serif Tamil",serif;line-height:1.6}
html[lang="ta"] .blog-h1 .font-display{font-family:"Noto Serif Tamil",serif;line-height:1.6}
.blog-body{color:#2B1D0E;font-size:1.0625rem;line-height:1.8}
html[lang="ta"] .blog-body{line-height:1.95}
.blog-body p{margin:0 0 1.1rem}
.blog-body h2{margin:2rem 0 .8rem;font-family:"Cormorant Garamond","Noto Serif Tamil",serif;font-size:1.6rem;font-weight:600;line-height:1.35;color:#6B4602}
html[lang="ta"] .blog-body h2{font-family:"Noto Serif Tamil",serif;font-size:1.3rem;line-height:1.6}
.blog-body ul{margin:0 0 1.1rem 1.2rem;list-style:disc}
.blog-more{display:inline-flex;align-items:center;gap:.4rem;margin-top:.5rem;font-weight:600;color:#9A6603;text-decoration:underline;text-underline-offset:4px}
.blog-table{margin:1rem 0 1.5rem;display:grid;gap:.6rem}
.blog-row{display:flex;gap:.9rem;align-items:flex-start;border-radius:1rem;background:#fff;border:1px solid rgba(242,183,5,.25);padding:.85rem 1rem}
.blog-row p{margin:0;line-height:1.55}
.blog-swatch{flex:none;width:1.4rem;height:1.4rem;margin-top:.2rem;border-radius:.4rem;border:1px solid rgba(0,0,0,.15)}

/* Blog cover graphics (Sabhai icons from the Teachings page; seven veils) */
.blog-art{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:6% 5%}
.blog-art-sabhai{gap:4%;background:radial-gradient(circle at 50% 60%,rgba(255,226,122,.18),transparent 65%),#120c05}
.blog-sbh{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0;height:100%}
.blog-sbh-pair{flex:1;min-height:0;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2%}
.blog-sbh .blog-gop{height:100%;width:auto;max-width:62%}
.blog-sbh .blog-lit{height:42%;width:auto;max-width:36%;margin-bottom:6%}
.blog-sbh-0 .blog-lit{filter:drop-shadow(0 0 10px rgba(242,183,5,.85))}
.blog-sbh-1 .blog-lit{filter:drop-shadow(0 0 10px rgba(255,255,255,.75))}
.blog-sbh-2 .blog-lit{filter:drop-shadow(0 0 10px rgba(217,69,43,.85))}
.blog-sbh-n{margin-top:.35rem;font-family:"Noto Serif Tamil",serif;font-weight:700;font-size:clamp(.62rem,2.6vw,.9rem);color:#FFE27A;white-space:nowrap}
.blog-art-veils{background:radial-gradient(circle at 50% 50%,#2a1c0a 0%,#0d0903 70%);flex-direction:column;padding:4%}
.blog-veils-svg{height:86%;width:auto;flex:1;min-height:0}
.blog-veil{animation:blogVeil 1.2s ease both}
@keyframes blogVeil{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
.blog-art-label{margin-top:.2rem;font-family:"Noto Serif Tamil",serif;font-weight:800;font-size:clamp(.7rem,2.8vw,1.05rem);color:#FFE27A;text-shadow:0 0 12px rgba(242,183,5,.8)}
.blog-art-poosam{background:linear-gradient(180deg,#0b1030 0%,#1c1440 45%,#3D2801 100%);align-items:flex-end;padding-bottom:4%}
.blog-art-poosam .blog-gop-lg{height:78%;width:auto;filter:drop-shadow(0 0 16px rgba(242,183,5,.55))}
.blog-moon{position:absolute;top:10%;right:14%;width:16%;aspect-ratio:1;border-radius:9999px;background:radial-gradient(circle at 40% 38%,#FFFDF0,#FFE9A8 55%,#E9C46A);box-shadow:0 0 40px 8px rgba(255,233,168,.55)}
.blog-star{position:absolute;top:18%;left:18%;width:.5rem;height:.5rem;border-radius:9999px;background:#fff;box-shadow:0 0 10px 3px rgba(255,255,255,.8),2.4rem 1.2rem 0 -1px rgba(255,255,255,.7),5rem -.4rem 0 -1.5px rgba(255,255,255,.6)}
@media (prefers-reduced-motion: reduce){.blog-veil{animation:none}}

/* Home: monthly Poosam schedule — next darshan card */
.poosam-next{background:radial-gradient(circle at 15% 20%,rgba(242,183,5,.28),transparent 55%),linear-gradient(160deg,#2a1c08,#140d05);border:1px solid rgba(242,183,5,.55);box-shadow:0 0 50px -14px rgba(242,183,5,.65)}
.poosam-count{display:grid;place-items:center;width:6.5rem;height:6.5rem;background:linear-gradient(160deg,#FFE27A,#F2B705 55%,#C98A04);clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%)}
.poosam-count-wrap{animation:poosamGlow 2.8s ease-in-out infinite}
@media (min-width:640px){.poosam-count{width:7.5rem;height:7.5rem}}
@keyframes poosamGlow{0%,100%{filter:drop-shadow(0 0 6px rgba(242,183,5,.5))}50%{filter:drop-shadow(0 0 18px rgba(242,183,5,.95))}}
.poosam-month{line-height:1.45}
@media (prefers-reduced-motion: reduce){.poosam-count-wrap{animation:none}}

/* Monthly class schedule: countdown badge (days to the next class Sunday) */
.sch-count{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:4.25rem;height:4.25rem;line-height:1;text-align:center;color:#160F06;
  background:linear-gradient(160deg,#FFE27A,#F2B705 55%,#C98A04);clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%)}
.sch-count-n{font-family:"Cormorant Garamond",serif;font-size:2rem;font-weight:700}
.sch-count-w{margin-top:.1rem;font-size:.6rem;font-weight:700;padding:0 .2rem}
.sch-count-w.is-word{margin:0;font-size:.85rem}
html[lang="ta"] .ev-main{font-family:"Noto Serif Tamil",serif;font-size:1.3rem;line-height:1.6}
@media (min-width:640px){html[lang="ta"] .ev-main{font-size:1.5rem}}

/* Sacred days: card titles at 70% of their former size (24px → 17px; Aippasi lines 24/30px → 17/21px) */
.ev-title{font-size:1.05rem;line-height:1.35}
.ev-title-lg{font-size:1.05rem}
@media (min-width:640px){.ev-title-lg{font-size:1.3rem}}
html[lang="ta"] .ev-title{font-family:"Noto Serif Tamil",serif;font-size:.95rem;line-height:1.6}
html[lang="ta"] .ev-title-lg{font-size:.95rem}
@media (min-width:640px){html[lang="ta"] .ev-title-lg{font-size:1.1rem}}

/* Our Divine Purpose — one card style for all six purposes */
.dp-card{display:flex;flex-direction:column;border-radius:1.5rem;background:#fff;border:1px solid rgba(242,183,5,.3);padding:1.75rem;box-shadow:0 14px 40px -24px rgba(107,70,2,.45);transition:border-color .25s,transform .25s,box-shadow .25s}
@media (hover:hover){.dp-card:hover{border-color:rgba(242,183,5,.8);transform:translateY(-3px);box-shadow:0 24px 50px -26px rgba(201,138,4,.65)}}
.dp-ico{display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;color:#160F06;background:linear-gradient(160deg,#FFE27A,#F2B705 60%,#C98A04);clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%)}
.dp-title{margin-top:1.1rem;font-family:"Cormorant Garamond",serif;font-size:1.75rem;font-weight:600;line-height:1.2;color:#160F06}
.dp-tag{margin-top:.25rem;font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#9A6603}
.dp-text{margin-top:.85rem;color:rgba(22,15,6,.72);line-height:1.7;font-size:.975rem}
.dp-cta{margin-top:auto;padding-top:1.25rem;display:inline-flex;align-items:center;gap:.4rem;align-self:flex-start;font-weight:600;color:#9A6603}
.dp-card:hover .dp-cta{color:#6B4602}
html[lang="ta"] .dp-title{font-family:"Noto Serif Tamil",serif;font-size:1.35rem;line-height:1.55}
html[lang="ta"] .dp-tag{letter-spacing:.02em;text-transform:none;font-size:.85rem}
html[lang="ta"] .dp-text{line-height:1.85}

/* ---------- நல்லடக்கம் (Nalladakkam) ---------- */
html[lang="ta"] .na-h1 .font-display,html[lang="ta"] .na-h2{font-family:"Noto Serif Tamil",serif;line-height:1.55}
.na-verse{line-height:1.9}
.na-step-t{line-height:1.5}
.na-fs{border:1px solid rgba(242,183,5,.25);border-radius:1.25rem;padding:1.25rem}
@media (min-width:640px){.na-fs{padding:1.5rem}}
.na-fs legend{padding:0 .5rem;font-weight:700;color:#FFD34D}
.na-l{display:grid;gap:.35rem;font-size:.875rem;color:rgba(255,251,240,.8)}
.na-l input,.na-l select,.na-l textarea{width:100%;border-radius:.85rem;border:1px solid rgba(255,251,240,.2);background:rgba(255,255,255,.06);color:#FFFBF0;padding:.75rem .9rem;font-size:16px}
.na-l select option{color:#160F06}
.na-l input:focus,.na-l select:focus,.na-l textarea:focus{outline:none;border-color:#F2B705;box-shadow:0 0 0 3px rgba(242,183,5,.25)}
.na-l input[type=date]{color-scheme:dark}
.na-bad{border-color:#f87171!important;box-shadow:0 0 0 3px rgba(248,113,113,.2)!important}
.na-sign{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:1.35rem!important}
.na-radio,.na-check{display:flex;gap:.75rem;align-items:flex-start;border-radius:.85rem;padding:.7rem .85rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,251,240,.1);cursor:pointer;color:rgba(255,251,240,.85);line-height:1.6}
.na-radio input,.na-check input{margin-top:.3rem;width:1.15rem;height:1.15rem;accent-color:#F2B705;flex:none}
.na-check:has(input:checked){border-color:rgba(242,183,5,.55);background:rgba(242,183,5,.08)}
.na-decl-bad{border-color:#f87171}
.na-upload{display:flex;flex-direction:column;align-items:center;gap:.35rem;text-align:center;border:2px dashed rgba(242,183,5,.45);border-radius:1.1rem;padding:1.4rem 1rem;cursor:pointer;transition:background .2s}
.na-upload:hover{background:rgba(242,183,5,.06)}
.na-print{display:none}
@media print{
  body *{visibility:hidden}
  .na-print,.na-print *{visibility:visible}
  .na-print{display:block;position:absolute;inset:0 auto auto 0;width:100%;padding:12mm 14mm;color:#000;background:#fff;font-family:"Noto Serif Tamil","Noto Sans Tamil",serif}
  .na-p-org{font-size:10pt;text-align:center;color:#444}
  .na-p-title{margin:4mm 0 6mm;font-size:18pt;font-weight:700;text-align:center;letter-spacing:.05em}
  .na-p-body{white-space:pre-wrap;font-family:inherit;font-size:11pt;line-height:1.7}
  .na-p-sigs{margin-top:14mm;display:grid;grid-template-columns:repeat(3,1fr);gap:8mm;font-size:10pt}
  .na-p-sigs div{display:grid;gap:1mm}
  .na-p-line{display:block;border-top:1px solid #000;height:12mm}
  .na-p-foot{margin-top:10mm;font-size:8.5pt;color:#444;line-height:1.5}
  @page{size:A4;margin:0}
}

/* Home gallery: meditation session */
.gal-tile{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:1rem;background:#f5ecd6;border:1px solid rgba(242,183,5,.25)}
.gal-tile img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
@media (hover:hover){.gal-tile:hover img{transform:scale(1.06)}}
.gal-zoom{position:absolute;right:.5rem;bottom:.5rem;width:2rem;height:2rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:rgba(22,15,6,.6);color:#FFE27A;opacity:.85}

/* Nalladakkam: featured verse quotes */
.na-quote{position:relative;margin:0;overflow:hidden;border-radius:1.75rem;padding:2rem 1.5rem 1.75rem;background:radial-gradient(circle at 12% 0%,rgba(242,183,5,.28),transparent 55%),linear-gradient(160deg,#2a1c08,#140d05);border:1px solid rgba(242,183,5,.55);box-shadow:0 30px 60px -28px rgba(22,15,6,.85),0 0 50px -20px rgba(242,183,5,.5)}
@media (min-width:640px){.na-quote{padding:2.75rem 2.5rem 2.25rem}}
.na-quote-gold{background:linear-gradient(150deg,#FFE27A,#F2B705 55%,#C98A04);border-color:rgba(107,70,2,.35)}
.na-qmark{position:absolute;top:-.35em;left:.15em;font-family:"Cormorant Garamond",serif;font-size:9rem;line-height:1;color:rgba(242,183,5,.25);pointer-events:none}
.na-quote-gold .na-qmark{color:rgba(22,15,6,.15)}
.na-qtext{position:relative;margin:0;font-family:"Noto Serif Tamil",serif;font-weight:700;font-size:1.2rem;line-height:2;color:#FFE27A;text-shadow:0 0 18px rgba(242,183,5,.35)}
@media (min-width:640px){.na-qtext{font-size:1.45rem}}
.na-qtext-lg{font-size:1.5rem;line-height:1.7}
@media (min-width:640px){.na-qtext-lg{font-size:2.1rem}}
.na-quote-gold .na-qtext{color:#160F06;text-shadow:none}
.na-qref{position:relative;margin-top:1rem;display:inline-flex;align-items:center;gap:.45rem;font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#FFD34D}
.na-quote-gold .na-qref{color:#6B4602}
.na-qmean{position:relative;margin-top:.6rem;font-size:.95rem;line-height:1.75;color:rgba(255,251,240,.78)}
.na-quote-gold .na-qmean{color:rgba(22,15,6,.78)}

.na-qmark{font-family:Georgia,"Times New Roman",serif}

/* Nalladakkam: Vallalar's Samadhi Kattalai — manuscript letter */
.kt-paper{position:relative;border-radius:1.25rem;padding:2.75rem 1.4rem 1.5rem;color:#3a2710;
  background:
    radial-gradient(circle at 20% 10%,rgba(255,255,255,.55),transparent 40%),
    radial-gradient(circle at 85% 90%,rgba(160,110,30,.18),transparent 45%),
    linear-gradient(160deg,#fbf1d6 0%,#f3e2b6 55%,#ead39b 100%);
  box-shadow:0 0 0 1px rgba(107,70,2,.25),0 0 0 7px rgba(242,183,5,.18),0 40px 80px -30px rgba(0,0,0,.8);}
@media (min-width:640px){.kt-paper{padding:3.25rem 3rem 2rem}}
.kt-paper::before{content:"";position:absolute;inset:.6rem;border:1px solid rgba(107,70,2,.28);border-radius:.85rem;pointer-events:none}
.kt-seal{position:absolute;top:-1.6rem;left:50%;transform:translateX(-50%);width:3.4rem;height:3.4rem;display:flex;align-items:center;justify-content:center;color:#FFE27A;
  background:radial-gradient(circle at 35% 30%,#b8321f,#7a1a0e 70%);clip-path:polygon(29.3% 0,70.7% 0,100% 29.3%,100% 70.7%,70.7% 100%,29.3% 100%,0 70.7%,0 29.3%);filter:drop-shadow(0 6px 10px rgba(0,0,0,.4))}
.kt-head{text-align:center;border-bottom:1px dashed rgba(107,70,2,.35);padding-bottom:1rem}
.kt-no{font-family:"Cormorant Garamond",serif;font-size:.85rem;font-weight:700;letter-spacing:.2em;color:#9A6603}
.kt-title{margin-top:.35rem;font-family:"Noto Serif Tamil",serif;font-weight:800;font-size:1.25rem;line-height:1.6;color:#4a2c06}
@media (min-width:640px){.kt-title{font-size:1.55rem}}
.kt-date{margin-top:.5rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem;font-size:.8rem;font-weight:700;color:#7a5410}
.kt-invoc{margin-top:.75rem;font-family:"Noto Serif Tamil",serif;font-weight:700;color:#9b2a17;letter-spacing:.05em}
.kt-body{position:relative;margin-top:1.25rem;font-family:"Noto Serif Tamil",serif;font-size:1.02rem;line-height:2.05;text-align:left;hyphens:none;word-break:normal}
@media (min-width:640px){.kt-body{font-size:1.08rem}}
.kt-body p{margin:0 0 1rem}
.kt-drop{font-weight:600;color:#4a2c06}
.kt-mark{background:linear-gradient(transparent 55%,rgba(242,183,5,.55) 55%);color:inherit;font-weight:700;padding:0 .1em}
.kt-truth{color:#9b2a17;white-space:nowrap}
.kt-fade{position:absolute;left:0;right:0;bottom:0;height:4.5rem;background:linear-gradient(rgba(243,226,182,0),#efdcaa)}
.kt-sign{margin-top:1.5rem;padding-top:1rem;border-top:1px dashed rgba(107,70,2,.35);text-align:right;font-size:.95rem;line-height:1.7}
.kt-sign p{margin:0}
.kt-name{margin-top:.25rem!important;font-weight:800;font-size:1.15rem;color:#4a2c06}
.kt-actions{display:flex;justify-content:center;margin-top:.5rem}
.kt-btn{display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;padding:.8rem 1.6rem;font-weight:700;color:#FFE27A;background:#3a2710;box-shadow:0 10px 25px -10px rgba(58,39,16,.8);transition:transform .2s,background .2s}
.kt-btn:hover{background:#4a2c06;transform:translateY(-1px)}

/* Vallalar page: History (book) */
html[lang="ta"] .vh-h2{font-family:"Noto Serif Tamil",serif;line-height:1.5}
.vh-toc{margin-top:1.25rem;padding:1rem;border-radius:1rem;background:rgba(107,70,2,.07);border:1px solid rgba(107,70,2,.18)}
.vh-toc-t{font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7a5410;margin-bottom:.6rem}
.vh-chip{border-radius:9999px;padding:.35rem .8rem;font-family:"Noto Serif Tamil",serif;font-size:.82rem;font-weight:700;color:#4a2c06;background:rgba(255,255,255,.6);border:1px solid rgba(107,70,2,.25)}
.vh-chip:hover{background:#fff;border-color:#C98A04}
.vh-text{max-height:none}
.vh-h{margin:2.2rem 0 .9rem;padding-top:1.2rem;border-top:1px dashed rgba(107,70,2,.35);text-align:center;font-family:"Noto Serif Tamil",serif;font-weight:800;font-size:1.2rem;color:#9b2a17}
.vh-verse{white-space:pre-line;margin:1rem auto!important;padding:.9rem 1rem;max-width:34rem;border-left:3px solid #C98A04;background:rgba(242,183,5,.1);border-radius:0 .75rem .75rem 0;font-weight:600;color:#4a2c06;line-height:1.9}
.vh-note{font-size:.85rem;line-height:1.75;color:rgba(58,39,16,.72);padding-left:.75rem;border-left:2px solid rgba(107,70,2,.25)}

/* Monthly Poosam Class card (Home + Paadasalai) */
.poo-class{position:relative;overflow:hidden;border-radius:1.75rem;padding:1.5rem;color:#FFFBF0;
  background:radial-gradient(circle at 10% 15%,rgba(242,183,5,.25),transparent 50%),linear-gradient(160deg,#2a1c08,#140d05);
  border:1px solid rgba(242,183,5,.55);box-shadow:0 30px 60px -30px rgba(22,15,6,.8)}
@media (min-width:640px){.poo-class{padding:2rem}}
html[lang="ta"] .poo-title{font-family:"Noto Serif Tamil",serif;font-size:1.35rem;line-height:1.55}
