/* S.T.O.R.M. Command Ops — Home-only prototype */
.command-ops-home {
    --command-bg: #080a08;
    --command-panel: #0d100d;
    --command-panel-soft: rgba(13, 16, 13, 0.86);
    --command-line: rgba(197, 160, 89, 0.2);
    --command-line-soft: rgba(255, 255, 255, 0.08);
    --command-gold: #c5a059;
    --command-gold-bright: #dfc17f;
    --command-ink: #f0f1ed;
    --command-muted: #9a9f96;
    --command-dim: #646b62;
    --command-active: #69a56c;
    --command-grid: rgba(197, 160, 89, 0.055);
    background: var(--command-bg);
    color: var(--command-ink);
    overflow-x: hidden;
}

.command-ops-home ::selection {
    background: var(--command-gold);
    color: #080a08;
}

.command-ops-home .pill-glass-panel {
    background: rgba(7, 9, 7, 0.66);
    border-bottom-color: rgba(197, 160, 89, 0.24);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(16px) saturate(0.82);
    -webkit-backdrop-filter: blur(16px) saturate(0.82);
}

.command-ops-home .ops-status-deck {
    /* Keep the telemetry readable while revealing the full-screen video below it. */
    background:
        linear-gradient(rgba(105, 165, 108, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 165, 108, 0.025) 1px, transparent 1px),
        rgba(3, 7, 5, 0.1) !important;
    background-size: 72px 72px, 72px 72px, auto !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -1px rgba(105, 165, 108, 0.12) !important;
    backdrop-filter: blur(4px) saturate(0.85) !important;
    -webkit-backdrop-filter: blur(4px) saturate(0.85) !important;
}

.command-ops-home .ops-status-deck__classification {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.96);
}

.command-home {
    --command-top-offset: 165px;
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    /* Desktop navigation (75px) + the release/telemetry deck (90px).
       Both are fixed-layer UI, so reserve their combined height in flow. */
    padding-top: var(--command-top-offset);
    background-color: var(--command-bg);
    background-image:
        linear-gradient(var(--command-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--command-grid) 1px, transparent 1px);
    background-size: 80px 80px;
}

.command-home::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 15%, rgba(197, 160, 89, 0.07), transparent 34%);
}

.command-home a:focus-visible {
    outline: 2px solid var(--command-gold-bright);
    outline-offset: 4px;
}

.command-boot {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    background: #070807;
    animation: commandBootExit 0.5s ease 1.15s forwards;
}

.command-boot.is-dismissed {
    opacity: 0;
    visibility: hidden;
}

.command-boot__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
}

.command-boot__content {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(680px, calc(100% - 48px));
    color: var(--command-ink);
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.command-boot__mark {
    width: 78px;
    height: 78px;
    margin-bottom: 24px;
    object-fit: contain;
    filter: grayscale(1) sepia(0.4) drop-shadow(0 0 20px rgba(197, 160, 89, 0.22));
}

.command-boot__eyebrow,
.command-boot__code {
    color: var(--command-gold);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.command-boot__content strong {
    margin: 14px 0 22px;
    font-size: clamp(18px, 2.4vw, 30px);
    letter-spacing: 0.17em;
}

.command-boot__progress {
    width: min(430px, 100%);
    height: 2px;
    margin-bottom: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.command-boot__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--command-gold);
    transform: translateX(-100%);
    animation: commandBootProgress 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes commandBootProgress {
    to { transform: translateX(0); }
}

@keyframes commandBootExit {
    to { opacity: 0; visibility: hidden; }
}

.command-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: calc(100svh - 165px);
    min-height: calc(100dvh - 165px);
    padding: clamp(64px, 7vh, 96px) var(--layout-gutter, 50px) clamp(92px, 10vh, 130px);
    /* The video layer extends behind the fixed navigation/status stack. */
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(5, 7, 6, 0.26), rgba(7, 9, 7, 0.54) 68%, var(--command-bg) 100%),
        linear-gradient(90deg, rgba(4, 7, 5, 0.44), rgba(10, 14, 10, 0.06), rgba(4, 7, 5, 0.48));
    border-bottom: 1px solid var(--command-line);
}

.command-hero__video {
    position: absolute;
    z-index: 0;
    top: calc(0px - var(--command-top-offset));
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    container-type: size;
    pointer-events: none;
    background: #050706;
}

.command-hero__video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover the actual rendered layer, including pages using the site's 0.8 zoom. */
    width: max(100cqw, 177.778cqh);
    height: max(56.25cqw, 100cqh);
    border: 0;
    opacity: 0;
    filter: brightness(0.88) contrast(1.08) saturate(0.78);
    transform: translate(-50%, -50%) scale(1.02);
    pointer-events: none;
    transition: opacity 0.18s linear;
}

.command-hero__video.is-video-visible iframe {
    opacity: 1;
}

.command-hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, transparent 22%, rgba(0, 0, 0, 0.54) 100%);
}

.command-hero__grid {
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: 0.56;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.command-hero__scanlines {
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0, 0, 0, 0.35) 4px);
}

.command-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--command-active);
    box-shadow: 0 0 10px rgba(105, 165, 108, 0.58);
}

.command-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(100%, 1100px);
    text-align: center;
}

.command-eyebrow,
.command-section__kicker {
    color: var(--command-gold);
    font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.command-hero h1 {
    max-width: 760px;
    min-height: 2.94em;
    margin: 34px 0 0;
    color: var(--command-ink);
    font-size: clamp(44px, 6vw, 82px);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 0.98;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.62);
}

.command-typing-title {
    font-family: var(--font-main);
    white-space: pre-line;
}

.command-typing-title::after {
    content: '';
    display: inline-block;
    width: 0.075em;
    height: 0.82em;
    margin-left: 0.12em;
    vertical-align: -0.04em;
    background: var(--command-gold-bright);
    box-shadow: 0 0 14px rgba(197, 160, 89, 0.42);
    animation: command-typing-caret 0.78s step-end infinite;
}

@keyframes command-typing-caret {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

.command-hero__lede {
    max-width: 760px;
    margin: 30px auto 0;
    color: rgba(240, 241, 237, 0.76);
    font-size: 17px;
    line-height: 1.75;
    text-wrap: balance;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.command-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid var(--command-line);
    border-radius: 0;
    font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.17em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.command-button:hover {
    transform: translateY(-2px);
}

.command-button--primary {
    border-color: var(--command-gold);
    background: var(--command-gold);
    color: #090a08;
}

.command-button--primary:hover {
    border-color: var(--command-gold-bright);
    background: var(--command-gold-bright);
    color: #090a08;
}

.command-button--quiet {
    border-color: rgba(240, 241, 237, 0.24);
    background: rgba(6, 8, 6, 0.48);
    color: var(--command-ink);
}

.command-button--quiet:hover {
    border-color: var(--command-gold);
    color: var(--command-gold-bright);
}

.command-hero__rail {
    position: absolute;
    left: 50px;
    right: 50px;
    bottom: 42px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 7, 5, 0.42);
    backdrop-filter: blur(8px);
}

.command-hero__rail div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 17px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.command-hero__rail div:last-child {
    border-right: 0;
}

.command-hero__rail span,
.command-metrics dt {
    color: var(--command-dim);
    font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.command-hero__rail strong {
    overflow: hidden;
    color: var(--command-ink);
    font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.09em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.command-scroll-cue {
    position: absolute;
    right: 22px;
    bottom: 46px;
    z-index: 3;
    display: none;
}

.command-section {
    position: relative;
    width: min(calc(100% - 100px), 1500px);
    margin: 0 auto;
    padding: 120px 0;
}

.command-section + .command-section {
    border-top: 1px solid var(--command-line-soft);
}

.command-section__header {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    padding-bottom: 38px;
    border-bottom: 1px solid var(--command-line);
}

.command-section__index {
    color: var(--command-gold);
    font: 500 52px/0.9 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.command-section__mark {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: sepia(0.12) saturate(0.82) contrast(1.04);
}

.command-section__header h2,
.command-contact h2,
.command-field h2 {
    margin: 7px 0 0;
    color: var(--command-ink);
    font-size: clamp(34px, 4.2vw, 60px);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.04;
    text-transform: uppercase;
}

.command-section__code {
    align-self: center;
    color: var(--command-dim);
    font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.command-brief__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 90px;
    padding-top: 64px;
}

.command-brief__statement {
    max-width: 790px;
}

.command-brief__statement p {
    margin: 0 0 24px;
    color: var(--command-muted);
    font-size: 16px;
    line-height: 1.8;
}

.command-brief__statement .command-lead {
    color: var(--command-ink);
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 550;
    line-height: 1.7;
}

.command-who-dialog-ready [data-who-card] {
    cursor: pointer;
}

.command-who-dialog-ready [data-who-card] .command-section__header {
    transition: border-color 0.22s ease;
}

.command-who-dialog-ready [data-who-card]:hover .command-section__header {
    border-bottom-color: rgba(197, 160, 89, 0.72);
}

.command-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 12px;
}

.command-text-link {
    display: inline-flex;
    gap: 12px;
    margin-top: 12px;
    color: var(--command-gold-bright);
    font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.command-text-link--button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.command-text-link--button:focus-visible {
    outline: 2px solid var(--command-gold-bright);
    outline-offset: 5px;
}

.command-metrics {
    margin: 0;
    border-top: 1px solid var(--command-line-soft);
}

.command-metrics div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 74px;
    border-bottom: 1px solid var(--command-line-soft);
}

.command-metrics dd {
    margin: 0;
    color: var(--command-ink);
    font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.command-unit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 64px;
    background: var(--command-line-soft);
    border: 1px solid var(--command-line-soft);
}

.command-unit-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1.22fr);
    min-height: 340px;
    overflow: hidden;
    background: var(--command-panel);
    transition: background-color 0.24s ease, box-shadow 0.24s ease;
}

.command-unit-dialog-ready .command-unit-card {
    cursor: pointer;
}

.command-unit-dialog-ready .command-unit-card:hover,
.command-unit-card:has(.command-unit-card__trigger:focus-visible) {
    z-index: 1;
    background: #111511;
    box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.5);
}

.command-unit-dialog-ready .command-unit-card:hover h3,
.command-unit-card:has(.command-unit-card__trigger:focus-visible) h3 {
    color: var(--command-gold-bright);
}

.command-unit-card__image {
    min-height: 100%;
    background-position: center;
    background-size: cover;
    filter: grayscale(0.45) saturate(0.65) contrast(1.08);
    transition: filter 0.28s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.command-unit-dialog-ready .command-unit-card:hover .command-unit-card__image,
.command-unit-card:has(.command-unit-card__trigger:focus-visible) .command-unit-card__image {
    filter: grayscale(0.18) saturate(0.82) contrast(1.08);
    transform: scale(1.025);
}

.command-unit-card--ctac .command-unit-card__image { background-image: linear-gradient(rgba(7, 9, 7, 0.16), rgba(7, 9, 7, 0.78)), url('/assets/images/ground_branch_1.png'); }
.command-unit-card--cif .command-unit-card__image { background-image: linear-gradient(rgba(7, 9, 7, 0.16), rgba(7, 9, 7, 0.78)), url('/assets/images/ground_branch.jpg'); }
.command-unit-card--jtac .command-unit-card__image { background-image: linear-gradient(rgba(7, 9, 7, 0.16), rgba(7, 9, 7, 0.78)), url('/assets/images/jtac.jpg'); }
.command-unit-card--soar .command-unit-card__image { background-image: linear-gradient(rgba(7, 9, 7, 0.16), rgba(7, 9, 7, 0.78)), url('/assets/images/air_branch.jpg'); }

.command-unit-card__body {
    display: flex;
    flex-direction: column;
    padding: 38px;
}

.command-unit-card__id,
.command-unit-card__state {
    color: var(--command-gold);
    font: 700 9px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.command-unit-card h3 {
    margin: 24px 0 16px;
    color: var(--command-ink);
    font-size: 24px;
    line-height: 1.15;
    text-transform: uppercase;
}

.command-unit-card p {
    margin: 0;
    color: var(--command-muted);
    font-size: 14px;
    line-height: 1.7;
}

.command-unit-card__state {
    margin-top: auto;
    padding-top: 28px;
    color: var(--command-dim);
}

.command-unit-card__trigger {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--command-line-soft);
    border-radius: 0;
    background: transparent;
    color: var(--command-gold-bright);
    font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.command-unit-dialog-ready .command-unit-card__trigger {
    display: flex;
}

.command-unit-card__trigger:hover {
    padding-inline: 8px;
    border-top-color: var(--command-gold);
    color: #fff1c7;
}

.command-unit-card__trigger:focus-visible {
    outline: 2px solid var(--command-gold-bright);
    outline-offset: 4px;
}

.command-unit-dialog {
    width: min(calc(100% - 70px), 1280px);
    max-width: none;
    max-height: calc(100dvh - 56px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(197, 160, 89, 0.42);
    border-radius: 0;
    background: rgba(7, 11, 8, 0.68);
    color: var(--command-ink);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(18px) saturate(0.82);
    -webkit-backdrop-filter: blur(18px) saturate(0.82);
    scrollbar-color: var(--command-gold) #0b0d0b;
    scrollbar-width: thin;
}

.command-unit-dialog::-webkit-scrollbar {
    width: 8px;
}

.command-unit-dialog::-webkit-scrollbar-track {
    background: #0b0d0b;
}

.command-unit-dialog::-webkit-scrollbar-thumb {
    border: 2px solid #0b0d0b;
    background: var(--command-gold);
}

.command-unit-dialog[open] {
    display: grid;
    grid-template-columns: minmax(370px, 0.92fr) minmax(0, 1.08fr);
}

.command-unit-dialog::backdrop {
    background: rgba(2, 4, 3, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.command-unit-dialog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: rgba(6, 8, 6, 0.78);
    color: var(--command-ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.command-unit-dialog__close:hover,
.command-unit-dialog__close:focus-visible {
    border-color: var(--command-gold);
    background: var(--command-gold);
    color: #080a08;
}

.command-unit-dialog__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 650px;
    padding: 34px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.command-unit-dialog__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(5, 7, 5, 0.94), transparent 60%),
        repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0, 0, 0, 0.24) 4px);
}

.command-unit-dialog__visual.is-ctac { background-image: url('/assets/images/ground_branch_1.png'); }
.command-unit-dialog__visual.is-cif { background-image: url('/assets/images/ground_branch.jpg'); }
.command-unit-dialog__visual.is-jtac { background-image: url('/assets/images/jtac.jpg'); }
.command-unit-dialog__visual.is-soar { background-image: url('/assets/images/air_branch.jpg'); }

.command-unit-dialog__visual > span {
    color: rgba(240, 241, 237, 0.72);
    font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.command-unit-dialog__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 80px 72px 64px;
    background-color: rgba(5, 9, 6, 0.28);
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
}

.command-unit-dialog__classification {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 54px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--command-line-soft);
    color: var(--command-dim);
    font: 700 8px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.command-unit-dialog h2 {
    margin: 12px 0 0;
    color: var(--command-ink);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    text-transform: uppercase;
}

.command-unit-dialog__state {
    margin-top: 17px;
    color: var(--command-gold);
    font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.command-unit-dialog__content > p {
    margin: 36px 0 0;
    color: #b3b7af;
    font-size: 16px;
    line-height: 1.85;
}

.command-unit-dialog__scope {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--command-line-soft);
}

.command-unit-dialog__scope > span {
    color: var(--command-dim);
    font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.command-unit-dialog__scope ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.command-unit-dialog__scope li {
    padding: 8px 11px;
    border: 1px solid rgba(197, 160, 89, 0.24);
    color: var(--command-gold-bright);
    font: 700 9px/1.1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.command-who-dialog__visual {
    background-image:
        linear-gradient(rgba(5, 8, 6, 0.36), rgba(5, 8, 6, 0.76)),
        url('/assets/images/hero-bg.jpg');
}

.command-who-dialog__emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: clamp(150px, 18vw, 230px);
    height: clamp(150px, 18vw, 230px);
    object-fit: contain;
    filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.72));
    transform: translate(-50%, -50%);
}

.command-who-dialog__content {
    justify-content: flex-start;
    padding-top: 64px;
}

.command-who-dialog__qa {
    margin-top: 34px;
    border-top: 1px solid var(--command-line-soft);
}

.command-who-dialog__qa article {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid var(--command-line-soft);
}

.command-who-dialog__qa article > span {
    padding-top: 5px;
    color: var(--command-gold);
    font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.command-who-dialog__qa h3 {
    margin: 0 0 10px;
    color: var(--command-ink);
    font-size: 17px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.command-who-dialog__qa p {
    margin: 0;
    color: #b3b7af;
    font-size: 14px;
    line-height: 1.75;
}

/* Viewport-fit dossiers --------------------------------------------------
   Keep both public dossiers entirely inside the browser viewport. The site
   uses a global 0.8 zoom at common laptop widths, so every panel owns an
   explicit height and its internal grid is compressed instead of scrolling. */
.command-unit-dialog {
    height: min(760px, calc(100dvh - 56px));
    overflow: hidden;
}

.command-unit-dialog[open] {
    grid-template-rows: minmax(0, 1fr);
}

.command-unit-dialog__visual,
.command-unit-dialog__content {
    min-height: 0;
    height: 100%;
}

.command-unit-dialog__visual {
    padding: clamp(22px, 3.5vh, 34px);
}

.command-unit-dialog__content {
    overflow: hidden;
    padding: clamp(28px, 5vh, 54px) clamp(34px, 4.8vw, 64px);
}

.command-unit-dialog__classification {
    margin-bottom: clamp(16px, 3vh, 30px);
}

.command-unit-dialog h2 {
    font-size: clamp(30px, 3.5vw, 48px);
}

.command-unit-dialog__content > p {
    margin-top: clamp(16px, 2.8vh, 26px);
    font-size: clamp(12px, 1.05vw, 15px);
    line-height: 1.58;
}

.command-unit-dialog__scope {
    margin-top: clamp(16px, 2.8vh, 26px);
    padding-top: clamp(11px, 2vh, 18px);
}

.command-unit-dialog__scope ul {
    margin-top: 11px;
}

.command-unit-dialog__scope li {
    padding: 6px 9px;
    font-size: 8px;
}

.command-who-dialog__content {
    padding-top: clamp(26px, 4vh, 44px);
}

.command-who-dialog__qa {
    margin-top: clamp(12px, 2.2vh, 22px);
}

.command-who-dialog__qa article {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: clamp(8px, 1.45vh, 14px) 0;
}

.command-who-dialog__qa article > span {
    padding-top: 3px;
    font-size: 8px;
}

.command-who-dialog__qa h3 {
    margin-bottom: 5px;
    font-size: clamp(12px, 1.15vw, 15px);
}

.command-who-dialog__qa p {
    font-size: clamp(10px, 0.88vw, 12px);
    line-height: 1.48;
}

.command-process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--command-line);
    border-bottom: 1px solid var(--command-line-soft);
}

.command-process__grid li {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 42px;
    min-height: 320px;
    padding: 30px;
    border-right: 1px solid var(--command-line-soft);
}

.command-process__grid li:last-child {
    border-right: 0;
}

.command-process__grid li::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 30px;
    width: 7px;
    height: 7px;
    background: var(--command-gold);
    transform: rotate(45deg);
}

.command-process__number {
    color: var(--command-gold);
    font: 500 34px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.command-process h3 {
    margin: 0 0 16px;
    color: var(--command-ink);
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.command-process p {
    margin: 0;
    color: var(--command-muted);
    font-size: 14px;
    line-height: 1.72;
}

.command-field {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
    width: min(calc(100% - 100px), 1500px);
    min-height: 620px;
    margin: 40px auto 0;
    overflow: hidden;
    border: 1px solid var(--command-line);
    background: #080a08;
}

.command-field__image {
    background:
        linear-gradient(90deg, transparent 48%, #080a08 100%),
        linear-gradient(rgba(7, 9, 7, 0.18), rgba(7, 9, 7, 0.56)),
        url('/assets/images/ground_branch_1.png') center / cover no-repeat;
    filter: grayscale(0.28) saturate(0.72);
}

.command-field__content {
    align-self: center;
    padding: 70px;
}

.command-field__content p {
    max-width: 560px;
    margin: 26px 0 0;
    color: var(--command-muted);
    font-size: 16px;
    line-height: 1.75;
}

.command-field__content .command-button {
    margin-top: 32px;
}

.command-field__stamp {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: var(--command-dim);
    font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.18em;
}

.command-contact {
    display: grid;
    justify-items: center;
    padding-top: 160px;
    padding-bottom: 170px;
    text-align: center;
}

.command-contact h2 {
    max-width: 900px;
}

.command-contact > p {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--command-muted);
    font-size: 16px;
    line-height: 1.7;
}

.command-audio {
    position: fixed;
    right: 26px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 120;
    display: grid;
    justify-items: end;
    gap: 10px;
    color: var(--command-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.command-audio__panel[hidden] {
    display: none;
}

.command-audio__panel {
    width: 188px;
    padding: 15px 14px 16px;
    border: 1px solid rgba(197, 160, 89, 0.28);
    background:
        linear-gradient(rgba(197, 160, 89, 0.025) 1px, transparent 1px),
        rgba(8, 11, 8, 0.94);
    background-size: 32px 32px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.command-audio__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    color: var(--command-dim);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.command-audio__panel-header output {
    color: var(--command-gold-bright);
    font-variant-numeric: tabular-nums;
}

.command-audio__range {
    width: 100%;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: rgba(240, 241, 237, 0.12);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.command-audio__range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid var(--command-gold);
    border-radius: 50%;
    background: #080a08;
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.36);
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
}

.command-audio__range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid var(--command-gold);
    border-radius: 50%;
    background: #080a08;
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.36);
    cursor: grab;
}

.command-audio__range:focus-visible {
    outline: 2px solid var(--command-gold-bright);
    outline-offset: 7px;
}

.command-audio__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.command-audio__button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(240, 241, 237, 0.14);
    border-radius: 50%;
    background: rgba(10, 13, 10, 0.9);
    color: #878d85;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.command-audio__button svg {
    width: 17px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.command-audio__button:hover,
.command-audio__button:focus-visible {
    border-color: rgba(197, 160, 89, 0.7);
    color: var(--command-gold-bright);
}

.command-audio__button:focus-visible {
    outline: 2px solid var(--command-gold-bright);
    outline-offset: 3px;
}

.command-audio__play {
    width: 48px;
    height: 48px;
    border-color: rgba(197, 160, 89, 0.46);
    color: var(--command-gold);
}

.command-audio__play[aria-pressed="true"] {
    border-color: var(--command-gold-bright);
    background: rgba(197, 160, 89, 0.13);
    color: #f0d999;
    box-shadow: 0 0 22px rgba(197, 160, 89, 0.22), 0 8px 24px rgba(0, 0, 0, 0.42);
}

.command-audio__panel-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.command-audio__panel-toggle svg {
    transition: transform 0.2s ease;
}

.command-audio__mute-slash {
    display: none;
}

[data-audio-mute][aria-pressed="true"] {
    border-color: rgba(197, 160, 89, 0.58);
    color: var(--command-gold-bright);
}

[data-audio-mute][aria-pressed="true"] .command-audio__sound-wave {
    display: none;
}

[data-audio-mute][aria-pressed="true"] .command-audio__mute-slash {
    display: block;
}

.command-audio__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.command-ops-home footer {
    position: relative;
    margin: 0;
    padding: 28px 50px;
    border-top: 1px solid var(--command-line);
    background: #060806;
    color: var(--command-dim);
    font: 700 10px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.command-ops-home footer a {
    color: var(--command-gold);
}

.command-ops-js .command-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.command-ops-js .command-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .command-unit-card {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .command-unit-card__body {
        padding: 30px;
    }

    .command-process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .command-process__grid li:nth-child(2) {
        border-right: 0;
    }

    .command-process__grid li:nth-child(-n + 2) {
        border-bottom: 1px solid var(--command-line-soft);
    }
}

/* Laptop windows often lose 120-180px to browser chrome and the OS taskbar.
   Keep the complete command stack readable in that shorter landscape viewport. */
@media (min-width: 961px) and (max-height: 820px) {
    .command-hero {
        padding-top: 50px;
        padding-bottom: 92px;
    }

    .command-hero h1 {
        max-width: 720px;
        min-height: 2.94em;
        margin-top: 22px;
        font-size: clamp(44px, 5.3vw, 72px);
    }

    .command-hero__lede {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.55;
    }

    .command-actions {
        margin-top: 20px;
    }

    .command-button {
        min-height: 46px;
    }

    .command-hero__rail {
        bottom: 18px;
    }
}

/* The established 0.8 site scale also scales viewport units. Compensate with
   125dvh so the first section still occupies one real browser viewport. */
@media (min-width: 961px) and (max-width: 1366px) {
    .command-hero {
        min-height: calc(125svh - 165px);
        min-height: calc(125dvh - 165px);
    }
}

/* Above 1366px the site returns to 1:1 scale. Apply one tighter vertical
   composition when that wide window is still short because browser UI is open. */
@media (min-width: 1367px) and (max-height: 720px) {
    .command-hero {
        padding-top: 36px;
        padding-bottom: 82px;
    }

    .command-hero h1 {
        max-width: 640px;
        margin-top: 14px;
        font-size: 60px;
    }

    .command-hero__lede {
        max-width: 680px;
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.45;
    }

    .command-actions {
        margin-top: 12px;
    }

    .command-button {
        min-height: 42px;
        padding-inline: 22px;
    }

    .command-hero__rail {
        bottom: 12px;
    }
}

@media (max-width: 960px) {
    .command-home {
        --command-top-offset: 76px;
        padding-top: var(--command-top-offset);
    }

    .command-unit-dialog[open] {
        grid-template-columns: 1fr;
    }

    .command-unit-dialog__visual {
        min-height: 390px;
    }

    .command-unit-dialog__content {
        padding: 56px 48px;
    }

    .command-unit-dialog__classification {
        margin-bottom: 38px;
    }

    .command-hero {
        min-height: calc(125vh - 76px);
        min-height: calc(125dvh - 76px);
        padding: 100px 28px 180px;
    }

    .command-hero__rail {
        left: 28px;
        right: 28px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .command-hero__rail div:nth-child(2) {
        border-right: 0;
    }

    .command-hero__rail div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .command-section,
    .command-field {
        width: min(calc(100% - 56px), 1500px);
    }

    .command-brief__grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .command-unit-grid {
        grid-template-columns: 1fr;
    }

    .command-unit-card {
        min-height: 310px;
    }

    .command-field {
        grid-template-columns: 1fr;
    }

    .command-field__image {
        min-height: 460px;
        background:
            linear-gradient(to bottom, transparent 52%, #080a08 100%),
            linear-gradient(rgba(7, 9, 7, 0.18), rgba(7, 9, 7, 0.56)),
            url('/assets/images/ground_branch_1.png') center / cover no-repeat;
    }

    .command-field__content {
        padding: 60px;
    }
}

@media (max-width: 680px) {
    .command-unit-dialog {
        width: calc(100% - 28px);
        max-height: calc(100vh - 28px);
    }

    .command-unit-dialog__visual {
        min-height: 270px;
        padding: 24px;
    }

    .command-unit-dialog__content {
        padding: 42px 26px;
    }

    .command-unit-dialog__classification {
        margin-bottom: 32px;
    }

    .command-unit-dialog__classification span:last-child {
        display: none;
    }

    .command-unit-dialog__content > p {
        font-size: 15px;
    }

    .command-who-dialog__qa article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .command-who-dialog__qa article > span {
        padding-top: 0;
    }

    .command-home {
        background-size: 48px 48px;
    }

    .command-boot__mark {
        width: 64px;
        height: 64px;
    }

    .command-home {
        --command-top-offset: 116px;
        padding-top: var(--command-top-offset);
    }

    .command-hero {
        min-height: calc(125vh - 116px);
        min-height: calc(125dvh - 116px);
        padding: 90px 22px 200px;
    }

    .command-hero h1 {
        min-height: 2.94em;
        margin-top: 28px;
        font-size: clamp(38px, 12vw, 58px);
        letter-spacing: 0.045em;
    }

    .command-hero__lede {
        font-size: 15px;
    }

    .command-actions {
        width: 100%;
    }

    .command-button {
        width: 100%;
        min-height: 50px;
    }

    .command-hero__rail {
        left: 22px;
        right: 22px;
        bottom: 28px;
    }

    .command-hero__rail div {
        padding: 14px;
    }

    .command-section,
    .command-field {
        width: calc(100% - 36px);
    }

    .command-section {
        padding: 84px 0;
    }

    .command-section__header {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 18px;
        padding-bottom: 28px;
    }

    .command-section__index {
        font-size: 36px;
    }

    .command-section__mark {
        width: 44px;
        height: 44px;
    }

    .command-section__code {
        display: none;
    }

    .command-section__header h2,
    .command-contact h2,
    .command-field h2 {
        font-size: clamp(30px, 9vw, 44px);
    }

    .command-brief__grid,
    .command-unit-grid,
    .command-process__grid {
        margin-top: 44px;
        padding-top: 0;
    }

    .command-brief__statement .command-lead {
        font-size: 17px;
    }

    .command-unit-card {
        grid-template-columns: 1fr;
    }

    .command-unit-card__image {
        min-height: 260px;
    }

    .command-unit-card__body {
        min-height: 300px;
        padding: 28px;
    }

    .command-process__grid {
        grid-template-columns: 1fr;
    }

    .command-process__grid li,
    .command-process__grid li:nth-child(2) {
        min-height: 250px;
        border-right: 0;
        border-bottom: 1px solid var(--command-line-soft);
    }

    .command-process__grid li:last-child {
        border-bottom: 0;
    }

    .command-field__image {
        min-height: 320px;
    }

    .command-field__content {
        padding: 42px 28px 70px;
    }

    .command-contact {
        padding-top: 110px;
        padding-bottom: 120px;
    }

    .command-audio {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .command-audio__panel {
        width: 174px;
    }

    .command-ops-home footer {
        padding: 24px 22px;
    }
}

@media (min-width: 1920px) and (min-height: 960px) {
    .command-hero__content {
        width: min(100%, 1280px);
    }

    .command-hero h1 {
        max-width: 980px;
        font-size: clamp(82px, 4.5vw, 108px);
    }

    .command-hero__lede {
        max-width: 860px;
        font-size: 19px;
    }

    .command-section,
    .command-field,
    .command-contact {
        width: min(calc(100% - 128px), 1680px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .command-boot {
        display: none;
    }

    .command-button,
    .command-unit-card,
    .command-unit-card__image,
    .command-unit-card__trigger,
    .command-ops-js .command-reveal {
        transition: none;
    }

    .command-ops-js .command-reveal {
        opacity: 1;
        transform: none;
    }

}

/* Final responsive dossier geometry. These rules intentionally live after
   the legacy breakpoints so no older min-height or padding can reintroduce an
   internal scrollbar. */
@media (max-width: 960px) {
    .command-unit-dialog {
        width: calc(100% - 28px);
        height: calc(100dvh - 28px);
        max-height: none;
    }

    .command-unit-dialog[open] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: clamp(120px, 18dvh, 170px) minmax(0, 1fr);
    }

    .command-unit-dialog__visual {
        min-height: 0;
        height: 100%;
        padding: 18px 22px;
        background-position: center 35%;
    }

    .command-unit-dialog__content {
        min-height: 0;
        height: 100%;
        padding: 24px 28px;
    }

    .command-who-dialog__emblem {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 680px), (max-width: 960px) and (max-height: 700px) {
    .command-unit-dialog {
        width: calc(100% - 20px);
        height: calc(100dvh - 20px);
    }

    .command-unit-dialog[open] {
        grid-template-rows: 76px minmax(0, 1fr);
    }

    .command-unit-dialog__visual {
        min-height: 0;
        padding: 10px 16px;
    }

    .command-unit-dialog__visual > span {
        display: none;
    }

    .command-who-dialog__emblem {
        width: 64px;
        height: 64px;
    }

    .command-unit-dialog__close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .command-unit-dialog__content,
    .command-who-dialog__content {
        padding: 14px 18px;
    }

    .command-unit-dialog__classification {
        margin-bottom: 8px;
        padding-bottom: 7px;
        font-size: 7px;
    }

    .command-unit-dialog h2 {
        margin-top: 6px;
        font-size: clamp(23px, 7vw, 30px);
    }

    .command-unit-dialog__state {
        margin-top: 7px;
        font-size: 8px;
    }

    .command-unit-dialog__content > p {
        margin-top: 10px;
        font-size: 10px;
        line-height: 1.4;
    }

    .command-unit-dialog__scope {
        margin-top: 10px;
        padding-top: 7px;
    }

    .command-unit-dialog__scope ul {
        gap: 5px;
        margin-top: 7px;
    }

    .command-unit-dialog__scope li {
        padding: 5px 7px;
        font-size: 7px;
    }

    .command-who-dialog__qa {
        margin-top: 7px;
    }

    .command-who-dialog__qa article {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 7px;
        padding: 5px 0;
    }

    .command-who-dialog__qa article > span {
        padding-top: 2px;
        font-size: 7px;
    }

    .command-who-dialog__qa h3 {
        margin-bottom: 3px;
        font-size: 10px;
    }

    .command-who-dialog__qa p {
        font-size: 9px;
        line-height: 1.3;
    }
}

/* Laptop viewport compensation: the public site intentionally uses zoom .8
   through 1366px. Counter that scale only for desktop dialogs so their
   physical height can use the available screen and the last dossier row is
   never clipped. */
@media (min-width: 961px) and (max-width: 1366px) {
    .command-unit-dialog {
        height: min(765px, calc(125dvh - 85px));
        max-height: none;
    }
}
