:root {
    --bg: #07080b;
    --bg-elevated: rgba(18, 20, 26, 0.92);
    --bg-soft: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 47, 74, 0.46);
    --text: #f4f5f7;
    --muted: #a8adb8;
    --quiet: #727783;
    --red: #ff2f4a;
    --red-dark: #8f1022;
    --amber: #f3b34c;
    --green: #40d783;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --title: "Orbitron", system-ui, sans-serif;
    --body: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: var(--body);
    line-height: 1.65;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 47, 74, 0.15), transparent 26rem),
        radial-gradient(circle at 88% 0%, rgba(243, 179, 76, 0.09), transparent 22rem),
        linear-gradient(180deg, #0a0b10 0%, var(--bg) 46%, #050609 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background: linear-gradient(rgba(255, 255, 255, 0.025) 50%, rgba(0, 0, 0, 0.12) 50%);
    background-size: 100% 6px;
    opacity: 0.32;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 36px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 82px;
    padding: 12px 14px 12px 18px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--red);
    background: rgba(10, 11, 15, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
    box-shadow: 0 0 24px rgba(255, 47, 74, 0.26);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: var(--title);
    font-size: 1.16rem;
    letter-spacing: 0.16em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
    border-color: var(--border-strong);
    color: var(--text);
    background: rgba(255, 47, 74, 0.1);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

main {
    display: grid;
    gap: 32px;
    padding-top: 28px;
}

.hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: stretch;
    min-height: clamp(520px, 72vh, 720px);
}

.hero-media,
.hero-copy,
.page-hero,
.profile-panel,
.wide-panel,
.overview-card,
.branch-card,
.clearance-card,
.doctrine-panel,
.note-panel,
.final-banner,
.scenario-list article,
.program-card {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.hero-media {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 440px;
    overflow: hidden;
}

.hero-media::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(7, 8, 11, 0.3), transparent),
        radial-gradient(circle, rgba(255, 47, 74, 0.25), transparent 56%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--red);
    font-family: var(--title);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--title);
    line-height: 1.08;
}

h1 {
    max-width: 18ch;
    margin-bottom: 22px;
    font-size: clamp(2.35rem, 4.4vw, 4.2rem);
}

.hero h1 {
    max-width: 760px;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.55rem, 3vw, 2.7rem);
}

h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
}

.hero-lead,
.page-hero p,
.split-section p,
.wide-panel > p,
.profile-panel > p {
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.primary-action,
.secondary-action,
.overview-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid var(--border-strong);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-action {
    background: var(--red);
    color: white;
}

.secondary-action {
    background: rgba(255, 47, 74, 0.08);
    color: var(--text);
}

.notice-strip {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(255, 47, 74, 0.44);
    background: linear-gradient(90deg, rgba(255, 47, 74, 0.2), rgba(255, 47, 74, 0.04));
}

.notice-strip strong {
    flex: 0 0 auto;
    font-family: var(--title);
    text-transform: uppercase;
}

.notice-strip span {
    color: var(--text);
}

.page-section {
    display: grid;
    gap: 20px;
}

.section-heading {
    max-width: 780px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.overview-grid,
.branch-grid,
.doctrine-grid,
.clearance-ladder,
.institution-layout,
.mini-grid,
.three-column {
    display: grid;
    gap: 18px;
}

.overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.overview-card,
.doctrine-panel {
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 24px;
}

.card-number {
    color: var(--red);
    font-family: var(--title);
    font-size: 0.9rem;
    font-weight: 900;
}

.overview-card h3,
.doctrine-panel h2,
.clearance-card h2,
.branch-card h2 {
    margin-top: 18px;
}

.overview-card p,
.doctrine-panel p,
.branch-card p,
.clearance-card p,
.scenario-list p {
    color: var(--muted);
}

.overview-card a {
    width: fit-content;
    margin-top: auto;
    color: var(--red);
    font-size: 0.82rem;
}

.split-section {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: stretch;
    padding: 0;
}

.split-section > div {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: clamp(24px, 4vw, 40px);
}

.stat-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stat-panel div {
    display: grid;
    align-content: center;
    min-height: 140px;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.stat-panel strong {
    color: var(--red);
    font-family: var(--title);
    font-size: 2.6rem;
    line-height: 1;
}

.stat-panel span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.page-hero {
    min-height: 330px;
    padding: clamp(28px, 5vw, 58px);
}

.page-hero.compact {
    min-height: 280px;
}

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.15rem, 5vw, 4.8rem);
}

.page-hero p {
    max-width: 800px;
}

.institution-layout {
    grid-template-columns: repeat(2, 1fr);
}

.command-panel {
    border-color: var(--border-strong);
    background:
        linear-gradient(135deg, rgba(255, 47, 74, 0.12), rgba(18, 20, 26, 0.96)),
        var(--bg-elevated);
}

.profile-panel,
.wide-panel,
.branch-card,
.clearance-card,
.doctrine-panel,
.note-panel,
.final-banner,
.scenario-list article,
.program-card {
    padding: clamp(22px, 3vw, 34px);
}

.panel-heading {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.panel-kicker,
.branch-topline span,
.clearance-level {
    color: var(--red);
    font-family: var(--title);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.check-list {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--red);
    box-shadow: 0 0 10px rgba(255, 47, 74, 0.5);
}

.check-list.large li {
    color: var(--text);
    font-weight: 700;
}

blockquote {
    margin: 24px 0 0;
    padding: 16px 18px;
    border-left: 4px solid var(--red);
    color: var(--text);
    font-family: var(--title);
    background: rgba(255, 47, 74, 0.08);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.tag-cloud span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.045);
}

.mini-grid {
    grid-template-columns: repeat(2, 1fr);
}

.three-column {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}

.branch-grid {
    grid-template-columns: repeat(2, 1fr);
}

.branch-card {
    min-height: 520px;
}

.branch-card.priority {
    grid-column: span 2;
    min-height: auto;
    border-color: var(--border-strong);
    background:
        linear-gradient(135deg, rgba(255, 47, 74, 0.16), rgba(18, 20, 26, 0.94) 48%),
        var(--bg-elevated);
}

.branch-card.support {
    border-color: rgba(243, 179, 76, 0.42);
}

.branch-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.branch-topline strong {
    color: var(--text);
    font-family: var(--title);
    text-align: right;
}

.clearance-ladder {
    grid-template-columns: repeat(2, 1fr);
}

.clearance-card {
    position: relative;
    overflow: hidden;
}

.clearance-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 47, 74, 0.08));
    pointer-events: none;
}

.clearance-card.absolute {
    grid-column: span 2;
    border-color: rgba(255, 47, 74, 0.72);
    background: linear-gradient(135deg, rgba(143, 16, 34, 0.38), rgba(18, 20, 26, 0.95));
}

.note-panel {
    border-color: rgba(243, 179, 76, 0.4);
}

.doctrine-hero {
    background:
        linear-gradient(90deg, rgba(10, 11, 15, 0.94), rgba(10, 11, 15, 0.68)),
        url("assets/truclogo.png") center right / min(48vw, 560px) no-repeat,
        var(--bg-elevated);
}

.doctrine-grid {
    grid-template-columns: repeat(4, 1fr);
}

.scenario-list {
    display: grid;
    gap: 14px;
}

.scenario-list article {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}

.scenario-list h3 {
    margin: 0;
    color: var(--text);
}

.scenario-list p {
    margin: 0;
}

.final-banner {
    border-color: var(--border-strong);
    background: linear-gradient(135deg, rgba(255, 47, 74, 0.17), rgba(18, 20, 26, 0.96));
}

.final-banner h2 {
    max-width: 860px;
}

.final-banner p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
}

.omega-hero {
    border-color: rgba(255, 47, 74, 0.72);
    background:
        linear-gradient(135deg, rgba(143, 16, 34, 0.44), rgba(18, 20, 26, 0.94)),
        var(--bg-elevated);
}

.omega-strip {
    border-color: rgba(243, 179, 76, 0.5);
    background: linear-gradient(90deg, rgba(243, 179, 76, 0.16), rgba(255, 47, 74, 0.07));
}

.project-summary {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.intel-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.intel-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.intel-list dt {
    color: var(--quiet);
    font-weight: 900;
    text-transform: uppercase;
}

.intel-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.program-card {
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: clamp(22px, 3vw, 30px);
    border-color: rgba(255, 47, 74, 0.35);
}

.program-card h3 {
    margin-top: 18px;
}

.program-card p {
    color: var(--muted);
}

.program-card strong {
    display: block;
    margin-top: auto;
    color: var(--amber);
    font-family: var(--title);
    font-size: 0.82rem;
}

.omega-note {
    border-color: rgba(255, 47, 74, 0.55);
}

.omega-final {
    border-color: rgba(255, 47, 74, 0.72);
}

.access-gate {
    min-height: min(660px, calc(100vh - 150px));
    display: grid;
    align-items: center;
    border: 1px solid rgba(255, 47, 74, 0.72);
    background:
        linear-gradient(135deg, rgba(143, 16, 34, 0.48), rgba(18, 20, 26, 0.96)),
        var(--bg-elevated);
    box-shadow: var(--shadow);
}

.access-gate-panel {
    max-width: 720px;
    padding: clamp(26px, 5vw, 56px);
}

.access-gate-panel h1 {
    max-width: 11ch;
}

.access-gate-panel p {
    color: var(--muted);
}

.access-form {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.access-form label {
    color: var(--text);
    font-family: var(--title);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.access-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.access-input-row input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font: inherit;
    background: rgba(0, 0, 0, 0.28);
    outline: none;
}

.access-input-row input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 47, 74, 0.16);
}

.access-error {
    margin: 0;
    color: var(--amber);
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--quiet);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 1040px) {
    .hero,
    .institution-layout,
    .split-section,
    .branch-grid,
    .clearance-ladder,
    .project-summary {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .overview-grid,
    .doctrine-grid,
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .branch-card.priority,
    .clearance-card.absolute {
        grid-column: auto;
    }

    .scenario-list article {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 11px;
    }

    .site-header {
        top: 10px;
        gap: 10px;
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-copy strong {
        font-size: 1rem;
        letter-spacing: 0.12em;
    }

    .brand-copy span {
        font-size: 0.68rem;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        justify-content: stretch;
    }

    .site-nav.open {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-nav a {
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-media,
    .hero-media img {
        min-height: 190px;
        max-height: 220px;
    }

    .hero-copy,
    .page-hero,
    .profile-panel,
    .wide-panel,
    .branch-card,
    .clearance-card,
    .doctrine-panel,
    .note-panel,
    .final-banner,
    .scenario-list article,
    .program-card,
    .access-gate-panel {
        padding: 22px;
    }

    .hero-lead {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 10px;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2.1rem, 12vw, 3.6rem);
    }

    h2 {
        font-size: 1.55rem;
    }

    .overview-grid,
    .doctrine-grid,
    .program-grid,
    .mini-grid,
    .three-column,
    .stat-panel {
        grid-template-columns: 1fr;
    }

    .intel-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .notice-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .access-gate {
        min-height: calc(100vh - 130px);
    }

    .access-input-row {
        grid-template-columns: 1fr;
    }

    .branch-card {
        min-height: auto;
    }

    .branch-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .branch-topline strong {
        text-align: left;
    }

    .doctrine-hero {
        background:
            linear-gradient(180deg, rgba(10, 11, 15, 0.92), rgba(10, 11, 15, 0.84)),
            url("assets/truclogo.png") center bottom / 360px no-repeat,
            var(--bg-elevated);
        padding-bottom: 185px;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .hero-actions {
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }
}
