:root {
    --mast: 4.75rem;
    --space: #080d12;
    --signal: #c1fae3;
    --signal-soft: #dcece9;
}

.home-page { background: var(--space); color: #ecf5f4; }
.home-page .site-header {
    position: sticky;
    top: 0;
    z-index: 8;
    background: #080e13f5;
    color: #e6f0ee;
    border-bottom: 1px solid #67807c32;
}
.home-page .header-layout { min-height: var(--mast); }
.home-page .main-nav a { color: #d8e6e3; }
.home-page .main-nav a:hover { color: #f2fffa; }
.home-page .main-nav .nav-support, .home-page .menu-toggle { border-color: #445b58; }
.home-page .site-header :focus-visible, .journey :focus-visible, .journey-contact :focus-visible { outline-color: var(--signal); }
.home-page .site-footer { background: #080d12; border-top: 1px solid #52646b2e; }
.home-page .footer-bottom { border-top-color: #435359; }

.journey {
    position: relative;
    background: var(--space);
    --scene-height: max(31rem, calc(100svh - var(--mast)));
    --journey-distance: 360svh;
}
.journey.is-live { height: calc(var(--scene-height) + var(--journey-distance)); }
.journey-stage {
    isolation: isolate;
    position: relative;
    height: var(--scene-height);
    overflow: hidden;
    background: radial-gradient(ellipse at 68% 47%, #16313a 0, #0d1b25 32%, var(--space) 73%);
}
.is-live .journey-stage { position: sticky; top: var(--mast); }
.journey-poster, .journey-poster img, .journey-canvas, .journey-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-poster img { object-fit: cover; object-position: center; }
.journey-poster { transition: opacity .32s ease; z-index: -2; }
.journey-canvas { z-index: -1; }
.is-live .journey-poster { opacity: 0; }
.journey-shade {
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg, #080d12b8 0%, #080d1245 34%, transparent 58%),
        linear-gradient(0deg, #080d12b8, transparent 26%);
}
.journey-intro, .journey-caption, .journey-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.journey-intro { top: 34%; pointer-events: none; }
.journey-intro h1 {
    color: #f1f8f6;
    font-size: clamp(2.85rem, 4.55vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.06em;
    font-weight: 565;
    max-width: 32rem;
    text-wrap: balance;
    text-shadow: 0 2px 26px #050a0d99;
}
.journey-static {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    color: #c9ded8;
    text-decoration: none;
    font-size: .94rem;
    font-weight: 520;
    margin-top: 1.55rem;
    padding: .5rem .3rem .5rem 0;
}
.journey-static:hover, .journey-skip:hover, .journey-track-link:hover { color: #f0fff9; text-decoration: underline; text-underline-offset: .26em; }
.is-live .journey-static { display: none; }
.is-live[data-phase]:not([data-phase="0"]) .journey-intro { opacity: 0; translate: 0 -.5rem; }
.journey-caption { top: 37%; pointer-events: none; }
.journey-kicker { color: var(--signal); font-size: .88rem; font-weight: 570; display: block; min-height: 1.15rem; }
.journey-kicker:empty { display: none; }
.journey-caption-title { display: block; color: #eaf5f2; font-size: clamp(1.9rem, 3.05vw, 3.35rem); letter-spacing: -.045em; font-weight: 550; line-height: 1.12; }
.journey-kicker:not(:empty) + .journey-caption-title { margin-top: .5rem; }
.journey-nav {
    bottom: clamp(1.4rem, 4svh, 2.7rem);
    display: flex;
    align-items: start;
    gap: clamp(.55rem,1.3vw,1.25rem);
}
.journey-nav button {
    position: relative;
    flex: 0 1 7.3rem;
    border: 0;
    border-top: 1px solid #758f8d80;
    padding: .72rem .05rem .45rem;
    background: transparent;
    color: #b7cac8;
    white-space: nowrap;
    font-size: .875rem;
    text-align: left;
    cursor: pointer;
}
.journey-nav button:hover, .journey-nav button[aria-current="step"] { color: #f0fff9; border-top-color: var(--signal); }
.journey-nav button[aria-current="step"]::before {
    content: "";
    height: 2px;
    background: var(--signal);
    box-shadow: 0 0 12px #9cf0d488;
    position: absolute;
    inset: -1px 41% auto 0;
}
.journey-skip { margin-left: auto; padding: .65rem 0 .45rem; color: #c4d9d3; font-size: .875rem; white-space: nowrap; text-decoration: none; }

.journey-contact {
    scroll-margin-top: var(--mast);
    background: radial-gradient(ellipse at 50% 0, #162e2c, #0a161c 42%, #080d12 81%);
    border-top: 1px solid #81978f2b;
    color: #f1f8f4;
}
.journey-contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: max(23rem, calc(100svh - var(--mast) - 7rem));
    padding-block: 4rem;
    text-align: center;
}
.journey-contact h2 { font-size: clamp(3rem, 6vw, 5.2rem); margin-block: .9rem 1.35rem; letter-spacing: -.064em; font-weight: 575; }
.journey-contact .actions { justify-content: center; }
.contact-symbol { width: 4.1rem; height: 4.1rem; opacity: .88; }
.journey-track-link { color: #bed4ce; margin-top: 1.25rem; font-size: .925rem; text-decoration: none; }

@media (max-width: 47rem) {
    :root { --mast: 4.15rem; }
    .home-page .header-layout { flex-wrap: nowrap; }
    .home-page.menu-ready .main-nav.menu-open {
        position: absolute; inset: 100% 0 auto; padding: .8rem var(--shell-gap);
        display: flex; justify-content: flex-start; gap: .7rem 1.45rem;
        background: #0c171c; border-bottom: 1px solid #435d5b;
    }
    .home-page:not(.menu-ready) .header-layout { flex-wrap: wrap; }
    .journey { --scene-height: max(31rem, calc(100svh - var(--mast))); --journey-distance: 320svh; }
    .journey-shade {
        background: linear-gradient(180deg, #080d12aa, transparent 35%),
            linear-gradient(0deg, #080d12b8, transparent 26%);
    }
    .journey-intro { top: 8%; }
    .journey-intro h1 { font-size: clamp(2.45rem, 8.3vw, 4rem); }
    .journey-static { margin-top: .62rem; }
    .journey-caption { top: 9%; }
    .journey-nav { bottom: max(1.15rem, env(safe-area-inset-bottom)); gap: .7rem; }
    .journey-nav button { flex: 1; font-size: .78rem; min-width: 0; white-space: normal; }
    .journey-skip { display: none; }
    .journey-contact-inner { min-height: max(23rem, calc(100svh - var(--mast) - 6rem)); }
}
@media (max-width: 47rem) and (orientation: landscape) {
    .journey { --scene-height: max(16rem, calc(100svh - var(--mast))); }
    .journey-intro, .journey-caption { top: 24%; }
    .journey-intro h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
    .journey-caption-title { font-size: 1.68rem; }
}
@media (max-width: 23rem) {
    .journey-nav { gap: .46rem; }
    .journey-nav button { font-size: .69rem; }
}
@media (prefers-reduced-motion: reduce) {
    .journey-intro, .journey-poster { transition: none; }
}

