/* Homepage opening scene. One layout contract, independent of legacy panorama geometry. */
.home-hero {
    --hero-focus: 50% 42%;
    --hero-shade-direction: to right;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: clamp(560px, 46vw, 720px);
    margin-block-start: 14px;
    padding-block: clamp(56px, 6vw, 88px);
    overflow: clip;
    background: #070d17;
    color: #faf7ef;
}
html[dir="rtl"] .home-hero { --hero-shade-direction: to left; }
.home-hero__media,
.home-hero__shade { position: absolute; inset: 0; }
.home-hero__media { z-index: -2; overflow: hidden; }
.home-hero__media img {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: var(--hero-focus);
    transform: scale(1.035) translate3d(-.35%, 0, 0);
    transform-origin: center;
}
/* Overscan exceeds the pan at both endpoints. Only the image moves. */
@keyframes home-hero-drift {
    from { transform: scale(1.035) translate3d(-.35%, 0, 0); }
    to { transform: scale(1.11) translate3d(.7%, -.45%, 0); }
}
.home-hero[data-motion-ready] .home-hero__media img {
    animation: home-hero-drift 18s ease-in-out infinite alternate;
    animation-play-state: paused;
}
.home-hero[data-motion-active="true"] .home-hero__media img { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
    .home-hero[data-motion-ready] .home-hero__media img,
    .home-hero .home-hero__media img { animation: none; transform: none; }
}
.home-hero__shade {
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(var(--hero-shade-direction), rgb(4 9 17 / 94%) 0%, rgb(4 9 17 / 79%) 27%, rgb(4 9 17 / 26%) 56%, transparent 82%),
        linear-gradient(to top, rgb(4 9 17 / 38%), transparent 48%);
}
.home-hero__inner {
    box-sizing: border-box;
    inline-size: min(100%, var(--layout-wide, 1440px));
    min-inline-size: 0;
    margin-inline: auto;
    padding-inline: clamp(24px, 4.2vw, 72px);
}
.home-hero__copy { max-inline-size: 36rem; }
.home-hero__copy .journey-kicker { color: #f1d48f; margin-block-end: 14px; }
.home-hero__copy h1 {
    color: inherit;
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1.18;
    max-inline-size: 15ch;
    margin: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow: 0 2px 18px rgb(0 0 0 / 22%);
}
html[dir="rtl"] .home-hero__copy h1 { line-height: 1.4; }
.home-hero__copy p {
    color: #f5f0e7;
    max-inline-size: 43ch;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.85;
    margin-block: 20px 28px;
    text-wrap: pretty;
}
.home-hero__copy .button {
    max-inline-size: 100%;
    min-block-size: 50px;
    white-space: normal;
    text-align: center;
    line-height: 1.6;
}
@media (max-width: 1024px) {
    .home-hero {
        --hero-focus: 100% 42%;
        min-block-size: clamp(600px, 72svh, 720px);
    }
    .home-hero__copy { max-inline-size: 32rem; }
    .home-hero__copy h1 { font-size: clamp(32px, 4.5vw, 46px); }
}
@media (max-width: 680px) {
    .home-hero {
        --hero-focus: 100% 38%;
        align-items: end;
        min-block-size: clamp(620px, 80svh, 740px);
        margin-block-start: 10px;
        padding-block: 240px 36px;
    }
    .home-hero__shade {
        background: linear-gradient(to top, #050a13 1%, rgb(5 10 19 / 94%) 26%, rgb(5 10 19 / 70%) 48%, rgb(5 10 19 / 8%) 78%, transparent);
    }
    .home-hero__inner { padding-inline: 24px; }
    .home-hero__copy { max-inline-size: 100%; }
    .home-hero__copy h1 { font-size: clamp(30px, 8vw, 38px); max-inline-size: 18ch; }
    .home-hero__copy p { font-size: 16px; line-height: 1.8; margin-block: 16px 24px; }
}
