/*
 * Best Lift — animations.css
 * Purpose: Preloader, scroll-hero, Before & After slider, control panel transitions
 * Phase ref: Phase 2-3
 *
 * Only the Digital Elevator Control Panel's structural/sticky styling is
 * implemented here so far (needed for index.php to render correctly).
 * The CSS/SVG preloader (2.3), scroll-driven hero parallax (2.4), and
 * Before & After slider (3.7) are separate upcoming slices — their
 * keyframes/transitions get added to this same file without touching
 * the control panel rules below.
 */

/* ---------------------------------------------------------------------
 * Digital Elevator Control Panel
 * Desktop: sticky vertical bar on the right edge.
 * Mobile:  bottom-fixed horizontal bar (touch-friendly).
 * ------------------------------------------------------------------- */
.elevator-control-panel {
    position: fixed;
    z-index: var(--z-control-panel);
    display: flex;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);

    /* Mobile: bottom bar */
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-around;
}

.elevator-control-panel__btn {
    flex: 1;
    text-align: center;
    padding: var(--space-xs) 0;
    color: var(--color-text-on-primary);
    font-weight: 700;
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
}

.elevator-control-panel__btn:hover,
.elevator-control-panel__btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
    .elevator-control-panel {
        /* Desktop: vertical sidebar, right edge, vertically centered */
        top: 50%;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
        width: var(--control-panel-width);
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

    .elevator-control-panel__btn {
        padding: var(--space-sm) 0;
    }
}

/* main.js's IntersectionObserver adds/removes this as the visitor scrolls
   past each floor's section (#gf, #1f, #2f, #3f). */
.elevator-control-panel__btn.is-active {
    background: var(--color-accent);
}

/* ---------------------------------------------------------------------
 * Elevator Rise Preloader (2.3)
 * Injected entirely by animations.js (no markup added to header.php) —
 * a full-viewport overlay with a floor counter + opening doors, faded out
 * once window "load" fires.
 * ------------------------------------------------------------------- */
.bl-preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-midnight);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.bl-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---------------------------------------------------------------------
 * Shaft scenery — fills the rest of the screen (glow, moving floor lines,
 * guide rails, rising sparks). Everything loops on the same --bl-loop
 * clock as the lift: the "world" moves down while the car rises, then
 * eases to a stop when the car arrives and the doors open.
 * ------------------------------------------------------------------- */
.bl-preloader {
    --bl-loop: 1.6s;
    --bl-rail: min(190px, 38vw);
    overflow: hidden;
}

.bl-preloader__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(680px, 130vw);
    height: min(680px, 130vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: radial-gradient(circle, rgba(120, 35, 170, 0.5) 0%, rgba(75, 0, 114, 0.2) 38%, transparent 68%);
    animation: bl-glow var(--bl-loop) ease-in-out infinite;
}

/* Horizontal floor lines streaming downward = the car is rising */
.bl-preloader__floorlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.08) 0, rgba(248, 249, 250, 0.08) 1px, transparent 1px);
    background-size: 100% 120px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
    animation: bl-wall var(--bl-loop) cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

/* Guide rails with brackets passing by */
.bl-preloader__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22px;
    pointer-events: none;
    background-image:
        linear-gradient(180deg, #8d889a 0 5px, transparent 5px),
        linear-gradient(90deg, transparent 8px, #5b5668 8px, #a29eb0 11px, #4a4555 14px, transparent 14px);
    background-size: 100% 120px, 100% 100%;
    background-repeat: repeat-y, no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    opacity: 0.75;
    animation: bl-rail var(--bl-loop) cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.bl-preloader__rail--l { left: calc(50% - var(--bl-rail) - 11px); }
.bl-preloader__rail--r { left: calc(50% + var(--bl-rail) - 11px); }

/* Rising sparks (spans injected by animations.js) */
.bl-preloader__sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bl-preloader__spark {
    position: absolute;
    bottom: -12px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(61, 220, 132, 0.85);
    box-shadow: 0 0 4px 1px rgba(61, 220, 132, 0.45);
    opacity: 0;
    animation: bl-spark var(--d) linear var(--dl) infinite;
}
.bl-preloader__spark:nth-child(3n) {
    background: rgba(190, 120, 255, 0.85);
    box-shadow: 0 0 4px 1px rgba(150, 70, 230, 0.5);
}
.bl-preloader__spark:nth-child(5n) {
    background: rgba(255, 238, 200, 0.9);
    box-shadow: 0 0 4px 1px rgba(255, 220, 150, 0.4);
}

/* Steel cable the car hangs from */
.bl-preloader__cable {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 4px;
    height: 60vh;
    transform: translateX(-50%);
    pointer-events: none;
    background: repeating-linear-gradient(180deg, #8d889a 0 3px, #4a4555 3px 6px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%);
    mask-image: linear-gradient(180deg, transparent, #000 65%);
}

/* Brand + status text under the lift */
.bl-preloader__brand {
    margin-top: 6px;
    padding-left: 0.45em;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(90deg, rgba(248, 249, 250, 0.35) 0%, #ffffff 50%, rgba(248, 249, 250, 0.35) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: bl-brand-in 0.7s ease-out both, bl-shimmer 2.4s linear infinite;
}

.bl-preloader__status {
    display: grid;
    justify-items: center;
    height: 18px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 249, 250, 0.6);
}
.bl-preloader.is-bn .bl-preloader__status { letter-spacing: 0; text-transform: none; }

.bl-preloader__status > span {
    grid-area: 1 / 1;
    white-space: nowrap;
}

.bl-preloader__status-go { animation: bl-status-go var(--bl-loop) linear infinite; }
.bl-preloader__status-go i {
    font-style: normal;
    animation: bl-dot 1.2s ease-in-out infinite;
}
.bl-preloader__status-go i:nth-of-type(2) { animation-delay: 0.2s; }
.bl-preloader__status-go i:nth-of-type(3) { animation-delay: 0.4s; }

.bl-preloader__status-arrived {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(15, 130, 71, 0.8);
    opacity: 0;
    animation: bl-status-arrived var(--bl-loop) linear infinite;
}

@keyframes bl-glow {
    0%   { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    30%  { opacity: 0.8;  transform: translate(-50%, -50%) scale(1.05); }
    58%  { opacity: 0.6;  transform: translate(-50%, -50%) scale(1); }
    66%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.18); }
    90%  { opacity: 0.85; transform: translate(-50%, -50%) scale(1.12); }
    100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
}

@keyframes bl-wall {
    0%        { background-position: 0 0; }
    60%, 100% { background-position: 0 360px; }
}

@keyframes bl-rail {
    0%        { background-position: 0 0, 0 0; }
    60%, 100% { background-position: 0 360px, 0 0; }
}

@keyframes bl-spark {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    12%  { opacity: 0.9; }
    85%  { opacity: 0.7; }
    100% { transform: translate3d(var(--dx, 0px), -105vh, 0); opacity: 0; }
}

@keyframes bl-brand-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bl-shimmer {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@keyframes bl-status-go {
    0%, 56%   { opacity: 1; }
    62%, 100% { opacity: 0; }
}

@keyframes bl-status-arrived {
    0%, 58%   { opacity: 0; }
    66%, 90%  { opacity: 1; }
    98%, 100% { opacity: 0; }
}

@keyframes bl-dot {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 1; }
}

.bl-preloader__lift {
    /* Lift colours — change these to restyle the whole car.
       For purple doors: --bl-door-a:#2e0046; --bl-door-b:#5a0b8a; --bl-door-c:#8a3bbf; */
    --bl-loop: 1.6s;
    --bl-door-a: #5d616c;
    --bl-door-b: #aeb2bd;
    --bl-door-c: #e3e5ea;

    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Floor display — dark LED panel in a steel bezel */
.bl-preloader__display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #0a0610 0%, #150b20 100%);
    border: 2px solid #4a4555;
    box-shadow:
        0 0 0 1px #0d021a,
        inset 0 2px 6px rgba(0, 0, 0, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 6px rgba(15, 130, 71, 0.9), 0 0 14px rgba(15, 130, 71, 0.55);
    animation: bl-arrive var(--bl-loop) ease-out infinite;
}

.bl-preloader__arrow {
    font-size: 12px;
    animation: bl-arrow var(--bl-loop) ease-in-out infinite;
}

.bl-preloader__floors {
    display: block;
    height: 28px;
    min-width: 2.2ch;
    overflow: hidden;
    text-align: center;
}

.bl-preloader__floors-list {
    display: block;
    animation: bl-floors var(--bl-loop) steps(1, end) infinite;
}

.bl-preloader__floors-list span {
    display: block;
    height: 28px;
}

/* Shaft wrapper: frame + light spill + call buttons */
.bl-preloader__shaft {
    position: relative;
}

/* Door frame (architrave): dark reveal + steel trim + brand-purple line */
.bl-preloader__frame {
    position: relative;
    box-sizing: border-box;
    width: 112px;
    height: 156px;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    border: 4px solid #17111f;
    background: #cfcad8;
    box-shadow:
        0 0 0 3px #8e8a98,
        0 0 0 5px var(--color-primary),
        0 0 38px rgba(75, 0, 114, 0.6);
}

/* Lintel shadow across the top of the opening */
.bl-preloader__frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 14px;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

/* Cabin interior (visible when the doors open) */
.bl-preloader__cab {
    position: absolute;
    inset: 0;
    display: block;
    background:
        linear-gradient(180deg, rgba(255, 246, 220, 0.95) 0, rgba(255, 246, 220, 0) 22%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #ebe8f1 0%, #d3cedd 68%, #bdb7c8 100%);
    transform-origin: 50% 50%;
    animation: bl-rumble var(--bl-loop) linear infinite;
}

/* Handrail */
.bl-preloader__cab::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 54%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, #f6f6f9, #8a8794 55%, #d9d7df);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.28);
}

/* Cabin floor with a soft reflection */
.bl-preloader__cab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 17%;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    background:
        radial-gradient(ellipse at 50% 0, rgba(255, 246, 220, 0.5), transparent 70%),
        linear-gradient(180deg, #7c7686, #4a4455);
}

/* Brushed-steel sliding doors */
.bl-preloader__door {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 50%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(0, 0, 0, 0.06) 1px 3px),
        linear-gradient(90deg,
            var(--bl-door-a) 0%,
            var(--bl-door-b) 22%,
            var(--bl-door-c) 50%,
            var(--bl-door-b) 78%,
            var(--bl-door-a) 100%);
    box-shadow:
        inset 0 12px 14px -8px rgba(0, 0, 0, 0.55),
        inset 0 -12px 14px -8px rgba(0, 0, 0, 0.45);
    animation-duration: var(--bl-loop);
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
    animation-iteration-count: infinite;
}

/* Diagonal highlight + recessed panel line on each door */
.bl-preloader__door::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
}

.bl-preloader__door::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.28);
}

.bl-preloader__door--l {
    left: 0;
    border-right: 2px solid #1b1522;
    animation-name: bl-door-l;
}
.bl-preloader__door--l::after { left: 9px; }

.bl-preloader__door--r {
    right: 0;
    border-left: 2px solid #1b1522;
    animation-name: bl-door-r;
}
.bl-preloader__door--r::after { right: 9px; }

/* Threshold */
.bl-preloader__sill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 7px;
    background: linear-gradient(180deg, #d7d4de, #7d7888 60%, #4a4455);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
}

/* Warm light that spills onto the floor when the doors open */
.bl-preloader__spill {
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 150%;
    height: 30px;
    display: block;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0, rgba(255, 238, 200, 0.55), transparent 70%);
    opacity: 0;
    animation: bl-spill var(--bl-loop) ease-in-out infinite;
}

/* Hall call buttons beside the door */
.bl-preloader__call {
    position: absolute;
    right: -34px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 7px 5px;
    transform: translateY(-50%);
    border-radius: 4px;
    background: linear-gradient(180deg, #b8b5c1, #6e6979);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.bl-preloader__call-btn {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2a2433;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 0 1.5px #d9d7df;
}

.bl-preloader__call-btn--up {
    animation: bl-call var(--bl-loop) ease-in-out infinite;
}

/* Thin progress line */
.bl-preloader__bar {
    box-sizing: border-box;
    width: 112px;
    height: 3px;
    border-radius: 3px;
    background: rgba(248, 249, 250, 0.12);
    overflow: hidden;
}

.bl-preloader__bar span {
    display: block;
    height: 100%;
    background: var(--color-accent);
    animation: bl-bar var(--bl-loop) ease-in-out infinite;
}

/* Floor counter: GF → 1F → 2F → 3F while travelling, then holds on arrival */
@keyframes bl-floors {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-28px); }
    40%  { transform: translateY(-56px); }
    60%  { transform: translateY(-84px); }
    100% { transform: translateY(-84px); }
}

/* Doors stay shut while moving, open after arrival, close again */
@keyframes bl-door-l {
    0%, 62%   { transform: translateX(0); }
    80%, 92%  { transform: translateX(-100%); }
    100%      { transform: translateX(0); }
}

@keyframes bl-door-r {
    0%, 62%   { transform: translateX(0); }
    80%, 92%  { transform: translateX(100%); }
    100%      { transform: translateX(0); }
}

/* Tiny vibration of the cabin while it is travelling */
@keyframes bl-rumble {
    0%   { transform: scale(1.02) translateY(0); }
    5%   { transform: scale(1.02) translateY(0.7px); }
    10%  { transform: scale(1.02) translateY(-0.5px); }
    15%  { transform: scale(1.02) translateY(0.6px); }
    20%  { transform: scale(1.02) translateY(-0.7px); }
    25%  { transform: scale(1.02) translateY(0.5px); }
    30%  { transform: scale(1.02) translateY(-0.6px); }
    35%  { transform: scale(1.02) translateY(0.7px); }
    40%  { transform: scale(1.02) translateY(-0.5px); }
    45%  { transform: scale(1.02) translateY(0.6px); }
    50%  { transform: scale(1.02) translateY(-0.6px); }
    55%  { transform: scale(1.02) translateY(0.4px); }
    60%, 100% { transform: scale(1.02) translateY(0); }
}

/* Arrival "ding": the display flashes once */
@keyframes bl-arrive {
    0%, 58%  { filter: brightness(1); }
    61%      { filter: brightness(1.7); }
    70%, 100% { filter: brightness(1); }
}

/* ▲ blinks while travelling, then stays dim */
@keyframes bl-arrow {
    0%       { opacity: 0.25; }
    7%       { opacity: 1; }
    15%      { opacity: 0.25; }
    22%      { opacity: 1; }
    30%      { opacity: 0.25; }
    37%      { opacity: 1; }
    45%      { opacity: 0.25; }
    52%      { opacity: 1; }
    58%, 100% { opacity: 0.2; }
}

@keyframes bl-spill {
    0%, 62%   { opacity: 0; }
    80%, 92%  { opacity: 1; }
    100%      { opacity: 0; }
}

/* Call button lights up when "pressed" and goes out on arrival */
@keyframes bl-call {
    0%, 2%    { background: #2a2433; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 0 1.5px #d9d7df; }
    6%, 60%   { background: #3ddc84; box-shadow: 0 0 8px 2px rgba(61, 220, 132, 0.85), 0 0 0 1.5px #d9d7df; }
    64%, 100% { background: #2a2433; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 0 1.5px #d9d7df; }
}

@keyframes bl-bar {
    0%   { width: 0; }
    100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    /* animations.js already skips the preloader entirely when reduced
       motion is preferred — this is just a double-safety net. */
    .bl-preloader__display,
    .bl-preloader__floors-list,
    .bl-preloader__cab,
    .bl-preloader__door,
    .bl-preloader__spill,
    .bl-preloader__call-btn--up,
    .bl-preloader__arrow,
    .bl-preloader__glow,
    .bl-preloader__floorlines,
    .bl-preloader__rail,
    .bl-preloader__spark,
    .bl-preloader__brand,
    .bl-preloader__status-go,
    .bl-preloader__status-go i,
    .bl-preloader__status-arrived,
    .bl-preloader__bar span {
        animation: none;
    }
}

/* =====================================================================
 * v37 CLASSIC — Header + Footer motion (replaces the v36 block).
 * Subtle only: logo fade-in, footer columns fade up once.
 * (Nav underline / hover transitions live in main.css.)
 * ===================================================================== */

@keyframes bl-logo-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

.site-header__logo img {
    animation: bl-logo-enter 0.6s ease 0.5s backwards;
}

/* Mobile drawer: links fade in one after another */
@keyframes bl-drawer-item {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: none; }
}

.site-nav.is-open .site-nav__list li {
    animation: bl-drawer-item 0.35s ease backwards;
}
.site-nav.is-open .site-nav__list li:nth-child(1) { animation-delay: 0.05s; }
.site-nav.is-open .site-nav__list li:nth-child(2) { animation-delay: 0.10s; }
.site-nav.is-open .site-nav__list li:nth-child(3) { animation-delay: 0.15s; }
.site-nav.is-open .site-nav__list li:nth-child(4) { animation-delay: 0.20s; }
.site-nav.is-open .site-nav__list li:nth-child(5) { animation-delay: 0.25s; }
.site-nav.is-open .site-nav__list li:nth-child(6) { animation-delay: 0.30s; }
.site-nav.is-open .site-nav__list li:nth-child(7) { animation-delay: 0.35s; }

/* Footer columns: fade up when scrolled into view (main.js initReveal
   adds .js-reveal to <html> and .is-visible per column; with no JS
   nothing is hidden) */
.site-footer__col[data-reveal] {
    transition: opacity 0.7s ease var(--reveal-delay, 0s), transform 0.7s ease var(--reveal-delay, 0s);
}

.js-reveal .site-footer__col[data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
}

/* Respect OS-level reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-header__logo img,
    .site-nav.is-open .site-nav__list li {
        animation: none;
    }

    .site-nav__list li a,
    .site-nav__list li a::after,
    .lang-toggle,
    .site-footer__links li a,
    .site-footer__col[data-reveal] {
        transition: none;
    }

    .js-reveal .site-footer__col[data-reveal]:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================================
 * v40 — hero slide text rises in each time a slide becomes active
 * ===================================================================== */
@keyframes bl-hero-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.hero__slide.is-active .hero__slide-content > * {
    animation: bl-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero__slide.is-active .hero__slide-content > :nth-child(2) { animation-delay: 0.12s; }
.hero__slide.is-active .hero__slide-content > :nth-child(3) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .hero__slide.is-active .hero__slide-content > * {
        animation: none;
    }
}

/* =====================================================================
 * v41 — hero: slow zoom on the active photo + dot progress bars
 * ===================================================================== */
@keyframes bl-hero-zoom {
    from { scale: 1; }
    to   { scale: 1.07; }
}

@keyframes bl-dot-fill {
    from { width: 0; }
    to   { width: 100%; }
}

.hero__slide.is-active .hero__slide-image {
    animation: bl-hero-zoom 9s ease-out forwards;
}

.hero__dot.is-active .hero__dot-fill {
    animation: bl-dot-fill var(--hero-rotate, 6000ms) linear forwards;
}

.hero__slider.is-paused .hero__dot-fill {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide.is-active .hero__slide-image {
        animation: none;
    }

    .hero__dot.is-active .hero__dot-fill {
        animation: none;
        width: 100%;
    }
}

/* =====================================================================
 * Jitter fix — hero photo parallax
 * The photo drifts down by up to 40px (--hero-parallax-offset), which used
 * to uncover an empty strip at the top of the hero card and read as the
 * image "shaking". The photo is now 40px taller, extending upward, so the
 * drift never shows a gap. backface-visibility keeps it on its own GPU layer.
 * ===================================================================== */
.hero__slide-image {
    top: -40px;
    height: calc(100% + 40px);
    backface-visibility: hidden;
}

/* =====================================================================
 * Jitter fix #2 — hero slide change "flash to dark"
 * Before: the old slide faded 1 -> 0 while the new one faded 0 -> 1 over
 * the dark midnight card, so mid-transition both were half transparent
 * and the whole hero dipped dark for a moment, then lit up again — that
 * read as flicker / shaking at every slide change. The old slide also
 * lost its zoom the instant it stopped being active, so the photo snapped
 * back in size while still on screen.
 * Now: the new slide fades in ON TOP of the old one, which stays fully
 * opaque underneath and is only hidden after the fade has finished.
 * ===================================================================== */
.hero__slider .hero__slide {
    transition: opacity 0s linear 0.8s, visibility 0s linear 0.8s;
}

.hero__slider .hero__slide.is-active {
    transition: opacity 0.8s ease, visibility 0s linear 0s;
}

/* Zoom runs for the whole time the slide is on screen (slide time + the
   fade-in of the next one) and ends at 1.07, so the outgoing photo holds
   that size instead of snapping back to 1 while it is still visible. */
.hero__slide.is-active .hero__slide-image {
    animation: bl-hero-zoom calc(var(--hero-rotate, 6000ms) + 800ms) linear forwards;
}

.hero__slide:not(.is-active) .hero__slide-image {
    scale: 1.07;
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide.is-active .hero__slide-image,
    .hero__slide:not(.is-active) .hero__slide-image {
        animation: none;
        scale: 1;
    }
}

/* =====================================================================
 * Jitter fix #3 - header height + parallax
 *
 * (a) Header: on desktop the bar used to shrink on scroll (80px -> 66px,
 *     logo 58px -> 46px). The header is sticky and in the normal flow, so
 *     every shrink moved the whole page up and could flip .is-scrolled
 *     on/off again right at the scroll threshold. Both states now share
 *     one height; only the shadow changes (see main.css).
 * ===================================================================== */
@media (min-width: 1024px) {
    .site-header.is-scrolled .site-header__inner {
        min-height: 80px;
    }

    .site-header.is-scrolled .site-header__logo img {
        height: 58px;
    }
}

/* (b) Parallax: the photo drift is now a scroll-driven CSS animation that
 *     runs off the main thread, in step with the compositor scroll. When
 *     the browser does not support it, animations.js keeps driving
 *     --hero-parallax-offset as before (fallback). The drift runs on every
 *     slide image, so the outgoing photo never snaps back mid-fade. */
@keyframes bl-hero-drift {
    from { translate: 0 0; }
    to   { translate: 0 40px; }
}

@supports (animation-timeline: scroll()) {
    .hero__slide-image {
        transform: none;
        animation: bl-hero-drift linear both;
        animation-timeline: scroll(root);
        animation-range: 0 600px;
    }

    .hero__slide.is-active .hero__slide-image {
        animation:
            bl-hero-zoom calc(var(--hero-rotate, 6000ms) + 800ms) linear forwards,
            bl-hero-drift linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0 600px;
    }

    @media (prefers-reduced-motion: reduce) {
        .hero__slide-image,
        .hero__slide.is-active .hero__slide-image {
            animation: none;
            translate: none;
        }
    }
}


/* =====================================================================
 * Simple header (desktop, 1024px and up) - FINAL override, keep at the
 * very end of the last stylesheet.
 *
 * Layout: logo | nav | actions sit on a 1fr / auto / 1fr grid, so the nav
 * is centred on the page no matter how wide the logo or the buttons are
 * (space-between used to push it left, because the actions are wider
 * than the logo).
 * Look: flat white bar, plain links with a soft lilac pill on the current
 * page, solid green call button (no pulse, no arrow), no divider.
 * Mobile / tablet keep the existing drawer layout untouched.
 * ===================================================================== */
@media (min-width: 1024px) {
    /* ----- layout: true centre ----- */
    .site-header .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: var(--space-md);
    }

    .site-header .site-header__logo {
        justify-self: start;
    }

    .site-header .site-nav {
        justify-self: center;
        margin: 0;
    }

    .site-header .site-header__actions {
        justify-self: end;
        margin: 0;
        gap: 0.75rem;
    }

    /* no divider line before the buttons */
    .site-header .site-header__actions::before {
        display: none;
    }

    /* ----- bar: flat white, one thin edge ----- */
    .site-header,
    .site-header.is-scrolled {
        background: #FFFFFF;
        border-bottom: 1px solid rgba(75, 0, 114, 0.10);
        border-image: none;
        box-shadow: none;
    }

    .site-header.is-scrolled {
        box-shadow: 0 6px 18px rgba(75, 0, 114, 0.08);
    }

    /* ----- nav: no tray, plain links ----- */
    .site-header .site-nav__list {
        gap: 0.25rem;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-header .site-nav__list li a {
        padding: 0.6rem 1rem;
        color: #2A0042;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.06em;
    }

    /* current page / hover: soft lilac pill, purple text */
    .site-header .site-nav__list li a:hover,
    .site-header .site-nav__list li a:focus-visible,
    .site-header .site-nav__list li a.is-current,
    .site-header .site-nav__list li a.is-lit {
        color: var(--color-primary);
    }

    .site-header .site-nav__list:not(.has-cabin) li a.is-current {
        background: #F1E6F8;
        color: var(--color-primary);
    }

    .site-header .site-nav__cabin {
        background: #F1E6F8;
        box-shadow: none;
    }

    .site-header .site-nav__cabin::after {
        display: none; /* remove the green LED under the label */
    }

    /* no rolling label on hover */
    .site-header .nav-label::after {
        display: none;
    }

    .site-header .site-nav__list li a:hover .nav-label__text,
    .site-header .site-nav__list li a:focus-visible .nav-label__text {
        transform: none;
    }

    /* ----- call button: solid green, no pulse, no arrow ----- */
    .site-header .site-header__actions .site-header__cta {
        padding: 0.65rem 1.4rem;
        background: var(--color-accent);
        box-shadow: none;
        animation: none;
        font-size: 0.85rem;
        font-weight: 700;
    }

    .site-header .site-header__actions .site-header__cta::after {
        display: none;
    }

    .site-header .site-header__actions .site-header__cta:hover,
    .site-header .site-header__actions .site-header__cta:focus-visible {
        background: #0B6B3A;
        box-shadow: none;
        transform: none;
    }
}


/* =====================================================================
 * v44 — Header polish (FINAL override, keep at the very end).
 *
 * Alignment fixes
 *   - Call button, language switch and nav pills now share ONE control
 *     height (--bl-ctl-h), so they sit on the same baseline (before: 44px
 *     buttons next to 38px nav pills).
 *   - Language switch rebuilt as a real 2-option segmented control with
 *     equal-width halves (before: "বাংলা" sat off-centre in its pill).
 *   - Grid side columns use minmax(0,1fr) so the nav stays exactly
 *     centred even when the logo/actions have different widths.
 *   - Scroll-progress line pinned to the header's bottom edge, full
 *     width (before it floated as a short stub below the bar).
 *
 * Effects (all subtle): underline slide on nav hover, soft shine on the
 * CTA, frosted-glass bar once content scrolls beneath, nav fade-in on
 * load, logo hover. All respect prefers-reduced-motion.
 * ===================================================================== */
:root {
    --bl-ctl-h: 38px;
    --bl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
    :root { --bl-ctl-h: 42px; }
}

/* ----- top info bar: vertical centring ----- */
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar__msg,
.topbar__links,
.topbar__links a {
    line-height: 1;
}

.topbar__links a {
    transition: opacity 0.25s ease;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
    opacity: 0.8;
}

/* ----- scroll-progress line (value comes from animations.js) ----- */
.site-header__progress {
    position: absolute;
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100% !important;
    height: 2px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(var(--bl-scroll, 0)) !important;
    transform-origin: 0 50%;
    pointer-events: none;
    will-change: transform;
}

/* ----- logo ----- */
.site-header__logo {
    display: inline-flex;
    align-items: center;
}

.site-header__logo img {
    display: block;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s var(--bl-ease);
}

.site-header__logo:hover img,
.site-header__logo:focus-visible img {
    transform: scale(1.04);
}

/* ----- desktop only ----- */
@media (min-width: 1024px) {
    /* true centre, regardless of logo / button widths */
    .site-header .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    /* frosted glass (desktop only: a backdrop-filter on the header would
       trap the fixed mobile drawer inside it) */
    .site-header,
    .site-header.is-scrolled {
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: saturate(1.5) blur(12px);
        backdrop-filter: saturate(1.5) blur(12px);
    }

    .site-header.is-scrolled {
        box-shadow: 0 8px 24px rgba(75, 0, 114, 0.07);
    }

    /* nav links: same height as the buttons, centred text */
    .site-header .site-nav__list {
        align-items: center;
    }

    .site-header .site-nav__list li a {
        position: relative;
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        height: var(--bl-ctl-h);
        padding: 0 1rem;
        border-radius: 999px;
        line-height: 1;
        transition: color 0.25s ease, background-color 0.3s ease;
    }

    .site-header .site-nav__list li a:hover,
    .site-header .site-nav__list li a:focus-visible {
        background-color: rgba(75, 0, 114, 0.05);
    }

    .site-header .site-nav__list li a.is-current {
        background-color: #F1E6F8;
    }

    /* thin underline that slides in on hover (not on the current pill) */
    .site-header .site-nav__list li a::after {
        content: "";
        display: block;
        position: absolute;
        right: 1rem;
        bottom: 7px;
        left: 1rem;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.35s var(--bl-ease);
    }

    .site-header .site-nav__list li a:hover::after,
    .site-header .site-nav__list li a:focus-visible::after {
        transform: scaleX(1);
    }

    .site-header .site-nav__list li a.is-current::after {
        transform: scaleX(0);
    }

    /* call button: same height as the language switch, soft shine on hover */
    .site-header .site-header__actions .site-header__cta {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: var(--bl-ctl-h);
        padding: 0 1.4rem;
        overflow: hidden;
        border-radius: 999px;
        line-height: 1;
        transition: transform 0.3s var(--bl-ease), box-shadow 0.3s ease, background-color 0.25s ease;
    }

    .site-header .site-header__actions .site-header__cta::after {
        content: "";
        display: block;
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
        transform: translateX(-120%);
        transition: transform 0.7s var(--bl-ease);
        pointer-events: none;
    }

    .site-header .site-header__actions .site-header__cta:hover,
    .site-header .site-header__actions .site-header__cta:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(14, 138, 74, 0.25);
    }

    .site-header .site-header__actions .site-header__cta:hover::after,
    .site-header .site-header__actions .site-header__cta:focus-visible::after {
        transform: translateX(120%);
    }

    /* nav items fade in one after another, once, on page load */
    @keyframes bl-nav-enter {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: none; }
    }

    .site-header .site-nav__list li {
        animation: bl-nav-enter 0.5s var(--bl-ease) backwards;
    }
    .site-header .site-nav__list li:nth-child(1) { animation-delay: 0.30s; }
    .site-header .site-nav__list li:nth-child(2) { animation-delay: 0.35s; }
    .site-header .site-nav__list li:nth-child(3) { animation-delay: 0.40s; }
    .site-header .site-nav__list li:nth-child(4) { animation-delay: 0.45s; }
    .site-header .site-nav__list li:nth-child(5) { animation-delay: 0.50s; }
    .site-header .site-nav__list li:nth-child(6) { animation-delay: 0.55s; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .site-nav__list li,
    .site-header .site-nav__list li a,
    .site-header .site-nav__list li a::after,
    .site-header .site-header__actions .site-header__cta,
    .site-header .site-header__actions .site-header__cta::after,
    .bl-lang::before,
    .site-header__logo img {
        animation: none;
        transition: none;
    }
}


/* =====================================================================
 * v45 — "Get a quote" + language switch redesign (FINAL override).
 * Matches the hero buttons: purple -> green gradient, soft outer ring.
 * Language switch: lilac track (same tint as the current-page pill)
 * with a purple gradient knob.
 * ===================================================================== */

/* ----- call-to-action ----- */
@media (min-width: 1024px) {
    .site-header .site-header__actions .site-header__cta {
        padding: 0 1.5rem;
        border: 0;
        color: #FFFFFF;
        font-weight: 700;
        letter-spacing: 0.01em;
        background: linear-gradient(110deg, var(--color-primary) 0%, var(--color-primary) 38%, var(--color-accent) 135%);
        background-size: 170% 100%;
        background-position: 0 50%;
        box-shadow: 0 0 0 3px rgba(75, 0, 114, 0.10);
        transition: background-position 0.5s var(--bl-ease), transform 0.3s var(--bl-ease), box-shadow 0.3s ease;
    }

    .site-header .site-header__actions .site-header__cta:hover,
    .site-header .site-header__actions .site-header__cta:focus-visible {
        color: #FFFFFF;
        background: linear-gradient(110deg, var(--color-primary) 0%, var(--color-primary) 38%, var(--color-accent) 135%);
        background-size: 170% 100%;
        background-position: 100% 50%;
        transform: translateY(-1px);
        box-shadow: 0 0 0 4px rgba(75, 0, 114, 0.14), 0 8px 18px rgba(75, 0, 114, 0.22);
    }

    .site-header .site-header__actions .site-header__cta:active {
        transform: translateY(0);
        box-shadow: 0 0 0 3px rgba(75, 0, 114, 0.12);
    }
}


/* =====================================================================
 * v46 — Language switch rebuilt as .bl-lang (own class names, so no older
 * stylesheet rule can touch it). Same height as the call button, same
 * soft purple ring, lilac track + purple knob that slides EN <-> বাংলা.
 * ===================================================================== */
.site-header .site-header__actions {
    display: flex;
    align-items: center;
}

.bl-lang {
    position: relative;
    isolation: isolate;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    box-sizing: border-box;
    height: var(--bl-ctl-h);
    margin: 0;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: #F3E8FA;
    box-shadow: 0 0 0 3px rgba(75, 0, 114, 0.08), inset 0 1px 2px rgba(75, 0, 114, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
}

.bl-lang:hover,
.bl-lang:focus-visible {
    box-shadow: 0 0 0 4px rgba(75, 0, 114, 0.13), inset 0 1px 2px rgba(75, 0, 114, 0.06);
}

.bl-lang:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* sliding knob: exactly one grid column wide */
.bl-lang::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6A1B9A 100%);
    box-shadow: 0 3px 8px rgba(75, 0, 114, 0.28);
    transition: transform 0.35s var(--bl-ease);
}

.lang-bn .bl-lang::before {
    transform: translateX(100%);
}

.bl-lang__opt {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.3rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    color: rgba(42, 0, 66, 0.72);
    transition: color 0.3s ease;
}

.bl-lang__opt.is-active {
    color: #FFFFFF;
    font-weight: 700;
}

.bl-lang:hover .bl-lang__opt:not(.is-active) {
    color: var(--color-primary);
}

/* Bengali glyphs sit a touch higher/larger than Latin caps: even them out */
.bl-lang__opt--bn {
    padding-bottom: 1px;
    font-family: 'Noto Sans Bengali', 'Nirmala UI', sans-serif;
    font-size: 0.88rem;
}


/* =====================================================================
 * v47 — Slightly heavier header text (one step up, not "bold bold").
 * Plus Jakarta Sans is loaded at 500/600/700/800 in header.php.
 * ===================================================================== */
.topbar__msg,
.topbar__links a {
    font-weight: 600;
}

@media (min-width: 1024px) {
    .site-header .site-nav__list li a {
        font-weight: 700;
    }

    .site-header .site-header__actions .site-header__cta {
        font-weight: 700;
        font-size: 0.88rem;
    }
}

.bl-lang {
    font-weight: 700;
}

.bl-lang__opt {
    font-weight: 700;
}

.bl-lang__opt.is-active {
    font-weight: 800;
}

/* Bengali: heavier + nudged down so it shares a centre line with "EN"
   (it was sitting ~2px high) */
.bl-lang__opt--bn {
    padding-top: 2px;
    padding-bottom: 0;
    font-weight: 700;
}

/* ---------------------------------------------------------------------
 * About Us hero + owners motion (pairs with the About v4 block in main.css)
 * Uses fill-mode "backwards" so the end state is the normal CSS (hover
 * transforms on .owner-card keep working after the entrance finishes).
 * ------------------------------------------------------------------- */
@keyframes bl-about-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bl-about-underline {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@keyframes bl-about-shimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}

.about-page .about-hero h1 {
    animation:
        bl-about-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s backwards,
        bl-about-shimmer 6s linear 0.9s infinite;
}

.about-page .about-hero h1::after {
    transform-origin: center;
    animation:
        bl-about-underline 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s backwards,
        bl-about-shimmer 3s linear 1.4s infinite;
}

.about-page .about-hero__lede {
    animation: bl-about-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards;
}

.about-page .about-owners .about-section-title {
    animation: bl-about-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s backwards;
}

.about-page .about-owners .owner-card {
    animation: bl-about-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s backwards;
}

.about-page .about-owners .owner-card:nth-child(2) { animation-delay: 0.85s; }
.about-page .about-owners .owner-card:nth-child(3) { animation-delay: 1s; }
.about-page .about-owners .owner-card:nth-child(4) { animation-delay: 1.15s; }

@media (prefers-reduced-motion: reduce) {
    .about-page .about-hero h1,
    .about-page .about-hero h1::after,
    .about-page .about-hero__lede,
    .about-page .about-owners .about-section-title,
    .about-page .about-owners .owner-card {
        animation: none;
    }
}
/* =====================================================================
 * Desktop nav text size (EN + BN share ONE size).
 * Was 0.82rem; now ~0.84rem at 1024px up to 0.88rem on wide screens, bold (700).
 * Bangla uses the same variable, so both languages always match.
 * If Bangla still looks a bit big/small next to English, change ONLY
 * --bl-nav-bn-scale below (1 = identical, 0.95 = slightly smaller,
 * 1.05 = slightly bigger). Do not touch English for that.
 * Keep this block LAST in the file.
 * ===================================================================== */
:root {
    --bl-nav-fs: clamp(0.84rem, 0.5vw + 0.35rem, 0.88rem);
    --bl-nav-fw: 700;
    --bl-nav-bn-scale: 1;
}

@media (min-width: 1024px) {
    .site-header .site-nav__list li a {
        font-size: var(--bl-nav-fs);
        font-weight: var(--bl-nav-fw);
    }

    body.lang-bn .site-header .site-nav__list li a {
        font-size: calc(var(--bl-nav-fs) * var(--bl-nav-bn-scale));
    }
}

/* narrow desktops: keep logo + links + buttons on one row */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header .site-nav__list li a {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        letter-spacing: 0.03em;
    }
    .site-header .site-nav__list li a::after {
        left: 0.7rem;
        right: 0.7rem;
    }
}

/* =====================================================================
 * Desktop header alignment (EN + BN identical rules).
 * Before: nav was centred on the PAGE, so with bold English labels it
 * crowded the "Get a quote" button (~60px) while sitting ~260px away
 * from the logo; Bangla (shorter labels) had the same lopsided gaps.
 * Now: logo and actions take only the width they need, and the nav is
 * centred in the space BETWEEN them -> equal gap on both sides in both
 * languages, and it can never run into the button.
 * To go back to "centred on the page", delete this block.
 * Keep this block LAST in the file.
 * ===================================================================== */
@media (min-width: 1024px) {
    .site-header .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: clamp(1rem, 2.2vw, 2.5rem);
        align-items: center;
    }

    .site-header .site-nav {
        justify-self: center;
        min-width: 0;
    }

    .site-header .site-nav__list {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .site-header .site-nav__list li a {
        white-space: nowrap;
    }

    .site-header .site-header__actions {
        justify-self: end;
    }
}


/* =====================================================================
 * Preloader polish — bigger lift, real progress, doors-open exit.
 * Sits after the base preloader rules above, so it overrides them.
 * Markup comes from initPreloader() in animations.js.
 * ================================================================== */
.bl-preloader {
    --bl-rail: min(250px, 36vw);
}

.bl-preloader__lift {
    gap: 22px;
    transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}

/* bigger car so it reads on large screens */
.bl-preloader__frame {
    width: 148px;
    height: 206px;
    animation: bl-frame-glow var(--bl-loop) ease-in-out infinite;
}

@keyframes bl-frame-glow {
    0%, 58%  { box-shadow: 0 0 0 3px #8e8a98, 0 0 0 5px var(--color-primary), 0 0 38px rgba(75, 0, 114, 0.6); }
    70%, 92% { box-shadow: 0 0 0 3px #8e8a98, 0 0 0 5px #17C46E, 0 0 54px rgba(23, 196, 110, 0.55); }
    100%     { box-shadow: 0 0 0 3px #8e8a98, 0 0 0 5px var(--color-primary), 0 0 38px rgba(75, 0, 114, 0.6); }
}

.bl-preloader__display {
    gap: 12px;
    padding: 8px 26px;
    font-size: 26px;
    line-height: 36px;
}
.bl-preloader__arrow { font-size: 14px; }
.bl-preloader__floors { height: 36px; }
.bl-preloader__floors-list span { height: 36px; }

/* floor counter steps now move 36px per floor */
@keyframes bl-floors {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-36px); }
    40%  { transform: translateY(-72px); }
    60%  { transform: translateY(-108px); }
    100% { transform: translateY(-108px); }
}

.bl-preloader__call { right: -44px; gap: 9px; padding: 9px 6px; }
.bl-preloader__call-btn { width: 11px; height: 11px; }

/* brand block */
.bl-preloader__brand {
    margin-top: 10px;
    padding-left: 0.5em;
    font-size: 21px;
    letter-spacing: 0.5em;
}

.bl-preloader__tag {
    margin-top: -10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(248, 249, 250, 0.5);
    animation: bl-brand-in 0.9s ease-out 0.15s both;
}
.bl-preloader.is-bn .bl-preloader__tag { letter-spacing: 0.02em; text-transform: none; font-size: 13px; }

/* real progress: bar + percentage */
.bl-preloader__progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 230px;
    margin-top: 4px;
}
.bl-preloader__bar {
    flex: 1;
    width: auto;
    height: 4px;
    background: rgba(248, 249, 250, 0.14);
}
.bl-preloader__bar span {
    width: 0;
    animation: none;
    border-radius: 4px;
    background: linear-gradient(90deg, #0F8247, #3DDC84);
    box-shadow: 0 0 10px rgba(61, 220, 132, 0.7);
}
.bl-preloader__pct {
    min-width: 3.4ch;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: rgba(248, 249, 250, 0.8);
}

.bl-preloader__status {
    height: 20px;
    font-size: 13px;
    color: rgba(248, 249, 250, 0.78);
}

/* ---------------------------------------------------------------------
 * Exit: the page is revealed from the centre outwards, like lift doors
 * opening. --bl-gap grows from 0 to 50% and a mask hides that middle band.
 * Browsers without @property just fade out at the end of the same animation.
 * ------------------------------------------------------------------- */
@property --bl-gap {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

.bl-preloader.is-hidden {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg,
        #000 calc(50% - var(--bl-gap)), transparent calc(50% - var(--bl-gap)),
        transparent calc(50% + var(--bl-gap)), #000 calc(50% + var(--bl-gap)));
    mask-image: linear-gradient(90deg,
        #000 calc(50% - var(--bl-gap)), transparent calc(50% - var(--bl-gap)),
        transparent calc(50% + var(--bl-gap)), #000 calc(50% + var(--bl-gap)));
    animation: bl-split 0.8s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.bl-preloader.is-hidden .bl-preloader__lift {
    opacity: 0;
    transform: scale(1.08);
}

@keyframes bl-split {
    0%   { --bl-gap: 0%;  opacity: 1; }
    88%  { opacity: 1; }
    100% { --bl-gap: 50%; opacity: 0; visibility: hidden; }
}

@media (max-width: 480px) {
    .bl-preloader__frame { width: 124px; height: 172px; }
    .bl-preloader__display { font-size: 22px; line-height: 32px; padding: 6px 20px; }
    .bl-preloader__floors, .bl-preloader__floors-list span { height: 32px; }
    @keyframes bl-floors {
        0%   { transform: translateY(0); }
        20%  { transform: translateY(-32px); }
        40%  { transform: translateY(-64px); }
        60%  { transform: translateY(-96px); }
        100% { transform: translateY(-96px); }
    }
    .bl-preloader__brand { font-size: 18px; }
    .bl-preloader__progress { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-preloader__frame,
    .bl-preloader__tag,
    .bl-preloader.is-hidden { animation: none; }
}


/* =====================================================================
 * Glass capsule lift + holographic floor projection
 * The car is now a panoramic glass capsule: you can see the moving city
 * lights through the glass while it rises, a reflection sweeps across it,
 * and a projector under the car casts a hologram ring that shows the floor.
 * Markup: initPreloader() in animations.js (.bl-preloader__sheen / __holo).
 * ================================================================== */

/* room under the car for the projection */
.bl-preloader__shaft { margin-bottom: 64px; }

/* glass edge: bright rim, soft inner depth, purple/green glow */
.bl-preloader__frame {
    border: 3px solid rgba(235, 225, 255, 0.55);
    border-radius: 10px 10px 2px 2px;
    background: #0d0420;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.35),
        0 0 0 4px rgba(122, 60, 190, 0.9),
        inset 0 0 26px rgba(170, 130, 255, 0.28),
        0 0 40px rgba(110, 40, 170, 0.65);
}

@keyframes bl-frame-glow {
    0%, 58%  { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 0 4px rgba(122, 60, 190, 0.9), inset 0 0 26px rgba(170, 130, 255, 0.28), 0 0 40px rgba(110, 40, 170, 0.65); }
    70%, 92% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 0 0 4px rgba(23, 196, 110, 0.95), inset 0 0 30px rgba(90, 255, 180, 0.3), 0 0 58px rgba(23, 196, 110, 0.55); }
    100%     { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 0 4px rgba(122, 60, 190, 0.9), inset 0 0 26px rgba(170, 130, 255, 0.28), 0 0 40px rgba(110, 40, 170, 0.65); }
}

/* steel corner posts + a lit ceiling strip (replaces the old lintel shadow) */
.bl-preloader__frame::after {
    height: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0, rgba(190, 255, 225, 0.35) 2px, rgba(0, 0, 0, 0) 100%);
    opacity: 0.55;
}
.bl-preloader__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(90deg, #2a2433 0 4px, transparent 4px calc(100% - 4px), #2a2433 calc(100% - 4px));
}

/* Interior: dark cabin with city lights streaming DOWN past the glass while the car rises.
   Three dot layers move at different speeds (parallax) and stop on arrival. */
.bl-preloader__cab {
    background:
        radial-gradient(circle, rgba(255, 232, 170, 0.95) 0 1.6px, transparent 2.4px) 0 0 / 34px 46px,
        radial-gradient(circle, rgba(120, 255, 205, 0.85) 0 1.5px, transparent 2.3px) 17px 23px / 34px 46px,
        radial-gradient(circle, rgba(200, 150, 255, 0.75) 0 1.2px, transparent 2px) 8px 11px / 34px 46px,
        linear-gradient(180deg, rgba(255, 246, 220, 0.55) 0, rgba(255, 246, 220, 0) 22%),
        linear-gradient(180deg, #1d0b33 0%, #2b1050 58%, #140624 100%);
    animation:
        bl-rumble var(--bl-loop) linear infinite,
        bl-city var(--bl-loop) cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes bl-city {
    0%        { background-position: 0 0, 17px 23px, 8px 11px, 0 0, 0 0; }
    60%, 100% { background-position: 0 230px, 17px 207px, 8px 103px, 0 0, 0 0; }
}
/* glass handrail */
.bl-preloader__cab::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(160, 150, 190, 0.8) 55%, rgba(255, 255, 255, 0.5));
}
.bl-preloader__cab::after {
    background:
        radial-gradient(ellipse at 50% 0, rgba(120, 255, 205, 0.45), transparent 70%),
        linear-gradient(180deg, #3a2b55, #150a26);
}

/* Glass door panels: see-through, bright rim, blurred edge reflections */
.bl-preloader__door {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.07) 42%, rgba(190, 160, 255, 0.16) 100%);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        inset 0 10px 14px -8px rgba(255, 255, 255, 0.55),
        inset 0 -10px 14px -8px rgba(0, 0, 0, 0.35);
}
.bl-preloader__door--l { border-right: 2px solid rgba(235, 225, 255, 0.7); }
.bl-preloader__door--r { border-left: 2px solid rgba(235, 225, 255, 0.7); }
/* the vertical line becomes a metal door handle */
.bl-preloader__door::after {
    top: 38%;
    bottom: 38%;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f4f1fb, #8f89a2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.bl-preloader__door--l::after { left: auto; right: 7px; }
.bl-preloader__door--r::after { right: auto; left: 7px; }

.bl-preloader__sill {
    background: linear-gradient(180deg, #e9e5f2, #8a849b 60%, #3b3449);
}

/* Reflection that sweeps across the glass while moving, and again on arrival */
.bl-preloader__sheen {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.4) 47%, rgba(255, 255, 255, 0.1) 56%, transparent 66%) 130% 0 / 250% 100% no-repeat;
    animation: bl-sheen var(--bl-loop) ease-in-out infinite;
}
@keyframes bl-sheen {
    0%   { background-position: 130% 0; }
    30%  { background-position: -30% 0; }
    60%  { background-position: 130% 0; }
    78%  { background-position: -30% 0; }
    100% { background-position: -30% 0; }
}

/* ---------------------------------------------------------------------
 * Holographic projection under the car: light cone -> rings on the floor
 * -> the current floor projected inside the ring.
 * ------------------------------------------------------------------- */
.bl-preloader__holo {
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 0;
    display: block;
    width: 216px;
    height: 78px;
    transform: translateX(-50%);
    pointer-events: none;
}

.bl-preloader__holo > i,
.bl-preloader__holo > b { position: absolute; display: block; }

/* light cone from the car's underside to the ring */
.bl-preloader__cone {
    left: 8%;
    right: 8%;
    top: 0;
    height: 52px;
    clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(120, 255, 205, 0.5), rgba(120, 255, 205, 0.04));
    animation: bl-cone var(--bl-loop) ease-in-out infinite;
}
@keyframes bl-cone {
    0%, 55% { opacity: 0.7; }
    66%     { opacity: 1; }
    90%     { opacity: 0.85; }
    100%    { opacity: 0.7; }
}

/* a thin scan line travelling up the cone, like a projector refreshing */
.bl-preloader__scan {
    left: 14%;
    right: 14%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 255, 240, 0.95), transparent);
    box-shadow: 0 0 8px rgba(160, 255, 220, 0.9);
    animation: bl-scan 1.1s linear infinite;
}
@keyframes bl-scan {
    0%   { transform: translateY(50px); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 0.9; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ground rings, seen at a low angle */
.bl-preloader__ring {
    left: 0;
    right: 0;
    top: 38px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(120, 255, 205, 0.75);
    background: radial-gradient(ellipse at center, rgba(120, 255, 205, 0.22), rgba(120, 255, 205, 0.04) 65%, transparent 70%);
    box-shadow: 0 0 16px rgba(61, 220, 132, 0.55), inset 0 0 14px rgba(61, 220, 132, 0.35);
}
/* expanding ping when the car arrives */
.bl-preloader__ring--pulse {
    background: none;
    box-shadow: none;
    opacity: 0;
    animation: bl-ring-ping var(--bl-loop) ease-out infinite;
}
@keyframes bl-ring-ping {
    0%, 60%  { opacity: 0; transform: scale(0.7); }
    64%      { opacity: 0.9; transform: scale(0.85); }
    88%, 100% { opacity: 0; transform: scale(1.45); }
}

/* floor label projected in the middle of the ring (same GF > 1F > 2F > 3F clock as the display) */
.bl-preloader__holo-floor {
    left: 50%;
    top: 47px;
    width: 3ch;
    height: 18px;
    overflow: hidden;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.1em;
    text-align: center;
    color: #b9ffe0;
    text-shadow: 0 0 8px rgba(120, 255, 205, 0.95), 0 0 18px rgba(61, 220, 132, 0.7);
    animation: bl-holo-flicker 1.6s steps(1, end) infinite;
}
.bl-preloader__holo-list {
    display: block;
    animation: bl-holo-floors var(--bl-loop) steps(1, end) infinite;
}
.bl-preloader__holo-list span { display: block; height: 18px; }
@keyframes bl-holo-floors {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-18px); }
    40%  { transform: translateY(-36px); }
    60%  { transform: translateY(-54px); }
    100% { transform: translateY(-54px); }
}
@keyframes bl-holo-flicker {
    0%, 100% { opacity: 1; }
    46%      { opacity: 0.8; }
    50%      { opacity: 1; }
    92%      { opacity: 0.88; }
}

@media (max-width: 480px) {
    .bl-preloader__shaft { margin-bottom: 58px; }
    .bl-preloader__holo { width: 180px; height: 70px; }
    .bl-preloader__cone { height: 46px; }
    .bl-preloader__ring { top: 32px; height: 32px; }
    .bl-preloader__holo-floor { top: 40px; font-size: 14px; }
    .bl-preloader__scan { animation-name: bl-scan-sm; }
    @keyframes bl-scan-sm {
        0%   { transform: translateY(44px); opacity: 0; }
        15%  { opacity: 1; }
        85%  { opacity: 0.9; }
        100% { transform: translateY(0); opacity: 0; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-preloader__sheen,
    .bl-preloader__cone,
    .bl-preloader__scan,
    .bl-preloader__ring--pulse,
    .bl-preloader__holo-floor,
    .bl-preloader__holo-list { animation: none; }
}

/* small screens: keep the tagline inside the viewport */
@media (max-width: 480px) {
    .bl-preloader__tag { max-width: 88vw; font-size: 10px; letter-spacing: 0.12em; }
}


/* =====================================================================
 * Preloader v3 polish — glass panel, clearer brand/tagline, floor-level
 * indicator, thicker glowing progress bar, status pill.
 * Markup: initPreloader() in animations.js. Only touches .bl-preloader*,
 * so it is safe at the end of the file.
 * ================================================================== */

/* soft glass panel behind the whole lift block */
.bl-preloader__lift::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -36px -46px -34px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* brand: solid and bright (was fading to 35% at the edges) */
.bl-preloader__brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.48em;
    background: linear-gradient(90deg, rgba(248, 249, 250, 0.78) 0%, #ffffff 50%, rgba(248, 249, 250, 0.78) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(160, 80, 240, 0.55));
}

/* tagline: brighter, flanked by thin gradient lines */
.bl-preloader__tag {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(248, 249, 250, 0.74);
}
.bl-preloader__tag::before,
.bl-preloader__tag::after {
    content: "";
    flex: none;
    width: 30px;
    height: 1px;
}
.bl-preloader__tag::before { background: linear-gradient(90deg, transparent, rgba(190, 120, 255, 0.8)); }
.bl-preloader__tag::after  { background: linear-gradient(270deg, transparent, rgba(190, 120, 255, 0.8)); }

/* floor-level indicator beside the car: 3F / 2F / 1F / GF, current floor lit */
.bl-preloader__levels {
    position: absolute;
    left: -58px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px 6px;
    transform: translateY(-50%);
    border-radius: 10px;
    background: rgba(13, 2, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.bl-preloader__levels i {
    position: relative;
    isolation: isolate;
    display: block;
    min-width: 30px;
    padding: 3px 0;
    text-align: center;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.62);
}
.bl-preloader__levels i::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 6px;
    background: linear-gradient(135deg, #17C46E, #0F8247);
    box-shadow: 0 0 12px rgba(61, 220, 132, 0.75);
    opacity: 0;
}
/* same timing as the main floor counter: GF 0-20%, 1F 20-40%, 2F 40-60%, 3F 60-100% */
.bl-preloader__levels i:nth-child(1)::before { animation: bl-lv-3f var(--bl-loop) linear infinite; }
.bl-preloader__levels i:nth-child(2)::before { animation: bl-lv-2f var(--bl-loop) linear infinite; }
.bl-preloader__levels i:nth-child(3)::before { animation: bl-lv-1f var(--bl-loop) linear infinite; }
.bl-preloader__levels i:nth-child(4)::before { animation: bl-lv-gf var(--bl-loop) linear infinite; }

@keyframes bl-lv-gf { 0%, 19.9% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes bl-lv-1f { 0%, 19.9% { opacity: 0; } 20%, 39.9% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes bl-lv-2f { 0%, 39.9% { opacity: 0; } 40%, 59.9% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes bl-lv-3f { 0%, 59.9% { opacity: 0; } 60%, 100% { opacity: 1; } }

/* progress: longer, thicker, glowing head */
.bl-preloader__progress { width: 270px; gap: 14px; }
.bl-preloader__bar {
    height: 6px;
    border-radius: 6px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.bl-preloader__bar span { position: relative; }
.bl-preloader__bar span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    transform: translate(50%, -50%);
    background: #ffffff;
    box-shadow: 0 0 12px 3px rgba(61, 220, 132, 0.85);
}
.bl-preloader__pct { font-size: 13px; color: #ffffff; }

/* status: small glass pill instead of loose text */
.bl-preloader__status {
    align-items: center;
    height: auto;
    min-height: 30px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(248, 249, 250, 0.92);
}
.bl-preloader.is-bn .bl-preloader__status { letter-spacing: 0.02em; font-size: 13px; }

@media (max-width: 480px) {
    .bl-preloader__lift::before { inset: -28px -18px -26px; border-radius: 26px; }
    .bl-preloader__brand { font-size: 21px; letter-spacing: 0.4em; }
    .bl-preloader__tag::before,
    .bl-preloader__tag::after { width: 14px; }
    .bl-preloader__levels { left: -50px; }
    .bl-preloader__progress { width: 220px; }
}

/* Preloader readability: slightly brighter tagline, a touch larger on phones */
.bl-preloader__tag { color: rgba(248, 249, 250, 0.84); }
@media (max-width: 480px) { .bl-preloader__tag { font-size: 11px; } }

/* Assembly phase: freeze every loop at frame 0 until the parts have joined.
   Removing .is-assembling (animations.js) starts them all together. */
.bl-preloader.is-assembling,
.bl-preloader.is-assembling *,
.bl-preloader.is-assembling *::before,
.bl-preloader.is-assembling *::after {
    animation-play-state: paused !important;
}

/* =====================================================================
 * Preloader v4 — stainless-steel lift (modelled on a real lift entrance).
 * Cable lowers → frame is bolted together → steel doors slide in → ride →
 * doors open, the cabin light switches on, and the glow floods the screen
 * to reveal the page. Theme: purple #4B0072 / green #0F8247 / midnight.
 * Markup: initPreloader() in animations.js (.blx-*). Old .bl-preloader__*
 * child rules above are unused; only the overlay root + soft glow are shared.
 * ================================================================== */
.bl-preloader { --bl-loop: 1.5s; }

.blx {
    --steel-dark:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, rgba(0,0,0,0.06) 1px 2px, transparent 2px 3px),
        linear-gradient(90deg, #565961 0%, #9a9ea6 20%, #d3d6dc 42%, #8a8e96 62%, #b3b7be 82%, #5a5d65 100%);
    --steel-h:
        repeating-linear-gradient(180deg, rgba(255,255,255,0.06) 0 1px, rgba(0,0,0,0.05) 1px 2px, transparent 2px 3px),
        linear-gradient(180deg, #eceef2 0%, #b6bac1 48%, #8a8e96 100%);

    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-height: 720px), (max-width: 400px) { .blx { scale: 0.84; } }

/* cable the car hangs from */
.blx-cable {
    position: absolute; left: 50%; bottom: 100%; width: 4px; height: 60vh; margin-left: -2px;
    background: repeating-linear-gradient(180deg, #8d889a 0 3px, #4a4555 3px 6px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 65%);
    mask-image: linear-gradient(180deg, transparent, #000 65%);
}

/* floor indicator */
.blx-display {
    display: flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 16px; margin-bottom: 12px;
    border: 3px solid #a9adb5; border-radius: 6px;
    background: linear-gradient(180deg, #06030b, #120a1c);
    box-shadow: 0 0 0 1px #2a2d33, inset 0 2px 6px #000, 0 8px 18px rgba(0, 0, 0, 0.5);
    color: #3DDC84; font-weight: 700; font-size: 18px; letter-spacing: 0.08em;
    text-shadow: 0 0 8px rgba(61, 220, 132, 0.8);
    animation: blx-ding var(--bl-loop) ease-out infinite;
}
.blx-arrow { font-size: 12px; animation: blx-arrow var(--bl-loop) linear infinite; }
.blx-floors { display: block; height: 28px; overflow: hidden; }
.blx-floors-list { display: block; animation: blx-floors var(--bl-loop) steps(1, end) infinite; }
.blx-floors-list span { display: block; height: 28px; line-height: 28px; text-align: center; min-width: 2ch; }

/* door frame */
.blx-stage { position: relative; width: 164px; }
.blx-frame {
    position: relative; width: 164px; height: 224px;
    box-shadow: 0 0 0 2px rgba(122, 60, 190, 0.8), 0 0 40px rgba(110, 40, 170, 0.55);
    animation: blx-frame-glow var(--bl-loop) ease-in-out infinite;
}
.blx-opening { position: absolute; top: 14px; left: 11px; right: 11px; bottom: 0; overflow: hidden; background: #0a0510; }
.blx-head, .blx-jamb { position: absolute; background: var(--steel-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.blx-head { top: 0; left: 0; right: 0; height: 14px; background: var(--steel-h); z-index: 2; box-shadow: 0 6px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.blx-jamb { top: 0; bottom: 0; width: 11px; z-index: 1; }
.blx-jamb--l { left: 0; }
.blx-jamb--r { right: 0; }
.blx-jamb::after { /* bright inner bevel, like the chrome reveal in a real frame */
    content: ""; position: absolute; top: 14px; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.55);
}
.blx-jamb--l::after { right: 0; }
.blx-jamb--r::after { left: 0; }

/* cabin: dark until the doors open, then the ceiling light comes on */
.blx-inside {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% -4%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(90deg, rgba(0,0,0,0.28), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,0.28)),
        linear-gradient(180deg, #f4fff8 0%, #d9e7df 55%, #a9b8b0 100%);
}
.blx-inside::before { /* hand rail */
    content: ""; position: absolute; left: 8%; right: 8%; top: 58%; height: 5px; border-radius: 3px;
    background: var(--steel-h); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}
.blx-inside::after { /* lights off until arrival */
    content: ""; position: absolute; inset: 0; background: #0a0510;
    animation: blx-light var(--bl-loop) ease-out infinite;
}

/* brushed stainless doors: bright reflection in the middle, darker toward the edges */
.blx-door { position: absolute; top: 0; bottom: 0; width: 50%; }
.blx-door--l {
    left: 0;
    background: linear-gradient(90deg, #767a82 0%, #c9ccd2 28%, #f1f2f5 55%, #b6b9c0 86%, #8c9097 100%);
    box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.4);
    animation: blx-door-l var(--bl-loop) cubic-bezier(0.65, 0, 0.25, 1) infinite;
}
.blx-door--r {
    right: 0;
    background: linear-gradient(270deg, #767a82 0%, #c9ccd2 28%, #f1f2f5 55%, #b6b9c0 86%, #8c9097 100%);
    box-shadow: inset 2px 0 3px rgba(0, 0, 0, 0.4);
    animation: blx-door-r var(--bl-loop) cubic-bezier(0.65, 0, 0.25, 1) infinite;
}
.blx-door::before { /* glossy upper reflection */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 85% 22% at 50% 7%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, 0.16) 100%);
}
.blx-door::after { /* vertical brushed grain */
    content: ""; position: absolute; inset: 0; opacity: 0.8;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(0, 0, 0, 0.05) 1px 2px, transparent 2px 3px);
}

.blx-sill {
    display: block; width: 186px; height: 8px; margin: 0 -11px; position: relative;
    border-radius: 2px; background: var(--steel-h);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* call plate on the wall */
.blx-panel {
    position: absolute; right: -50px; top: 92px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 26px; padding: 10px 0; border-radius: 6px;
    background: linear-gradient(90deg, #8d9199, #e4e6ea 45%, #a6aab1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.blx-btn { width: 11px; height: 11px; border-radius: 50%; background: #2b2f36; border: 2px solid #8b8f97; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.blx-btn--up { animation: blx-call var(--bl-loop) linear infinite; }

/* glossy floor: steel reflection + the cabin light spilling out when the doors open */
.blx-floor {
    display: block; position: relative; width: 190px; height: 42px; margin: 2px auto 0;
    clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(205, 210, 220, 0.2), rgba(205, 210, 220, 0));
}
.blx-floor::after {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(190, 255, 220, 0.85), rgba(61, 220, 132, 0.25) 55%, rgba(61, 220, 132, 0) 100%);
    animation: blx-spill var(--bl-loop) ease-out infinite;
}

/* light bloom: starts at the open doors and floods the screen on exit */
.blx-bloom {
    position: absolute; left: 50%; top: 126px; width: 200px; height: 200px; margin: -100px 0 0 -100px;
    border-radius: 50%; pointer-events: none; opacity: 0; z-index: 6;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(235, 255, 245, 0.34) 30%, rgba(120, 255, 185, 0.3) 52%, rgba(150, 70, 220, 0.16) 68%, rgba(150, 70, 220, 0) 72%);
}
.bl-preloader.is-hidden .blx-bloom { animation: blx-bloom 0.9s cubic-bezier(0.5, 0, 0.85, 0.4) forwards; }
.bl-preloader.is-hidden {
    -webkit-mask-image: none; mask-image: none;
    animation: blx-out 0.9s ease forwards;
}
/* the lift UI fades away; only the glow (bloom) stays while the dark backdrop clears */
.bl-preloader.is-hidden .blx > :not(.blx-stage),
.bl-preloader.is-hidden .blx-stage > :not(.blx-bloom) { opacity: 0; transition: opacity 0.35s ease 0.1s; }

/* text */
.blx-brand { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: 0.46em; text-indent: 0.46em; color: #fff; text-transform: uppercase; }
.blx-tag { margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; color: rgba(248, 249, 250, 0.78); max-width: 88vw; }
.bl-preloader.is-bn .blx-tag { letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.bl-preloader.is-bn .blx-brand { letter-spacing: 0.3em; }

.blx-progress { display: flex; align-items: center; gap: 12px; width: 240px; margin-top: 20px; }
.blx-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(248, 249, 250, 0.14); overflow: hidden; }
.blx-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0F8247, #3DDC84); }
.blx-pct { min-width: 3.4ch; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }

.blx-status { display: grid; margin-top: 14px; height: 18px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(248, 249, 250, 0.85); }
.blx-status > span { grid-area: 1 / 1; text-align: center; white-space: nowrap; }
.blx-status-go { animation: blx-go var(--bl-loop) linear infinite; }
.blx-status-go i { font-style: normal; animation: blx-dot 1.2s ease-in-out infinite; }
.blx-status-go i:nth-of-type(2) { animation-delay: 0.2s; }
.blx-status-go i:nth-of-type(3) { animation-delay: 0.4s; }
.blx-status-arrived { color: #3DDC84; opacity: 0; animation: blx-arrived var(--bl-loop) linear infinite; }
.bl-preloader.is-bn .blx-status { letter-spacing: 0.02em; font-size: 13px; text-transform: none; }

/* ride loop: GF -> 3F, arrive (ding), doors open, light on */
@keyframes blx-floors { 0% { transform: translateY(0); } 19% { transform: translateY(-28px); } 38% { transform: translateY(-56px); } 55% { transform: translateY(-84px); } 100% { transform: translateY(-84px); } }
@keyframes blx-arrow  { 0%, 14%, 28%, 42% { opacity: 0.3; } 7%, 21%, 35%, 49% { opacity: 1; } 55% { opacity: 0.3; } 58%, 100% { opacity: 0; } }
@keyframes blx-ding   { 0%, 53%, 74%, 100% { box-shadow: 0 0 0 1px #2a2d33, inset 0 2px 6px #000, 0 8px 18px rgba(0,0,0,0.5); } 58%, 66% { box-shadow: 0 0 0 1px #2a2d33, inset 0 2px 6px #000, 0 0 26px rgba(61,220,132,0.65); } }
@keyframes blx-door-l { 0%, 60% { transform: translateX(0); } 88%, 100% { transform: translateX(-101%); } }
@keyframes blx-door-r { 0%, 60% { transform: translateX(0); } 88%, 100% { transform: translateX(101%); } }
@keyframes blx-light  { 0%, 58% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes blx-spill  { 0%, 60% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes blx-frame-glow { 0%, 58% { box-shadow: 0 0 0 2px rgba(122,60,190,0.8), 0 0 40px rgba(110,40,170,0.55); } 90%, 100% { box-shadow: 0 0 0 2px rgba(150,255,200,0.85), 0 0 70px 8px rgba(150,255,200,0.5), 0 0 150px rgba(61,220,132,0.35); } }
@keyframes blx-call   { 0%, 55% { background: #3DDC84; box-shadow: 0 0 8px rgba(61,220,132,0.9); } 58%, 100% { background: #2b2f36; box-shadow: inset 0 1px 2px rgba(0,0,0,0.6); } }
@keyframes blx-go     { 0%, 56% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes blx-arrived{ 0%, 58% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes blx-dot    { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* exit: light floods out of the doors, then the overlay fades to reveal the page */
@keyframes blx-bloom { 0% { opacity: 0; transform: scale(0.5); } 12% { opacity: 1; } 60% { opacity: 1; transform: scale(22); } 100% { opacity: 0; transform: scale(34); } }
@keyframes blx-out   { 0% { opacity: 1; background-color: #0D021A; } 55% { opacity: 1; background-color: rgba(13, 2, 26, 0); } 100% { opacity: 0; background-color: rgba(13, 2, 26, 0); visibility: hidden; } }

/* =====================================================================
 * Preloader fixes (v5): no pre-paint flash, scroll lock, cheaper glow.
 * ================================================================== */
html.bl-pre body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--color-midnight);
    animation: bl-pre-failsafe 0s linear 4s forwards; /* no-JS failsafe */
}
@keyframes bl-pre-failsafe { to { opacity: 0; visibility: hidden; } }

html { scrollbar-gutter: stable; }
body.bl-preloading { overflow: hidden; }

.blx-frame {
    animation: none;
    box-shadow: 0 0 0 2px rgba(122, 60, 190, 0.8), 0 0 40px rgba(110, 40, 170, 0.55);
}
.blx-frame::after {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    box-shadow: 0 0 0 2px rgba(150, 255, 200, 0.85), 0 0 70px 8px rgba(150, 255, 200, 0.5), 0 0 150px rgba(61, 220, 132, 0.35);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.8s ease;
}

/* =====================================================================
 * Preloader v6 — "parts fly in and assemble" story.
 * Parts arrive from random places (JS) -> .is-built -> doors open
 * (.is-open) -> cabin light switches on (.is-lit). The old looping
 * keyframes are switched off; these state classes drive everything.
 * ================================================================== */

/* side hardware: guide rails */
.blx-rail {
    position: absolute; top: -6px; bottom: -4px; width: 9px; z-index: 0; border-radius: 2px;
    background: linear-gradient(90deg, #4a4555, #b8b4c6 50%, #4a4555);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.blx-rail::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(180deg, transparent 0 34px, #2a2630 34px 38px);
}
.blx-rail--l { left: -20px; }
.blx-rail--r { right: -20px; }

/* parts may fly outside the shaft opening until the lift is built */
.bl-preloader:not(.is-built) .blx-opening { overflow: visible; background: transparent; }

/* old loops off — state classes take over */
.bl-preloader .blx-display { animation: none; transition: box-shadow 0.5s ease; }
.bl-preloader.is-lit .blx-display { box-shadow: 0 0 0 1px #2a2d33, inset 0 2px 6px #000, 0 0 26px rgba(61, 220, 132, 0.65); }
.bl-preloader .blx-arrow { animation: none; opacity: 0; }
.bl-preloader .blx-floors-list { animation: none; }
.bl-preloader .blx-btn--up { animation: none; transition: background 0.4s, box-shadow 0.4s; }
.bl-preloader.is-built .blx-btn--up { background: #3DDC84; box-shadow: 0 0 8px rgba(61, 220, 132, 0.9); }

/* doors: closed -> slide apart on .is-open */
.bl-preloader .blx-door--l,
.bl-preloader .blx-door--r { animation: none; transition: transform 1s cubic-bezier(0.65, 0, 0.25, 1); }
.bl-preloader.is-open .blx-door--l { transform: translateX(-101%); }
.bl-preloader.is-open .blx-door--r { transform: translateX(101%); }

/* cabin light: dark until .is-lit, then a short fluorescent flicker */
.bl-preloader .blx-inside::after { animation: none; opacity: 1; }
.bl-preloader.is-lit .blx-inside::after { animation: blx-lamp 0.8s linear forwards; }
@keyframes blx-lamp {
    0%   { opacity: 1; }
    12%  { opacity: 0.25; }
    20%  { opacity: 1; }
    34%  { opacity: 0.1; }
    46%  { opacity: 0.7; }
    62%, 100% { opacity: 0; }
}

/* light spills onto the floor once the doors open; frame glows green when lit */
.bl-preloader .blx-floor::after { animation: none; opacity: 0; transition: opacity 0.8s ease; }
.bl-preloader.is-open .blx-floor::after { opacity: 1; }
.bl-preloader.is-lit .blx-frame::after { opacity: 1; }

/* status text: "Assembling..." -> "Welcome" */
.bl-preloader .blx-status-go { animation: none; opacity: 1; transition: opacity 0.3s; }
.bl-preloader .blx-status-arrived { animation: none; opacity: 0; transition: opacity 0.3s 0.1s; }
.bl-preloader.is-lit .blx-status-go { opacity: 0; }
.bl-preloader.is-lit .blx-status-arrived { opacity: 1; }

/* =====================================================================
 * Preloader v7 — "lobby" look: purple concrete wall, green LED strips
 * around the door, glass doors, warm amber cabin, glossy dark floor.
 * (Reference: purple wall + emerald light line + gold cabin.)
 * ================================================================== */

/* --- scene: ceiling + wall + floor, split at --floor-y (set by JS) --- */
.blx-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.45s ease 0.1s; }
.bl-preloader.is-hidden .blx-scene { opacity: 0; }
.bl-preloader .bl-preloader__glow { display: none; }

.blx-scene__ceil {
    position: absolute; left: 0; right: 0; top: 0; height: 9vh;
    background:
        radial-gradient(ellipse 26px 10px at 22% 40%, #fff 0 22%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
        radial-gradient(ellipse 26px 10px at 50% 40%, #fff 0 22%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
        radial-gradient(ellipse 26px 10px at 78% 40%, #fff 0 22%, rgba(255, 255, 255, 0.5) 45%, transparent 100%),
        linear-gradient(180deg, #232027, #35313b);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.blx-scene__wall {
    position: absolute; left: 0; right: 0; top: 0; bottom: calc(100% - var(--floor-y, 68%));
    background:
        radial-gradient(70px 55px at 8% 18%,  rgba(255, 238, 255, 0.5), transparent 70%),
        radial-gradient(70px 55px at 27% 18%, rgba(255, 238, 255, 0.5), transparent 70%),
        radial-gradient(70px 55px at 73% 18%, rgba(255, 238, 255, 0.5), transparent 70%),
        radial-gradient(70px 55px at 92% 18%, rgba(255, 238, 255, 0.5), transparent 70%),
        radial-gradient(110px 46% at calc(50% - 150px) 62%, rgba(43, 229, 143, 0.30), transparent),
        radial-gradient(110px 46% at calc(50% + 150px) 62%, rgba(43, 229, 143, 0.30), transparent),
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) 16% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) 33% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) 67% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) 84% 0 / 1px 100% no-repeat,
        radial-gradient(ellipse 28% 38% at 14% 62%, rgba(130, 90, 160, 0.35), transparent 70%),
        radial-gradient(ellipse 25% 35% at 88% 70%, rgba(130, 90, 160, 0.30), transparent 70%),
        linear-gradient(180deg, #2b1838, #40264f 45%, #2a1735);
}

.blx-scene__floor {
    position: absolute; left: 0; right: 0; top: var(--floor-y, 68%); bottom: 0;
    background:
        radial-gradient(40px 100% at calc(50% - 100px) 0, rgba(43, 229, 143, 0.35), transparent),
        radial-gradient(40px 100% at calc(50% + 100px) 0, rgba(43, 229, 143, 0.35), transparent),
        radial-gradient(ellipse 130px 70% at 50% 0, rgba(255, 190, 100, 0.20), transparent),
        radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 1px, transparent 1.6px) 0 0 / 9px 9px,
        linear-gradient(180deg, #261d2d, #120d18);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

/* bigger lift on large screens (the old size looked small in a full lobby) */
@media (min-width: 900px) and (min-height: 800px) { .blx { scale: 1.3; } }

/* --- gunmetal steel instead of bright chrome --- */
.bl-preloader .blx {
    --steel-dark: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
        linear-gradient(90deg, #2c2c31, #5a5a62 25%, #3b3b41 55%, #6a6a72 80%, #2c2c31);
    --steel-h: linear-gradient(180deg, #6a6a72, #45454c 50%, #2e2e33);
}
.blx-jamb::after { opacity: 0.3; }
.bl-preloader .blx-frame { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 16px 40px rgba(0, 0, 0, 0.55); }
.bl-preloader .blx-frame::after { box-shadow: 0 0 60px 6px rgba(255, 185, 90, 0.28); }

/* --- LED strips (the flying "rails" are now glowing green light lines) --- */
.bl-preloader .blx-rail {
    width: 6px; top: -17vh; bottom: 44px; border-radius: 3px;
    background: linear-gradient(180deg, #8dffcb, #2be58f 12%, #2be58f);
    box-shadow: 0 0 8px 2px rgba(43, 229, 143, 0.9), 0 0 40px 10px rgba(43, 229, 143, 0.35);
}
.bl-preloader .blx-rail::before { display: none; }
.bl-preloader .blx-rail::after { /* reflection on the floor */
    content: ""; position: absolute; top: 100%; left: -4px; right: -4px; height: 70px; margin-top: 8px;
    background: linear-gradient(180deg, rgba(43, 229, 143, 0.55), transparent); filter: blur(4px);
}
.bl-preloader .blx-rail--l { left: -19px; }
.bl-preloader .blx-rail--r { right: -19px; }

/* --- floor indicator box above the door --- */
.bl-preloader .blx-display {
    border: 2px solid #6a6a72; background: #17121c; color: #f2f2f2; text-shadow: none; z-index: 1;
}
.bl-preloader .blx-arrow { opacity: 1; color: #f2f2f2; }

/* --- glass doors --- */
.bl-preloader .blx-door--l {
    background: linear-gradient(115deg, rgba(190, 235, 225, 0.18), rgba(255, 255, 255, 0.05) 45%, rgba(190, 235, 225, 0.14));
    box-shadow: inset 0 0 0 3px #3c3c42, inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.bl-preloader .blx-door--r {
    background: linear-gradient(245deg, rgba(190, 235, 225, 0.18), rgba(255, 255, 255, 0.05) 45%, rgba(190, 235, 225, 0.14));
    box-shadow: inset 0 0 0 3px #3c3c42, inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.bl-preloader .blx-door::before { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.16) 36%, transparent 44%); }
.bl-preloader .blx-door::after { display: none; }

/* --- warm amber cabin with ceiling light panels --- */
.bl-preloader .blx-inside {
    background:
        linear-gradient(90deg, transparent 20%, #ffe29a 20% 80%, transparent 80%) 0 7% / 100% 6% no-repeat,
        linear-gradient(90deg, transparent 29%, rgba(255, 214, 128, 0.9) 29% 71%, transparent 71%) 0 19% / 100% 4% no-repeat,
        linear-gradient(90deg, transparent 36%, rgba(255, 200, 110, 0.6) 36% 64%, transparent 64%) 0 28% / 100% 3% no-repeat,
        linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.4)),
        radial-gradient(ellipse 34% 50% at 50% 66%, rgba(30, 14, 4, 0.65), transparent 100%),
        linear-gradient(180deg, #f0b455 0%, #c98529 40%, #8a5314 100%);
}

/* warm light spills onto the floor when the doors open */
.bl-preloader .blx-floor::after {
    background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(255, 205, 120, 0.75), rgba(255, 170, 70, 0.2) 55%, transparent);
}

/* --- wall call plate (green, with a tiny display) --- */
.bl-preloader .blx-panel {
    right: -64px; top: 70px; width: 32px; padding: 26px 0 10px;
    background: linear-gradient(180deg, #2f6b52, #1d4a37); border: 2px solid #3b3b42;
}
.bl-preloader .blx-panel::before {
    content: "\25B2 GF"; position: absolute; top: 5px; left: 3px; right: 3px; height: 14px;
    display: grid; place-items: center; border-radius: 2px; background: #0b0b0f;
    color: #e8fff4; font-size: 8px; font-weight: 700; letter-spacing: 0.04em;
}
.bl-preloader .blx-btn { background: #12261d; border-color: #7fb89f; }

/* =====================================================================
 * Preloader exit: no final bloom/glow — the whole overlay just fades out.
 * ================================================================== */
.blx-bloom { display: none; }
.bl-preloader.is-hidden { animation: none; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
.bl-preloader.is-hidden .blx > :not(.blx-stage),
.bl-preloader.is-hidden .blx-stage > :not(.blx-bloom),
.bl-preloader.is-hidden .blx-scene { opacity: 1; transition: none; }

/* =====================================================================
 * Preloader v8 — one solid background colour + faint shaft design,
 * and a more realistic lift (architrave, brushed-steel doors, bezel
 * display, steel call plate with arrows, grooved sill).
 * ================================================================== */

/* solid background (same colour as the pre-paint cover in <head>) */
.bl-preloader { background: #1f1030; }
html.bl-pre body::before { background: #1f1030; }
.blx-scene__ceil { display: none; }

/* design on the flat colour: dot grid, panel seams, ground line, level markers */
.blx-scene__wall {
    top: 0; bottom: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) 16% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) 33% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) 67% 0 / 1px 100% no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)) 84% 0 / 1px 100% no-repeat,
        radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px) 0 0 / 28px 28px;
}
.blx-scene__floor {
    top: var(--floor-y, 68%); bottom: auto; height: 1px;
    background: rgba(255, 255, 255, 0.14); box-shadow: none;
}
.blx-scene__lvl {
    position: absolute; top: calc(var(--floor-y, 68%) * var(--k, 0));
    font-size: 12px; font-weight: 700; letter-spacing: 0.22em; line-height: 1;
    color: rgba(255, 255, 255, 0.2); pointer-events: none;
}
.blx-scene__lvl[data-gf] { top: calc(var(--floor-y, 68%) - 22px); }
.blx-scene__lvl--l { left: 4%; }
.blx-scene__lvl--r { right: 4%; }
.blx-scene__lvl::after { content: ""; position: absolute; top: 50%; width: 9vw; height: 1px; background: rgba(255, 255, 255, 0.1); }
.blx-scene__lvl--l::after { left: calc(100% + 12px); }
.blx-scene__lvl--r::after { right: calc(100% + 12px); }
@media (max-width: 700px) { .blx-scene__lvl { display: none; } }

/* LED strips stop beside the floor display instead of running into the ceiling */
.bl-preloader .blx-rail { top: -66px; }

/* --- realistic lift --- */
/* architrave: stacked steel trim rings around the door frame + soft wall shadow */
.bl-preloader .blx-frame {
    box-shadow:
        0 0 0 5px #2b2b31, 0 0 0 6px rgba(255, 255, 255, 0.14),
        0 0 0 11px #17171b, 0 0 0 12px rgba(255, 255, 255, 0.06),
        0 22px 50px rgba(0, 0, 0, 0.65);
}
/* shadow cast by the header onto the doors */
.blx-opening::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 20px; z-index: 3; pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
}

/* brushed stainless doors (bevelled edge, recessed panel, vertical grain, soft sheen) */
.bl-preloader .blx-door--l {
    background: linear-gradient(90deg, #5d6068 0%, #a6a9b0 10%, #d9dce1 30%, #f3f4f6 48%, #c3c6cc 70%, #8b8e96 92%, #666870 100%);
    box-shadow: inset -3px 0 4px rgba(0, 0, 0, 0.45), inset 1px 0 0 rgba(255, 255, 255, 0.35);
}
.bl-preloader .blx-door--r {
    background: linear-gradient(270deg, #5d6068 0%, #a6a9b0 10%, #d9dce1 30%, #f3f4f6 48%, #c3c6cc 70%, #8b8e96 92%, #666870 100%);
    box-shadow: inset 3px 0 4px rgba(0, 0, 0, 0.45), inset -1px 0 0 rgba(255, 255, 255, 0.35);
}
.bl-preloader .blx-door::before {
    content: ""; position: absolute; inset: 7% 10% 6% 10%;
    border: 1px solid rgba(0, 0, 0, 0.28);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35), 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 14px rgba(0, 0, 0, 0.08);
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 42%, rgba(255, 255, 255, 0) 54%);
}
.bl-preloader .blx-door::after {
    display: block; content: ""; position: absolute; inset: 0; opacity: 0.85;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, rgba(0, 0, 0, 0.05) 1px 2px, transparent 2px 3px);
}

/* threshold with anti-slip grooves, wider than the door frame */
.bl-preloader .blx-sill {
    width: 200px; margin: 0 -18px; height: 9px;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 6px), var(--steel-h);
}

/* floor indicator: bezel + dark glass + sheen */
.bl-preloader .blx-display {
    position: relative; border: 3px solid #55555c; border-radius: 5px; background: #0d0a12;
    box-shadow: 0 0 0 1px #17171b, inset 0 2px 8px #000, 0 10px 22px rgba(0, 0, 0, 0.55);
}
.bl-preloader .blx-display::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; border-radius: 2px 2px 0 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

/* call plate: brushed steel, dark mini display, two arrow buttons */
.bl-preloader .blx-panel {
    background: linear-gradient(90deg, #8d9199, #dfe1e5 45%, #a6aab1);
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.bl-preloader .blx-btn {
    position: relative; width: 15px; height: 15px; background: #15181d; border: 2px solid #c4c7cd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.8);
}
.bl-preloader .blx-btn::before {
    content: "\25B2"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 6px; color: #9aa0a8; font-style: normal;
}
.bl-preloader .blx-btn:nth-child(2)::before { content: "\25BC"; }
.bl-preloader.is-built .blx-btn--up::before { color: #0b2a1b; }

/* =====================================================================
 * Preloader v9 fixes — floor light spill + sill edges
 * (spill was a hard-edged trapezoid overlapping the brand text; the sill
 *  stuck out past the frame trim on both sides)
 * ================================================================== */
.bl-preloader .blx-floor {
    clip-path: none; background: none; width: 200px; height: 34px; margin: 4px auto 6px;
}
.bl-preloader .blx-floor::after {
    background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255, 205, 120, 0.55) 0%, rgba(255, 170, 70, 0.16) 45%, rgba(255, 170, 70, 0) 72%);
}

/* sill ends exactly flush with the outer steel trim (frame 164px + 12px trim each side) */
.bl-preloader .blx-sill {
    width: 188px; margin: 0 -12px; border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* =====================================================================
 * Fix: cabin light pool on the floor was shifted to the right and had
 * hard trapezoid edges. Now it is centred under the doors (same negative
 * margins trick as the sill) and fades out softly on every side.
 * ================================================================== */
.bl-preloader .blx-floor {
    width: 240px; height: 48px; margin: 2px -38px 0;
    clip-path: none; background: none;
}
.bl-preloader .blx-floor::after {
    background: radial-gradient(ellipse 50% 100% at 50% 0%,
        rgba(255, 205, 120, 0.8) 0%, rgba(255, 170, 70, 0.28) 50%, rgba(255, 170, 70, 0) 100%);
}

/* =====================================================================
 * Preloader — responsive (phones, landscape, tablets, desktop)
 * Scale is computed by animations.js (--blx-scale) so the whole scene
 * always fits the screen; it replaces the old fixed media-query scales.
 * ================================================================== */
.bl-preloader .blx { scale: var(--blx-scale, 1); }

@media (max-width: 480px) {
    .blx-brand { font-size: 20px; letter-spacing: 0.36em; text-indent: 0.36em; }
    .blx-tag { font-size: 10px; letter-spacing: 0.12em; max-width: 86vw; }
    .blx-progress { width: min(240px, 68vw); margin-top: 16px; }
    .blx-status { font-size: 11px; letter-spacing: 0.18em; margin-top: 12px; }
}
@media (max-height: 480px) {
    .blx-brand { margin-top: 6px; font-size: 18px; }
    .blx-tag { margin-top: 4px; }
    .blx-progress { margin-top: 10px; }
    .blx-status { margin-top: 8px; }
}