.site-console {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    color: #d9f7f4;
    background: transparent;
    box-shadow: none;
    color-scheme: dark;
}
.site-console::backdrop {
    background: transparent;
}
.console-crt-defs {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}
.console-fade {
    position: absolute;
    inset: 0;
    background: #02090d;
    opacity: 0;
    pointer-events: none;
}
.console-flight-controls {
    position: absolute;
    inset: max(18px, env(safe-area-inset-top)) 4vw auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #d9f7f4;
    font:
        13px/1.5 Consolas,
        'Courier New',
        monospace;
    text-shadow: 0 2px 8px #000;
}
.console-flight-controls p {
    margin: 0;
}
.console-flight-controls button {
    flex-shrink: 0;
    border-color: #287a785c;
    background: #041218e8;
}
.console-flight-controls button span {
    margin-left: 12px;
    color: #83bcbf;
    font-size: 11px;
}
.console-screen {
    --paper: #d9f7f4;
    --muted: #83bcbf;
    --accent: #60e8dd;
    --line: #60e8dd35;
    position: absolute;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    color: var(--paper);
    background: #020c10;
    border: 1px solid #287a7855;
    border-radius: 2.4% / 3%;
    box-shadow:
        inset 0 0 28px #0a3b4233,
        0 0 8px #60e8dd1f;
    font:
        16px/1.65 'Segoe UI',
        Arial,
        sans-serif;
    isolation: isolate;
}
/* Keep the glass treatment stationary while the accessible content scrolls. */
.console-screen::before,
.console-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
}
.console-screen::before {
    background: repeating-linear-gradient(to bottom, #00000030 0 1px, transparent 1px 4px);
}
.console-screen[data-crt-scrolling='true']::before {
    background-position: 0 1px;
}
.console-screen[data-crt-scrolling='true'][data-crt-field='even']::before {
    background-position: 0 0;
}
.console-screen::after {
    background: radial-gradient(ellipse at center, transparent 58%, #00070c20 86%, #00070c52 100%);
    box-shadow: inset 0 0 20px #60e8dd1f;
}
.console-screen :focus-visible {
    outline-color: #a5fff6;
    outline-offset: -2px;
}
.console-toolbar {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 45px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: #04151b;
    text-shadow: 0 0 6px #60e8dd4d;
    font:
        12px/1.2 Consolas,
        'Courier New',
        monospace;
}
.console-toolbar a,
.console-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 8px;
    border: 0;
    border-radius: 0;
    color: var(--paper);
    background: transparent;
    text-decoration: none;
}
.console-toolbar a:hover,
.console-toolbar button:hover {
    color: #b6fff8;
    background: #60e8dd13;
}
.console-channel {
    color: #77a8ae;
    letter-spacing: 0.06em;
    font-size: 10px;
    white-space: nowrap;
}
.console-scroll {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #287a78 #031016;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.console-screen[data-crt-scrolling='true'] .console-scroll {
    filter: url(#console-crt-tear);
}
.console-content,
.console-message {
    padding: clamp(18px, 3vw, 38px);
    text-shadow: 0 0 2px #60e8dd35;
}
.console-content {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}
.console-message {
    max-width: 52ch;
    color: var(--muted);
}
.console-message h3 {
    margin-top: 0;
    color: var(--paper);
    font-size: 1.15rem;
}
.console-content :is(h1, h2, h3, h4, h5, h6),
.console-message h3 {
    text-shadow: 0 0 8px #60e8dd40;
}
.console-prompt::before {
    content: '> ';
    color: var(--accent);
}
.console-error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.console-error-actions button {
    border-color: var(--line);
    background: #0a2830;
}
.console-content .archive-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
}
.console-content .archive-intro > p {
    font-size: 15px;
}
.console-content :is(.archive-intro, .article-header, .section-intro, .about) h1 {
    margin: 8px 0 16px;
    font:
        500 clamp(1.55rem, 3vw, 2.4rem)/1.18 'Segoe UI',
        Arial,
        sans-serif;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}
.console-content .eyebrow {
    margin-top: 0;
    color: var(--accent);
    font-size: 10px;
}
.console-content .post-preview {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 22px 0;
}
.console-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 0;
    font-size: 11px;
}
.console-content .post-preview :is(h2, h3) {
    margin-bottom: 10px;
    font:
        500 1.3rem/1.3 'Segoe UI',
        Arial,
        sans-serif;
    letter-spacing: -0.02em;
}
.console-content .post-preview p {
    font-size: 15px;
    line-height: 1.65;
}
.console-content .post-read {
    min-height: 40px;
}
.console-content .back-link {
    margin: 0 0 24px;
}
.console-content .article-header {
    margin-bottom: 24px;
    padding-bottom: 22px;
}
.console-content .reading-column {
    max-width: 66ch;
}
.console-content .article-body {
    font-size: 16px;
    line-height: 1.75;
}
.console-content .article-body :is(h2, h3, h4, h5, h6) {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
}
.console-content .article-body h2 {
    font-size: 1.5em;
}
.console-content .article-body pre {
    padding: 16px;
    background: #01080c;
    font-size: 13px;
    overscroll-behavior: contain;
}
.console-content .article-table {
    overscroll-behavior: contain;
}
.console-content .article-footer {
    gap: 20px;
    flex-wrap: wrap;
}
.console-content .section-intro,
.console-content .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.console-content .section-intro {
    margin-bottom: 26px;
}
.console-content .section-intro > p {
    max-width: 60ch;
    font-size: 15px;
}
.console-content .project {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 0;
    padding: 24px 0;
}
.console-content .project > div:last-child {
    grid-column: 2;
}
.console-content .project-number {
    padding-top: 0;
    font-size: 11px;
}
.console-content .project :is(h2, h3) {
    font:
        500 1.4rem/1.25 'Segoe UI',
        Arial,
        sans-serif;
    letter-spacing: -0.025em;
}
.console-content .project p {
    font-size: 15px;
}
.console-content .project .project-type {
    color: var(--accent);
    font-size: 10px;
}
.console-content .project a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 12px;
    color: var(--accent);
}
.console-content .project > div:last-child p:last-child {
    margin-bottom: 0;
}
.console-content .about-copy > p:first-child {
    font-size: 18px;
}
.console-content .text-links {
    gap: 8px 22px;
    margin-top: 24px;
}
.console-content .text-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--accent);
}
.hero[data-console='true'] :is(.hero-copy, .scene-hud, .drive-speed) {
    visibility: hidden;
    pointer-events: none;
}
.hero[data-console='true']::after {
    opacity: 0;
}
.hero[data-console='true'] .site-header {
    visibility: hidden;
}
@media (forced-colors: active) {
    .console-screen::before,
    .console-screen::after {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
    .console-screen[data-crt-scrolling='true'] .console-scroll {
        filter: none;
    }
    .console-screen[data-crt-scrolling='true']::before {
        background-position: 0 0;
    }
}
@media (max-width: 480px) {
    .console-flight-controls {
        align-items: flex-start;
        font-size: 11px;
        gap: 12px;
    }
    .console-flight-controls p {
        max-width: 17ch;
    }
    .console-flight-controls button {
        padding: 8px 10px;
        font-size: 12px;
    }
    .console-flight-controls button span {
        display: none;
    }
    .console-toolbar {
        padding: 0 5px;
    }
    .console-channel {
        font-size: 9px;
        letter-spacing: 0;
    }
    .console-content,
    .console-message {
        padding: 18px;
    }
    .console-content .post-preview p {
        font-size: 16px;
    }
}
