.systems {
    padding-block: calc(var(--space-large) * 2);
}

/* Типографика блока опирается на общие теги/переменные темы (h2.section-title,
   h3, p, .text-link), как и в остальных секциях — здесь только раскладка и
   декоративные детали, специфичные для списка направлений. */

.systems .mono {
    font-family: var(--font-numbers);
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: 0.04em;

}

.systems .eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-small);
    color: var(--accent-color);
    font-size: var(--text-body);
    font-weight: 700;
    text-transform: uppercase;
}

.systems .section-index {
    color: var(--accent-color);
}

.systems .section-intro {
    margin-bottom: var(--layout-gap);
}

.systems .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    gap: var(--layout-gap);
    margin-top: var(--space-large);
}

.section-heading__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-small);
    min-width: 0;
}

.section-heading__col p {
    max-width: 46ch;
}

.section-heading__col .mono {
    color: var(--accent-color);
}

.systems-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    gap: var(--layout-gap);
    align-items: start;
}

.systems-mobile-picker {
    display: none;
}

.system-list {
    border-top: 1px solid var(--border-color);
}

.system-item {
    border-bottom: 1px solid var(--border-color);
}

.system-item h3 {
    margin: 0;
}

.system-trigger {
    border: 0;
    background: none;
    width: 100%;
    display: grid;
    grid-template-columns: 26px 1fr 14px;
    align-items: center;
    gap: var(--space-medium);
    padding-block: var(--space-medium);
    text-align: left;
    cursor: pointer;
}

.system-trigger > .mono {
    color: var(--grey-color);
}

.system-item.is-active .system-trigger,
.system-item.is-active .mono {
    color: var(--accent-color);
}

.expand-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.expand-icon::before,
.expand-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    inset: 5px 0 auto;
    height: 1px;
}

.expand-icon::after {
    transform: rotate(90deg);
    transition: transform 0.2s;
}

.system-item.is-active .expand-icon::after {
    transform: rotate(0);
}

.system-panel {
    padding: 0 var(--space-large) var(--space-large) 41px;
    animation: systems-panel-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.system-panel p {
    max-width: 380px;
}

.system-includes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-small);
    margin-bottom: var(--space-medium);
}

.system-includes span {
    border: 1px solid var(--border-color);
    background: #f2f6f3;
    color: var(--dark-color);
    padding: calc(var(--space-small) / 2) var(--space-small);
    font-size: var(--text-small);
    line-height: 1.4;
}

.system-panel > .text-link {
    margin-top: var(--space-small);
}

.system-visual {
    background: #f2f6f3;
}

.system-picture {
    position: relative;
    aspect-ratio: 1.25;
    overflow: hidden;
    max-height: 455px;
    width: 100%;
}

.system-visual figcaption {
    padding: 20px 24px;
    border-top: 1px solid #e0e7e0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

.system-visual figcaption .mono {
    color: var(--accent-color);
    white-space: nowrap;
}

@keyframes systems-panel-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Equipment scenes — ported as-is (duration-tied keyframes, not themeable). */

.system-visual[data-visual] {
    background: var(--dark-color);
    color: #e6ece6;
}

.system-visual[data-visual] figcaption {
    border-color: var(--dark-color);
}

.system-visual[data-visual] figcaption .mono {
    color: #98caaa;
}

.system-visual[data-transition] .system-picture {
    pointer-events: none;
    will-change: opacity, transform;
}

/* The shared wrapper owns the enter/leave transition; scene timelines stay independent. */
.system-visual .equipment-scene {
    animation: none;
}

.equipment-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    animation: equipment-scene-enter 0.4s ease-out;
    border-bottom: 1px solid #a5c3ac26;
}

.equipment-scene[hidden] {
    display: none;
}

.studio-heading {
    position: absolute;
    z-index: 2;
    inset: 25px 25px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.studio-heading > .mono {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #aab6ad;
}

.studio-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #a9b9ac;
}

.studio-status i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #96d8a9;
}

.studio-art {
    width: 100%;
    height: 100%;
    max-width: 490px;
    margin-inline: auto;
    min-height: 0;
    flex: 1;
    display: block;
    padding-top: 24px;
    box-sizing: border-box;
}

.studio-controls {
    position: relative;
    z-index: 2;
    padding: 15px 25px;
    border-top: 1px solid #a5c3ac26;
    display: flex;
    align-items: center;
    gap: 18px;
}

.studio-steps {
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.studio-steps li {
    font-size: 11px;
    white-space: nowrap;
    color: #84958a;
    transition: color 0.35s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-steps li + li::before {
    content: '→';
    color: #63786a;
    margin-right: 10px;
}

.studio-steps li > span {
    font: 8px JetBrains, monospace;
    color: #60766a;
}

.studio-steps li.is-current,
.studio-steps li.is-done {
    color: #c5e3ce;
}

.studio-steps li.is-current > span,
.studio-steps li.is-done > span {
    color: #8fdda9;
}

.studio-replay {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aabdb0;
    font-size: 11px;
    cursor: pointer;
    min-height: 32px;
}

.studio-replay svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.4;
    fill: none;
}

.studio-replay:hover {
    color: #e0f5e3;
}

.studio-replay:focus-visible {
    outline: 2px solid #91dfa8;
    outline-offset: 5px;
}

.scene-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.equipment-scene.is-paused * {
    animation-play-state: paused !important;
}

@keyframes equipment-scene-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Видеонаблюдение (cctv) */
.cctv-coverage, .cctv-person, .cctv-detection, .cctv-saved { opacity: 0; }
.cctv-gimbal { transform-origin: 228px 214px; transform: translateX(-10px) rotate(-7deg); }
.cctv-coverage { transform-origin: 260px 249px; }
.cctv-person { transform: translateX(68px); }
.cctv-scan { transform-origin: 260px 249px; opacity: 0; }
.equipment-scene.is-running .cctv-gimbal { animation: cctv-turn 7.2s ease-in-out both; }
.equipment-scene.is-running .cctv-coverage { animation: cctv-coverage 7.2s ease both; }
.equipment-scene.is-running .cctv-scan { animation: cctv-scan 7.2s ease both; }
.equipment-scene.is-running .cctv-person { animation: cctv-walk 7.2s ease both; }
.equipment-scene.is-running .cctv-detection { animation: cctv-detect 7.2s ease both; }
.equipment-scene.is-running .cctv-saved { animation: cctv-save 7.2s ease both; }
.equipment-scene[data-phase="complete"] .cctv-gimbal { transform: translateX(0) rotate(0); }
.equipment-scene[data-phase="complete"] .cctv-coverage { opacity: 1; }
.equipment-scene[data-phase="complete"] .cctv-person { opacity: 1; transform: none; }
.equipment-scene[data-phase="complete"] .cctv-detection, .equipment-scene[data-phase="complete"] .cctv-saved { opacity: 1; }
@keyframes cctv-turn { 0%, 8% { transform: translateX(-10px) rotate(-7deg); } 30%, 100% { transform: translateX(0) rotate(0); } }
@keyframes cctv-coverage { 0%, 13% { opacity: 0; transform: scale(0.65); } 33%, 100% { opacity: 1; transform: scale(1); } }
@keyframes cctv-scan { 0%, 25% { opacity: 0; transform: rotate(-20deg); } 30% { opacity: 0.7; } 60% { opacity: 0.5; transform: rotate(17deg); } 70%, 100% { opacity: 0; transform: rotate(17deg); } }
@keyframes cctv-walk { 0%, 30% { opacity: 0; transform: none; } 42%, 100% { opacity: 1; transform: none; } }
@keyframes cctv-detect { 0%, 53% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes cctv-save { 0%, 80% { opacity: 0; transform: translateY(4px); } 92%, 100% { opacity: 1; transform: translateY(0); } }

/* СКУД (access) */
.access-door-leaf { transform-origin: 501px 212px; }
.access-card { transform-origin: 196px 269px; opacity: 1; transform: translate(-22px, 76px) rotate(-12deg); }
.access-led, .access-led-halo, .access-reader-ok, .access-radio, .access-spill, .access-connection, .access-approved { opacity: 0; }
.access-scene .studio-status i { background: #7c9687; }
.access-scene[data-phase="complete"] .studio-status i { background: #96d8a9; }
.equipment-scene.is-running .access-card { animation: access-present 7.8s ease-in-out both; }
.equipment-scene.is-running .access-radio { animation: access-read 7.8s ease both; }
.equipment-scene.is-running .access-led, .equipment-scene.is-running .access-led-halo, .equipment-scene.is-running .access-reader-ok { animation: access-allow 7.8s ease both; }
.equipment-scene.is-running .access-reader-idle { animation: access-unlock 7.8s ease both; }
.equipment-scene.is-running .access-door-leaf { animation: access-open 7.8s cubic-bezier(0.35, 0, 0.25, 1) both; }
.equipment-scene.is-running .access-spill { animation: access-light 7.8s ease both; }
.equipment-scene.is-running .access-connection { animation: access-signal 7.8s linear both; }
.equipment-scene.is-running .access-approved { animation: access-result 7.8s ease both; }
.equipment-scene[data-phase="complete"] .access-door-leaf { transform: matrix(.56,.32,0,1,0,0); }
.equipment-scene[data-phase="complete"] .access-led, .equipment-scene[data-phase="complete"] .access-led-halo, .equipment-scene[data-phase="complete"] .access-reader-ok, .equipment-scene[data-phase="complete"] .access-spill, .equipment-scene[data-phase="complete"] .access-approved { opacity: 1; }
.equipment-scene[data-phase="complete"] .access-reader-idle { opacity: 0; }
@keyframes access-present { 0%, 8% { transform: translate(-22px, 76px) rotate(-12deg); } 30%, 46% { transform: translate(25px, -10px) rotate(-3deg); } 71%, 100% { transform: translate(-22px, 76px) rotate(-12deg); } }
@keyframes access-read { 0%, 27% { opacity: 0; } 33% { opacity: 0.75; } 40% { opacity: 0.4; } 46%, 100% { opacity: 0; } }
@keyframes access-allow { 0%, 38% { opacity: 0; } 43%, 100% { opacity: 1; } }
@keyframes access-unlock { 0%, 38% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes access-open { 0%, 49% { transform: skewY(0) scaleX(1); } 83%, 100% { transform: matrix(.56,.32,0,1,0,0); } }
@keyframes access-light { 0%, 49% { opacity: 0; } 83%, 100% { opacity: 1; } }
@keyframes access-signal { 0%, 41% { opacity: 0; stroke-dashoffset: 32; } 44% { opacity: 0.7; } 60% { opacity: 0.7; stroke-dashoffset: 0; } 73%, 100% { opacity: 0; stroke-dashoffset: -16; } }
@keyframes access-result { 0%, 79% { opacity: 0; transform: translateY(4px); } 91%, 100% { opacity: 1; transform: translateY(0); } }

/* Охранная сигнализация, пожарная/СОУЭ, пожаротушение, ЛВС и питание */
.alarm-contact-led, .alarm-contact-ring, .alarm-panel-alert, .alarm-panel-led, .alarm-result,
.fire-smoke, .fire-smoke-lines, .fire-detector-led, .fire-detector-halo, .fire-speaker-led, .fire-sound, .fire-exit-light, .fire-evacuation, .fire-result,
.suppression-flow-tail, .suppression-water, .suppression-heat, .suppression-result,
.network-power, .network-port, .network-wifi-led, .network-screen, .network-result { opacity: 0; }
.alarm-door { transform-origin: 275px 230px; }
.alarm-signal, .fire-signal, .suppression-flow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.network-packet { stroke-dasharray: 0.13 0.87; stroke-dashoffset: 0.14; opacity: 0; }
.suppression-gauge { transform-origin: 476px 56px; }
.suppression-bulb { transform-origin: 305px 231px; }

.alarm-scene { --scene-time: 5.6s; }
.fire-scene { --scene-time: 8.4s; }
.suppression-scene { --scene-time: 5.6s; }
.network-scene { --scene-time: 7.6s; }

.equipment-scene.is-running .alarm-door { animation: alarm-open var(--scene-time) ease-in-out both; }
.equipment-scene.is-running .alarm-contact-led { animation: alarm-contact var(--scene-time) ease both; }
.equipment-scene.is-running .alarm-contact-ring { animation: alarm-ring var(--scene-time) ease both; }
.equipment-scene.is-running .alarm-signal { animation: alarm-send var(--scene-time) ease-in-out both; }
.equipment-scene.is-running .alarm-panel-idle { animation: alarm-idle var(--scene-time) ease both; }
.equipment-scene.is-running :is(.alarm-panel-alert, .alarm-panel-led) { animation: alarm-receive var(--scene-time) ease both; }
.equipment-scene.is-running .alarm-result { animation: alarm-result var(--scene-time) ease both; }
.equipment-scene[data-phase="complete"] .alarm-door { transform: matrix(.56,.32,0,1,0,0); }
.equipment-scene[data-phase="complete"] :is(.alarm-contact-led, .alarm-panel-alert, .alarm-panel-led, .alarm-result) { opacity: 1; }
.equipment-scene[data-phase="complete"] .alarm-signal { stroke-dashoffset: 0; opacity: 0.45; }
.equipment-scene[data-phase="complete"] .alarm-panel-idle { opacity: 0; }
@keyframes alarm-open { 0%, 12% { transform: skewY(0) scaleX(1); } 39%, 100% { transform: matrix(.56,.32,0,1,0,0); } }
@keyframes alarm-contact { 0%, 21% { opacity: 0; } 26%, 100% { opacity: 1; } }
@keyframes alarm-ring { 0%, 21% { opacity: 0; } 26% { opacity: .6; } 42%, 100% { opacity: 0; } }
@keyframes alarm-send { 0%, 24% { stroke-dashoffset: 1; opacity: 0; } 25% { opacity: 1; } 44% { stroke-dashoffset: 0; opacity: 1; } 68%, 100% { stroke-dashoffset: 0; opacity: .45; } }
@keyframes alarm-idle { 0%, 42% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes alarm-receive { 0%, 43% { opacity: 0; } 48%, 100% { opacity: 1; } }
@keyframes alarm-result { 0%, 50% { opacity: 0; } 60%, 100% { opacity: 1; } }

.equipment-scene.is-running .fire-smoke { animation: fire-smoke var(--scene-time) ease both; }
.equipment-scene.is-running .fire-smoke-lines { animation: fire-smoke-lines var(--scene-time) ease both; }
.equipment-scene.is-running :is(.fire-detector-led, .fire-detector-halo) { animation: fire-detect var(--scene-time) ease both; }
.equipment-scene.is-running .fire-signal { animation: fire-send var(--scene-time) ease-in-out both; }
.equipment-scene.is-running :is(.fire-speaker-led, .fire-exit-light, .fire-evacuation) { animation: fire-alert var(--scene-time) ease both; }
.equipment-scene.is-running .fire-sound { animation: fire-sound var(--scene-time) ease both; }
.equipment-scene.is-running .fire-result { animation: fire-result var(--scene-time) ease both; }
.equipment-scene[data-phase="complete"] .fire-smoke { opacity: 0.6; transform: translateY(-17px); }
.equipment-scene[data-phase="complete"] .fire-smoke-lines { opacity: 0.2; transform: translateY(-17px); }
.equipment-scene[data-phase="complete"] :is(.fire-detector-led, .fire-detector-halo, .fire-speaker-led, .fire-exit-light, .fire-evacuation, .fire-result) { opacity: 1; }
.equipment-scene[data-phase="complete"] .fire-sound { opacity: 0.35; }
.equipment-scene[data-phase="complete"] .fire-signal { stroke-dashoffset: 0; opacity: 0.45; }
@keyframes fire-smoke { 0%, 4% { opacity: 0; transform: translateY(65px); } 34% { opacity: 1; transform: translateY(0); } 78%, 100% { opacity: 0.6; transform: translateY(-17px); } }
@keyframes fire-smoke-lines { 0%, 7% { opacity: 0; transform: translateY(65px); } 34% { opacity: 0.65; transform: translateY(0); } 78%, 100% { opacity: 0.2; transform: translateY(-17px); } }
@keyframes fire-detect { 0%, 35% { opacity: 0; } 39%, 100% { opacity: 1; } }
@keyframes fire-send { 0%, 39% { stroke-dashoffset: 1; opacity: 0; } 40% { opacity: 1; } 65% { stroke-dashoffset: 0; opacity: 1; } 86%, 100% { stroke-dashoffset: 0; opacity: 0.45; } }
@keyframes fire-alert { 0%, 67% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes fire-sound { 0%, 69% { opacity: 0; } 75% { opacity: 0.8; } 79% { opacity: 0.2; } 84% { opacity: 0.8; } 93%, 100% { opacity: 0.35; } }
@keyframes fire-result { 0%, 79% { opacity: 0; transform: translateY(5px); } 94%, 100% { opacity: 1; transform: none; } }

.equipment-scene.is-running .suppression-heat { animation: suppression-heat var(--scene-time) ease both; }
.equipment-scene.is-running .suppression-bulb { animation: suppression-release var(--scene-time) ease both; }
.equipment-scene.is-running .suppression-water { animation: suppression-water var(--scene-time) ease both; }
.equipment-scene.is-running .suppression-result { animation: suppression-result var(--scene-time) ease both; }
.equipment-scene[data-phase="complete"] .suppression-bulb { opacity: 0; }
.equipment-scene[data-phase="complete"] :is(.suppression-water,.suppression-result) { opacity: 1; }
.suppression-scene:is(.is-running,[data-phase="complete"]) .spray-stream {
    animation: sprinkler-droplets 1.1s linear var(--spray-delay) infinite;
}
@keyframes suppression-heat { 0%, 6% { opacity: 0; transform: translateY(12px); } 23%, 30% { opacity: .6; } 43%, 100% { opacity: 0; transform: translateY(-9px); } }
@keyframes suppression-release { 0%, 32% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes suppression-water { 0%, 36% { opacity: 0; } 51%, 100% { opacity: 1; } }
@keyframes suppression-result { 0%, 56% { opacity: 0; } 68%, 100% { opacity: 1; } }
@keyframes sprinkler-droplets { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }

/* Flow is a schematic overlay, tied to the same activation timeline as the spray. */
.suppression-scene .pipe-water { opacity: 0; }
.suppression-scene .pipe-water-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; }
.suppression-scene .pipe-water-pulse { stroke-dasharray: 12 48; opacity: .9; }
.suppression-scene .suppression-gauge { transform-box: view-box; transform-origin: 476px 56px; color: #32464c; }
.suppression-scene .gauge-face { color: #e1ebe6; }
.suppression-scene .gauge-scale { color: #668477; }
.suppression-scene.is-running .gauge-scale { animation: gauge-scale-color var(--scene-time) ease-in-out both; }
.suppression-scene.is-running .pipe-water { animation: pipe-water-show var(--scene-time) linear both; }
.suppression-scene.is-running .pipe-water-reveal { animation: pipe-water-fill var(--scene-time) ease-out both; }
.suppression-scene:is(.is-running,[data-phase="complete"]) .pipe-water-pulse { animation: pipe-water-travel 1.2s linear infinite; }
.suppression-scene.is-running .suppression-gauge { animation: sprinkler-pressure var(--scene-time) ease-in-out both; }
.suppression-scene[data-phase="complete"] .pipe-water { opacity: .8; }
.suppression-scene[data-phase="complete"] .pipe-water-reveal { stroke-dashoffset: 0; }
.suppression-scene[data-phase="complete"] .suppression-gauge { transform: rotate(-20deg); color: #087c43; }
.suppression-scene[data-phase="complete"] .gauge-scale { color: #159c4c; }
@keyframes pipe-water-show { 0%, 32% { opacity: 0; } 37%, 100% { opacity: .8; } }
@keyframes pipe-water-fill { 0%, 32% { stroke-dashoffset: 1; } 46%, 100% { stroke-dashoffset: 0; } }
@keyframes pipe-water-travel { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes sprinkler-pressure { 0%, 32% { transform: rotate(0); color: #32464c; } 46% { transform: rotate(-42deg); color: #087c43; } 62% { transform: rotate(-12deg); color: #087c43; } 77%, 100% { transform: rotate(-20deg); color: #087c43; } }
@keyframes gauge-scale-color { 0%, 30% { color: #668477; } 38%, 52% { color: #dc4b43; } 72%, 100% { color: #159c4c; } }

.equipment-scene.is-running .network-power { animation: network-power var(--scene-time) ease both; }
.equipment-scene.is-running .network-port { animation: network-ports var(--scene-time) ease both; }
.equipment-scene.is-running .network-packet-a { animation: network-packet-a var(--scene-time) linear both; }
.equipment-scene.is-running .network-packet-b { animation: network-packet-b var(--scene-time) linear both; }
.equipment-scene.is-running .network-packet-c { animation: network-packet-c var(--scene-time) linear both; }
.equipment-scene.is-running :is(.network-screen, .network-wifi-led) { animation: network-devices var(--scene-time) ease both; }
.equipment-scene.is-running .network-result { animation: network-result var(--scene-time) ease both; }
.equipment-scene[data-phase="complete"] :is(.network-power, .network-port, .network-screen, .network-wifi-led, .network-result) { opacity: 1; }
@keyframes network-power { 0%, 5% { opacity: 0; } 15%, 100% { opacity: 1; } }
@keyframes network-ports { 0%, 15% { opacity: 0; } 28%, 100% { opacity: 1; } }
@keyframes network-packet-a { 0%, 34% { opacity: 0; stroke-dashoffset: 0.14; } 35% { opacity: 1; } 59% { opacity: 1; stroke-dashoffset: -0.85; } 61% { opacity: 0; stroke-dashoffset: -1; } 62% { opacity: 0; stroke-dashoffset: 0.14; } 64% { opacity: 1; } 92% { opacity: 1; stroke-dashoffset: -0.85; } 97%, 100% { opacity: 0; stroke-dashoffset: -1; } }
@keyframes network-packet-b { 0%, 39% { opacity: 0; stroke-dashoffset: 0.14; } 40% { opacity: 1; } 63% { opacity: 1; stroke-dashoffset: -0.85; } 65% { opacity: 0; stroke-dashoffset: -1; } 66% { opacity: 0; stroke-dashoffset: 0.14; } 68% { opacity: 1; } 93% { opacity: 1; stroke-dashoffset: -0.85; } 98%, 100% { opacity: 0; stroke-dashoffset: -1; } }
@keyframes network-packet-c { 0%, 43% { opacity: 0; stroke-dashoffset: 0.14; } 44% { opacity: 1; } 65% { opacity: 1; stroke-dashoffset: -0.85; } 67% { opacity: 0; stroke-dashoffset: -1; } 68% { opacity: 0; stroke-dashoffset: 0.14; } 70% { opacity: 1; } 94% { opacity: 1; stroke-dashoffset: -0.85; } 99%, 100% { opacity: 0; stroke-dashoffset: -1; } }
@keyframes network-devices { 0%, 63% { opacity: 0; } 72%, 100% { opacity: 1; } }
@keyframes network-result { 0%, 78% { opacity: 0; transform: translateY(5px); } 94%, 100% { opacity: 1; transform: none; } }

/* Detailed cabinet artwork with lightweight vector state overlays. */
.network-cabinet-art .network-monitor-sleep { opacity: .92; }
.network-scene.is-running .network-monitor-sleep { animation: cabinet-monitor 7.6s ease both; }
.network-scene[data-phase="complete"] .network-monitor-sleep { opacity: 0; }
.network-cabinet-art .network-packet { stroke-dasharray: none; }
.network-cabinet-art .network-packet path { stroke-dasharray: .035 .965; stroke-dashoffset: 1; }
.network-scene.is-running .network-cabinet-art .network-packet-a { animation: cabinet-link-a 7.6s linear both; }
.network-scene.is-running .network-cabinet-art .network-packet-b { animation: cabinet-link-b 7.6s linear both; }
.network-scene.is-running .network-cabinet-art .network-packet-a path { animation: cabinet-data 1.8s linear infinite; }
.network-scene.is-running .network-cabinet-art .network-packet-b path { animation: cabinet-data 2.1s linear -.7s infinite; }
@keyframes cabinet-monitor { 0%, 53% { opacity: .92; } 72%, 100% { opacity: 0; } }
@keyframes cabinet-link-a { 0%, 29% { opacity: 0; } 36%, 89% { opacity: .85; } 100% { opacity: 0; } }
@keyframes cabinet-link-b { 0%, 35% { opacity: 0; } 42%, 89% { opacity: .85; } 100% { opacity: 0; } }
@keyframes cabinet-data { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 1024px) {
    .systems .section-heading { grid-template-columns: 1fr; margin-top: var(--space-medium); }
    .section-heading__col p { max-width: none; }

    .systems-layout { grid-template-columns: 1fr; gap: var(--layout-gap); }

    /* Полный список-аккордеон заменяется общим компонентом listbox над сценой. */
    .systems-mobile-picker { display: block; order: 1; margin-bottom: 16px; min-width: 0; }
    .is-mobile-ready .system-visual { order: 2; }
    .is-mobile-ready .system-list { order: 3; border-top: 0; margin-top: 18px; }
    .is-mobile-ready .system-item:not(.is-active) { display: none; }
    .is-mobile-ready .system-item { border-bottom: 0; }
    .is-mobile-ready .system-item > h3 { display: none; }
    .is-mobile-ready .system-panel { padding: 0; animation: none; }
    .is-mobile-ready .system-panel p { max-width: none; }

    .system-trigger { grid-template-columns: 22px 1fr 12px; }
    .system-panel { padding-left: 32px; }
    .system-picture { aspect-ratio: 1.45; }
    .system-visual figcaption { padding: 16px 18px; font-size: 11px; }

    .system-visual[data-visual] .system-picture { aspect-ratio: auto; height: clamp(330px, 95vw, 420px); }
    .equipment-scene .studio-heading { position: relative; inset: auto; margin: 16px 18px 0; flex-wrap: wrap; gap: 6px 12px; min-height: 32px; }
    .equipment-scene .studio-heading > .mono { width: auto; font-size: 9px; }
    .equipment-scene .studio-status { font-size: 11px; }
    .equipment-scene .studio-art { padding-top: 0; }
    .equipment-scene .studio-controls { padding-top: 10px; gap: 6px; align-items: stretch; }
    .equipment-scene .studio-steps li { font-size: 12px; gap: 4px; }
    .equipment-scene .studio-steps li > span { display: none; }
    .equipment-scene .studio-steps li + li::before { margin-right: 3px; }
    .equipment-scene .studio-replay {
        justify-content: center;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 13px;
        border: 1px solid #506e5b;
        border-radius: 4px;
        background: #253d30;
    }
    .system-visual:is([data-visual="2"], [data-visual="3"], [data-visual="4"], [data-visual="5"]) .system-picture { aspect-ratio: 0.82; }
}

@media (max-width: 480px) {
    :is(.alarm-scene, .fire-scene, .suppression-scene, .network-scene) .studio-heading { flex-wrap: wrap; gap: 6px; }
    :is(.alarm-scene, .fire-scene, .suppression-scene, .network-scene) .studio-heading > .mono { width: 100%; }
    :is(.alarm-scene, .fire-scene, .suppression-scene, .network-scene) .studio-art { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .equipment-scene, .equipment-scene * {
        animation: none !important;
        transition: none !important;
    }
}
/* normalize.min.css forces fill/stroke to currentColor for any element
   carrying a literal color attribute (see page-entry.css for the same fix) —
   restate every exact value the six scenes use so the artwork keeps its own
   colors instead of inheriting the scene text color. */
.equipment-scene [fill="#071115"] { fill: #071115; }
.equipment-scene [fill="#081216"] { fill: #081216; }
.equipment-scene [fill="#081317"] { fill: #081317; }
.equipment-scene [fill="#091419"] { fill: #091419; }
.equipment-scene [fill="#0a161a"] { fill: #0a161a; }
.equipment-scene [fill="#101e24"] { fill: #101e24; }
.equipment-scene [fill="#112025"] { fill: #112025; }
.equipment-scene [fill="#122228"] { fill: #122228; }
.equipment-scene [fill="#166340"] { fill: #166340; }
.equipment-scene [fill="#17272d"] { fill: #17272d; }
.equipment-scene [fill="#18292f"] { fill: #18292f; }
.equipment-scene [fill="#1b2c32"] { fill: #1b2c32; }
.equipment-scene [fill="#1c2d33"] { fill: #1c2d33; }
.equipment-scene [fill="#213339"] { fill: #213339; }
.equipment-scene [fill="#214138"] { fill: #214138; }
.equipment-scene [fill="#24373d"] { fill: #24373d; }
.equipment-scene [fill="#283b41"] { fill: #283b41; }
.equipment-scene [fill="#2c3f45"] { fill: #2c3f45; }
.equipment-scene [fill="#2d4046"] { fill: #2d4046; }
.equipment-scene [fill="#2d4147"] { fill: #2d4147; }
.equipment-scene [fill="#30444a"] { fill: #30444a; }
.equipment-scene [fill="#32464c"] { fill: #32464c; }
.equipment-scene [fill="#345b40"] { fill: #345b40; }
.equipment-scene [fill="#364a51"] { fill: #364a51; }
.equipment-scene [fill="#384d53"] { fill: #384d53; }
.equipment-scene [fill="#3a4e55"] { fill: #3a4e55; }
.equipment-scene [fill="#3f545b"] { fill: #3f545b; }
.equipment-scene [fill="#4d636a"] { fill: #4d636a; }
.equipment-scene [fill="#51676f"] { fill: #51676f; }
.equipment-scene [fill="#528465"] { fill: #528465; }
.equipment-scene [fill="#537065"] { fill: #537065; }
.equipment-scene [fill="#546a72"] { fill: #546a72; }
.equipment-scene [fill="#556b73"] { fill: #556b73; }
.equipment-scene [fill="#556c73"] { fill: #556c73; }
.equipment-scene [fill="#597077"] { fill: #597077; }
.equipment-scene [fill="#5a7179"] { fill: #5a7179; }
.equipment-scene [fill="#5a8466"] { fill: #5a8466; }
.equipment-scene [fill="#5b7279"] { fill: #5b7279; }
.equipment-scene [fill="#5ccc83"] { fill: #5ccc83; }
.equipment-scene [fill="#608e71"] { fill: #608e71; }
.equipment-scene [fill="#667c84"] { fill: #667c84; }
.equipment-scene [fill="#6a8087"] { fill: #6a8087; }
.equipment-scene [fill="#6a8088"] { fill: #6a8088; }
.equipment-scene [fill="#6b8188"] { fill: #6b8188; }
.equipment-scene [fill="#6c828a"] { fill: #6c828a; }
.equipment-scene [fill="#6d94aa"] { fill: #6d94aa; }
.equipment-scene [fill="#6f848c"] { fill: #6f848c; }
.equipment-scene [fill="#6f9879"] { fill: #6f9879; }
.equipment-scene [fill="#70868d"] { fill: #70868d; }
.equipment-scene [fill="#748990"] { fill: #748990; }
.equipment-scene [fill="#758a91"] { fill: #758a91; }
.equipment-scene [fill="#78e8a6"] { fill: #78e8a6; }
.equipment-scene [fill="#7aa184"] { fill: #7aa184; }
.equipment-scene [fill="#7fa68b"] { fill: #7fa68b; }
.equipment-scene [fill="#80eaa1"] { fill: #80eaa1; }
.equipment-scene [fill="#81959c"] { fill: #81959c; }
.equipment-scene [fill="#81969c"] { fill: #81969c; }
.equipment-scene [fill="#82aa8e"] { fill: #82aa8e; }
.equipment-scene [fill="#84989f"] { fill: #84989f; }
.equipment-scene [fill="#85b492"] { fill: #85b492; }
.equipment-scene [fill="#869aa1"] { fill: #869aa1; }
.equipment-scene [fill="#899da3"] { fill: #899da3; }
.equipment-scene [fill="#91a4aa"] { fill: #91a4aa; }
.equipment-scene [fill="#91d2a3"] { fill: #91d2a3; }
.equipment-scene [fill="#93a5ab"] { fill: #93a5ab; }
.equipment-scene [fill="#9ae1ae"] { fill: #9ae1ae; }
.equipment-scene [fill="#9be5b1"] { fill: #9be5b1; }
.equipment-scene [fill="#9ef5b6"] { fill: #9ef5b6; }
.equipment-scene [fill="#9fb1b7"] { fill: #9fb1b7; }
.equipment-scene [fill="#a1b3b9"] { fill: #a1b3b9; }
.equipment-scene [fill="#a4dcd3"] { fill: #a4dcd3; }
.equipment-scene [fill="#a4f0b9"] { fill: #a4f0b9; }
.equipment-scene [fill="#a7f2bb"] { fill: #a7f2bb; }
.equipment-scene [fill="#a8efb6"] { fill: #a8efb6; }
.equipment-scene [fill="#a9efbb"] { fill: #a9efbb; }
.equipment-scene [fill="#b2c2c7"] { fill: #b2c2c7; }
.equipment-scene [fill="#b4c4c9"] { fill: #b4c4c9; }
.equipment-scene [fill="#b5c5ca"] { fill: #b5c5ca; }
.equipment-scene [fill="#b5f5c3"] { fill: #b5f5c3; }
.equipment-scene [fill="#b9c8cd"] { fill: #b9c8cd; }
.equipment-scene [fill="#c0cfd4"] { fill: #c0cfd4; }
.equipment-scene [fill="#c2d1d5"] { fill: #c2d1d5; }
.equipment-scene [fill="#c4d3d7"] { fill: #c4d3d7; }
.equipment-scene [fill="#cfdbdf"] { fill: #cfdbdf; }
.equipment-scene [fill="#cfdcdf"] { fill: #cfdcdf; }
.equipment-scene [fill="#d2dee2"] { fill: #d2dee2; }
.equipment-scene [fill="#dbe5e8"] { fill: #dbe5e8; }
.equipment-scene [fill="#dfe8eb"] { fill: #dfe8eb; }
.equipment-scene [fill="#e8b57b"] { fill: #e8b57b; }
.equipment-scene [fill="#efb982"] { fill: #efb982; }
.equipment-scene [fill="#efc498"] { fill: #efc498; }
.equipment-scene [fill="#f2bc82"] { fill: #f2bc82; }
.equipment-scene [fill="#ffcf91"] { fill: #ffcf91; }
.equipment-scene [stroke="#078551"] { stroke: #078551; }
.equipment-scene [stroke="#091418"] { stroke: #091418; }
.equipment-scene [stroke="#112127"] { stroke: #112127; }
.equipment-scene [stroke="#1c2d33"] { stroke: #1c2d33; }
.equipment-scene [stroke="#1f3036"] { stroke: #1f3036; }
.equipment-scene [stroke="#32464c"] { stroke: #32464c; }
.equipment-scene [stroke="#394d53"] { stroke: #394d53; }
.equipment-scene [stroke="#43585f"] { stroke: #43585f; }
.equipment-scene [stroke="#436367"] { stroke: #436367; }
.equipment-scene [stroke="#485e65"] { stroke: #485e65; }
.equipment-scene [stroke="#4b6168"] { stroke: #4b6168; }
.equipment-scene [stroke="#51686f"] { stroke: #51686f; }
.equipment-scene [stroke="#556b73"] { stroke: #556b73; }
.equipment-scene [stroke="#5c8261"] { stroke: #5c8261; }
.equipment-scene [stroke="#608770"] { stroke: #608770; }
.equipment-scene [stroke="#617880"] { stroke: #617880; }
.equipment-scene [stroke="#678b71"] { stroke: #678b71; }
.equipment-scene [stroke="#687e85"] { stroke: #687e85; }
.equipment-scene [stroke="#698e7d"] { stroke: #698e7d; }
.equipment-scene [stroke="#70868d"] { stroke: #70868d; }
.equipment-scene [stroke="#72888f"] { stroke: #72888f; }
.equipment-scene [stroke="#73c890"] { stroke: #73c890; }
.equipment-scene [stroke="#748990"] { stroke: #748990; }
.equipment-scene [stroke="#75cd95"] { stroke: #75cd95; }
.equipment-scene [stroke="#76db9c"] { stroke: #76db9c; }
.equipment-scene [stroke="#788d94"] { stroke: #788d94; }
.equipment-scene [stroke="#789d83"] { stroke: #789d83; }
.equipment-scene [stroke="#78db9b"] { stroke: #78db9b; }
.equipment-scene [stroke="#7b9097"] { stroke: #7b9097; }
.equipment-scene [stroke="#7de09d"] { stroke: #7de09d; }
.equipment-scene [stroke="#7f949a"] { stroke: #7f949a; }
.equipment-scene [stroke="#81969c"] { stroke: #81969c; }
.equipment-scene [stroke="#82969c"] { stroke: #82969c; }
.equipment-scene [stroke="#82969d"] { stroke: #82969d; }
.equipment-scene [stroke="#86b397"] { stroke: #86b397; }
.equipment-scene [stroke="#8b9fa5"] { stroke: #8b9fa5; }
.equipment-scene [stroke="#8bd3a1"] { stroke: #8bd3a1; }
.equipment-scene [stroke="#8ce1a7"] { stroke: #8ce1a7; }
.equipment-scene [stroke="#8dcfa1"] { stroke: #8dcfa1; }
.equipment-scene [stroke="#8eb69b"] { stroke: #8eb69b; }
.equipment-scene [stroke="#8eb99b"] { stroke: #8eb99b; }
.equipment-scene [stroke="#90a3a9"] { stroke: #90a3a9; }
.equipment-scene [stroke="#90b59e"] { stroke: #90b59e; }
.equipment-scene [stroke="#91a4aa"] { stroke: #91a4aa; }
.equipment-scene [stroke="#93a5ab"] { stroke: #93a5ab; }
.equipment-scene [stroke="#98abb0"] { stroke: #98abb0; }
.equipment-scene [stroke="#98abb1"] { stroke: #98abb1; }
.equipment-scene [stroke="#98cfb2"] { stroke: #98cfb2; }
.equipment-scene [stroke="#98e0bc"] { stroke: #98e0bc; }
.equipment-scene [stroke="#9fb0b6"] { stroke: #9fb0b6; }
.equipment-scene [stroke="#9fe2b6"] { stroke: #9fe2b6; }
.equipment-scene [stroke="#a0b2b7"] { stroke: #a0b2b7; }
.equipment-scene [stroke="#a1b2b8"] { stroke: #a1b2b8; }
.equipment-scene [stroke="#a2b4b9"] { stroke: #a2b4b9; }
.equipment-scene [stroke="#a2deb6"] { stroke: #a2deb6; }
.equipment-scene [stroke="#a3dbb1"] { stroke: #a3dbb1; }
.equipment-scene [stroke="#a4e4b4"] { stroke: #a4e4b4; }
.equipment-scene [stroke="#a4e5b6"] { stroke: #a4e5b6; }
.equipment-scene [stroke="#a5eebb"] { stroke: #a5eebb; }
.equipment-scene [stroke="#a5f6bc"] { stroke: #a5f6bc; }
.equipment-scene [stroke="#a7b8bd"] { stroke: #a7b8bd; }
.equipment-scene [stroke="#aabbc0"] { stroke: #aabbc0; }
.equipment-scene [stroke="#aebec3"] { stroke: #aebec3; }
.equipment-scene [stroke="#b0c0c5"] { stroke: #b0c0c5; }
.equipment-scene [stroke="#b1e0c8"] { stroke: #b1e0c8; }
.equipment-scene [stroke="#b3c3c8"] { stroke: #b3c3c8; }
.equipment-scene [stroke="#b3f5c7"] { stroke: #b3f5c7; }
.equipment-scene [stroke="#b4c4c8"] { stroke: #b4c4c8; }
.equipment-scene [stroke="#b4c4c9"] { stroke: #b4c4c9; }
.equipment-scene [stroke="#b5c5c9"] { stroke: #b5c5c9; }
.equipment-scene [stroke="#b7c6cb"] { stroke: #b7c6cb; }
.equipment-scene [stroke="#bac9ce"] { stroke: #bac9ce; }
.equipment-scene [stroke="#bfcdd2"] { stroke: #bfcdd2; }
.equipment-scene [stroke="#c0cfd3"] { stroke: #c0cfd3; }
.equipment-scene [stroke="#c2d1d5"] { stroke: #c2d1d5; }
.equipment-scene [stroke="#c2f1d6"] { stroke: #c2f1d6; }
.equipment-scene [stroke="#c3d1d6"] { stroke: #c3d1d6; }
.equipment-scene [stroke="#c4d3d7"] { stroke: #c4d3d7; }
.equipment-scene [stroke="#c6d4d8"] { stroke: #c6d4d8; }
.equipment-scene [stroke="#c8d6db"] { stroke: #c8d6db; }
.equipment-scene [stroke="#c9d7db"] { stroke: #c9d7db; }
.equipment-scene [stroke="#cad8dc"] { stroke: #cad8dc; }
.equipment-scene [stroke="#cfac7d"] { stroke: #cfac7d; }
.equipment-scene [stroke="#cfdce0"] { stroke: #cfdce0; }
.equipment-scene [stroke="#d3dfe2"] { stroke: #d3dfe2; }
.equipment-scene [stroke="#d5e1e4"] { stroke: #d5e1e4; }
.equipment-scene [stroke="#d6e2e5"] { stroke: #d6e2e5; }
.equipment-scene [stroke="#d8e3e6"] { stroke: #d8e3e6; }
.equipment-scene [stroke="#d99a5f"] { stroke: #d99a5f; }
.equipment-scene [stroke="#da9a78"] { stroke: #da9a78; }
.equipment-scene [stroke="#dae4e7"] { stroke: #dae4e7; }
.equipment-scene [stroke="#dce6e9"] { stroke: #dce6e9; }
.equipment-scene [stroke="#dde7e9"] { stroke: #dde7e9; }
.equipment-scene [stroke="#dfe8eb"] { stroke: #dfe8eb; }
.equipment-scene [stroke="#e0e9eb"] { stroke: #e0e9eb; }
.equipment-scene [stroke="#e2ebed"] { stroke: #e2ebed; }
.equipment-scene [stroke="#e3ebed"] { stroke: #e3ebed; }
.equipment-scene [stroke="#e6b982"] { stroke: #e6b982; }
.equipment-scene [stroke="#ecf3f4"] { stroke: #ecf3f4; }
.equipment-scene [stroke="#f0f6f7"] { stroke: #f0f6f7; }
.equipment-scene [stroke="#f1f7f8"] { stroke: #f1f7f8; }
.equipment-scene [stroke="#f2c08b"] { stroke: #f2c08b; }
.equipment-scene [stroke="#f8c4a0"] { stroke: #f8c4a0; }
.equipment-scene [stroke="#fcfdfd"] { stroke: #fcfdfd; }

.equipment-scene [fill="#007e4d"] { fill: #007e4d; }
.equipment-scene [fill="#319f48"] { fill: #319f48; }
.equipment-scene [stroke="#319f48"] { stroke: #319f48; }
.equipment-scene [stroke="#5fb262"] { stroke: #5fb262; }

/* Предметная витрина. Границы секции совпадают с полем главной. */
.systems { background: #fff; padding-block: clamp(32px, 4vw, 62px); }
.systems .section-title { margin: 0 0 25px; max-width: 27ch; line-height: 1.1; }
.systems .systems-layout {
    grid-template-columns: minmax(0,.86fr) minmax(0,1.5fr);
    gap: clamp(20px,3vw,54px);
    align-items: center;
}
.systems .system-list { max-width: 420px; border: 0; }
.systems .system-item { border-color: #dce4e5; }
.systems .system-trigger { grid-template-columns: 1fr; padding: 12px 0 12px 16px; min-height: 44px; position: relative; }
.systems .system-trigger > :is(.mono,.expand-icon) { display: none; }
.systems .system-item.is-active .system-trigger:before { content: ''; position:absolute; inset: 13px auto 13px 0; width: 3px; background: #00834a; }
.systems .system-item.is-active .system-trigger { color: #105d3c; }
.systems .system-panel { padding: 0 8px 13px 16px; gap: 8px; }
.systems .system-panel p { margin: 0; max-width: 34ch; line-height: 1.45; }
.systems .system-includes { margin: 0; }
.systems .system-includes span { border: 0; background: transparent; padding: 0; font-size: .8em; }
.systems .system-visual[data-visual] { margin: 0; width: 100%; background: transparent; color: #193c30; }
.systems .system-visual[data-visual] .system-picture { aspect-ratio: auto; height: clamp(340px,31vw,450px); max-height: none; }
.systems .equipment-scene { border: 0; }
.systems .equipment-scene .studio-art { max-width: none; padding: 0; }
.systems .studio-heading, .systems .studio-steps, .systems .system-visual figcaption { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.systems .equipment-scene .studio-controls { border: none; padding: 0; position: absolute; inset: 0 0 auto auto; }
.systems .equipment-scene .studio-replay { color: #355746; background: transparent; border: 0; min-height: 40px; font-size: 12px; gap: 6px; padding: 4px 8px; }
.systems .equipment-scene .studio-replay:hover { color: #007b44; text-decoration: underline; }
@media (max-width: 600px) {
    .systems .suppression-scene .studio-controls { inset: 0 auto auto 0; }
}
.systems #cctv-scene [fill="url(#studio-floor)"] { opacity: .22; }
.systems .equipment-scene [filter$="-shadow)"] { opacity: .16; }

/* Layout study: six models share an open field. No expansion or card controls. */
.systems.systems--grid .systems-layout { display: block; max-width: none; }
.systems.systems--grid :is(.system-list,.systems-mobile-picker) { display: none !important; }
.systems.systems--grid .system-visual[data-visual] .system-picture {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 40px 28px; height: auto; aspect-ratio: auto;
    overflow: visible; padding: 10px 0 12px;
}
.systems.systems--grid .system-visual .equipment-scene {
    position: relative; inset: auto; display: flex; overflow: visible;
    min-width: 0; align-items: stretch;
}
.systems.systems--grid .equipment-scene .studio-art {
    width: 100%; height: auto; aspect-ratio: 1.4; flex: none;
    min-height: 0; max-height: none; padding: 0;
    transform: translateY(var(--scene-offset, 0%)) scale(var(--scene-scale, 1));
}
/* Match perceived size across wide equipment, standalone devices and cutaways. */
.systems.systems--grid #cctv-scene { --scene-scale: .95; --scene-offset: 1%; }
.systems.systems--grid #access-scene { --scene-scale: .98; }
.systems.systems--grid #alarm-scene { --scene-scale: .98; }
.systems.systems--grid #fire-scene { --scene-scale: .95; --scene-offset: 1%; }
.systems.systems--grid #suppression-scene { --scene-scale: 1.045; --scene-offset: 2.25%; }
.systems.systems--grid #network-scene { --scene-scale: .95; --scene-offset: 1%; }
.systems.systems--grid #cctv-scene .studio-art { filter: saturate(.88); }
.systems.systems--grid .equipment-scene .studio-controls { display: none; }
.systems.systems--grid .equipment-scene { animation: none; }
.systems.systems--grid :is(#alarm-scene, #fire-scene) { scroll-margin-top: 100px; }
.systems.systems--grid .system-model-title {
    margin: 6px 0 0; padding: 0 10px; text-align: center;
    font-size: clamp(14px,1.15vw,18px); font-weight: 600;
    line-height: 1.35; color: #193c30;
}
.systems.systems--grid :is(.cctv-saved,.access-approved,.alarm-result,.fire-result,.suppression-result,.network-result) { display:none; }
@media(max-width:700px) {
    .systems.systems--grid .system-visual[data-visual] .system-picture {
        grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 10px;
    }
    .systems.systems--grid .system-model-title { font-size: 13px; padding: 0; }
}
.systems .cctv-coverage path[stroke] { stroke: #278a58; }

.systems--grid .system-scene-art {
    position: relative;
    min-width: 0;
    aspect-ratio: 1.4;
}
.systems--grid .system-scene-media {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #fff;
    pointer-events: none;
}
.systems.systems--grid .equipment-scene .system-scene-media .studio-art {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
/* The low-resolution fire clip is graded slightly darker than its HD detail
   and poster. Lift it so its #ebebeb canvas matches the white scene field. */
.systems--grid #fire-scene :is(video[data-fire-video], img[data-fire-poster]) {
    filter: brightness(1.085);
}
.systems--grid .studio-art-detail[hidden] { display: none; }
.systems--grid .system-scene-open {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.systems--grid .system-scene-open:focus-visible {
    outline: 2px solid #006c3b;
    outline-offset: 3px;
}
.systems--grid .equipment-scene:is(:hover, :focus-within) .system-model-title {
    color: #006c3b;
}
.systems.systems--grid.has-system-focus .system-visual[data-visual] .system-picture {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
}
.systems.systems--grid .equipment-scene[hidden] { display: none; }
.systems.systems--grid .equipment-scene.is-focused-system {
    gap: .6rem;
    padding-bottom: .9rem;
}
.systems--grid .is-focused-system .system-scene-open { cursor: zoom-out; }
.systems--grid .is-focused-system .network-supply-status { display: none; }
.systems--grid .is-focused-system .system-scene-art {
    height: clamp(16rem, 100svh - 15rem, 35rem);
    aspect-ratio: auto;
}
.systems.systems--grid .is-focused-system .studio-art {
    max-width: min(100%, 58rem);
    transform: none;
}
.systems.systems--grid .is-focused-system .system-model-title {
    font-size: clamp(1rem, 2vw, 1.55rem);
}
.systems--grid .is-moving-system { z-index: 3; }
.systems--grid :is(#systems-heading, #systems-detail) { scroll-margin-top: 6rem; }

@media (max-width: 700px) {
    .systems--grid .is-focused-system .system-scene-art {
        height: auto;
        aspect-ratio: 1.27;
    }
}

/* Ambient overview only. Each 8 s cycle has a clear active window and a rest.
   Negative offsets make the overview alive immediately after it becomes visible.
   Lifecycle changes pause the shared clock rather than resetting the scene. */
.systems.systems--grid { --grid-ambient-play: paused; }
.systems.systems--grid.is-ambient-active { --grid-ambient-play: running; }
.systems.systems--grid :is(.fire-smoke, .fire-smoke-lines) { display: none; }
.systems.systems--grid .suppression-scene :is(.suppression-water, .suppression-heat, .pipe-water) { opacity: 0; }
.systems.systems--grid .suppression-scene :is(.spray-stream, .pipe-water-pulse) { animation: none; }
.systems.systems--grid .suppression-bulb { opacity: 1; }
.systems.systems--grid .suppression-gauge { transform: none; color: #32464c; }
.systems.systems--grid .suppression-scene .gauge-scale { color: #668477; }
.systems.systems--grid .access-led { opacity: .4; }
.systems.systems--grid .access-led-halo { opacity: .18; }
.systems.systems--grid .alarm-panel-idle { opacity: 1; }
.systems.systems--grid .alarm-panel-alert { opacity: 0; }
.systems.systems--grid .alarm-contact-led { opacity: .2; }
.systems.systems--grid .alarm-panel-led { opacity: .2; }
.systems.systems--grid :is(.alarm-signal, .fire-signal, .fire-sound, .fire-detector-halo) { opacity: 0; }
.systems.systems--grid .fire-detector-led { opacity: .3; }
.systems.systems--grid .grid-network-packet {
    opacity: 0; stroke-dasharray: .07 .93; stroke-dashoffset: 1;
}
.systems .network-supply-status { display: none; }
.systems.systems--grid .network-supply-status {
    display: grid;
    margin-top: 4px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    color: #536b61;
}
.systems.systems--grid .network-supply-status span { grid-area: 1 / 1; }
.systems.systems--grid .network-supply-status .net-power-battery { color: #815216; }
.systems.systems--grid #network-scene .net-power-mains { --power-normal: 1; --power-backup: 0; }
.systems.systems--grid #network-scene .net-power-battery { --power-normal: 0; --power-backup: 1; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .systems.systems--grid .cctv-gimbal { animation: grid-camera-optics 8s ease-in-out -.5s infinite; }
    .systems.systems--grid .cctv-scan { animation: grid-camera-scan 8s ease-in-out -.5s infinite; }
    .systems.systems--grid .access-led { animation: grid-access-led 8s ease-in-out -2s infinite; }
    .systems.systems--grid .alarm-contact-led { animation: grid-contact-led 8s ease-in-out -4s infinite; }
    .systems.systems--grid .alarm-signal {
        stroke-dasharray: .045 .955;
        animation: grid-alarm-signal 8s linear -4s infinite;
    }
    .systems.systems--grid .alarm-panel-led { animation: grid-contact-led 8s ease-in-out -2s infinite; }
    .systems.systems--grid .fire-detector-led { animation: grid-fire-led 8s ease-in-out -1s infinite; }
    .systems.systems--grid .fire-sound {
        transform-box: fill-box; transform-origin: left center;
        animation: grid-fire-wave 8s ease-out -.3s infinite;
    }
    .systems.systems--grid .suppression-heat { animation: suppression-heat 8s ease infinite; }
    .systems.systems--grid .suppression-bulb { animation: grid-sprinkler-bulb 8s linear infinite; }
    .systems.systems--grid .suppression-water { animation: grid-sprinkler-spray 8s ease infinite; }
    .systems.systems--grid .pipe-water { animation: grid-sprinkler-pipe 8s linear infinite; }
    .systems.systems--grid .suppression-scene .pipe-water-pulse { animation: pipe-water-travel 1.2s linear infinite; }
    .systems.systems--grid .suppression-scene .spray-stream { animation: sprinkler-droplets 1.1s linear var(--spray-delay) infinite; }
    .systems.systems--grid .suppression-gauge { animation: grid-sprinkler-pressure 8s ease-in-out infinite; }
    .systems.systems--grid .suppression-scene .gauge-scale { animation: grid-sprinkler-scale 8s ease-in-out infinite; }
    .systems.systems--grid #network-scene :is(.net-power-mains, .net-power-battery) {
        animation: grid-network-power-source 8s steps(1, end) infinite var(--grid-ambient-play);
    }
    .systems.systems--grid #network-scene .net-traffic-motion {
        animation: grid-network-traffic 4.4s linear infinite var(--grid-ambient-play);
    }
    .systems.systems--grid .grid-network-packet-0 { animation: grid-ethernet-packet 8s linear -3s infinite; }
    .systems.systems--grid .grid-network-packet-1 { animation: grid-ethernet-packet 8s linear -6s infinite; }
    .systems.systems--grid .network-port { animation: grid-port-led 8s ease-in-out -3s infinite; }
    .systems.systems--grid .network-wifi-led { animation: grid-port-led 8s ease-in-out -6s infinite; }

    .systems.systems--grid :is(
        .cctv-gimbal, .cctv-scan, .access-led,
        .alarm-contact-led, .alarm-signal, .alarm-panel-led,
        .fire-detector-led, .fire-sound, .grid-network-packet, .network-port, .network-wifi-led
    ) { animation-play-state: var(--grid-ambient-play); }
    .systems.systems--grid .suppression-scene :is(
        .suppression-heat, .suppression-bulb, .suppression-water, .pipe-water,
        .pipe-water-pulse, .spray-stream, .suppression-gauge, .gauge-scale
    ) { animation-play-state: var(--grid-ambient-play); }
}

@keyframes grid-camera-optics {
    0%, 55%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(2px) rotate(2deg); }
    42% { transform: translateX(-1px) rotate(-1deg); }
}
@keyframes grid-camera-scan {
    0%, 55%, 100% { opacity: 0; transform: rotate(-12deg); }
    7% { opacity: .5; transform: rotate(-12deg); }
    45% { opacity: .45; transform: rotate(12deg); }
    53% { opacity: 0; transform: rotate(12deg); }
}
@keyframes grid-access-led {
    0%, 55%, 100% { opacity: .4; }
    23% { opacity: 1; }
}
@keyframes grid-contact-led {
    0%, 45%, 100% { opacity: .2; }
    12%, 24% { opacity: .9; }
}
@keyframes grid-alarm-signal {
    0% { opacity: 0; stroke-dashoffset: 1; }
    4% { opacity: .7; stroke-dashoffset: 1; }
    42% { opacity: .7; stroke-dashoffset: -.04; }
    50%, 100% { opacity: 0; stroke-dashoffset: -.04; }
}
@keyframes grid-fire-led {
    0%, 45%, 100% { opacity: .3; }
    18% { opacity: .95; }
}
@keyframes grid-fire-wave {
    0%, 50%, 100% { opacity: 0; transform: scale(.98); }
    12% { opacity: .5; transform: scale(1); }
    47% { opacity: 0; transform: scale(1.04); }
}
@keyframes grid-sprinkler-bulb {
    0%, 32%, 87%, 100% { opacity: 1; }
    35%, 84% { opacity: 0; }
}
@keyframes grid-sprinkler-spray {
    0%, 37%, 84%, 100% { opacity: 0; }
    48%, 75% { opacity: 1; }
}
@keyframes grid-sprinkler-pipe {
    0%, 34%, 82%, 100% { opacity: 0; }
    40%, 76% { opacity: .8; }
}
@keyframes grid-sprinkler-pressure {
    0%, 32%, 89%, 100% { transform: rotate(0); }
    47% { transform: rotate(-42deg); }
    61% { transform: rotate(-12deg); }
    74%, 81% { transform: rotate(-20deg); }
}
@keyframes grid-sprinkler-scale {
    0%, 29%, 87%, 100% { color: #668477; }
    36%, 44% { color: #dc4b43; }
    56%, 78% { color: #159c4c; }
}
@keyframes grid-ethernet-packet {
    0% { opacity: 0; stroke-dashoffset: 1; }
    4% { opacity: .95; stroke-dashoffset: 1; }
    44% { opacity: .95; stroke-dashoffset: -.07; }
    50%, 100% { opacity: 0; stroke-dashoffset: -.07; }
}
@keyframes grid-port-led {
    0%, 50%, 100% { opacity: .4; }
    15%, 28% { opacity: 1; }
}
@keyframes grid-network-power-source {
    0%, 76% { opacity: var(--power-normal); }
    31% { opacity: var(--power-backup); }
}
@keyframes grid-network-traffic {
    to { transform: translateX(-132px); }
}
@media(max-width:1024px) {
  .systems .systems-layout { grid-template-columns: 1fr; max-width: 580px; gap: 8px; }
  .systems .is-mobile-ready .system-list { order: 2; max-width: none; margin: 0; }
  .systems .is-mobile-ready .system-visual { order: 3; }
  .systems .is-mobile-ready .system-panel { padding: 2px 0 6px; }
  .systems .section-title { margin-bottom: 16px; }
  .systems .system-visual[data-visual] .system-picture { height: clamp(250px,66vw,350px); }
}
