.hero {
    background: #fff;
    color: #16382e;
}
.hero__top {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.5fr);
    align-items: center;
    column-gap: clamp(20px, 3vw, 54px);
    padding-block: clamp(20px, 2.4vw, 36px) clamp(15px, 1.7vw, 26px);
}
.hero__intro, .hero__model { padding: 0; }
.hero__eyebrow {
    margin: 0 0 1.15rem;
    font: 500 .69rem/1.4 var(--font-numbers);
    letter-spacing: .07em;
    color: #286449;
}
.hero__title {
    font-size: clamp(2.25rem, 3.15vw, 3.8rem);
    line-height: 1.055;
    letter-spacing: -.052em;
    text-wrap: balance;
}
.hero__description {
    max-width: 36ch;
    margin-top: 1.25rem;
    font-size: clamp(.94rem, 1.12vw, 1.1rem);
    line-height: 1.55;
    color: #53675d;
}
.hero__buttons {
    gap: .7rem 1.1rem;
    align-items: center;
    margin-top: 1.65rem;
}
.hero__buttons .button { flex: 0 0 auto; }
.hero__buttons .button + .button {
    padding-inline: 0;
    border-color: transparent;
    background: transparent;
    color: #204835;
}
.hero__buttons .button + .button:hover { text-decoration: underline; }
.hero__model, .engineering-atlas { min-width: 0; width: 100%; }
.engineering-atlas { position: relative; }
#hero-scene {
    display: block;
    width: 100%;
    max-height: clamp(330px, 33vw, 512px);
    overflow: visible;
    margin-inline: auto;
}
#sk-routes { pointer-events: none; }
#hero-scene [data-route], #hero-scene .pin-focus { opacity: 0; }
#hero-scene [data-route].active, #hero-scene :is([data-device],[data-peer]).active .pin-focus,
#hero-scene [data-device]:focus-visible .pin-focus,
#hero-scene [data-device]:hover .pin-focus { opacity: 1; }
#hero-scene [data-device] { cursor: pointer; outline: none; }
#hero-scene [data-device]:focus-visible .pin-focus { stroke: #103a2b; stroke-width: 2.4; }
#hero-scene [data-peer] { pointer-events: none; }
#hero-scene .pin-focus { pointer-events: none; }
#hero-scene [data-device].active .pin-plus { display: none; }
.atlas-legend {
    margin-inline: 5.5% 2%;
    border-top: 1px solid #cbd3c5;
    padding-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: .65rem;
}
.atlas-readout { min-block-size: 5rem; }
.atlas-picker { display: none; }
.systems--grid .equipment-scene:target { scroll-margin-top: 6.25rem; }
.atlas-title { display: block; font-size: .92rem; font-weight: 700; line-height: 1.5; }
.engineering-atlas[data-building="all"] .atlas-title { color: #50675d; font-weight: 600; }
.atlas-note { display: block; color: #52665a; font-size: .8rem; line-height: 1.45; }
.engineering-atlas .building-details {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #256241;
    font: 700 .78rem/1.4 var(--font-body);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.atlas-reset {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -8px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #23563f;
    cursor: pointer;
}
.atlas-reset:hover { background: #eff6f1; }
.atlas-reset span { position: relative; width: 14px; height: 14px; }
.atlas-reset span::before, .atlas-reset span::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}
.atlas-reset span::after { transform: rotate(-45deg); }
.atlas-legend :focus-visible { outline: 2px solid #16854a; outline-offset: 2px; }
.engineering-atlas [hidden] { display: none; }
.hero__stats { grid-column: 1 / -1; }
@media (min-width: 761px) and (max-width: 1024px) {
    .hero .hero__top { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.28fr); }
    .hero__title { font-size: clamp(2rem,3.8vw,2.6rem); }
}
@media (max-width: 760px) {
    .hero .hero__top { display: flex; gap: 15px; align-items: stretch; padding-block: 25px 15px; }
    .hero__intro { align-items: flex-start; text-align: left; display: block; }
    .hero__title { font-size: clamp(1.95rem,6.9vw,2.65rem); }
    .hero__title br { display: none; }
    .hero__eyebrow { font-size: .61rem; margin-bottom: .65rem; }
    .hero__description { margin-top: .7rem; max-width: 43ch; font-size: .92rem; }
    .hero__buttons { justify-content: flex-start; gap: .6rem 1rem; margin-top: .9rem; }
    .hero__buttons .button { flex-basis: auto; }
    #hero-scene { max-height: 355px; }
    .atlas-legend { margin-inline: 0; }
    .atlas-readout { min-block-size: 6rem; }
    .atlas-picker {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: .6rem;
        padding-top: .5rem;
        border-top: 1px solid #dbe4de;
        font-size: .82rem;
        color: #23563f;
    }
    .atlas-picker select {
        width: 100%;
        min-height: 44px;
        padding: .35rem .5rem;
        border: 1px solid #cbd9d0;
        background: #fff;
        color: #16382e;
    }
    .atlas-title { font-size: .83rem; }
    .atlas-note { font-size: .76rem; }
}
@media (max-width: 360px) {
    .atlas-readout { min-block-size: 7rem; }
}
.engineering-atlas[data-focus=all] #hero-scene [data-route] { opacity: 1; }
.engineering-atlas[data-focus=all] .atlas-run > :first-child { opacity: 0; }
.engineering-atlas[data-focus=all] .atlas-run > :nth-child(2) { opacity: .28; stroke-width: 1; }
@media (prefers-reduced-motion:no-preference) {
    #hero-scene [data-route], #hero-scene .pin-focus { transition: opacity 150ms ease; }
    .engineering-atlas[data-focus=all] .line-pulse,
    #hero-scene [data-route].active .line-pulse {
        display: inline;
        stroke-dasharray: 8 112;
        animation: atlas-line-travel 3s linear infinite;
    }
    .engineering-atlas[data-focus=all] .line-pulse {
        animation-name: atlas-overview-travel;
        animation-duration: 4s;
        animation-delay: var(--start);
        stroke-dasharray: 7 43;
    }
    .engineering-atlas[data-focus=all] .atlas-run > :nth-child(2) {
        stroke-width: 1.25;
        opacity: .4;
    }
}
.line-pulse { display: none; }
@keyframes atlas-overview-travel {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
}
@keyframes atlas-line-travel {
    0% { stroke-dashoffset: 8; opacity: 0; }
    5% { opacity: .95; }
    43% { opacity: .95; }
    50%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
