.home-page { background: var(--bp-bg); }
.home-page .shell { width: min(var(--theme-shell-width), calc(100% - 28px)); padding-bottom: 32px; }
.home-hero { position: relative; aspect-ratio: 1.88; min-height: 400px; overflow: hidden; border-radius: 8px; background: #173f35; color: #fff; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 69%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 24, 15, .5)); pointer-events: none; }
.home-hero-content { position: absolute; inset: auto 0 0; padding: clamp(24px, 4vw, 52px); z-index: 1; }
.home-hero h1 { margin: 0; font-size: clamp(42px, 7.4vw, 92px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.home-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.home-gallery-photo { margin: 0; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: #dfe8dd; }
.home-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-gallery-photo-4 img { object-position: 50% 55%; }
.home-gallery-photo-5 img { object-position: 50% 57%; }
.footer-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
 .home-page .shell { width: calc(100% - 16px); padding-top: 8px; padding-bottom: 24px; }
 .home-hero { aspect-ratio: 4 / 5; min-height: 0; }
 .home-hero-content { padding: 24px 18px; }
 .home-hero h1 { font-size: clamp(36px, 11vw, 58px); }
 .home-gallery { gap: 8px; margin-top: 8px; grid-template-columns: minmax(0, 1fr); }
 .home-gallery-photo { aspect-ratio: 4 / 5; }
}

/* Previously published photos precede the five selected photos. */
.home-restored-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-gallery-photo picture { display: block; width: 100%; height: 100%; }
.home-gallery-photo-wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }

.nas-home-topbar {
    flex-wrap: wrap;
}

.nas-home-topbar .brand-mark {
    background: transparent;
    object-fit: contain;
}

.nas-home-topbar .global-nav {
    flex: 0 1 auto;
    flex-wrap: wrap;
    overflow: visible;
}

@media (max-width: 640px) {
    .nas-home-topbar .global-nav {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}
