/* Seasonal hero themes (see js/hero-theme.js). Each theme restyles the home hero only; keep them quiet. */
.otl-hero__fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }

/* ---------- Halloween: orange dots, an orange highlight and two bats drifting by ---------- */
html[data-hero-theme="halloween"] .otl-hero .otl-highlight { background: #e8650a; }
.otl-hero__fx--halloween .fx-bat { position: absolute; left: 0; top: var(--y); width: calc(var(--sz) * var(--fx-f, 1)); aspect-ratio: 2 / 1; color: #222; opacity: 0; animation: fx-fly var(--dur) linear var(--delay) infinite; }
.otl-hero__fx--halloween .fx-bat svg { display: block; transform-origin: 50% 70%; animation: fx-flap .35s ease-in-out infinite alternate; }
/* the foot of the hero: one quiet silhouette skyline; only windows and pumpkin faces glow */
.otl-hero__fx .fx-ground { position: absolute; left: 0; right: 0; bottom: 0; }
.otl-hero__fx .fx-skyline { display: block; }
.otl-hero__fx .sk-ink { fill: #222; opacity: .2; }
.otl-hero__fx .sk-ink2 { fill: #222; opacity: .34; }
.otl-hero__fx .sk-glow { fill: #ff9a3c; filter: drop-shadow(0 0 5px rgba(255,150,40,.8)); animation: fx-flicker 3.4s ease-in-out infinite; }
.otl-hero__fx--halloween .fx-house { position: absolute; right: 4%; bottom: 0; aspect-ratio: 140 / 130; }
.otl-hero__fx--halloween .fx-house svg { display: block; width: 100%; height: 100%; }
.otl-hero__fx .fx-ember { position: absolute; bottom: 0; width: calc(var(--s) * var(--fx-f, 1)); height: calc(var(--s) * var(--fx-f, 1)); border-radius: 50%; background: #ff9a3c; box-shadow: 0 0 6px 1px rgba(255,140,40,.6); opacity: 0; animation: fx-rise var(--t) ease-out var(--w) infinite; }
html[data-hero-theme="halloween"] .otl-hero__scroll, html[data-hero-theme="diwali"] .otl-hero__scroll { bottom: calc(1.2rem + var(--fx-h, 96px)); }
@keyframes fx-flicker { 0%, 100% { opacity: .95; } 45% { opacity: .75; } 70% { opacity: 1; } }
@keyframes fx-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .85; } 100% { transform: translate(14px, -46vh); opacity: 0; } }
@keyframes fx-fly { 0% { transform: translate(-12vw, 0); opacity: 0; } 8% { opacity: .55; } 50% { transform: translate(52vw, 3vh); } 92% { opacity: .55; } 100% { transform: translate(112vw, -3vh); opacity: 0; } }
@keyframes fx-flap { from { transform: scaleY(1); } to { transform: scaleY(.5); } }
@media (prefers-reduced-motion: reduce) { .otl-hero__fx .fx-bat, .otl-hero__fx .fx-bat svg, .otl-hero__fx .sk-glow, .otl-hero__fx .fx-ember { animation: none; } .otl-hero__fx .fx-bat { opacity: .5; } }

/* ghosts rising from the skyline */
.otl-hero__fx--halloween .fx-ghost2 { position: absolute; bottom: calc(var(--fx-h, 96px) - 20px); width: var(--gs); aspect-ratio: 3 / 4; animation: fx-float var(--gt) linear var(--gd) infinite; }
.otl-hero__fx--halloween .fx-ghost2 svg { display: block; width: 100%; height: 100%; fill: #222; opacity: .11; }
@keyframes fx-float { 0% { transform: translate(0, 0); opacity: 0; } 14% { opacity: 1; } 55% { transform: translate(22px, -42vh); opacity: .8; } 100% { transform: translate(-8px, -78vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .otl-hero__fx--halloween .fx-ghost2 { animation: none; opacity: .6; } }

/* ---------- Diwali: marigold highlight, a row of lit diyas, small fireworks, sky lanterns, a rangoli border ---------- */
html[data-hero-theme="diwali"] .otl-hero .otl-highlight { background: #e07b00; }
.otl-hero__fx--diwali .fx-diyas { position: absolute; left: 0; right: 0; bottom: calc(10px * var(--fx-f, 1)); height: calc(64px * var(--fx-f, 1)); }
.otl-hero__fx--diwali .fx-diya { position: absolute; bottom: 0; width: calc(40px * var(--fx-f, 1)); height: calc(18px * var(--fx-f, 1)); transform: translateX(-50%); }
.otl-hero__fx--diwali .fx-diya svg { display: block; width: 100%; height: 100%; }
.otl-hero__fx--diwali .fx-diya b { position: absolute; left: 50%; bottom: calc(12px * var(--fx-f, 1)); width: calc(8px * var(--fx-f, 1)); height: calc(16px * var(--fx-f, 1)); margin-left: calc(-4px * var(--fx-f, 1)); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(#fff3c4, #ffb300 55%, #ff7a1a); transform-origin: 50% 100%; animation: fx-flame 1.6s ease-in-out var(--d) infinite; }
.otl-hero__fx--diwali .fx-diya u { position: absolute; left: 50%; bottom: calc(-6px * var(--fx-f, 1)); width: calc(78px * var(--fx-f, 1)); height: calc(78px * var(--fx-f, 1)); margin-left: calc(-39px * var(--fx-f, 1)); border-radius: 50%; background: radial-gradient(circle, rgba(255,170,40,.34), rgba(255,170,40,0) 66%); animation: fx-halo 2.4s ease-in-out var(--d) infinite; }
.otl-hero__fx--diwali .fx-rangoli { position: absolute; left: 0; right: 0; bottom: 0; height: calc(7px * var(--fx-f, 1)); background: radial-gradient(circle at 50% 50%, #ffb300 0 2px, transparent 2.4px) 0 0 / calc(22px * var(--fx-f, 1)) 100% repeat-x, radial-gradient(circle at 50% 50%, #e83e8c 0 1.6px, transparent 2px) calc(11px * var(--fx-f, 1)) 0 / calc(22px * var(--fx-f, 1)) 100% repeat-x; opacity: .85; }
.otl-hero__fx--diwali .fx-burst { position: absolute; width: 0; height: 0; }
.otl-hero__fx--diwali .fx-burst i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); opacity: 0; animation: fx-spark 8.5s ease-out var(--bd) infinite; }
.otl-hero__fx--diwali .fx-lantern { position: absolute; bottom: calc(var(--fx-h, 96px) - 10px); width: var(--gs); aspect-ratio: 3 / 4; animation: fx-lift var(--gt) linear var(--gd) infinite; }
.otl-hero__fx--diwali .fx-lantern i { display: block; width: 100%; height: 100%; border-radius: 22% 22% 32% 32% / 18% 18% 28% 28%; background: linear-gradient(#ffcf70, #ff9a3c); box-shadow: 0 0 calc(14px * var(--fx-f, 1)) rgba(255,150,40,.7); opacity: .85; }
@keyframes fx-lift { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(18px, -40vh); } 100% { transform: translate(-14px, -80vh); opacity: 0; } }
@keyframes fx-flame { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 35% { transform: scale(.92, 1.1) rotate(2deg); } 70% { transform: scale(1.04, .94) rotate(-1deg); } }
@keyframes fx-halo { 0%, 100% { opacity: .85; } 50% { opacity: .55; } }
@keyframes fx-spark { 0% { transform: rotate(var(--a)) translateX(0); opacity: 0; } 4% { opacity: 1; } 26% { transform: rotate(var(--a)) translateX(var(--br)); opacity: .9; } 46% { transform: rotate(var(--a)) translateX(calc(var(--br) * 1.12)) translateY(10px); opacity: 0; } 100% { transform: rotate(var(--a)) translateX(calc(var(--br) * 1.12)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .otl-hero__fx--diwali .fx-lantern, .otl-hero__fx--diwali .fx-diya b, .otl-hero__fx--diwali .fx-diya u, .otl-hero__fx--diwali .fx-burst i { animation: none; } .otl-hero__fx--diwali .fx-lantern { opacity: .7; } }

/* With a theme on, the globe dots go; the theme scene is the hero. ?dots=on brings them back for comparison. */
html[data-hero-theme]:not([data-hero-dots="on"]) #globe-3d-canvas { display: none; }

/* the festive message: one small line, centred just above the diyas */
.otl-hero__fx .fx-greeting { position: absolute; left: 0; right: 0; bottom: calc(var(--fx-h, 78px) + .9rem); margin: 0 auto; padding: 0 1.5rem; max-width: 24rem; text-align: center; text-wrap: balance; font: 500 .72rem/1.6 var(--otl-font-mono); letter-spacing: .12em; text-transform: uppercase; color: #b85f00; opacity: 0; animation: fx-greeting 1.2s ease 2.2s forwards; }
@keyframes fx-greeting { to { opacity: 1; } }
/* with a theme on, the scene fills the hero, so the Scroll cue goes */
html[data-hero-theme] .otl-hero__scroll { display: none; }
@media (prefers-reduced-motion: reduce) { .otl-hero__fx .fx-greeting { animation: none; opacity: 1; } }
