/* Landing page: scroll-snap experience */

.landing-view {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding-top: 0 !important;
    width: 100%;
}

.landing-view .header-logo,
.landing-scroll {
    position: relative;
    z-index: 1;
}

.landing-backdrops {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.landing-backdrop {
    position: absolute;
    inset: -3%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 700ms ease;
    will-change: opacity;
    transform: scale(1.02);
    backface-visibility: hidden;
}

.landing-backdrop.is-active {
    opacity: 1;
}

.landing-backdrop.layer-1 {
    background-image: url("../assets/images/1_backdrop.png");
}

.landing-backdrop.layer-2 {
    background-image: url("../assets/images/2_backdrop.png");
}

.landing-backdrop.layer-3 {
    background-image: url("../assets/images/3_backdrop.png");
}

.landing-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.4), rgba(8, 16, 32, 0.5));
}

.main-content.landing-mode {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.3), rgba(8, 16, 32, 0.2));
}

.landing-scroll {
    width: 100%;
}

.landing-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 60px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(60px, 10vh, 100px) clamp(20px, 6vw, 80px);
    position: relative;
    width: 100%;
    max-width: none;
    overflow-x: clip;
    margin-top: -2px;
}

.landing-hero {
    background: none;
    border-bottom: none;
}

.landing-content {
    max-width: 760px;
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.landing-section.in-view .landing-content {
    opacity: 1;
    transform: translateY(0);
}

.landing-title {
    font-size: clamp(2rem, 5.4vw, 4rem);
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 22px;
    line-height: 1.1;
}

.landing-section h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    color: #ffffff;
    margin-bottom: 16px;
}

.landing-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 70ch;
}

.landing-links {
    margin: 6px 0 20px 1.2rem;
}

.landing-links li {
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.95);
}

.landing-links a,
.landing-cite a {
    color: #bfcee4;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-links a:hover,
.landing-cite a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

#inline-estimator-link {
    color: #d4deee;
    background: rgba(191, 206, 228, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    border-bottom: none !important;
    display: inline-block;
    transition: all 0.2s ease;
    font-weight: 500;
}

#inline-estimator-link:hover {
    background: rgba(191, 206, 228, 0.22);
    color: #ffffff;
    border-bottom: none !important;
}

#inline-estimator-link:focus {
    outline: 2px solid rgba(191, 206, 228, 0.5);
    outline-offset: 2px;
}

.landing-cite {
    margin: 8px 0 24px;
    color: rgba(255, 255, 255, 0.9);
}

.landing-cta {
    background: #bfcee4;
    color: #11233d;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    background: #d4deee;
}

.landing-media {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0.2;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.landing-section.in-view .landing-media {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.landing-media img {
    width: min(100%, 760px);
    max-height: 74vh;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Mission ladder sections visual continuity */
.mission-ladder-section {
    background: transparent;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--page-bg-1), rgba(0, 31, 96, 0.95));
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1600px) {
    .landing-section {
        grid-template-columns: minmax(320px, 1fr) minmax(500px, 1.2fr);
    }

    .landing-media img {
        width: min(100%, 920px);
        max-height: 78vh;
    }
}

@media (max-width: 980px) {
    .landing-section {
        min-height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: clamp(60px, 10vh, 80px) clamp(20px, 5vw, 40px);
        align-content: center;
    }

    .landing-title {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .landing-section h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .landing-media {
        max-height: 50vh;
        overflow-y: auto;
    }

    .landing-media img {
        max-height: 48vh;
    }
}
