/* Horizon Finder intro loader — pairs with hf-loader.js (which adds the markup and .hfl-on to <html>).
   Self-contained: no variables from the host app. If the script stalls, the panel fades out on its own after 4s. */
.hfl { display: none; }
.hfl-on .hfl { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 90% at 50% 38%, #FFFFFF 0%, #F2F6FC 60%, #E8F0FB 100%); transition: transform .8s cubic-bezier(.76, 0, .24, 1); animation: hfl-bail .6s ease 4s forwards; }
.hfl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #1A4F9C, #2F86F0 45%, #22B957); }
.hfl__hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 24vh; min-height: 110px; }
.hfl__inner { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -4vh; transition: opacity .35s ease, transform .5s ease; }
.hfl__mark { display: block; width: min(400px, 82vw); height: auto; overflow: visible; }
.hfl__p { transform-box: fill-box; }
.hfl__h1, .hfl__h2, .hfl__f1 { transform-origin: 50% 100%; animation: hfl-rise .55s cubic-bezier(.2, .9, .3, 1.12) both; }
.hfl__hx, .hfl__f2, .hfl__f3 { transform-origin: 0 50%; animation: hfl-grow .4s cubic-bezier(.2, .9, .3, 1.1) both; }
.hfl__h1 { animation-delay: .05s; }
.hfl__h2 { animation-delay: .15s; }
.hfl__f1 { animation-delay: .28s; }
.hfl__hx { animation-delay: .42s; }
.hfl__f2 { animation-delay: .55s; }
.hfl__f3 { animation-delay: .68s; }
.hfl__track { fill: none; stroke: #1A4F9C; stroke-opacity: .22; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .9 1.6; animation: hfl-fade .6s ease .75s both; }
.hfl__fly { animation: hfl-fade .5s ease .85s both; }
.hfl__trail { fill: none; stroke: url(#hflT); stroke-width: 4; stroke-linecap: round; opacity: .85; }
.hfl__sheen { animation: hfl-sheen 2.4s ease-in-out 1.15s infinite; }
.hfl__name::before { content: "Horizon Finder India"; }
.hfl__name { margin-top: .9rem; font-family: inherit; font-weight: 700; font-size: clamp(.8rem, 2.6vw, .95rem); line-height: 1.2; letter-spacing: .32em; text-transform: uppercase; color: #0F2F63; padding-left: .32em; animation: hfl-up .6s ease .85s both; }
.hfl__tag::before { content: "Experience the excitement."; }
.hfl__tag { margin-top: .4rem; font-family: inherit; font-style: italic; font-weight: 600; font-size: clamp(.95rem, 3vw, 1.05rem); line-height: 1.2; color: #14703A; animation: hfl-up .6s ease 1s both; }
.hfl__bar { position: relative; width: min(180px, 46vw); height: 3px; margin-top: 1.3rem; border-radius: 3px; background: #D5E2F2; overflow: hidden; animation: hfl-fade .4s ease .2s both; }
.hfl__bar span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #1A4F9C, #2F86F0 50%, #22B957); transform: scaleX(0); transform-origin: 0 50%; animation: hfl-load 2.8s cubic-bezier(.1, .6, .2, 1) .2s forwards; }
.hfl.is-out { transform: translateY(-100%); }
.hfl.is-out .hfl__inner { opacity: 0; transform: translateY(-28px) scale(.96); }
@keyframes hfl-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hfl-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hfl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hfl-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hfl-load { to { transform: scaleX(.88); } }
@keyframes hfl-sheen { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(860px); } }
@keyframes hfl-bail { to { opacity: 0; visibility: hidden; } }
@media print { .hfl { display: none !important; } }
