/* ═══════════════════════════════════════════════════════════
   HOVMAN ELEVATORS — styles.css
   Direction: technical sheet / shaft manual — flat paper, zero
   radii, ink rules, condensed uppercase display, royal as stamp.
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/jost-600.woff2") format("woff2");
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/oswald-500.woff2") format("woff2");
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/oswald-600.woff2") format("woff2");
}

:root {
    --royal: #2541cc;
    --royal-bright: #3d59e8;
    --royal-soft: #8fa3f3;
    --royal-deep: #101a44;
    --royal-ink: #17203f;

    /* Warm architectural neutrals — paper, concrete, ink */
    --paper: #f4f1ea;
    --paper-2: #ece7dc;
    --paper-card: #fbfaf6;
    --line: #ddd6c8;
    --line-2: #c9c1b0;

    --grey-900: #1b1a17;
    --grey-700: #3d3a34;
    --grey-500: #635d52;
    --grey-300: #b7b0a2;
    --grey-150: #e7e1d5;
    --ink: #1a1813;

    --bg: var(--paper);

    --glass: rgba(251, 250, 246, 0.72);
    --glass-brd: rgba(0, 0, 0, 0.08);
    --glass-dk: rgba(255, 255, 255, 0.05);
    --glass-dk-brd: rgba(255, 255, 255, 0.14);

    --shadow: none;
    --shadow-sm: none;

    --pad: clamp(18px, 5vw, 64px);
    --maxw: 1200px;
    --radius: 0px;
    --radius-lg: 0px;

    --f-display: "Oswald", "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    --f-body:
        -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --f-mono:
        ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
        "Roboto Mono", monospace;
    --f-logo: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    overflow-x: hidden;
}

body {
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
    height: 100vh;
}
body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
a,
button {
    touch-action: manipulation;
}

/* Keyboard focus ring — visible for keyboard users, hidden for pointer */
:focus {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--royal-bright);
    outline-offset: 2px;
}

/* Keyboard skip link — visible only when focused */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 400;
    padding: 10px 18px;
    background: var(--royal);
    color: #fff;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 14px;
    transform: translateY(calc(-100% - 16px));
    transition: transform 0.2s ease;
}
.skip-link:focus {
    transform: none;
}
main:focus {
    outline: none;
}

/* ── Faint architectural blueprint grid on the paper canvas ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(26, 24, 19, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 24, 19, 0.03) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}

/* ═══════════ SURFACE (flat, ruled) ═══════════ */
.glass {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* ═══════════ TYPOGRAPHY ═══════════ */
.eyebrow {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--royal);
    margin-bottom: 16px;
}
.eyebrow--light {
    color: var(--royal-soft);
}
.hero .eyebrow {
    color: var(--royal);
}

.section__title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(38px, 6.4vw, 88px);
    line-height: 0.96;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--grey-900);
}
.section--dark .section__title {
    color: #fff;
}

.section__intro {
    max-width: 58ch;
    margin-top: 18px;
    color: var(--ink);
    font-size: clamp(15px, 1.4vw, 17px);
}
.section--dark .section__intro {
    color: rgba(255, 255, 255, 0.82);
}

.sub__title {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--royal-ink);
    margin-bottom: 16px;
}
.sub__title--light {
    color: #fff;
}
.sub__title--center {
    text-align: center;
}

.sub__lede {
    color: var(--ink);
    max-width: 64ch;
}
.sub__lede--center {
    margin: 0 auto;
    text-align: center;
}

.sub p {
    color: var(--ink);
    margin-bottom: 14px;
}
.section--dark .sub p,
.muted {
    color: rgba(255, 255, 255, 0.78);
}
.section:not(.section--dark) .muted {
    color: var(--grey-500);
}

.mini {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--royal);
    margin-bottom: 12px;
}
.mini--light {
    color: var(--royal-soft);
}
.mini--gap {
    margin-top: 18px;
}
.muted--gap {
    margin-top: 14px;
}

/* Visually-hidden honeypot field (bot trap) */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.origin {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--royal);
    border: 1px solid var(--line-2);
    border-left: 2px solid var(--royal);
    padding: 5px 12px;
    margin-bottom: 14px;
}

.list {
    list-style: none;
}
.list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 15px;
}
.list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--royal);
    border-bottom: 2px solid var(--royal);
    transform: rotate(45deg);
}
.section--dark .list li {
    color: rgba(255, 255, 255, 0.85);
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 30px;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}
.btn--solid {
    background: var(--royal);
    color: #fff;
}
.btn--solid:hover {
    background: var(--grey-900);
}
.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}
.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
/* Ghost button sitting on the paper hero */
.hero .btn--ghost {
    border-color: var(--grey-900);
    color: var(--grey-900);
}
.hero .btn--ghost:hover {
    background: var(--grey-900);
    color: var(--paper);
}
/* Tactile press feedback on touch devices */
@media (hover: none) {
    .btn:active {
        transform: scale(0.97);
    }
    .square:active {
        transform: scale(0.985);
    }
    .bubble:active {
        transform: scale(0.92);
    }
    .nav__cta:active,
    .nav__drop a:active {
        transform: scale(0.97);
    }
}

/* ═══════════ SKELETON LOADER ═══════════ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--royal-deep);
}
.loader__door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background: linear-gradient(180deg, #16245f, #0c1545);
    border-top: 3px solid var(--royal-bright);
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 1;
}
.loader__door::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
}
.loader__door--l {
    left: 0;
}
.loader__door--l::after {
    right: 0;
}
.loader__door--r {
    right: 0;
}
.loader__door--r::after {
    left: 0;
}

.loader__core {
    position: relative;
    z-index: 2;
    width: min(86vw, 360px);
    padding: 34px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition:
        opacity 0.5s,
        transform 0.5s;
}
.loader__logo {
    width: 150px;
    margin: 0 auto 18px;
    /* transparent logo rendered white on the royal loader */
    filter: brightness(0) invert(1);
}
.loader__led {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--royal-soft);
    letter-spacing: 0.1em;
}
.loader__arrow {
    animation: blink 1.1s infinite;
    font-size: 13px;
}
@keyframes blink {
    0%,
    100% {
        opacity: 0.25;
    }
    50% {
        opacity: 1;
    }
}

.loader__bar {
    margin: 18px auto 12px;
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
}
.loader__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--royal-bright), #fff);
    transition: width 0.3s ease;
}
.loader__caption {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

body.loaded .loader {
    pointer-events: none;
}
body.loaded .loader__door--l {
    transform: translateX(-100%);
}
body.loaded .loader__door--r {
    transform: translateX(100%);
}
body.loaded .loader__core {
    opacity: 0;
    transform: scale(0.94);
}
body.loaded .loader {
    opacity: 0;
    transition: opacity 0.5s 0.55s;
}

/* ═══════════ TOPBAR + NAV ═══════════ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    transition:
        transform 0.4s,
        background 0.4s,
        box-shadow 0.4s;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px var(--pad);
}
/* The scrolled background + blur live on a pseudo-element instead of the
   topbar itself. A backdrop-filter on the topbar would turn it into the
   containing block for the fixed mobile menu, collapsing the drawer to the
   header's height as soon as the page is scrolled. */
.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(247, 244, 238, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid var(--ink);
    /* Permanent masthead bar — the technical-sheet hero is light, so the
       header always needs its paper plate (not only after scrolling). */
    opacity: 1;
    pointer-events: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.brand__logo {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__item {
    position: relative;
}
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--grey-900);
    padding: 9px 14px;
    white-space: nowrap;
    transition: color 0.25s;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0.75;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover {
    color: var(--royal);
}
.nav__link:hover::after {
    transform: scaleX(1);
}
/* Current page marker */
.nav__link[aria-current="page"] {
    color: var(--royal);
}
.nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}
.nav__caret {
    font-size: 9px;
    opacity: 0.6;
    transition: transform 0.25s;
}
.nav__item:hover .nav__caret {
    transform: rotate(180deg);
}
.nav__item.open .nav__caret {
    transform: rotate(180deg);
}

.nav__drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 244px;
    padding: 8px;
    background: var(--paper-card);
    border: 1px solid var(--ink);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s,
        transform 0.25s;
}
.nav__drop::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.nav__item:hover .nav__drop,
.nav__item:focus-within .nav__drop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav__drop a {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-700);
    padding: 10px 14px;
    transition:
        background 0.18s,
        color 0.18s,
        padding-left 0.18s;
}
.nav__drop a:hover {
    background: rgba(37, 65, 204, 0.1);
    color: var(--royal);
    padding-left: 20px;
}
.nav__cta {
    margin-left: 8px;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--royal);
    padding: 11px 20px;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.nav__cta:hover {
    background: var(--grey-900);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--paper-card);
    border: 1px solid var(--ink);
    cursor: pointer;
}
.nav__toggle span {
    width: 20px;
    height: 2px;
    background: var(--grey-900);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop scrim behind the open mobile menu (tap to close) */
.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 18, 66, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s,
        visibility 0.35s;
}
body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
}
@media (min-width: 941px) {
    .nav-scrim {
        display: none;
    }
}

/* ═══════════ ELEVATOR SHAFT (right rail) ═══════════ */
.shaft {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 112px;
    z-index: 70;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s;
}
.shaft.on {
    opacity: 1;
}

.shaft__head {
    position: absolute;
    top: 98px;
    left: 0;
    right: 0;
    text-align: center;
}
.shaft__led {
    display: inline-block;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--royal), var(--royal-bright));
    padding: 5px 12px;
    box-shadow: 0 8px 18px -8px rgba(37, 65, 204, 0.8);
}
.shaft__sub {
    display: block;
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--royal);
    opacity: 0.75;
    min-height: 12px;
    padding: 0 6px;
}

.shaft__track {
    position: absolute;
    top: 172px;
    bottom: 132px;
    left: 0;
    right: 0;
}
.shaft__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(37, 65, 204, 0.15),
        rgba(37, 65, 204, 0.5),
        rgba(37, 65, 204, 0.15)
    );
    border-radius: 2px;
}
.shaft__rail::before,
.shaft__rail::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: var(--royal);
    opacity: 0.6;
}
.shaft__rail::before {
    top: 0;
}
.shaft__rail::after {
    bottom: 0;
}
.shaft__ticks {
    position: absolute;
    inset: 0;
}

.tick {
    position: absolute;
    left: 50%;
}
.tick__mark {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--grey-300);
    transition:
        background 0.35s,
        width 0.35s;
}
.tick__num {
    position: absolute;
    top: 0;
    left: -16px;
    transform: translate(-100%, -50%);
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--grey-500);
    transition: color 0.35s;
}
.tick.passed .tick__mark {
    background: var(--royal-soft);
}
.tick.active .tick__mark {
    background: var(--royal);
    width: 26px;
}
.tick.active .tick__num {
    color: var(--royal);
    font-weight: 700;
}

.cabin {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 48px;
    z-index: 3;
}
.cabin__body {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(150deg, var(--royal-bright), var(--royal-deep));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 10px 22px -8px rgba(16, 28, 94, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
}
.cabin__led {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #fff;
    animation: blink 2.2s infinite;
}
.cabin__door {
    position: absolute;
    top: 13px;
    bottom: 5px;
    left: 6%;
    width: 42%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.cabin__door--r {
    right: 6%;
    left: auto;
}
.cabin__cable {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 2px;
    height: 1000px;
    background: linear-gradient(180deg, transparent, rgba(37, 65, 204, 0.35));
}
.counterweight {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(calc(-50% + 16px), -50%);
    width: 9px;
    height: 22px;
    border-radius: 2px;
    background: var(--grey-300);
    opacity: 0.5;
}
@media (max-width: 1100px) {
    .shaft {
        display: none;
    }
}

/* ═══════════ LAYOUT PRIMITIVES ═══════════ */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
    width: 100%;
}
@media (min-width: 1101px) {
    .container {
        padding-right: calc(var(--pad) + 112px);
    }
}

.section {
    position: relative;
    padding: clamp(70px, 11vh, 130px) 0;
}
.section--light {
    background: var(--paper);
}
.section--tint {
    background: var(--paper-2);
}
.section--dark {
    background: #12141c;
    color: #fff;
}
.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}
.section--dark > * {
    position: relative;
}

.section__head {
    margin-bottom: clamp(40px, 6vh, 72px);
    padding-top: 22px;
    border-top: 3px solid var(--ink);
}
.section--dark .section__head {
    border-top-color: rgba(255, 255, 255, 0.5);
}

.sub {
    padding-top: clamp(40px, 7vh, 90px);
    padding-bottom: clamp(40px, 7vh, 90px);
    scroll-margin-top: 92px;
}

/* ── reveal on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ═══════════ HERO — split technical sheet ═══════════
   Type sits directly on the paper canvas; the shaft photograph is a
   full-height plate on the right with a figure-caption bar. */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
}
.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 55%;
    background-image: url("img/2.webp");
    background-size: cover;
    background-position: center;
    border-left: 2px solid var(--ink);
    filter: saturate(0.85) contrast(1.06);
}
/* figure-caption plate on the photo */
.hero__bg::after {
    content: "FIG. 01 — HOISTWAY · HARET SAKHER";
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
}
.hero__veil {
    display: none;
}
.hero__inner {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 130px var(--pad) 90px;
}
.hero__card {
    max-width: 50%;
    padding: 0;
    background: transparent;
    border: 0;
}
.hero__title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(48px, 7.6vw, 112px);
    line-height: 0.94;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--grey-900);
}
.hero__title em {
    font-style: normal;
    color: var(--royal);
}
.hero__lede {
    margin: 26px 0 32px;
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--grey-700);
    max-width: 46ch;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 36px);
    margin-top: 40px;
    padding-top: 26px;
    border-top: 2px solid var(--ink);
}
.hero__stats > div {
    padding-left: clamp(18px, 3vw, 36px);
    border-left: 1px solid var(--line-2);
}
.hero__stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}
@media (max-width: 560px) {
    .hero__stats > div {
        padding-left: 0;
        border-left: 0;
    }
}
.hero__stats strong {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 32px);
    color: var(--grey-900);
    font-variant-numeric: tabular-nums;
}
.hero__stats i {
    font-style: normal;
    font-size: 0.55em;
    color: var(--royal);
}
/* Label under each stat — scoped to the direct child so the nested
   #expYears span inside <strong> keeps the big display styling. */
.hero__stats > div > span {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey-500);
}
.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--grey-500);
    mix-blend-mode: multiply;
}
.hero__scroll i {
    width: 1px;
    height: 40px;
    background: var(--grey-700);
    animation: descend 2s ease-in-out infinite;
    transform-origin: top;
}
/* ≤940px: the photo plate becomes a top band; the sheet continues below */
@media (max-width: 940px) {
    .hero {
        display: block;
        min-height: 0;
    }
    .hero__bg {
        position: relative;
        left: 0;
        height: 44vh;
        min-height: 300px;
        border-left: 0;
        border-bottom: 2px solid var(--ink);
        margin-top: 72px;
    }
    .hero__inner {
        padding: 44px var(--pad) 90px;
    }
    .hero__card {
        max-width: 100%;
    }
}
@keyframes descend {
    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ═══════════ SPLIT / MEDIA ═══════════ */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}
.split--rev .split__media {
    order: -1;
}
.split__media {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.media,
.feature__media,
.roll__item {
    position: relative;
    background-color: var(--grey-150);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: var(--radius);
}
.media::before,
.feature__media::before,
.roll__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #e7e1d5 28%, #f3efe6 50%, #e7e1d5 72%);
    background-size: 220% 100%;
    animation: shimmer 1.4s linear infinite;
    transition: opacity 0.6s;
    z-index: 1;
}
.media.loaded::before,
.feature__media.loaded::before,
.roll__item.loaded::before {
    opacity: 0;
}
@keyframes shimmer {
    to {
        background-position: -220% 0;
    }
}

.media--tall {
    aspect-ratio: 4 / 5;
}
.media--wide {
    aspect-ratio: 16 / 10;
}
.media--cover {
    aspect-ratio: 4 / 3;
    height: 100%;
    min-height: 320px;
}

/* ═══════════ FEATURE — ruled technical row ═══════════ */
.feature {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(22px, 3vw, 46px);
    padding: clamp(20px, 2.4vw, 34px) 0 0;
    border-top: 1px solid var(--line-2);
    align-items: stretch;
}
.feature--rev .feature__media {
    order: 2;
}
.feature__media {
    min-height: 340px;
    border: 1px solid var(--ink);
}
.feature__body {
    padding: clamp(6px, 1.4vw, 18px) 0;
    align-self: center;
}

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 22px;
}

/* ═══════════ PROJECT ROLL ═══════════ */
.roll {
    margin: 30px 0 12px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
}
.roll__track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: roll 34s linear infinite;
}
.roll:hover .roll__track {
    animation-play-state: paused;
}
@keyframes roll {
    to {
        transform: translateX(-50%);
    }
}
.roll__item {
    width: clamp(240px, 28vw, 340px);
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ═══════════ CUSTOMER MARQUEE ═══════════ */
.customers {
    margin-top: clamp(40px, 6vh, 70px);
}
.marquee {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}
.marquee__row {
    display: flex;
    gap: 14px;
    width: max-content;
}
.marquee__row[data-dir="left"] {
    animation: marqL 40s linear infinite;
}
.marquee__row[data-dir="right"] {
    animation: marqR 46s linear infinite;
}
.marquee:hover .marquee__row {
    animation-play-state: paused;
}
@keyframes marqL {
    to {
        transform: translateX(-50%);
    }
}
@keyframes marqR {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}
.pill {
    flex: 0 0 auto;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--grey-700);
    background: transparent;
    border: 0;
    border-left: 2px solid var(--royal);
    padding: 6px 18px 6px 14px;
    transition: color 0.2s;
}
.pill:hover {
    color: var(--royal);
}

/* ═══════════ SERVICE SQUARES ═══════════ */
.squares {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.8vw, 22px);
}
.square {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--ink);
    transition: transform 0.35s;
}
/* Photo backgrounds live here (not inline) so the CSP can drop
   style-src 'unsafe-inline'. */
.square--maintenance {
    background-image: url("img/16.webp");
}
.square--installation {
    background-image: url("img/17.webp");
}
.square--modernization {
    background-image: url("img/18.webp");
}
.square--response {
    background-image: url("img/19.webp");
}
.square__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 8, 0) 46%,
        rgba(10, 10, 8, 0.88) 100%
    );
    transition: background 0.35s;
}
.square__label {
    position: relative;
    z-index: 1;
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(15px, 1.4vw, 18px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    padding: 18px;
    line-height: 1.15;
}
.square:hover {
    transform: translateY(-4px);
}
.square:hover .square__veil {
    background: linear-gradient(
        180deg,
        rgba(37, 65, 204, 0.16) 0%,
        rgba(10, 10, 8, 0.86) 100%
    );
}
.square::after {
    content: "→";
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 1;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition:
        opacity 0.3s,
        transform 0.3s;
}
.square:hover::after {
    opacity: 1;
    transform: none;
}

/* ═══════════ STATS — spec ledger ═══════════ */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
    margin-top: 26px;
}
.stat {
    padding: 14px 0 16px;
    border-top: 2px solid var(--ink);
    background: transparent;
}
.stat--wide {
    grid-column: 1 / -1;
}
.stat strong {
    display: block;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(26px, 3.2vw, 38px);
    color: var(--royal);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.stat span {
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey-500);
}

/* ═══════════ AI ROW ═══════════ */
.ai {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    border-top: 1px solid var(--line-2);
    padding: clamp(26px, 4vw, 48px) 0 0;
}
.ai__glyph {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 120px;
    height: 120px;
}
.ai__glyph span {
    background: linear-gradient(150deg, var(--royal-bright), var(--royal));
    opacity: 0.85;
    animation: aiPulse 2.4s ease-in-out infinite;
}
.ai__glyph span:nth-child(2) {
    animation-delay: 0.3s;
}
.ai__glyph span:nth-child(3) {
    animation-delay: 0.6s;
}
.ai__glyph span:nth-child(4) {
    animation-delay: 0.9s;
}
@keyframes aiPulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.92);
    }
    50% {
        opacity: 0.95;
        transform: scale(1);
    }
}

/* ═══════════ CONTACT: cards / forms / map ═══════════ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.card {
    padding: 22px 0 0;
    background: transparent;
    border: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.45);
}
.hours,
.contact-list {
    list-style: none;
}
.hours li,
.contact-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}
/* Comfortable >=44px tap targets for the tel:/mailto: links */
.contact-list li {
    padding: 0;
}
.contact-list li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.hours li:last-child,
.contact-list li:last-child {
    border-bottom: 0;
}
.contact-list span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}
.contact-list a:hover {
    color: var(--royal-soft);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(22px, 3vw, 34px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.form label i {
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.6;
}
.form input,
.form textarea {
    font-family: var(--f-body);
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 12px 14px;
    transition:
        border 0.2s,
        background 0.2s;
    resize: vertical;
}
.form input:focus,
.form textarea:focus {
    border-color: var(--royal-soft);
    background: rgba(255, 255, 255, 0.06);
}
.form input::placeholder,
.form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.form .btn {
    margin-top: 6px;
    align-self: flex-start;
}
.form__note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}
.form__status {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
    min-height: 1em;
}
.form__status.is-pending {
    color: var(--royal-soft);
}
.form__status.is-ok {
    color: #7ef0b0;
}
.form__status.is-error {
    color: #ff9ba6;
}
.form__status a {
    color: var(--royal-soft);
    text-decoration: underline;
}

.map {
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.map iframe {
    width: 100%;
    height: clamp(280px, 42vh, 440px);
    border: 0;
    display: block;
    filter: saturate(1.05);
}
.map__cap {
    margin-top: 14px;
    text-align: center;
}
.map__cap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--royal-soft);
}
.map__cap a:hover {
    color: #fff;
}

/* ═══════════ SOCIAL BUBBLES ═══════════ */
.bubbles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.bubble {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: var(--royal);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}
.bubble:hover {
    transform: translateY(-4px);
    filter: brightness(1.12) saturate(1.1);
}
/* Official brand colors */
.bubble--linkedin {
    background: #0a66c2;
}
.bubble--facebook {
    background: #1877f2;
}
.bubble--instagram {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
}
.bubble svg {
    width: 18px;
    height: 18px;
    display: block;
}
.bubble--off {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
    cursor: default;
}
/* "Coming soon" stays dimmed even with a brand class applied */
.bubble--off.bubble--linkedin {
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════ HOME DIRECTORY — floor index of the site ═══════════ */
.dir {
    display: block;
}
.dir__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "num name arrow"
        "num desc arrow";
    align-items: baseline;
    column-gap: clamp(18px, 3vw, 44px);
    border-top: 1px solid var(--line-2);
    padding-top: clamp(26px, 3.4vh, 40px) !important;
    padding-bottom: clamp(26px, 3.4vh, 40px) !important;
    transition: border-color 0.3s;
}
.dir__row:last-child {
    border-bottom: 1px solid var(--line-2);
}
.dir__num {
    grid-area: num;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--royal);
}
.dir__name {
    grid-area: name;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(30px, 4.6vw, 60px);
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--grey-900);
    transition: color 0.25s;
}
.dir__desc {
    grid-area: desc;
    margin-top: 8px;
    max-width: 52ch;
    color: var(--grey-500);
    font-size: 15px;
}
.dir__arrow {
    grid-area: arrow;
    align-self: center;
    font-family: var(--f-display);
    font-size: clamp(22px, 2.6vw, 34px);
    color: var(--grey-300);
    transform: translateX(-8px);
    transition:
        transform 0.3s,
        color 0.3s;
}
.dir__row:hover {
    border-top-color: var(--ink);
}
.dir__row:hover .dir__name {
    color: var(--royal);
}
.dir__row:hover .dir__arrow {
    color: var(--royal);
    transform: none;
}
@media (max-width: 620px) {
    .dir__row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "num arrow"
            "name arrow"
            "desc arrow";
    }
    .dir__num {
        margin-bottom: 6px;
    }
}

/* ═══════════ FOOTER — "Ground Floor" colophon ═══════════
   One quiet band. The contact data lives in the Contact section right
   above — the footer just parks the cabin at G and offers a ride up. */
.footer {
    position: relative;
    background: #101219;
    color: #fff;
    padding: clamp(36px, 6vh, 58px) 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 50px);
}
.footer__floor {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--royal-soft);
    margin-bottom: 18px;
}
.footer__floor-led {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(143, 163, 243, 0.45);
    font-size: 12px;
    letter-spacing: 0;
    color: #fff;
    background: rgba(37, 65, 204, 0.22);
    box-shadow: 0 0 14px rgba(61, 89, 232, 0.35) inset;
}
.footer__chip {
    display: inline-block;
    margin-bottom: 12px;
}
.footer__chip img {
    height: 40px;
    /* transparent logo rendered white on the dark footer */
    filter: brightness(0) invert(1);
}
.footer__tag {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 34ch;
}
.footer__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}
.footer__top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-family: var(--f-mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s;
}
.footer__top-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 11px;
    transition:
        border-color 0.25s,
        background 0.25s,
        transform 0.25s;
}
.footer__top:hover {
    color: #fff;
}
.footer__top:hover .footer__top-btn {
    border-color: var(--royal-bright);
    background: rgba(37, 65, 204, 0.3);
    transform: translateY(-3px);
}
.footer__base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(28px, 4vh, 44px);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 980px) {
    .split,
    .feature,
    .feature--rev .feature__media {
        grid-template-columns: 1fr;
    }
    .feature--rev .feature__media,
    .split--rev .split__media {
        order: 0;
    }
    .cols {
        grid-template-columns: 1fr;
    }
    .squares {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 940px) {
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 340px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 92px 22px 30px;
        background: rgba(247, 244, 238, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--ink);
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .nav.open {
        transform: none;
    }
    .nav__link {
        font-size: 16px;
        padding: 12px 14px;
        justify-content: space-between;
    }
    /* Bigger, clearer arrow tap-target so a section can be expanded in
       place (revealing its subsections) without closing the menu. */
    .nav__item > .nav__link .nav__caret {
        font-size: 14px;
        opacity: 0.9;
        padding: 6px 8px;
        margin: -6px -8px -6px 0;
    }
    .nav__drop {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(37, 65, 204, 0.06);
        border: 0;
        min-width: 0;
        margin: 2px 0 8px;
        max-height: 0;
        overflow: hidden;
        padding: 0 8px;
        transition:
            max-height 0.35s,
            padding 0.35s;
    }
    .nav__item.open .nav__drop {
        max-height: 480px;
        padding: 8px;
    }
    .nav__item:hover .nav__drop {
        transform: none;
    }
    .nav__drop a {
        padding: 12px 14px;
    }
    .nav__cta {
        margin: 12px 14px 0;
        padding: 14px 20px;
        text-align: center;
    }
    .nav__toggle {
        display: flex;
        z-index: 95;
    }
}

@media (max-width: 720px) {
    .footer__inner,
    .footer__side {
        align-items: flex-start;
    }
    .footer__side {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        row-gap: 14px;
    }
    .squares {
        grid-template-columns: 1fr 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .squares {
        grid-template-columns: 1fr;
    }
}

/* ═══════════ ELEVATOR-DOOR PAGE TRANSITION ═══════════ */
.doors {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
}
.doors.active {
    pointer-events: auto;
}
.doors__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.6%;
    background: linear-gradient(180deg, #16245f 0%, #0a1342 100%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.doors__panel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--royal-bright);
    box-shadow: 0 0 18px rgba(79, 107, 245, 0.7);
}
.doors__panel--l {
    left: 0;
    transform: translateX(-101%);
}
.doors__panel--l::after {
    right: 0;
}
.doors__panel--r {
    right: 0;
    transform: translateX(101%);
}
.doors__panel--r::after {
    left: 0;
}
.doors.closing .doors__panel--l,
.doors.closing .doors__panel--r {
    transform: translateX(0);
}
.doors__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition:
        opacity 0.35s,
        transform 0.35s;
}
.doors.closing .doors__badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.18s;
}
.doors__logo {
    width: 170px;
    filter: brightness(0) invert(1);
}
.doors__label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--royal-soft);
    min-height: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .doors__panel {
        transition: none;
    }
}

/* ═══════════ MODERN ATMOSPHERE: grain · progress · numerals · lift ═══════════ */
.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.1;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 100;
    background: var(--royal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* Editorial masthead index — per-page sheet number on the section rule */
.section__head {
    position: relative;
}
.section__head::after {
    content: attr(data-sheet);
    position: absolute;
    top: 22px;
    right: var(--pad);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--grey-500);
    pointer-events: none;
}
.section--dark .section__head::after {
    color: rgba(255, 255, 255, 0.55);
}
@media (min-width: 1101px) {
    /* Track the extra right padding the container reserves for the shaft. */
    .section__head::after {
        right: calc(var(--pad) + 112px);
    }
}
.section__head > * {
    position: relative;
    z-index: 1;
}
@media (max-width: 620px) {
    .section__head::after {
        top: 16px;
        font-size: 11px;
    }
}

/* Card lift micro-interactions */
.feature,
.ai {
    transition: border-color 0.45s;
}
.feature:hover,
.ai:hover {
    border-top-color: var(--ink);
}
.stat {
    transition: border-color 0.35s;
}
.stat:hover {
    border-top-color: var(--royal);
}
@media (prefers-reduced-motion: reduce) {
    .grain {
        display: none;
    }
}

/* The footer sits below the elevator zone — don't reserve rail space here
   (it was squeezing the Follow column so the bubbles didn't fit). */
@media (min-width: 1101px) {
    .footer .container {
        padding-right: var(--pad);
    }
}

/* Comprehensive reduced-motion: stop the continuous/decorative animations
   (marquees, roll, hero zoom, aura, LED pulses, shimmer) for users who ask. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
