/* Blueprint Reactor theme. Loaded after site.css so the approved design can evolve
   without erasing the earlier verified semantic layout. */

:root {
    color-scheme: dark;
    --ink: #031a2b;
    --ink-soft: #06131f;
    --paper: #e9edf0;
    --paper-bright: #f4f7f8;
    --paper-muted: #9fb4bf;
    --cobalt: #45d9ff;
    --cobalt-dark: #0f91b2;
    --signal: #c9824c;
    --signal-bright: #e0a06b;
    --line-dark: rgba(69, 217, 255, 0.2);
    --line-light: rgba(201, 130, 76, 0.28);
    --text: #d8e2e7;
    --measure: 96rem;
    --blueprint-grid: rgba(69, 217, 255, 0.045);
    --blueprint-grid-major: rgba(69, 217, 255, 0.075);
    --blueprint-panel: rgba(3, 18, 31, 0.82);
    --blueprint-panel-strong: rgba(2, 14, 25, 0.96);
}

html {
    background: var(--ink-soft);
}

body {
    color: var(--text);
    background-color: var(--ink);
    background-image:
        linear-gradient(var(--blueprint-grid-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-grid-major) 1px, transparent 1px),
        linear-gradient(var(--blueprint-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px);
    background-position: center top;
    background-size: 8rem 8rem, 8rem 8rem, 1rem 1rem, 1rem 1rem;
}

body::before {
    z-index: 100;
    border-color: rgba(201, 130, 76, 0.22);
    box-shadow: inset 0 0 6rem rgba(0, 0, 0, 0.28);
}

main {
    overflow: clip;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

::selection {
    color: #00131f;
    background: var(--cobalt);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cobalt);
    outline-offset: 4px;
    box-shadow: 0 0 0 5px rgba(69, 217, 255, 0.16);
}

h1,
h2,
h3 {
    color: var(--paper-bright);
    font-weight: 610;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(3.1rem, 7.2vw, 7.5rem);
}

h2 {
    font-size: clamp(2.15rem, 4.7vw, 4.9rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.skip-link {
    color: #00131f;
    background: var(--cobalt);
    border: 1px solid var(--paper-bright);
}

/* Header and tab navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--paper-bright);
    background: rgba(2, 16, 28, 0.97);
    border-top: 1px solid rgba(201, 130, 76, 0.48);
    border-bottom: 1px solid rgba(201, 130, 76, 0.72);
    box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.3);
}

.site-header__inner {
    display: grid;
    width: min(100%, calc(var(--measure) + (2 * var(--pad))));
    min-height: 5.25rem;
    grid-template-columns: minmax(24rem, 1.25fr) minmax(38rem, 1fr);
    align-items: stretch;
    gap: 0;
}

.wordmark {
    display: flex;
    min-height: 5.25rem;
    padding-right: 1.4rem;
    align-items: center;
    gap: 1rem;
    border-right: 1px solid rgba(201, 130, 76, 0.58);
}

.wordmark__monogram {
    position: relative;
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--paper-bright);
    border: 1px solid var(--signal);
    font: 500 1.8rem/1 Georgia, serif;
}

.wordmark__monogram::before,
.wordmark__monogram::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.wordmark__monogram::before {
    inset: 0.28rem;
    border: 1px solid rgba(69, 217, 255, 0.58);
}

.wordmark__monogram::after {
    inset: -0.42rem;
    background:
        linear-gradient(var(--signal), var(--signal)) 0 0 / 0.55rem 1px no-repeat,
        linear-gradient(var(--signal), var(--signal)) 0 0 / 1px 0.55rem no-repeat,
        linear-gradient(var(--signal), var(--signal)) 100% 0 / 0.55rem 1px no-repeat,
        linear-gradient(var(--signal), var(--signal)) 100% 0 / 1px 0.55rem no-repeat,
        linear-gradient(var(--signal), var(--signal)) 0 100% / 0.55rem 1px no-repeat,
        linear-gradient(var(--signal), var(--signal)) 0 100% / 1px 0.55rem no-repeat,
        linear-gradient(var(--signal), var(--signal)) 100% 100% / 0.55rem 1px no-repeat,
        linear-gradient(var(--signal), var(--signal)) 100% 100% / 1px 0.55rem no-repeat;
}

.wordmark__copy {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.wordmark__primary {
    font-size: clamp(1.15rem, 1.8vw, 1.75rem);
    font-weight: 640;
    letter-spacing: 0.01em;
    text-transform: none;
}

.wordmark__primary::after {
    content: "";
}

.wordmark__secondary,
.site-footer__descriptor {
    color: var(--paper-muted);
    font-size: 0.64rem;
    letter-spacing: 0.17em;
}

.site-nav,
.site-nav__links,
.site-nav__links li {
    height: 100%;
}

.site-nav__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
}

.site-nav a:not(.button) {
    position: relative;
    display: flex;
    min-width: 8.5rem;
    min-height: 5.25rem;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: center;
    color: var(--paper-bright);
    border-right: 1px solid rgba(201, 130, 76, 0.58);
    font-family: var(--display);
    font-size: clamp(0.76rem, 1vw, 0.92rem);
    font-weight: 640;
    letter-spacing: 0.07em;
    text-align: center;
}

.site-nav li:first-child a {
    border-left: 1px solid rgba(201, 130, 76, 0.58);
}

.site-nav a:not(.button)::after {
    position: absolute;
    right: 0.55rem;
    bottom: 0;
    left: 0.55rem;
    height: 2px;
    content: "";
    background: var(--cobalt);
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
    color: #fff;
    background: rgba(69, 217, 255, 0.08);
    text-shadow: 0 0 1rem rgba(69, 217, 255, 0.42);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-toggle {
    color: var(--paper-bright);
    border-color: var(--signal);
    background: rgba(3, 26, 43, 0.92);
}

/* Shared controls and blueprint hardware */

.button {
    position: relative;
    min-height: 3.15rem;
    color: #140c06;
    border: 1px solid var(--signal-bright);
    border-radius: 0;
    background: var(--signal-bright);
    box-shadow: inset 0 0 0 2px rgba(69, 38, 18, 0.42), 0 0.55rem 1.5rem rgba(0, 0, 0, 0.28);
    font-family: var(--display);
    font-weight: 680;
    letter-spacing: 0.07em;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
    color: #00131f;
    border-color: var(--cobalt);
    background: var(--cobalt);
}

.text-link,
.text-link--on-dark {
    color: var(--cobalt);
    text-decoration-color: rgba(69, 217, 255, 0.42);
}

.eyebrow,
.section-index,
.capability-row__number,
.hero .eyebrow,
.page-hero .eyebrow,
.section--ink .capability-row__number,
.section--ink .section-index,
.section--navy .section-index,
.status-page .eyebrow {
    color: var(--signal-bright);
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}

.blueprint-panel {
    position: relative;
    border: 1px solid rgba(201, 130, 76, 0.72);
    background: var(--blueprint-panel);
    box-shadow: inset 0 0 0 1px rgba(69, 217, 255, 0.06), 0 1rem 2rem rgba(0, 0, 0, 0.24);
}

.blueprint-panel::before,
.blueprint-panel::after {
    position: absolute;
    width: 0.42rem;
    height: 0.42rem;
    border: 1px solid var(--signal-bright);
    border-radius: 50%;
    content: "";
    background: #3c2414;
    box-shadow: inset 0 0 0 1px #0a0d10;
}

.blueprint-panel::before {
    top: 0.45rem;
    left: 0.45rem;
}

.blueprint-panel::after {
    right: 0.45rem;
    bottom: 0.45rem;
}

/* Approved Blueprint Reactor hero */

.blueprint-hero {
    padding: clamp(0.7rem, 1.5vw, 1.4rem);
    background: transparent;
}

.blueprint-hero::before {
    display: none;
}

.hero__inner.blueprint-frame {
    position: relative;
    display: grid;
    width: min(100%, var(--measure));
    min-height: 46rem;
    margin: 0 auto;
    padding: clamp(1rem, 1.6vw, 1.6rem);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: minmax(35rem, auto) auto;
    align-items: stretch;
    gap: clamp(0.75rem, 1.2vw, 1.15rem);
    border: 1px solid rgba(201, 130, 76, 0.68);
    background-color: rgba(3, 26, 43, 0.9);
    background-image:
        linear-gradient(rgba(69, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 1.2rem 1.2rem;
    box-shadow: inset 0 0 7rem rgba(0, 0, 0, 0.28), 0 2rem 5rem rgba(0, 0, 0, 0.3);
}

.blueprint-fastener {
    position: absolute;
    z-index: 6;
    width: 0.6rem;
    height: 0.6rem;
    border: 1px solid var(--signal-bright);
    border-radius: 50%;
    background: #3b2415;
    box-shadow: inset 0 0 0 2px #07111a;
}

.blueprint-fastener--nw { top: 0.35rem; left: 0.35rem; }
.blueprint-fastener--ne { top: 0.35rem; right: 0.35rem; }
.blueprint-fastener--sw { bottom: 0.35rem; left: 0.35rem; }
.blueprint-fastener--se { right: 0.35rem; bottom: 0.35rem; }

.blueprint-frame .hero__copy {
    grid-column: 1 / span 4;
    grid-row: 1;
    padding: clamp(2rem, 3.4vw, 3.5rem) clamp(1.4rem, 2.4vw, 2.5rem);
    align-self: center;
}

.blueprint-frame .hero__title {
    max-width: 9ch;
    margin: 1.15rem 0 1.4rem;
    font-size: clamp(3.35rem, 5.5vw, 6rem);
    line-height: 0.98;
}

.blueprint-frame .hero__lead {
    max-width: 31rem;
    min-height: var(--pretext-height, auto);
    color: #c8d6dc;
    font-size: clamp(0.98rem, 1.2vw, 1.16rem);
    line-height: 1.62;
}

/* Keep text at full contrast throughout the entrance motion. The legacy theme
   fades hero groups from opacity: 0, which creates a brief low-contrast state. */
.js .blueprint-frame .hero-reveal,
.js.is-ready .blueprint-frame .hero-reveal {
    opacity: 1;
}

.js.is-ready .blueprint-frame .hero-reveal {
    transition-property: transform;
}

.blueprint-frame .hero__actions {
    margin-top: 1.8rem;
    gap: 1rem;
}

.technical-field.blueprint-machine {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 5 / span 5;
    grid-row: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 2.7rem 0.35rem 1rem;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    opacity: 1;
    background: rgba(1, 18, 31, 0.42);
}

.technical-field.blueprint-machine::before,
.technical-field.blueprint-machine::after {
    display: none;
}

.blueprint-machine__heading {
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    z-index: 2;
    display: grid;
    gap: 0.15rem;
    color: var(--paper-muted);
    font-size: 0.55rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blueprint-machine__heading strong {
    color: var(--paper-bright);
    font-size: 0.67rem;
    font-weight: 560;
}

.system-view-control {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    z-index: 4;
    min-height: 2.75rem;
    padding: 0.45rem 0.7rem;
    color: var(--paper-bright);
    border: 1px solid rgba(201, 130, 76, 0.68);
    border-radius: 0;
    background: rgba(4, 24, 39, 0.96);
    font: 650 0.58rem/1 var(--body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.system-view-control:hover {
    color: #00131f;
    border-color: var(--cobalt);
    background: var(--cobalt);
}

[data-schematic-controls][hidden] {
    display: none !important;
}

.blueprint-machine svg {
    width: 100%;
    min-height: 27rem;
    overflow: visible;
}

.blueprint-machine svg * {
    vector-effect: non-scaling-stroke;
}

.schematic-layer,
.schematic-layer [data-capability-module] {
    transition: opacity 220ms ease, filter 220ms ease;
}

.schematic-layer--structure {
    fill: none;
    stroke: rgba(201, 130, 76, 0.78);
    stroke-width: 1.35;
}

.schematic-base {
    fill: rgba(7, 39, 58, 0.56);
    stroke-width: 1.7;
}

.schematic-base--inner {
    fill: rgba(2, 15, 26, 0.74);
    stroke: rgba(69, 217, 255, 0.38);
}

.schematic-frame {
    stroke: var(--signal);
}

.schematic-frame--inner,
.schematic-centerline {
    stroke: rgba(69, 217, 255, 0.22);
    stroke-dasharray: 4 6;
}

.schematic-pivot {
    fill: var(--ink);
    stroke: var(--cobalt);
}

.schematic-layer--components {
    fill: rgba(12, 49, 70, 0.84);
    stroke: var(--signal-bright);
    stroke-width: 1.35;
}

.cabinet-bank,
.component-callout,
.exploded-ring {
    transition: opacity 220ms ease, filter 220ms ease;
}

.cabinet-detail {
    fill: rgba(69, 217, 255, 0.08);
    stroke: rgba(69, 217, 255, 0.58);
}

.exploded-ring {
    fill: rgba(6, 34, 51, 0.66);
}

.exploded-ring path:nth-child(n + 2) {
    fill: none;
    stroke: rgba(69, 217, 255, 0.45);
}

.component-callout text,
.schematic-annotations text,
.path-label {
    fill: #c6d5dc;
    stroke: none;
    font: 500 12px/1 var(--body);
    letter-spacing: 1.3px;
}

.component-callout path,
.component-callout rect,
.component-callout circle {
    fill: rgba(3, 26, 43, 0.72);
}

.schematic-layer--power,
.schematic-layer--data,
.schematic-layer--thermal,
.schematic-annotations {
    fill: none;
}

.power-path {
    stroke: var(--signal-bright);
    stroke-width: 2;
}

#power-arrow path {
    fill: var(--signal-bright);
}

.data-path {
    stroke: var(--cobalt);
    stroke-width: 1.8;
    stroke-dasharray: 5 7;
}

#data-arrow path {
    fill: var(--cobalt);
}

.trace-path {
    opacity: 0.28;
}

[data-schematic][data-trace="a"] .trace-path--a,
[data-schematic][data-trace="b"] .trace-path--b,
[data-schematic][data-trace="c"] .trace-path--c {
    opacity: 1;
    animation: trace-flow 3.4s linear infinite;
}

.technical-field__node {
    fill: var(--ink);
    stroke: var(--cobalt);
    stroke-width: 2;
}

.thermal-path {
    stroke: #7fb0bd;
    stroke-width: 1.4;
    stroke-dasharray: 2 8;
}

.path-label--power {
    fill: var(--signal-bright);
}

.path-label--thermal {
    fill: #a8c9d2;
}

.schematic-annotations {
    stroke: rgba(159, 180, 191, 0.46);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.blueprint-machine__summary {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    margin: -0.6rem auto 0;
    padding: 0.7rem 1rem 0;
    color: var(--paper-muted);
    border-top: 1px solid rgba(69, 217, 255, 0.18);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-align: center;
    text-transform: uppercase;
}

[data-schematic][data-enhanced="true"][data-layer="power"] .schematic-layer:not(.schematic-layer--power):not(.schematic-layer--structure),
[data-schematic][data-enhanced="true"][data-layer="data"] .schematic-layer:not(.schematic-layer--data):not(.schematic-layer--structure),
[data-schematic][data-enhanced="true"][data-layer="thermal"] .schematic-layer:not(.schematic-layer--thermal):not(.schematic-layer--structure),
[data-schematic][data-enhanced="true"][data-layer="structure"] .schematic-layer:not(.schematic-layer--structure),
[data-schematic][data-enhanced="true"][data-layer="components"] .schematic-layer:not(.schematic-layer--components):not(.schematic-layer--structure) {
    opacity: 0.12;
}

[data-schematic][data-enhanced="true"][data-capability="security"] [data-capability-module]:not([data-capability-module="security"]),
[data-schematic][data-enhanced="true"][data-capability="engineering"] [data-capability-module]:not([data-capability-module="engineering"]),
[data-schematic][data-enhanced="true"][data-capability="validation"] [data-capability-module]:not([data-capability-module="validation"]) {
    opacity: 0.14;
}

[data-schematic][data-enhanced="true"] [data-capability-module].is-focused {
    filter: drop-shadow(0 0 0.55rem rgba(69, 217, 255, 0.48));
}

.schematic-console {
    display: grid;
    grid-column: 10 / -1;
    grid-row: 1;
    min-width: 0;
    align-content: start;
    gap: 0.75rem;
}

.drawing-layers {
    padding: 1.25rem;
}

.drawing-layers h2 {
    margin: 0.45rem 0 0.8rem;
    font-size: 1.28rem;
    letter-spacing: 0.01em;
}

.layer-controls {
    display: grid;
    border-top: 1px solid rgba(69, 217, 255, 0.18);
}

.layer-controls button {
    display: grid;
    min-height: 2.75rem;
    padding: 0.52rem 0.25rem;
    grid-template-columns: 1.8rem 1fr;
    align-items: center;
    color: var(--paper-muted);
    border: 0;
    border-bottom: 1px solid rgba(69, 217, 255, 0.14);
    border-radius: 0;
    background: transparent;
    font: 560 0.64rem/1.2 var(--body);
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.layer-controls button > span {
    color: var(--cobalt);
    font-size: 0.95rem;
}

.layer-controls button:hover,
.layer-controls button[aria-pressed="true"] {
    color: var(--paper-bright);
    background: rgba(69, 217, 255, 0.08);
}

.layer-controls button[aria-pressed="true"] {
    box-shadow: inset 2px 0 0 var(--cobalt);
}

.drawing-layers__hint {
    margin: 0.8rem 0 0;
    color: #7f98a4;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.capability-controls {
    display: grid;
    gap: 0.75rem;
}

.capability-control {
    position: relative;
    display: grid;
    min-height: 6.3rem;
    padding: 1rem 1rem 0.85rem 1.15rem;
    align-content: center;
    gap: 0.25rem;
    color: var(--paper-muted);
    border: 1px solid rgba(201, 130, 76, 0.62);
    border-radius: 0;
    background: rgba(2, 16, 28, 0.86);
    box-shadow: inset 0 0 0 1px rgba(69, 217, 255, 0.04);
    text-align: left;
}

.capability-control::before {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    width: 0.34rem;
    height: 0.34rem;
    border: 1px solid var(--signal-bright);
    border-radius: 50%;
    content: "";
    background: #362113;
}

.capability-control__number {
    color: var(--signal-bright);
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.capability-control strong {
    color: var(--paper-bright);
    font: 610 clamp(0.92rem, 1.2vw, 1.2rem)/1.12 var(--display);
}

.capability-control > span:last-child {
    color: var(--cobalt);
    font-size: 0.54rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.capability-control:hover,
.capability-control[aria-pressed="true"] {
    border-color: var(--cobalt);
    background: rgba(5, 41, 60, 0.94);
}

.capability-control[aria-pressed="true"] {
    box-shadow: inset 3px 0 0 var(--cobalt), 0 0 1.3rem rgba(69, 217, 255, 0.1);
}

.trace-console {
    display: grid;
    grid-column: 5 / span 5;
    grid-row: 2;
    min-height: 4.4rem;
    padding: 0.75rem 1rem;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 1rem;
}

.trace-console > span {
    color: var(--paper-muted);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trace-console > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trace-console button {
    min-height: 2.75rem;
    color: var(--paper-bright);
    border: 1px solid rgba(201, 130, 76, 0.72);
    border-radius: 0;
    background: rgba(2, 16, 28, 0.88);
    font: 650 0.72rem/1 var(--body);
    letter-spacing: 0.16em;
}

.trace-console button + button {
    border-left: 0;
}

.trace-console button:hover,
.trace-console button[aria-pressed="true"] {
    color: #00131f;
    border-color: var(--cobalt);
    background: var(--cobalt);
}

.blueprint-contact {
    display: flex;
    min-width: 0;
    min-height: 4.4rem;
    padding: 0.75rem 1rem;
    grid-column: 1 / span 4;
    grid-row: 2;
    align-items: center;
    gap: 0.8rem;
    color: var(--paper-bright);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    letter-spacing: 0.04em;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.nav-toggle,
.system-view-control,
.layer-controls button,
.capability-control__number,
.capability-control > span:last-child,
.trace-console > span,
.trace-console button {
    font-size: 0.75rem;
}

.blueprint-contact {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
}

.blueprint-contact__icon {
    position: relative;
    width: 2.5rem;
    height: 1.7rem;
    flex: 0 0 auto;
    border: 1px solid var(--cobalt);
}

.blueprint-contact__icon::before,
.blueprint-contact__icon::after {
    position: absolute;
    top: 0.15rem;
    width: 1.55rem;
    height: 1px;
    content: "";
    background: var(--cobalt);
}

.blueprint-contact__icon::before {
    left: 0.05rem;
    transform: rotate(31deg);
    transform-origin: left;
}

.blueprint-contact__icon::after {
    right: 0.05rem;
    transform: rotate(-31deg);
    transform-origin: right;
}

.blueprint-contact:hover {
    color: var(--cobalt);
    border-color: var(--cobalt);
}

.blueprint-credit {
    grid-column: 10 / -1;
    grid-row: 2;
    margin: 0;
    padding: 0.9rem 1rem;
    align-self: stretch;
    color: rgba(159, 180, 191, 0.72);
    border: 1px solid rgba(201, 130, 76, 0.42);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-align: right;
    text-transform: uppercase;
}

@keyframes trace-flow {
    to { stroke-dashoffset: -36; }
}

@keyframes blueprint-node-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(69, 217, 255, 0)); }
    50% { filter: drop-shadow(0 0 0.42rem rgba(69, 217, 255, 0.82)); }
}

.js.is-ready .technical-field__node {
    animation: blueprint-node-pulse 5s ease-in-out infinite;
}

/* Supporting pages and long-form content */

.page-hero,
.page-hero--paper,
.page-hero--contact,
.page-hero--archive {
    color: var(--paper-bright);
    background-color: rgba(2, 17, 29, 0.94);
    background-image:
        linear-gradient(rgba(69, 217, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 217, 255, 0.055) 1px, transparent 1px);
    background-size: 1.2rem 1.2rem;
    border-bottom: 1px solid rgba(201, 130, 76, 0.64);
}

.page-hero::after {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: clamp(8rem, 18vw, 17rem);
    height: clamp(8rem, 18vw, 17rem);
    pointer-events: none;
    border: 1px solid rgba(69, 217, 255, 0.16);
    border-radius: 50%;
    content: "";
    box-shadow: inset 0 0 0 2.8rem rgba(3, 26, 43, 0.58), inset 0 0 0 2.9rem rgba(201, 130, 76, 0.18);
}

.page-hero__inner {
    min-height: 30rem;
}

.page-hero h1 {
    max-width: 13ch;
    font-size: clamp(3.25rem, 6.5vw, 6.6rem);
}

.page-hero__lead,
.page-hero--paper .page-hero__lead,
.page-hero--contact .page-hero__lead,
.page-hero--archive .page-hero__lead {
    color: #b9cbd3;
}

.page-hero__rail {
    color: var(--signal-bright);
}

.page-hero__index {
    color: rgba(69, 217, 255, 0.12);
}

.archive-stamp {
    color: var(--paper-bright);
    border-color: var(--signal);
    background: rgba(2, 16, 28, 0.72);
}

.archive-stamp span {
    color: var(--signal-bright);
}

.section,
.section--ink,
.section--navy {
    color: var(--text);
    background: rgba(3, 26, 43, 0.91);
    border-top: 1px solid rgba(69, 217, 255, 0.1);
}

.section:nth-of-type(even),
.section--navy {
    background: rgba(2, 17, 29, 0.94);
}

.section h2,
.section h3,
.contact-band h2,
.email-warning h2 {
    color: var(--paper-bright);
}

.section p,
.scenario-list p,
.method-sequence p,
.capability-row__detail,
.capability-chapter__header > p:last-child,
.capability-chapter__facets p,
.status-page__lead {
    color: #aebfc7;
}

.section-lead {
    color: #c8d4da !important;
}

.scenario-list,
.method-sequence,
.capability-ledger,
.principle-ledger,
.engagement-modes,
.brief-list,
.environment-list,
.ruled-list,
.capability-chapter__facets {
    border-color: rgba(201, 130, 76, 0.36);
}

.scenario-list li,
.method-sequence li,
.capability-row,
.principle-ledger article,
.engagement-modes section,
.brief-list li,
.environment-list li,
.ruled-list li,
.capability-chapter,
.capability-chapter__facets section {
    border-color: rgba(201, 130, 76, 0.3);
}

.scenario-list li,
.method-sequence li,
.capability-chapter__facets section,
.engagement-modes section {
    background: rgba(2, 16, 28, 0.42);
}

.scenario-list li:hover,
.method-sequence li:hover,
.capability-chapter__facets section:target {
    background: rgba(69, 217, 255, 0.055);
}

.scenario-list__number,
.method-sequence span,
.environment-list span,
.brief-list li > span,
.ruled-list--outputs li::before,
.principle-ledger article > span:first-child {
    color: var(--cobalt);
}

.capability-row {
    position: relative;
}

.capability-row::before {
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 0;
    width: 2px;
    content: "";
    background: var(--cobalt);
    opacity: 0;
    transition: opacity 180ms ease;
}

.capability-row:hover::before {
    opacity: 1;
}

.capability-row__output {
    color: var(--paper-bright) !important;
    border-color: rgba(69, 217, 255, 0.18);
}

.capability-row__output span {
    color: var(--cobalt);
}

.qualification,
.boundary-note,
.archive-disclaimer,
.email-fallback {
    color: #9fb2bc !important;
    border-color: rgba(201, 130, 76, 0.5);
    border-left-color: var(--signal-bright);
    background: rgba(2, 16, 28, 0.5);
}

.contact-band {
    color: var(--paper-bright);
    background: #102438;
    border-top: 1px solid var(--signal);
    border-bottom: 1px solid var(--signal);
}

.contact-band__inner {
    background-image: linear-gradient(90deg, transparent 49.9%, rgba(69, 217, 255, 0.07) 50%, transparent 50.1%);
}

.contact-band .section-index,
.contact-band__action p {
    color: var(--signal-bright);
}

.contact-band .button {
    color: #140c06;
    border-color: var(--signal-bright);
    background: var(--signal-bright);
}

.email-panel {
    color: var(--paper-bright);
    border: 1px solid rgba(201, 130, 76, 0.62);
    border-top: 3px solid var(--cobalt);
    background: rgba(2, 16, 28, 0.9);
}

.email-panel .section-index,
.email-address a {
    color: var(--cobalt);
}

.email-warning {
    color: var(--paper-bright);
    background: #21170f;
    border-top: 1px solid var(--signal);
}

.email-warning .eyebrow,
.email-warning__mark {
    color: var(--signal-bright);
}

.archive-record blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--cobalt);
    background: rgba(69, 217, 255, 0.045);
}

.status-page {
    color: var(--paper-bright);
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(69, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 1.2rem 1.2rem;
}

.status-page__field {
    color: rgba(69, 217, 255, 0.09);
}

.status-page--gone .status-page__field {
    color: rgba(201, 130, 76, 0.11);
}

.site-footer {
    color: var(--paper-muted);
    background: #02101c;
    border-top: 1px solid rgba(201, 130, 76, 0.68);
}

.site-footer__inner {
    min-height: 13rem;
    background-image:
        linear-gradient(rgba(69, 217, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 217, 255, 0.035) 1px, transparent 1px);
    background-size: 1rem 1rem;
}

.site-footer__nav a,
.site-footer__credit a {
    color: var(--paper-muted);
}

.site-footer__nav a:hover,
.site-footer__credit a:hover {
    color: var(--cobalt);
}

/* Responsive composition */

@media (max-width: 1180px) {
    .site-header__inner {
        grid-template-columns: minmax(20rem, 0.9fr) minmax(34rem, 1fr);
    }

    .wordmark__secondary {
        display: none;
    }

    .hero__inner.blueprint-frame {
        grid-template-rows: auto auto auto;
    }

    .blueprint-frame .hero__copy {
        grid-column: 1 / span 5;
    }

    .technical-field.blueprint-machine {
        grid-column: 6 / -1;
    }

    .schematic-console {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 2fr);
    }

    .capability-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trace-console {
        grid-column: 6 / -1;
        grid-row: 3;
    }

    .blueprint-contact {
        grid-column: 1 / span 5;
        grid-row: 3;
    }

    .blueprint-credit {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-header__inner {
        display: flex;
        min-height: 5rem;
        flex-wrap: wrap;
    }

    .wordmark {
        min-height: 5rem;
        border-right: 0;
    }

    .js .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        width: 100%;
        height: auto;
    }

    .site-nav__links {
        display: grid;
        height: auto;
        padding: 0 0 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav__links li {
        height: auto;
    }

    .js .site-nav__links[data-open="false"] {
        display: none;
    }

    .js .site-nav__links[data-open="true"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav a:not(.button),
    .site-nav__links a:not(.button) {
        min-width: 0;
        min-height: 3.3rem;
        border: 1px solid rgba(201, 130, 76, 0.5);
    }

    .site-nav li:nth-child(even) a {
        border-left: 0;
    }

    .site-nav li:nth-child(n + 3) a {
        border-top: 0;
    }

    .hero__inner.blueprint-frame {
        grid-template-rows: auto auto auto auto;
    }

    .blueprint-frame .hero__copy,
    .technical-field.blueprint-machine {
        grid-column: 1 / -1;
    }

    .blueprint-frame .hero__copy {
        grid-row: 1;
    }

    .technical-field.blueprint-machine {
        grid-row: 2;
        min-height: 35rem;
    }

    .schematic-console {
        grid-row: 3;
    }

    .trace-console,
    .blueprint-contact {
        grid-row: 4;
    }

    .trace-console {
        grid-column: 6 / -1;
    }

    .blueprint-contact {
        grid-column: 1 / span 5;
    }

    .page-hero::after {
        opacity: 0.4;
    }

    .scenario-list,
    .method-sequence {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    :root {
        --pad: 1rem;
        --section: 4.25rem;
    }

    body::before {
        display: none;
    }

    .wordmark__monogram {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.55rem;
    }

    .wordmark__primary {
        font-size: 1.02rem;
    }

    .blueprint-hero {
        padding: 0.55rem;
    }

    .hero__inner.blueprint-frame {
        padding: 0.72rem;
        grid-template-rows: auto;
    }

    .blueprint-frame .hero__copy,
    .technical-field.blueprint-machine,
    .schematic-console,
    .trace-console,
    .blueprint-contact {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .blueprint-frame .hero__copy {
        padding: 2.4rem 1.3rem;
    }

    .blueprint-frame .hero__title {
        font-size: clamp(3.25rem, 16vw, 4.9rem);
    }

    .blueprint-frame .hero__actions {
        align-items: stretch;
    }

    .blueprint-frame .hero__actions .button,
    .blueprint-frame .hero__actions .text-link {
        width: 100%;
        justify-content: center;
    }

    .technical-field.blueprint-machine {
        display: grid;
        min-height: 0;
        padding-top: 0.35rem;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0.5rem;
        align-items: start;
    }

    .blueprint-machine__heading,
    .system-view-control {
        position: static;
    }

    .blueprint-machine__heading {
        min-width: 0;
        padding: 0.55rem 0 0.55rem 0.4rem;
    }

    .system-view-control {
        margin: 0.1rem 0.2rem 0.35rem 0;
        align-self: start;
    }

    .blueprint-machine svg,
    .blueprint-machine__summary {
        grid-column: 1 / -1;
    }

    .blueprint-machine svg {
        min-height: 0;
    }

    .schematic-annotations,
    .component-callout--io,
    .component-callout--secure,
    .component-callout--control {
        display: none;
    }

    .schematic-console {
        grid-template-columns: 1fr;
    }

    .capability-controls {
        grid-template-columns: 1fr;
    }

    .trace-console {
        grid-template-columns: 1fr;
    }

    .blueprint-contact {
        font-size: 0.75rem;
    }

    .scenario-list,
    .method-sequence,
    .capability-chapter__body,
    .capability-chapter__facets,
    .site-footer__inner,
    .email-warning__inner {
        grid-template-columns: 1fr;
    }

    .scenario-list li,
    .method-sequence li,
    .scenario-list li:nth-child(2),
    .method-sequence li:nth-child(2),
    .capability-chapter__facets section,
    .capability-chapter__facets section:nth-child(2n) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(201, 130, 76, 0.3);
    }

    .capability-row,
    .principle-ledger article,
    .capability-chapter__header {
        grid-template-columns: 2.5rem 1fr;
    }

    .capability-row__detail,
    .principle-ledger article > :last-child,
    .capability-chapter__header > p:last-child {
        grid-column: 2;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .trace-path,
    .technical-field__node {
        animation: none !important;
    }
}

@media (forced-colors: active) {
    .blueprint-panel,
    .capability-control,
    .trace-console button,
    .layer-controls button,
    .site-nav a:not(.button) {
        border: 1px solid ButtonText;
    }

    .schematic-layer,
    .schematic-annotations {
        opacity: 1 !important;
        stroke: CanvasText !important;
    }
}

@media print {
    :root {
        color-scheme: light;
        --paper: #fff;
        --paper-bright: #000;
        --ink: #fff;
        --text: #000;
    }

    body {
        color: #000;
        background: #fff;
    }

    body::before,
    .site-header,
    .site-footer,
    .technical-field,
    .schematic-console,
    .trace-console,
    .blueprint-contact,
    .blueprint-credit,
    .blueprint-fastener,
    .page-hero::after,
    .page-hero__rail,
    .page-hero__index,
    .contact-band,
    .button,
    .nav-toggle {
        display: none !important;
    }

    .hero,
    .page-hero,
    .section,
    .section--ink,
    .section--navy,
    .status-page,
    .email-panel,
    .email-warning {
        color: #000;
        background: #fff;
        border-color: #777;
    }

    .hero__inner.blueprint-frame {
        display: block;
        min-height: 0;
        padding: 1.5rem 0;
        border: 0;
        background: #fff;
        box-shadow: none;
    }

    .blueprint-frame .hero__copy {
        padding: 0;
        border: 0;
        background: #fff;
        box-shadow: none;
    }

    h1,
    h2,
    h3,
    p,
    li,
    .section p,
    .page-hero__lead {
        color: #000 !important;
    }
}
