:root {
    color-scheme: light;
    --bg: #f8faf9;
    --bg-elevated: #ffffff;
    --bg-muted: #eef3f1;
    --text: #111315;
    --text-muted: #586168;
    --line: #d9e0dd;
    --line-strong: #aeb9b5;
    --accent: #008f68;
    --accent-strong: #006f51;
    --blue: #0a6cff;
    --red: #d9385e;
    --amber: #d98b00;
    --shadow: 0 22px 60px rgba(12, 19, 24, 0.11);
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0b0d0e;
        --bg-elevated: #121619;
        --bg-muted: #18201f;
        --text: #f4f7f5;
        --text-muted: #aab4b0;
        --line: #293331;
        --line-strong: #465450;
        --accent: #35d49f;
        --accent-strong: #78e3bf;
        --blue: #62a0ff;
        --red: #ff6b8a;
        --amber: #ffbd4a;
        --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    }
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f8faf9;
    --bg-elevated: #ffffff;
    --bg-muted: #eef3f1;
    --text: #111315;
    --text-muted: #586168;
    --line: #d9e0dd;
    --line-strong: #aeb9b5;
    --accent: #008f68;
    --accent-strong: #006f51;
    --blue: #0a6cff;
    --red: #d9385e;
    --amber: #d98b00;
    --shadow: 0 22px 60px rgba(12, 19, 24, 0.11);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0d0e;
    --bg-elevated: #121619;
    --bg-muted: #18201f;
    --text: #f4f7f5;
    --text-muted: #aab4b0;
    --line: #293331;
    --line-strong: #465450;
    --accent: #35d49f;
    --accent-strong: #78e3bf;
    --blue: #62a0ff;
    --red: #ff6b8a;
    --amber: #ffbd4a;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

img,
svg {
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: #ffffff;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    transform: translateY(-160%);
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 3rem;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

body:has(.arcade) .site-header {
    position: relative;
    top: auto;
}

body:has(.home-experience) .site-header {
    background: rgba(5, 8, 8, 0.78);
    border-bottom-color: rgba(213, 255, 242, 0.14);
    color: #f7fffb;
}

body:has(.home-experience) .brand-mark {
    background: #f7fffb;
    color: #07100d;
}

body:has(.home-experience) .theme-toggle {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(213, 255, 242, 0.18);
    color: #f7fffb;
}

body:has(.home-experience) .site-nav {
    color: #f7fffb;
}

body:has(.home-experience) .site-nav a {
    color: #f7fffb;
}

body:has(.home-experience) .site-nav a:hover,
body:has(.home-experience) .site-nav a:focus-visible {
    color: #8ff0c8;
}

.brand,
.site-nav,
.site-footer nav,
.hero-actions,
.segmented,
.tag-list,
.metric-list,
.signal-list {
    display: flex;
    align-items: center;
}

.brand {
    gap: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 8.5rem;
    height: auto;
}

.site-footer .brand-logo {
    width: 7rem;
    margin-bottom: 1rem;
}

html[data-theme="dark"] .brand-logo,
body:has(.home-experience) .brand-logo {
    filter: brightness(0) invert(1);
}

.brand-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: var(--radius);
    background: var(--text);
    color: var(--bg);
    font-size: 0.92rem;
}

.site-nav {
    justify-content: center;
    gap: 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.site-nav a,
.site-footer a {
    text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover,
.article-card a:hover,
.case-row a:hover,
.case-card a:hover,
.article-row a:hover {
    color: var(--accent-strong);
}

.theme-toggle,
.button,
.segmented__button {
    min-height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
}

.theme-toggle--menu {
    display: none;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    width: 1.2rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle span:first-child {
    top: calc(50% - 5px);
    transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle span:last-child {
    top: calc(50% + 5px);
    transform: translate(-50%, -50%);
}

.site-header.is-menu-open .menu-toggle span:first-child {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:last-child {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.theme-toggle__glyph {
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    box-shadow: inset 0 0 0 3px var(--bg-elevated);
}

.home-experience {
    --home-surface: rgba(7, 12, 12, 0.58);
    --home-surface-strong: rgba(6, 10, 10, 0.78);
    --home-line: rgba(213, 255, 242, 0.16);
    --home-muted: rgba(235, 248, 243, 0.72);
    --cursor-x: 50vw;
    --cursor-y: 42vh;
    --pointer-x: 0;
    --pointer-y: 0;
    --scroll-ratio: 0;
    --section-mix: 0;
    position: relative;
    isolation: isolate;
    overflow: clip;
    background:
        linear-gradient(180deg, #040606 0%, #08100f 36%, #0e0b10 70%, #070d0b 100%);
    color: #f7fffb;
}

body:has(.home-experience) .menu-toggle {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(213, 255, 242, 0.18);
    color: #f7fffb;
}

.home-experience::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(320px circle at var(--cursor-x) var(--cursor-y), rgba(255, 189, 74, 0.045), transparent 72%),
        linear-gradient(105deg, rgba(145, 247, 214, 0.035), transparent 36%, rgba(91, 141, 255, 0.04) 74%, transparent);
    mix-blend-mode: screen;
    opacity: 0.86;
}

.home-experience::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
    background-size: 100% 100%, 100% 100%;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.home-field {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100svh;
    margin-bottom: -100svh;
    overflow: visible;
    pointer-events: none;
    background:
        linear-gradient(120deg, #030505 0%, #07110e 38%, #100b12 72%, #050809 100%);
}

.home-field::before,
.home-field::after,
.home-blueprint,
.home-field__grain {
    position: absolute;
    inset: 0;
}

.home-field::before {
    content: "";
    background:
        linear-gradient(90deg, rgba(145, 247, 214, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(255, 189, 74, 0.028) 1px, transparent 1px),
        linear-gradient(128deg, transparent 0 42%, rgba(255, 255, 255, 0.025) 42% 43%, transparent 43% 100%);
    background-size: 84px 84px, 84px 84px, 100% 100%;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.82));
}

.home-field::after {
    content: "";
    background:
        radial-gradient(460px circle at var(--cursor-x) var(--cursor-y), rgba(145, 247, 214, 0.11), transparent 72%),
        linear-gradient(180deg, rgba(5, 7, 7, 0.24) 0%, rgba(5, 7, 7, 0.06) 38%, rgba(7, 13, 11, 0.94) 100%);
    mix-blend-mode: screen;
    opacity: 0.78;
}

.home-blueprint {
    display: grid;
    place-items: center;
    opacity: 0.42;
    transform: translate3d(calc(var(--pointer-x) * -1.4rem), calc(var(--pointer-y) * -1rem), 0);
    transition: transform 180ms ease-out;
}

.home-blueprint__diagram {
    width: max(100vw, 88rem);
    height: max(100svh, 56rem);
    overflow: visible;
}

.home-blueprint__diagram path,
.home-blueprint__diagram rect,
.home-blueprint__diagram circle {
    vector-effect: non-scaling-stroke;
}

.blueprint-grid-lines path {
    fill: none;
    stroke: rgba(213, 255, 242, 0.055);
    stroke-width: 1;
}

.blueprint-network path,
.blueprint-pipeline path,
.blueprint-datacenter path {
    fill: none;
    stroke: rgba(145, 247, 214, 0.26);
    stroke-width: 1.4;
}

.blueprint-network circle,
.blueprint-datacenter circle {
    fill: rgba(4, 8, 8, 0.58);
    stroke: rgba(145, 247, 214, 0.42);
    stroke-width: 1.5;
}

.blueprint-pipeline rect,
.blueprint-datacenter rect {
    fill: rgba(4, 8, 8, 0.42);
    stroke: rgba(247, 255, 251, 0.2);
    stroke-width: 1.2;
}

.blueprint-datacenter path,
.blueprint-pipeline path {
    stroke: rgba(255, 189, 74, 0.28);
}

.electric-line,
.blueprint-network .electric-line,
.blueprint-pipeline .electric-line,
.blueprint-datacenter .electric-line,
.atlas-current {
    fill: none;
    stroke: #f7fffb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    stroke-dasharray: 18 520;
    stroke-dashoffset: 0;
    opacity: 0.82;
    filter: drop-shadow(0 0 8px rgba(145, 247, 214, 0.38));
    animation: cable-current 5.2s linear infinite;
}

.electric-line--pipeline,
.electric-line--datacenter {
    stroke: #ffbd4a;
    animation-duration: 6.4s;
    animation-delay: -1.8s;
}

.atlas-current {
    stroke: #f7fffb;
    stroke-dasharray: 14 280;
    animation-duration: 4.8s;
}

@keyframes cable-current {
    to {
        stroke-dashoffset: -538;
    }
}

@media (prefers-reduced-motion: reduce) {

    .electric-line,
    .atlas-current {
        animation: none;
        opacity: 0.38;
    }

    .home-blueprint,
    .home-atlas__map svg {
        transition: none;
        transform: none;
    }
}

.home-field__grain {
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
    mix-blend-mode: overlay;
    opacity: 0.44;
}

.home-experience>.hero,
.home-experience>.section {
    position: relative;
    z-index: 2;
}

.home-experience>.section {
    transition: background 260ms ease, border-color 260ms ease;
}

.home-experience>.section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0%, rgba(154, 244, 212, 0.035) 44%, transparent 100%),
        radial-gradient(620px circle at calc(18% + var(--section-mix, 0) * 52%) 22%, rgba(91, 141, 255, 0.095), transparent 70%);
    opacity: 0.8;
}

.hero {
    position: relative;
    min-height: calc(100svh - 5.25rem);
    overflow: hidden;
    display: grid;
    align-items: center;
    isolation: isolate;
    padding: 7rem 3rem 3rem;
    border-bottom: 1px solid var(--home-line);
    background: transparent;
    color: #f7fffb;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 7, 7, 0.18) 0%, rgba(5, 7, 7, 0.04) 48%, rgba(7, 13, 11, 0.88) 100%);
    pointer-events: none;
}

.hero--immersive::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(3, 6, 6, 0.92) 0%, rgba(3, 6, 6, 0.72) 34%, rgba(3, 6, 6, 0.2) 66%, transparent 100%),
        radial-gradient(760px circle at 22% 52%, rgba(3, 6, 6, 0.82), transparent 72%);
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.hero-inner--immersive {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 3rem;
    align-items: center;
}

.hero-copy-block {
    position: relative;
    isolation: isolate;
    max-width: 820px;
}

.hero-copy-block::before {
    content: "";
    position: absolute;
    inset: -1.4rem -2rem -1.2rem -1.8rem;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side at 26% 48%, rgba(1, 4, 4, 0.92), rgba(1, 4, 4, 0.5) 62%, transparent 100%);
}

.hero h1,
.page-hero h1,
.article-header h1 {
    margin: 0;
    font-size: 5.6rem;
    line-height: 0.95;
    max-width: 11ch;
    letter-spacing: 0;
}

.hero--immersive h1 {
    max-width: 8.5ch;
    font-size: 7.2rem;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
}

.hero--immersive h1 span {
    display: block;
}

.hero-copy,
.page-hero p,
.article-header p {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hero-copy {
    max-width: 620px;
    margin: 1.5rem 0 0;
    color: rgba(235, 248, 243, 0.82);
    font-size: 1.35rem;
}

.hero-actions {
    gap: 0.75rem;
    margin: 2rem 0 0;
    flex-wrap: wrap;
}

.hero-system-list {
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    max-width: 720px;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
    background: rgba(213, 255, 242, 0.14);
}

.hero-system-list li {
    flex: 1 1 13rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
    color: rgba(247, 255, 251, 0.78);
    background: rgba(4, 8, 8, 0.58);
    font-size: 0.88rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.1rem;
    font-weight: 760;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.segmented__button:hover,
.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.button--primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.hero .button--primary {
    background: #f7fffb;
    color: #07100d;
    border-color: #f7fffb;
}

.button--ghost {
    background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
}

.button--glass,
.button--spatial {
    background: rgba(255, 255, 255, 0.08);
    color: #f7fffb;
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
}

.button--spatial[hidden] {
    display: none;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 920px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow);
}

.metric-strip div {
    padding: 1.25rem;
    background: var(--bg-elevated);
}

.metric-strip dt {
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.metric-strip dd {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
}

.metric-strip--immersive {
    grid-template-columns: 1fr;
    gap: 1px;
    max-width: none;
    border-color: var(--home-line);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.metric-strip--immersive div {
    background: rgba(5, 10, 10, 0.46);
}

.metric-strip--immersive dt {
    color: #f7fffb;
}

.metric-strip--immersive dd {
    color: rgba(235, 248, 243, 0.72);
}

.home-atlas {
    position: relative;
    display: grid;
    gap: 1rem;
    min-height: 31rem;
    padding: 1rem;
    border: 1px solid var(--home-line);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.09), transparent 32%),
        rgba(4, 8, 8, 0.46);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.home-atlas::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    border: 1px solid rgba(255, 189, 74, 0.16);
    transform: translate(0.55rem, -0.55rem);
}

.home-atlas__header,
.home-atlas__signals li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-atlas__header {
    color: rgba(247, 255, 251, 0.78);
    font-size: 0.78rem;
    font-weight: 780;
    text-transform: uppercase;
    letter-spacing: 0;
}

.home-atlas__header b {
    color: #ffbd4a;
}

.home-atlas__map {
    position: relative;
    min-height: 15rem;
    overflow: hidden;
    border: 1px solid rgba(213, 255, 242, 0.14);
    background:
        linear-gradient(90deg, rgba(145, 247, 214, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(145, 247, 214, 0.035) 1px, transparent 1px),
        linear-gradient(150deg, rgba(145, 247, 214, 0.055), transparent 48%, rgba(255, 189, 74, 0.07));
    background-size: 42px 42px, 42px 42px, 100% 100%;
}

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

.home-atlas__map::before {
    inset: 12% 14%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: skewY(-8deg);
}

.home-atlas__map::after {
    inset: 0;
    background: linear-gradient(112deg, transparent 0 44%, rgba(247, 255, 251, 0.1) 45%, transparent 47% 100%);
    transform: translateX(calc((var(--section-mix) - 0.5) * 42%));
}

.home-atlas__map svg {
    width: 100%;
    height: 100%;
    min-height: 15rem;
    display: block;
    transform: translate3d(calc(var(--pointer-x) * 0.45rem), calc(var(--pointer-y) * 0.35rem), 0);
    transition: transform 180ms ease-out;
}

.atlas-line,
.atlas-rack-line {
    fill: none;
    stroke: rgba(145, 247, 214, 0.34);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.atlas-node {
    fill: rgba(4, 8, 8, 0.82);
    stroke: rgba(145, 247, 214, 0.7);
    stroke-width: 1.7;
}

.atlas-node--core {
    fill: rgba(255, 189, 74, 0.9);
    stroke: #f7fffb;
}

.atlas-rack {
    fill: rgba(4, 8, 8, 0.6);
    stroke: rgba(255, 189, 74, 0.42);
    stroke-width: 1.2;
}

.home-atlas__signals {
    display: grid;
    gap: 1px;
    padding: 0;
    margin: 0;
    list-style: none;
    background: rgba(213, 255, 242, 0.12);
}

.home-atlas__signals li {
    min-height: 2.6rem;
    padding: 0 0.85rem;
    color: rgba(235, 248, 243, 0.76);
    background: rgba(4, 8, 8, 0.52);
    font-size: 0.88rem;
}

.home-atlas__signals li::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    background: #91f7d6;
}

.home-experience .section:not(.section--dark):not(.section--muted),
.home-experience .section--muted,
.home-experience .section--dark {
    color: #f7fffb;
}

.home-experience .section--muted,
.home-experience .section--dark {
    background: linear-gradient(90deg, rgba(4, 8, 8, 0.24), rgba(7, 14, 14, 0.62), rgba(4, 8, 8, 0.24));
    border-block: 1px solid var(--home-line);
    backdrop-filter: blur(4px);
}

.home-experience .section-heading h2,
.home-experience .split-section h2 {
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.home-experience .service-card,
.home-experience .article-card,
.home-experience .case-card,
.home-experience .case-row,
.home-experience .article-row {
    position: relative;
    overflow: hidden;
    color: #f7fffb;
    border-color: var(--home-line);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 38%),
        rgba(8, 13, 13, 0.54);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-experience .service-card::before,
.home-experience .article-card::before,
.home-experience .case-card::before,
.home-experience .case-row::before,
.home-experience .article-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 28%, rgba(154, 244, 212, 0.16) 48%, transparent 68%),
        radial-gradient(320px circle at 22% 12%, rgba(255, 189, 74, 0.08), transparent 58%);
    opacity: 0.34;
    pointer-events: none;
    transform: translateX(calc((var(--section-mix, 0) - 0.5) * 18%));
    transition: opacity 180ms ease;
}

.home-experience .service-card:hover,
.home-experience .article-card:hover,
.home-experience .case-card:hover,
.home-experience .case-row:hover,
.home-experience .article-row:hover {
    transform: translateY(-3px);
    border-color: rgba(185, 255, 217, 0.38);
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.09), transparent 42%),
        rgba(9, 16, 16, 0.76);
}

.home-experience .service-card:hover::before,
.home-experience .article-card:hover::before,
.home-experience .case-card:hover::before,
.home-experience .case-row:hover::before,
.home-experience .article-row:hover::before {
    opacity: 0.58;
}

.home-experience .service-card p:not(.card-kicker),
.home-experience .article-card p,
.home-experience .case-row p,
.home-experience .case-card p,
.home-experience .article-row p {
    color: var(--home-muted);
}

.home-experience .tag-list li,
.home-experience .metric-list li,
.home-experience .signal-list li {
    color: rgba(235, 248, 243, 0.82);
    border-color: rgba(213, 255, 242, 0.18);
    background: rgba(255, 255, 255, 0.055);
}

.home-experience .metric-list li {
    color: #b9ffd9;
}

.section--blueprint,
.section--manifesto,
.section--lab,
.section--notes {
    width: 100%;
    padding-inline: max(1.5rem, calc((100% - 1160px) / 2));
}

.section--blueprint {
    padding-block: 5.5rem;
    border-block: 1px solid rgba(213, 255, 242, 0.14);
    background:
        linear-gradient(90deg, rgba(4, 8, 8, 0.14), rgba(10, 16, 16, 0.7), rgba(4, 8, 8, 0.14));
}

.blueprint-panels {
    display: grid;
    grid-template-columns: 1.15fr 0.92fr 0.92fr;
    gap: 1px;
    max-width: 1160px;
    margin: 2rem auto 0;
    background: rgba(213, 255, 242, 0.14);
}

.blueprint-card {
    min-height: 24rem;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 1rem;
    padding: 1.25rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
        rgba(4, 8, 8, 0.62);
}

.blueprint-card h3 {
    max-width: 18rem;
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.08;
}

.mini-diagram {
    position: relative;
    min-height: 11rem;
    align-self: end;
    overflow: hidden;
    border: 1px solid rgba(213, 255, 242, 0.12);
    background:
        linear-gradient(90deg, rgba(145, 247, 214, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(145, 247, 214, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
}

.mini-diagram--network::before,
.mini-diagram--network::after,
.mini-diagram--flow::before,
.mini-diagram--racks::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

.mini-diagram--network::before {
    inset: 18% 12%;
    background:
        linear-gradient(24deg, transparent 0 48%, rgba(145, 247, 214, 0.58) 48% 49%, transparent 49% 100%),
        linear-gradient(154deg, transparent 0 48%, rgba(145, 247, 214, 0.38) 48% 49%, transparent 49% 100%),
        linear-gradient(90deg, transparent 0 48%, rgba(255, 189, 74, 0.46) 48% 49%, transparent 49% 100%);
}

.mini-diagram--network span {
    position: absolute;
    width: 0.72rem;
    height: 0.72rem;
    border: 1px solid #91f7d6;
    background: #07100d;
}

.mini-diagram--network span:nth-child(1) {
    left: 14%;
    top: 26%;
}

.mini-diagram--network span:nth-child(2) {
    left: 14%;
    top: 66%;
}

.mini-diagram--network span:nth-child(3) {
    left: 42%;
    top: 16%;
}

.mini-diagram--network span:nth-child(4) {
    left: 42%;
    top: 46%;
}

.mini-diagram--network span:nth-child(5) {
    left: 42%;
    top: 76%;
}

.mini-diagram--network span:nth-child(6) {
    left: 72%;
    top: 32%;
}

.mini-diagram--network span:nth-child(7) {
    left: 72%;
    top: 62%;
    background: #ffbd4a;
    border-color: #f7fffb;
}

.mini-diagram--racks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
}

.mini-diagram--racks::before {
    left: 8%;
    right: 8%;
    top: 52%;
    height: 1px;
    background: rgba(255, 189, 74, 0.62);
}

.mini-diagram--racks span {
    position: relative;
    border: 1px solid rgba(255, 189, 74, 0.64);
    background:
        repeating-linear-gradient(180deg, rgba(247, 255, 251, 0.22) 0 1px, transparent 1px 14px),
        rgba(4, 8, 8, 0.58);
}

.mini-diagram--flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    align-items: center;
    padding: 1rem;
}

.mini-diagram--flow::before {
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: rgba(145, 247, 214, 0.54);
}

.mini-diagram--flow span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 1px solid rgba(213, 255, 242, 0.28);
    background: rgba(4, 8, 8, 0.78);
    color: rgba(247, 255, 251, 0.72);
    font-size: 0.76rem;
    font-weight: 760;
    text-transform: uppercase;
}

.section--manifesto {
    padding-block: 3.5rem 4rem;
    border-block: 1px solid rgba(213, 255, 242, 0.14);
    background: linear-gradient(90deg, rgba(255, 189, 74, 0.09), rgba(6, 12, 12, 0.38), rgba(91, 141, 255, 0.08));
}

.manifesto-line {
    max-width: 1050px;
    margin: 0;
    padding: 20px;
    color: #f7fffb;
    font-size: 3.35rem;
    line-height: 1;
}

.section--atlas {
    padding-block: 7rem 8rem;
}

.service-grid--signal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(213, 255, 242, 0.18);
}

.home-experience .service-card--signal {
    display: grid;
    align-content: space-between;
    min-height: 24rem;
    border-width: 0 1px 1px 0;
    border-radius: 0;
    padding: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 34%),
        rgba(4, 8, 8, 0.42);
    box-shadow: none;
}

.home-experience .service-card--signal:nth-child(even) {
    transform: translateY(3rem);
}

.home-experience .service-card--signal:hover {
    transform: translateY(calc(3rem - 4px));
}

.home-experience .service-card--signal:nth-child(odd):hover {
    transform: translateY(-4px);
}

.section--lab {
    padding-block: 7rem;
    border-block: 1px solid rgba(213, 255, 242, 0.14);
    background:
        linear-gradient(90deg, rgba(4, 8, 8, 0.12), rgba(8, 13, 13, 0.62), rgba(4, 8, 8, 0.12)),
        linear-gradient(180deg, rgba(255, 189, 74, 0.06), transparent 55%);
}

.capability-tool--immersive {
    grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
}

.home-experience .capability-tool--immersive .segmented__button {
    background: rgba(4, 8, 8, 0.48);
    border-color: rgba(213, 255, 242, 0.16);
}

.home-experience .capability-tool--immersive .segmented__button.is-active {
    background: #91f7d6;
    border-color: #91f7d6;
    color: #06110d;
}

.home-experience .capability-tool--immersive .capability-panels {
    border-color: rgba(213, 255, 242, 0.16);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(145, 247, 214, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(145, 247, 214, 0.06) 1px, transparent 1px),
        rgba(4, 8, 8, 0.46);
    background-size: 52px 52px;
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.section--impact {
    align-items: start;
    padding-block: 8rem;
}

.stack-list--impact {
    gap: 0;
    padding: 20px;
    border-top: 1px solid rgba(213, 255, 242, 0.18);
}

.home-experience .stack-list--impact .case-row {
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 1.4rem 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(4, 8, 8, 0.2), transparent);
    box-shadow: none;
    backdrop-filter: none;
}

.home-experience .stack-list--impact .case-row:hover {
    transform: translateX(0.35rem);
}

.section--notes {
    padding-block: 7rem;
    background: linear-gradient(180deg, rgba(4, 8, 8, 0.18), rgba(8, 13, 13, 0.58));
}

.article-grid--notes {
    max-width: 1160px;
    margin: 0 auto;
}

.home-experience .article-grid--notes .article-card {
    min-height: 16rem;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(145, 247, 214, 0.08), transparent 42%),
        rgba(4, 8, 8, 0.44);
}

.section,
.page-hero,
.article-layout {
    width: min(1160px, calc(100% - 3rem));
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section--dark,
.section--muted {
    width: 100%;
    padding-inline: max(1.5rem, calc((100% - 1160px) / 2));
}

.section--dark {
    background: var(--text);
    color: var(--bg);
}

.section--dark .eyebrow,
.section--dark p,
.section--dark li {
    color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.home-experience .section--dark .eyebrow,
.home-experience .section--dark p,
.home-experience .section--dark li {
    color: var(--home-muted);
}

.section--muted {
    background: var(--bg-muted);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 2rem;
}

.section-heading--wide {
    max-width: 900px;
    padding: 20px;
}

.section-heading h2,
.contact-aside h2 {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0;
}

.eyebrow,
.card-kicker {
    margin: 0 0 0.85rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section--manifesto .eyebrow {
    padding-left: 20px;
}

.home-experience .eyebrow,
.home-experience .card-kicker,
.home-experience .text-link,
.home-experience .article-card span {
    color: #9af4d4;
}

.service-grid,
.article-grid,
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

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

.service-card,
.article-card,
.case-card,
.case-row,
.article-row,
.form-shell,
.contact-aside {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 40%, transparent);
}

.service-card,
.article-card,
.case-card {
    min-height: 19rem;
    padding: 1.25rem;
}

.service-card h3,
.article-card h3,
.case-row h3,
.case-card h2,
.article-row h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.service-card p:not(.card-kicker),
.article-card p,
.case-row p,
.case-card p,
.article-row p,
.service-detail p,
.contact-aside li {
    color: var(--text-muted);
}

.tag-list,
.metric-list,
.signal-list {
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 1.2rem 0 0;
}

.tag-list li,
.metric-list li,
.signal-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
}

.metric-list li {
    color: var(--accent-strong);
    border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
}

.capability-tool {
    display: grid;
    grid-template-columns: 18rem 1fr;
    gap: 1rem;
    max-width: 1160px;
    margin: 2rem auto 0;
}

.capability-tool--compact {
    margin-inline: 0;
}

.segmented {
    align-self: start;
    flex-direction: column;
    gap: 0.5rem;
}

.segmented__button {
    width: 100%;
    justify-content: flex-start;
    padding: 0 1rem;
    color: inherit;
    background: color-mix(in srgb, var(--bg) 10%, transparent);
    border-color: color-mix(in srgb, var(--bg) 24%, transparent);
}

.segmented__button.is-active {
    background: var(--accent);
    color: #06110d;
    border-color: var(--accent);
}

.capability-panels {
    min-height: 22rem;
    border: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 11%, transparent) 1px, transparent 1px),
        linear-gradient(color-mix(in srgb, var(--bg) 11%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--bg) 6%, transparent);
    background-size: 42px 42px;
}

.capability-panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 2rem;
    min-height: 22rem;
    padding: 2rem;
    align-items: end;
}

.capability-panel.is-active {
    display: grid;
}

.capability-panel h3 {
    margin: 0;
    max-width: 600px;
    font-size: 3.2rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.signal-list {
    align-self: end;
    flex-direction: column;
    align-items: stretch;
}

.signal-list li {
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--text) 20%, transparent);
    color: var(--bg);
    border-color: color-mix(in srgb, var(--bg) 28%, transparent);
}

.split-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

.stack-list,
.article-list,
.service-detail-list {
    display: grid;
    gap: 1rem;
}

.case-row,
.article-row {
    padding: 20px;
}

.article-card span {
    color: var(--accent-strong);
    font-weight: 760;
}

.text-link {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--accent-strong);
    font-weight: 760;
}

.page-hero {
    padding: 7rem 0 4rem;
}

.legal-hero {
    max-width: 900px;
}

.legal-meta {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
}

.legal-document {
    max-width: 900px;
    padding-top: 2rem;
}

.legal-document h2 {
    margin: 3rem 0 0.8rem;
    font-size: 1.45rem;
    line-height: 1.2;
}

.legal-document h3 {
    margin: 2rem 0 0.6rem;
    font-size: 1.1rem;
}

.legal-document p,
.legal-document li {
    max-width: 76ch;
    color: var(--text-muted);
}

.legal-document li+li {
    margin-top: 0.45rem;
}

.legal-details {
    display: grid;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 1.3rem;
    border: 1px solid var(--line);
    background: var(--bg-muted);
}

.legal-details div {
    display: grid;
    grid-template-columns: minmax(10rem, 0.35fr) 1fr;
    gap: 1rem;
}

.legal-details dt {
    color: var(--text);
    font-weight: 700;
}

.legal-details dd {
    margin: 0;
    color: var(--text-muted);
}

.page-hero h1,
.article-header h1 {
    max-width: 920px;
    font-size: 4rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.service-detail h2 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1;
}

.detail-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.detail-columns h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.detail-columns ul,
.contact-aside ul {
    margin: 0;
    padding-left: 1rem;
}

.article-layout {
    padding: 7rem 0;
}

.article-header {
    max-width: 920px;
    margin-bottom: 3rem;
}

.article-body {
    max-width: 760px;
    font-size: 1.08rem;
}

.article-body h2 {
    margin-top: 2.5rem;
    font-size: 1.6rem;
}

.article-body p {
    color: var(--text-muted);
}

.metric-list--large li {
    font-size: 1rem;
    padding: 0.55rem 0.8rem;
}

.contact-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
    align-items: start;
}

.contact-aside,
.form-shell {
    padding: 1.5rem;
}

.contact-aside {
    position: sticky;
    top: 6rem;
}

.contact-form,
.form-grid {
    display: grid;
    gap: 1rem;
}

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

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-weight: 760;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.7rem 0.8rem;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.button:focus-visible,
.theme-toggle:focus-visible,
.segmented__button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline-offset: 2px;
}

.field--checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.field--checkbox input {
    width: 1.1rem;
    min-height: 1.1rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error-message,
.contact-form ul {
    color: var(--red);
}

.contact-captcha-result {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--accent);
    background: color-mix(in srgb, var(--bg) 88%, var(--accent) 12%);
    color: var(--text-muted);
}

.contact-captcha-intro {
    max-width: 760px;
}

.contact-captcha-intro__signal {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1.5rem 0 2rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(239, 110, 61, 0.35);
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.contact-captcha-intro__signal-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(239, 110, 61, 0.12);
}

.contact-captcha-intro__note {
    margin-top: 1rem;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.contact-captcha-result strong {
    color: var(--text);
}

.contact-captcha-result--error {
    border-left-color: var(--red);
    background: color-mix(in srgb, var(--bg) 88%, var(--red) 12%);
}

.privacy-notice {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.privacy-notice p {
    margin: 0;
}

.privacy-notice p+p {
    margin-top: 0.45rem;
}

.privacy-notice strong {
    color: var(--text);
}

.thanks-hero {
    min-height: 620px;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 3rem;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
}

.site-footer p {
    max-width: 520px;
    margin-bottom: 0;
}

.site-footer nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .hero {
        min-height: min(700px, calc(100svh - 7rem));
        padding: 5rem 1.5rem 2rem;
    }

    .hero-inner--immersive {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
        gap: 1.25rem;
    }

    .metric-strip--immersive {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1,
    .article-header h1 {
        font-size: 3.4rem;
    }

    .hero--immersive h1 {
        font-size: 5rem;
    }

    .home-atlas {
        min-height: auto;
    }

    .home-atlas__map {
        min-height: 13rem;
    }

    .manifesto-line {
        font-size: 2.5rem;
    }

    .blueprint-panels {
        grid-template-columns: 1fr;
    }

    .blueprint-card {
        min-height: 19rem;
    }

    .metric-strip,
    .service-grid,
    .article-grid,
    .case-grid,
    .split-section,
    .service-detail,
    .capability-tool,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .article-grid,
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-experience .service-card--signal:nth-child(even),
    .home-experience .service-card--signal:hover,
    .home-experience .service-card--signal:nth-child(odd):hover {
        transform: none;
    }

    .segmented {
        flex-direction: row;
        overflow-x: auto;
    }

    .segmented__button {
        min-width: 9rem;
    }

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

    .contact-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 1rem 1.25rem;
    }

    .hero-inner--immersive {
        grid-template-columns: 1fr;
    }

    .metric-strip--immersive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-nav {
        grid-column: 1 / -1;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.35rem;
        border: 1px solid var(--line-strong);
        border-radius: 10px;
        background: var(--bg-elevated);
        box-shadow: 0 12px 30px rgba(12, 19, 24, 0.14);
        overflow: visible;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        display: flex;
        min-height: 3.15rem;
        align-items: center;
        padding: 0 0.85rem;
        border-bottom: 1px solid var(--line);
        color: var(--text);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1.25;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: var(--bg-muted);
        color: var(--accent-strong);
        outline: none;
    }

    .theme-toggle:not(.theme-toggle--menu) {
        display: none;
    }

    .site-nav .theme-toggle--menu {
        display: inline-flex;
        width: 100%;
        min-height: 3.15rem;
        justify-content: flex-start;
        margin-top: 0.35rem;
        padding: 0 0.85rem;
        border: 0;
        border-top: 1px solid var(--line-strong);
        border-radius: 0;
        background: transparent;
        color: var(--text);
        font-weight: 700;
    }

    .site-nav .theme-toggle--menu:hover,
    .site-nav .theme-toggle--menu:focus-visible {
        background: var(--bg-muted);
        color: var(--accent-strong);
        outline: none;
    }

    body:has(.home-experience) .site-nav {
        background: #ffffff;
        border-color: #8f9b97;
    }

    body:has(.home-experience) .site-nav a,
    body:has(.home-experience) .site-nav .theme-toggle--menu {
        color: #17201d;
    }

    body:has(.home-experience) .site-nav a:hover,
    body:has(.home-experience) .site-nav a:focus-visible,
    body:has(.home-experience) .site-nav .theme-toggle--menu:hover,
    body:has(.home-experience) .site-nav .theme-toggle--menu:focus-visible {
        background: #e5f2ed;
        color: #005c43;
    }

    .menu-toggle {
        display: inline-grid;
        border-color: var(--line-strong);
        color: var(--text);
    }
}

@media (max-width: 640px) {

    .site-header,
    .site-footer {
        padding-inline: 1rem;
    }

    .brand span:last-child,
    .theme-toggle span:last-child {
        display: none;
    }

    .brand-logo {
        width: 7.4rem;
    }

    .site-nav .theme-toggle--menu span:last-child {
        display: inline;
    }

    .hero h1,
    .page-hero h1,
    .article-header h1 {
        font-size: 2.85rem;
    }

    .hero--immersive h1 {
        font-size: 3.35rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero-copy {
        font-size: 1.05rem;
    }

    .hero-actions {
        margin: 1.5rem 0 2rem;
    }

    .home-blueprint {
        opacity: 0.68;
    }

    .home-blueprint__diagram {
        width: 72rem;
        height: 48rem;
    }

    .home-atlas,
    .home-atlas__map,
    .capability-tool--immersive .capability-panels,
    .home-experience .service-card--signal,
    .home-experience .article-grid--notes .article-card {
        border-radius: var(--radius);
    }

    .manifesto-line {
        font-size: 1.9rem;
    }

    .section--blueprint,
    .section--manifesto,
    .section--lab,
    .section--notes {
        padding-inline: 1rem;
    }

    .section--blueprint,
    .section--manifesto,
    .section--atlas,
    .section--lab,
    .section--impact,
    .section--notes {
        padding-block: 4rem;
    }

    .metric-strip--immersive {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .capability-panel h3 {
        font-size: 2.25rem;
    }

    .section,
    .page-hero,
    .article-layout {
        width: min(100% - 2rem, 1160px);
    }

    .section {
        padding-block: 4rem;
    }

    .section--dark,
    .section--muted {
        width: 100%;
    }

    .service-grid,
    .article-grid,
    .case-grid,
    .form-grid,
    .detail-columns,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .service-card,
    .article-card,
    .case-card {
        min-height: auto;
    }

    .metric-strip div,
    .capability-panel,
    .contact-aside,
    .form-shell {
        padding: 1rem;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

/* ============================================================
   Space Invaders arcade page · 80s cabinet style
   ============================================================ */
.arcade {
    --cab-red: #d1001a;
    --cab-red-deep: #8a0011;
    --cab-gold: #f4c542;
    --cab-gold-dark: #a87a18;
    --cab-blue: #0a2b80;
    --cab-blue-deep: #050e3a;
    --cab-cream: #fff7d6;
    --cab-chrome: linear-gradient(180deg, #f8f8f8 0%, #b8b8b8 38%, #4a4a4a 52%, #c8c8c8 78%, #fafafa 100%);
    --cab-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    position: relative;
    max-width: 1100px;
    margin: 2.5rem auto 4rem;
    padding: 0;
    border-radius: 22px;
    background: var(--cab-blue-deep);
    color: var(--cab-cream);
    box-shadow: var(--cab-shadow);
    overflow: hidden;
    isolation: isolate;
}

body:has(.arcade) {
    background:
        radial-gradient(circle at 12% 20%, rgba(38, 69, 168, 0.42) 0 1px, transparent 2px),
        radial-gradient(circle at 88% 72%, rgba(244, 197, 66, 0.34) 0 1px, transparent 2px),
        linear-gradient(180deg, #090e3b 0%, #020622 100%);
}

.arcade__page-art {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.arcade__page-alien,
.arcade__page-ufo {
    position: absolute;
    display: block;
    width: 1.8rem;
    height: 1.1rem;
    color: rgba(127, 255, 212, 0.42);
    box-shadow:
        0 -0.3rem 0 currentColor,
        -0.45rem 0.2rem 0 currentColor,
        0.45rem 0.2rem 0 currentColor,
        -0.8rem 0.65rem 0 currentColor,
        0.8rem 0.65rem 0 currentColor;
    transform: scale(1.5);
}

.arcade__page-alien--left {
    left: 8%;
    top: 24%;
}

.arcade__page-alien--right {
    right: 8%;
    top: 66%;
    color: rgba(255, 102, 140, 0.4);
}

.arcade__page-ufo {
    left: 14%;
    bottom: 16%;
    width: 3rem;
    height: 0.4rem;
    color: rgba(244, 197, 66, 0.45);
    box-shadow: 0 -0.4rem 0 currentColor, -0.85rem 0.3rem 0 currentColor, 0.85rem 0.3rem 0 currentColor;
}

.arcade__page-star {
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    background: var(--cab-gold);
    box-shadow: 0 0 12px rgba(244, 197, 66, 0.8);
    transform: rotate(45deg);
}

.arcade__page-star--one {
    left: 20%;
    top: 12%;
}

.arcade__page-star--two {
    right: 18%;
    bottom: 20%;
}

/* Outer chrome trim: gold + red concentric rings around the cabinet */
.arcade::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    padding: 6px;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0.4) 100%),
        var(--cab-chrome);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
}

.arcade::after {
    content: "";
    position: absolute;
    inset: 14px;
    pointer-events: none;
    border-radius: 16px;
    border: 3px solid var(--cab-red);
    box-shadow:
        inset 0 0 0 1px var(--cab-red-deep),
        inset 0 0 0 4px var(--cab-gold),
        inset 0 0 0 6px var(--cab-red-deep);
    z-index: 0;
}

/* ---------- Top marquee ---------- */
.arcade__marquee {
    position: relative;
    z-index: 1;
    padding: 2.4rem 1.5rem 1.6rem;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255, 199, 0, 0.18), transparent 60%),
        linear-gradient(180deg, var(--cab-red) 0%, var(--cab-red-deep) 100%);
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid var(--cab-gold);
}

.arcade__marquee::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 5px);
    mix-blend-mode: multiply;
    opacity: 0.45;
}

.arcade__marquee--bottom {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(180deg, var(--cab-blue-deep) 0%, var(--cab-blue) 100%);
    border-bottom: none;
    border-top: 4px solid var(--cab-gold);
    color: rgba(255, 247, 214, 0.72);
}

.arcade__credits {
    margin: 0;
    font-family: "Courier New", ui-monospace, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(255, 247, 214, 0.55);
}

.arcade__art-strip {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 34rem);
    height: 1.65rem;
    margin: 0 auto 0.35rem;
}

.arcade__art-alien,
.arcade__art-ship {
    display: block;
    position: relative;
    width: 1.5rem;
    height: 1rem;
    image-rendering: pixelated;
    box-shadow:
        0 -0.25rem 0 currentColor,
        -0.4rem 0.15rem 0 currentColor,
        0.4rem 0.15rem 0 currentColor,
        -0.7rem 0.5rem 0 currentColor,
        0.7rem 0.5rem 0 currentColor,
        -0.4rem 0.75rem 0 currentColor,
        0.4rem 0.75rem 0 currentColor;
}

.arcade__art-alien--cyan {
    color: #7fffd4;
}

.arcade__art-alien--pink {
    color: #ff668c;
}

.arcade__art-ship {
    color: #fff6a8;
    width: 2.4rem;
    height: 0.35rem;
    box-shadow: 0 -0.35rem 0 currentColor, -0.8rem 0.3rem 0 currentColor, 0.8rem 0.3rem 0 currentColor;
}

.arcade__art-laser {
    width: 1px;
    height: 1.4rem;
    background: #ff536d;
    box-shadow: 0 0 7px #ff536d;
    transform: rotate(24deg);
}

.arcade__art-laser--right {
    transform: rotate(-24deg);
}

.arcade__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.arcade__stars span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cab-gold);
    box-shadow: 0 0 10px rgba(255, 199, 0, 0.6);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.arcade__stars--top span:nth-child(1) {
    left: 6%;
    top: 18%;
    transform: scale(0.6);
}

.arcade__stars--top span:nth-child(2) {
    left: 18%;
    top: 60%;
    transform: scale(0.9);
}

.arcade__stars--top span:nth-child(3) {
    left: 30%;
    top: 28%;
    transform: scale(0.5);
}

.arcade__stars--top span:nth-child(4) {
    left: 70%;
    top: 22%;
    transform: scale(0.7);
}

.arcade__stars--top span:nth-child(5) {
    left: 82%;
    top: 56%;
    transform: scale(0.55);
}

.arcade__stars--top span:nth-child(6) {
    left: 92%;
    top: 30%;
    transform: scale(0.8);
}

.arcade__stars--top span:nth-child(7) {
    left: 50%;
    top: 6%;
    transform: scale(0.65);
}

.arcade__stars--bot span:nth-child(1) {
    left: 10%;
    top: 30%;
    transform: scale(0.5);
}

.arcade__stars--bot span:nth-child(2) {
    left: 25%;
    top: 60%;
    transform: scale(0.7);
}

.arcade__stars--bot span:nth-child(3) {
    left: 40%;
    top: 30%;
    transform: scale(0.5);
}

.arcade__stars--bot span:nth-child(4) {
    left: 60%;
    top: 60%;
    transform: scale(0.6);
}

.arcade__stars--bot span:nth-child(5) {
    left: 75%;
    top: 30%;
    transform: scale(0.75);
}

.arcade__stars--bot span:nth-child(6) {
    left: 88%;
    top: 60%;
    transform: scale(0.5);
}

.arcade__stars--bot span:nth-child(7) {
    left: 50%;
    top: 60%;
    transform: scale(0.4);
}

.arcade__title,
.arcade__subtitle {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 0.95;
    font-family: "Impact", "Oswald", "Arial Black", system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.arcade__title {
    font-size: clamp(3.4rem, 9vw, 5.6rem);
    transform: skewX(-8deg) translateX(-0.6em);
    margin-bottom: 0.2rem;
}

.arcade__subtitle {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    color: var(--cab-gold);
    transform: skewX(-8deg) translateX(0.6em);
    text-shadow: 0 4px 0 var(--cab-red-deep), 0 8px 0 rgba(0, 0, 0, 0.45);
    margin-bottom: 0.6rem;
}

.arcade__title-back,
.arcade__subtitle-back {
    position: absolute;
    inset: 0;
    color: var(--cab-gold);
    -webkit-text-stroke: 1px var(--cab-red-deep);
    transform: translate(6px, 4px);
    z-index: -1;
}

.arcade__title-front,
.arcade__subtitle-front {
    position: relative;
    display: inline-block;
    color: var(--cab-cream);
    -webkit-text-stroke: 1px #000;
    text-shadow:
        0 2px 0 var(--cab-red-deep),
        0 4px 0 rgba(0, 0, 0, 0.55);
}

.arcade__subtitle-front {
    color: var(--cab-gold);
    text-shadow:
        0 3px 0 var(--cab-red-deep),
        0 6px 0 rgba(0, 0, 0, 0.5);
}

.arcade__tagline {
    position: relative;
    z-index: 1;
    margin: 0.5rem auto 0;
    max-width: 32rem;
    color: rgba(255, 247, 214, 0.86);
    font-family: "Courier New", ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

/* ---------- Bezel (chrome ring around the CRT) ---------- */
.arcade__bezel {
    position: relative;
    z-index: 1;
    margin: 1.5rem 1.5rem 0.5rem;
    padding: 18px;
    background: var(--cab-chrome);
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.4),
        inset 0 0 0 4px rgba(255, 255, 255, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.5);
}

.arcade__screw {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff 0 18%, #c0c0c0 22% 65%, #555 70% 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.arcade__screw::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 42%, #1a1a1a 42% 50%, transparent 50% 58%, #1a1a1a 58% 66%, transparent 66%);
    border-radius: 50%;
}

.arcade__screw--tl {
    top: 6px;
    left: 6px;
}

.arcade__screw--tr {
    top: 6px;
    right: 6px;
}

.arcade__screw--bl {
    bottom: 6px;
    left: 6px;
}

.arcade__screw--br {
    bottom: 6px;
    right: 6px;
}

/* ---------- The CRT screen itself ---------- */
.arcade__screen {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #05060a;
    box-shadow:
        inset 0 0 0 4px #000,
        inset 0 0 0 6px #1a1a1a,
        inset 0 0 60px rgba(0, 255, 200, 0.06);
}

/* The score belongs to the CRT glass, like a real arcade overlay. */
.arcade__screen .arcade__panel {
    position: absolute;
    inset: 0.55rem 0.9rem auto;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    overflow: visible;
}

.arcade__screen .arcade__panel>div {
    padding: 0;
    border: 0;
    text-align: center;
}

.arcade__screen .arcade__panel dt {
    margin: 0 0 0.28rem;
    color: #f4f1d0;
    font-family: "Press Start 2P", "Courier New", ui-monospace, monospace;
    font-size: clamp(0.42rem, 1vw, 0.58rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow: 1px 0 #000, 0 1px #000;
}

.arcade__screen .arcade__panel dd {
    margin: 0;
    color: #7fffd4;
    font-family: "Press Start 2P", "Courier New", ui-monospace, monospace;
    font-size: clamp(0.62rem, 1.8vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-shadow: 1px 0 #000, 0 1px #000, 0 0 5px rgba(127, 255, 212, 0.7);
}

/* Subtle CRT scanlines on top of the canvas */
.arcade__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
    mix-blend-mode: multiply;
    opacity: 0.6;
    z-index: 3;
}

/* CRT vignette + color fringe */
.arcade__screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(90deg, rgba(255, 0, 60, 0.05), transparent 6%, transparent 94%, rgba(0, 200, 255, 0.05));
    z-index: 2;
}

.arcade__canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    image-rendering: pixelated;
    touch-action: none;
}

.arcade__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(60% 60% at 50% 50%, rgba(5, 8, 16, 0.85), rgba(5, 8, 16, 0.96));
    color: var(--cab-cream);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out;
    padding: 1.5rem;
    z-index: 4;
}

.arcade__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.arcade__overlay-inner {
    max-width: 520px;
}

.arcade__overlay h1 {
    margin: 0 0 0.6rem;
    font-family: "Impact", "Oswald", "Arial Black", system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cab-gold);
    text-shadow: 0 0 12px rgba(255, 199, 0, 0.45), 0 4px 0 var(--cab-red-deep);
}

.arcade__overlay p {
    margin: 0;
    color: rgba(255, 247, 214, 0.86);
    font-size: 0.95rem;
    line-height: 1.5;
}

.arcade__overlay kbd {
    display: inline-block;
    padding: 0 0.4em;
    border-radius: 4px;
    background: rgba(255, 199, 0, 0.18);
    border: 1px solid rgba(255, 199, 0, 0.5);
    color: var(--cab-gold);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.85em;
}

.arcade__overlay strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--cab-red);
    letter-spacing: 0.12em;
    font-family: "Impact", "Oswald", "Arial Black", system-ui, sans-serif;
}

/* ---------- Control deck (buttons) ---------- */
.arcade__controls {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding: 1rem 1.5rem 0.4rem;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%),
        var(--cab-blue-deep);
    border-top: 2px solid rgba(255, 199, 0, 0.4);
}

.arcade__touch-controls {
    display: none;
}

.arcade__quick-menu {
    display: contents;
}

.arcade__quick-toggle {
    display: none;
}

.arcade__btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 50%),
        linear-gradient(180deg, #2c2c2c 0%, #050505 100%);
    color: var(--cab-cream);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.08s ease-out, filter 0.15s;
}

.arcade__btn:hover {
    filter: brightness(1.18);
}

.arcade__btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 0, 0, 0.4);
}

.arcade__btn--primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 50%),
        linear-gradient(180deg, #ffd24c 0%, #d1001a 100%);
    color: #2a0008;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 0 rgba(0, 0, 0, 0.45),
        0 0 24px rgba(255, 199, 0, 0.25);
}

/* ---------- Score / stats panel (cabinet strip) ---------- */
.arcade__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0.4rem 1.5rem 1.5rem;
    padding: 0;
    border: 3px solid var(--cab-gold);
    border-radius: 10px;
    background:
        linear-gradient(180deg, #000 0%, #1a1a1a 100%);
    color: var(--cab-cream);
    box-shadow:
        inset 0 0 0 2px #000,
        inset 0 0 0 4px var(--cab-red),
        inset 0 0 18px rgba(255, 0, 0, 0.18);
    font-family: "Press Start 2P", "Courier New", ui-monospace, monospace;
    overflow: hidden;
}

.arcade__panel>div {
    padding: 0.7rem 0.4rem 0.8rem;
    text-align: center;
    border-right: 1px solid rgba(255, 199, 0, 0.4);
}

.arcade__panel>div:last-child {
    border-right: none;
}

.arcade__panel dt {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--cab-gold);
}

.arcade__panel dd {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    color: #ff3b3b;
    text-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
    font-variant-numeric: tabular-nums;
}

/* ---------- How to play / instructions card ---------- */
.arcade__howto {
    position: relative;
    z-index: 1;
    margin: 0 1.5rem 1.5rem;
    border: 2px solid var(--cab-gold);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 199, 0, 0.06), transparent 60%),
        var(--cab-blue-deep);
    color: rgba(255, 247, 214, 0.92);
    box-shadow:
        inset 0 0 0 1px #000,
        inset 0 0 0 4px rgba(255, 199, 0, 0.18);
}

.arcade__howto summary {
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-family: "Press Start 2P", "Courier New", ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cab-gold);
    list-style: none;
}

.arcade__howto summary::marker,
.arcade__howto summary::-webkit-details-marker {
    display: none;
}

.arcade__howto-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1.2rem;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

.arcade__howto-grid kbd {
    display: inline-block;
    padding: 0 0.4em;
    border-radius: 4px;
    background: rgba(255, 199, 0, 0.16);
    border: 1px solid rgba(255, 199, 0, 0.4);
    color: var(--cab-gold);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.85em;
}

/* Fullscreen: cabinet goes full screen, but the CRT keeps its aspect ratio
   and is capped so the game world never resizes. */
.arcade:fullscreen,
.arcade:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    gap: 1.2rem;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(209, 0, 26, 0.12), transparent 60%),
        var(--cab-blue-deep);
}

.arcade:fullscreen .arcade__marquee,
.arcade:fullscreen .arcade__marquee--bottom,
.arcade:fullscreen .arcade__bezel,
.arcade:fullscreen .arcade__panel,
.arcade:fullscreen .arcade__controls,
.arcade:fullscreen .arcade__howto {
    width: min(100%, 64rem);
}

.arcade:fullscreen .arcade__bezel,
.arcade:-webkit-full-screen .arcade__bezel {
    margin: 0;
    max-height: calc(100vh - 8rem);
}

.arcade:fullscreen .arcade__screen,
.arcade:-webkit-full-screen .arcade__screen {
    aspect-ratio: 4 / 3;
    max-height: calc(100vh - 10rem);
    height: auto;
}

.arcade:fullscreen .arcade__marquee,
.arcade:fullscreen .arcade__marquee--bottom {
    padding-block: 1.4rem;
}

@media (max-width: 760px) and (max-height: 520px) {

    .arcade:fullscreen,
    .arcade:-webkit-full-screen {
        box-sizing: border-box;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        gap: 0;
        overflow: hidden;
        background: #05060a;
    }

    .arcade:fullscreen::before,
    .arcade:fullscreen::after,
    .arcade:-webkit-full-screen::before,
    .arcade:-webkit-full-screen::after,
    .arcade:fullscreen .arcade__page-art,
    .arcade:-webkit-full-screen .arcade__page-art,
    .arcade:fullscreen .arcade__marquee,
    .arcade:fullscreen .arcade__marquee--bottom,
    .arcade:fullscreen .arcade__howto,
    .arcade:fullscreen .arcade__controls,
    .arcade:fullscreen .arcade__touch-controls,
    .arcade:fullscreen .arcade__screw,
    .arcade:fullscreen .arcade__screen::before,
    .arcade:fullscreen .arcade__screen::after,
    .arcade:-webkit-full-screen .arcade__marquee,
    .arcade:-webkit-full-screen .arcade__marquee--bottom,
    .arcade:-webkit-full-screen .arcade__howto,
    .arcade:-webkit-full-screen .arcade__controls,
    .arcade:-webkit-full-screen .arcade__touch-controls,
    .arcade:-webkit-full-screen .arcade__screw,
    .arcade:-webkit-full-screen .arcade__screen::before,
    .arcade:-webkit-full-screen .arcade__screen::after {
        display: none;
    }

    .arcade:fullscreen .arcade__bezel,
    .arcade:-webkit-full-screen .arcade__bezel {
        width: 100vw;
        height: 100vh;
        margin: 0;
        max-height: none;
        padding: 0;
        border-radius: 0;
        background: #05060a;
        box-shadow: none;
    }

    .arcade:fullscreen .arcade__screen,
    .arcade:-webkit-full-screen .arcade__screen {
        width: 100vw;
        height: 100vh;
        max-height: none;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .arcade:fullscreen .arcade__quick-menu,
    .arcade:-webkit-full-screen .arcade__quick-menu {
        display: block;
    }

    .arcade:fullscreen .arcade__overlay,
    .arcade:-webkit-full-screen .arcade__overlay {
        padding: 1rem;
    }

    .arcade:fullscreen .arcade__overlay h1,
    .arcade:-webkit-full-screen .arcade__overlay h1 {
        max-width: 90vw;
        margin-bottom: 0;
        font-size: clamp(0.9rem, 3vw, 1.25rem);
        letter-spacing: 0.06em;
        line-height: 1.2;
    }

    .arcade:fullscreen .arcade__overlay h1 span,
    .arcade:-webkit-full-screen .arcade__overlay h1 span {
        display: block;
        margin-top: 0.4rem;
        font-family: "Courier New", ui-monospace, monospace;
        font-size: 0.82em;
        letter-spacing: 0;
        line-height: 1.35;
        text-transform: none;
    }

    .arcade:fullscreen .arcade__overlay p,
    .arcade:-webkit-full-screen .arcade__overlay p {
        display: none;
    }
}

@media (max-width: 900px) and (orientation: landscape) {

    .arcade:fullscreen,
    .arcade:-webkit-full-screen {
        box-sizing: border-box;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        gap: 0;
        overflow: hidden;
        background: #05060a;
    }

    .arcade:fullscreen .arcade__page-art,
    .arcade:-webkit-full-screen .arcade__page-art,
    .arcade:fullscreen .arcade__marquee,
    .arcade:-webkit-full-screen .arcade__marquee,
    .arcade:fullscreen .arcade__howto,
    .arcade:-webkit-full-screen .arcade__howto,
    .arcade:fullscreen .arcade__controls,
    .arcade:-webkit-full-screen .arcade__controls,
    .arcade:fullscreen .arcade__touch-controls,
    .arcade:-webkit-full-screen .arcade__touch-controls,
    .arcade:fullscreen .arcade__screw,
    .arcade:-webkit-full-screen .arcade__screw,
    .arcade:fullscreen .arcade__screen::before,
    .arcade:-webkit-full-screen .arcade__screen::before,
    .arcade:fullscreen .arcade__screen::after,
    .arcade:-webkit-full-screen .arcade__screen::after {
        display: none;
    }

    .arcade:fullscreen .arcade__bezel,
    .arcade:-webkit-full-screen .arcade__bezel,
    .arcade:fullscreen .arcade__screen,
    .arcade:-webkit-full-screen .arcade__screen {
        width: 100vw;
        height: 100vh;
        max-height: none;
        margin: 0;
        padding: 0;
        aspect-ratio: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .arcade:fullscreen .arcade__quick-menu,
    .arcade:-webkit-full-screen .arcade__quick-menu {
        display: none;
    }
}

@media (max-width: 900px) and (orientation: portrait) {

    .arcade:fullscreen,
    .arcade:-webkit-full-screen {
        box-sizing: border-box;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        overflow: hidden;
        background: #05060a;
    }

    .arcade:fullscreen>*,
    .arcade:-webkit-full-screen>* {
        display: none;
    }

    .arcade:fullscreen::before,
    .arcade:-webkit-full-screen::before {
        content: "ROTATE YOUR PHONE\A\A LANDSCAPE MODE REQUIRED";
        position: absolute;
        inset: 0;
        z-index: 50;
        display: grid;
        place-content: center;
        padding: 2rem;
        color: #fff7d6;
        background:
            linear-gradient(90deg, transparent 49%, rgba(255, 199, 0, 0.2) 50%, transparent 51%),
            #05060a;
        font: 700 clamp(0.9rem, 3vw, 1.4rem)/1.6 "Press Start 2P", "Courier New", monospace;
        letter-spacing: 0.12em;
        text-align: center;
        white-space: pre;
    }

    .arcade:fullscreen::after,
    .arcade:-webkit-full-screen::after {
        content: "ROTATE";
        position: absolute;
        inset: 34% 0 auto;
        z-index: 51;
        color: #ffca28;
        font: 700 1rem/1 Impact, sans-serif;
        letter-spacing: 0.18em;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .arcade {
        width: 100%;
        margin: 0;
        border-radius: 16px;
    }

    .arcade::after {
        inset: 8px;
    }

    .arcade__bezel {
        margin: 0.7rem 0.55rem 0.4rem;
        padding: 8px;
        border-radius: 12px;
    }

    .arcade__marquee {
        padding: 1.4rem 0.7rem 1rem;
    }

    .arcade__title {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
    }

    .arcade__subtitle {
        font-size: clamp(2.15rem, 11vw, 3.4rem);
    }

    .arcade__tagline {
        max-width: 19rem;
        font-size: 0.62rem;
        letter-spacing: 0.16em;
        line-height: 1.5;
    }

    .arcade__screen {
        border-radius: 10px;
    }

    .arcade__panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        inset-inline: 0.45rem;
    }

    .arcade__screen .arcade__panel dt {
        margin-bottom: 0.18rem;
        font-size: 0.34rem;
        letter-spacing: 0.04em;
    }

    .arcade__screen .arcade__panel dd {
        font-size: 0.48rem;
        letter-spacing: 0.04em;
    }

    .arcade__panel>div {
        border-right: 1px solid rgba(255, 199, 0, 0.4);
        border-bottom: none;
    }

    .arcade__panel>div:last-child {
        border-right: none;
    }

    .arcade__controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0.8rem 0.7rem 0.45rem;
    }

    .arcade__btn {
        min-height: 2.8rem;
        padding: 0.55rem 0.35rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .arcade__touch-controls {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0.45rem 0.7rem 0.85rem;
        background: var(--cab-blue-deep);
    }

    .arcade__touch-btn {
        min-height: 3.5rem;
        border: 2px solid rgba(255, 199, 0, 0.65);
        border-radius: 10px;
        background: linear-gradient(180deg, #173d9d 0%, #08194f 100%);
        color: var(--cab-cream);
        font: 700 0.72rem/1 "Press Start 2P", "Courier New", ui-monospace, monospace;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .arcade__touch-btn:active {
        background: linear-gradient(180deg, #d1001a 0%, #7d0010 100%);
        transform: translateY(2px);
    }

    .arcade__touch-btn--fire {
        border-color: #ff668c;
        background: linear-gradient(180deg, #d1001a 0%, #7d0010 100%);
    }

    .arcade__howto {
        margin: 0 0.7rem 1rem;
    }

    .arcade__howto summary {
        padding: 0.75rem 0.8rem;
        font-size: 0.62rem;
    }

    .arcade__howto-grid {
        gap: 0.35rem 0.7rem;
        padding: 0 0.8rem 0.8rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 760px) and (max-height: 520px) {
    body:has(.arcade) {
        overflow-x: hidden;
    }

    body:has(.arcade) .site-header {
        padding-block: 0.45rem;
    }

    body:has(.arcade) .brand-mark,
    body:has(.arcade) .menu-toggle,
    body:has(.arcade) .theme-toggle {
        min-height: 2.25rem;
        height: 2.25rem;
    }

    body:has(.arcade) .brand-mark,
    body:has(.arcade) .menu-toggle {
        width: 2.25rem;
    }

    .arcade {
        margin: 0 auto;
        border-radius: 0;
    }

    .arcade__page-art {
        display: none;
    }

    .arcade__marquee:not(.arcade__marquee--bottom),
    .arcade__marquee--bottom,
    .arcade__howto {
        display: none;
    }

    .arcade__bezel {
        width: calc(100% - 0.8rem);
        margin: 0.15rem auto 0;
        padding: 6px;
    }

    .arcade__screen {
        width: 100%;
        height: min(calc(100svh - 4.5rem), 18rem);
        aspect-ratio: auto;
    }

    .arcade__controls {
        display: none;
    }

    .arcade__quick-menu {
        position: fixed;
        right: auto;
        bottom: 0.75rem;
        left: 0.75rem;
        z-index: 30;
        display: block;
    }

    .arcade__quick-toggle {
        display: grid;
        width: 2.15rem;
        min-height: 2.15rem;
        place-items: center;
        padding: 0.35rem;
        border: 1px solid rgba(255, 199, 0, 0.7);
        border-radius: 999px;
        background: linear-gradient(180deg, #173d9d 0%, #08194f 100%);
        color: var(--cab-cream);
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    }

    .arcade__quick-toggle span {
        display: block;
        font-size: 1rem;
        line-height: 1;
    }

    .arcade.is-controls-open .arcade__controls {
        position: absolute;
        bottom: calc(100% + 0.5rem);
        left: 0;
        display: grid;
        width: min(14rem, calc(100vw - 1.5rem));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.5rem;
        border: 1px solid rgba(255, 199, 0, 0.55);
        border-radius: 10px;
        background: rgba(5, 14, 58, 0.96);
    }

    .arcade__overlay {
        padding: 0.45rem;
    }

    .arcade__overlay-inner {
        max-width: 92%;
    }

    .arcade__overlay h1 {
        margin-bottom: 0.3rem;
        font-size: clamp(0.9rem, 3.4vw, 1.35rem);
        letter-spacing: 0.08em;
        line-height: 1.1;
    }

    .arcade__overlay p {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .arcade__overlay kbd {
        padding: 0 0.25em;
    }

    .arcade__controls {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3rem;
        padding: 0.35rem 0.45rem 0.2rem;
    }

    .arcade__btn {
        min-height: 2.25rem;
        padding: 0.35rem 0.15rem;
        font-size: 0.52rem;
        letter-spacing: 0.04em;
    }

    .arcade__touch-controls {
        gap: 0.35rem;
        padding: 0.15rem 0.45rem 0.3rem;
    }

    .arcade__touch-btn {
        min-height: 2.25rem;
        border-radius: 7px;
        font-size: 0.55rem;
    }
}
