/* ==========================================================================
   Aviate Technologies — site.css
   Palette (brand): Deep Navy #0A1F33 · Pantone Process Blue C #0085CA ·
                    White #FFFFFF · Steel Gray #5C6B7A
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (flight-data
   labels — the avionics-readout motif used for eyebrows and metadata)
   ========================================================================== */

:root {
    --navy: #0A1F33;
    --blue: #0085CA; /* Pantone Process Blue C */
    --white: #FFFFFF;
    --steel: #5C6B7A;
    --font-display: "Archivo", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "Consolas", monospace;
    --shell-max: 1120px;
    --radius: 10px;
}

/* ---- Theme tokens ------------------------------------------------------- */

html[data-theme="light"] {
    --bg: var(--white);
    --surface: #F2F6FA; /* navy tinted 4% */
    --ink: var(--black);
    --ink-muted: var(--steel);
    --line: rgba(10, 31, 51, 0.14);
    --accent: var(--blue);
    --accent-ink: #006DA6; /* darkened for AA link contrast on white */
    --accent-soft: rgba(0, 133, 202, 0.10);
    --header-bg: rgba(255, 255, 255, 0.85);
    --btn-primary-ink: var(--white);
}

html[data-theme="dark"] {
    --bg: var(--navy);
    --surface: #102A42;
    --ink: var(--white);
    --ink-muted: #97A6B4; /* steel lifted for contrast on navy */
    --line: rgba(255, 255, 255, 0.16);
    --accent: var(--blue);
    --accent-ink: #4FB3E8; /* lightened for AA link contrast on navy */
    --accent-soft: rgba(0, 133, 202, 0.16);
    --header-bg: rgba(10, 31, 51, 0.85);
    --btn-primary-ink: var(--white);
}

/* ---- Base --------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-ink);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.shell {
    max-width: var(--shell-max);
    margin-inline: auto;
    padding-inline: 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    background: var(--accent);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    transition: top 0.15s ease;
}

    .skip-link:focus {
        top: 0;
    }

/* ---- Typography --------------------------------------------------------- */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

.lede {
    font-size: clamp(1.1rem, 1.9vw, 1.3rem);
    color: var(--ink);
    max-width: 42em;
}

/* Avionics-readout eyebrow — the site's recurring label style */
.mono,
.eyebrow {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-ink);
    margin-bottom: 18px;
}

    .eyebrow::before {
        content: "";
        width: 22px;
        height: 2px;
        background: var(--accent);
    }

/* ---- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

    .brand .logo {
        width: 175px;
        height: auto;
        display: none;
    }

.footer-brand .logo {
    width: 132px;
    height: auto;
    display: none;
}

html[data-theme="light"] .logo-light {
    display: block;
}

html[data-theme="dark"] .logo-dark {
    display: block;
}

.site-nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: var(--ink);
        font-weight: 500;
        font-size: 0.98rem;
    }

        .nav-links a:hover {
            color: var(--accent-ink);
            text-decoration: none;
        }

        .nav-links a.active {
            color: var(--accent-ink);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 4px;
        }

.nav-toggle {
    display: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

    .theme-toggle:hover {
        border-color: var(--accent);
        color: var(--accent-ink);
    }

html[data-theme="light"] .icon-sun {
    display: none;
}

html[data-theme="dark"] .icon-moon {
    display: none;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

.btn-primary {
    background: var(--accent);
    color: var(--btn-primary-ink);
}

    .btn-primary:hover {
        background: #0074B1;
        color: var(--white);
    }

html[data-theme="dark"] .btn-primary:hover {
    background: #1F97D6;
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

    .btn-ghost:hover {
        border-color: var(--accent);
        color: var(--accent-ink);
    }

.nav-links .btn {
    padding: 10px 20px;
}

.nav-links .btn-primary {
    color: var(--white);
}

/* ---- Hero --------------------------------------------------------------- */

.hero {
    padding: 44px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
}

    .hero-meta .mono {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .hero-meta strong {
        display: block;
        font-family: var(--font-display);
        font-size: 1.35rem;
        color: var(--ink);
        letter-spacing: -0.01em;
    }

/* Ascent path — the signature graphic */
.ascent {
    width: 100%;
    height: auto;
}

    .ascent .path {
        stroke: var(--accent);
        stroke-dasharray: 500; /* actual path length is ~497; kept tight so the
                             draw animation finishes exactly as the chevron
                             arrives, instead of completing early */
        stroke-dashoffset: 0;
    }

    .ascent .grid-line {
        stroke: var(--line);
    }

    .ascent .waypoint {
        fill: var(--bg);
        stroke: var(--accent);
    }

    .ascent .waypoint-label {
        fill: var(--ink-muted);
        font-family: var(--font-mono);
        font-size: 18px;
        letter-spacing: 0.12em;
    }

    .ascent .chevron {
        fill: var(--accent);
    }

    .ascent .chevron-static {
        display: none;
    }

    .ascent .chevron-motion {
        opacity: 0;
    }

@keyframes draw-path {
    from {
        stroke-dashoffset: 500;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes chevron-appear {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ascent .path {
        animation: draw-path 1.6s ease-out 0.2s backwards;
    }

    .ascent .waypoint, .ascent .waypoint-label {
        animation: fade-up 0.5s ease-out backwards;
    }

    .ascent .wp-1 .waypoint, .ascent .wp-1 .waypoint-label {
        animation-delay: 0.5s;
    }

    .ascent .wp-2 .waypoint, .ascent .wp-2 .waypoint-label {
        animation-delay: 0.8s;
    }

    .ascent .wp-3 .waypoint, .ascent .wp-3 .waypoint-label {
        animation-delay: 1.1s;
    }

    .ascent .wp-4 .waypoint, .ascent .wp-4 .waypoint-label {
        animation-delay: 1.4s;
    }
    /* Reveal right as the ride begins (matches animateMotion's begin="0.2s"),
     so the chevron never flashes at the SVG's coordinate origin beforehand. */
    .ascent .chevron-motion {
        animation: chevron-appear 0.01s linear 0.2s forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ascent .chevron-static {
        display: block;
    }
}

/* ---- Sections ----------------------------------------------------------- */

.section {
    padding: 24px 0;
}

.section-alt {
    background: var(--surface);
}

.section-head {
    max-width: 46em;
    margin-bottom: 44px;
}

/* ---- Cards / grids ------------------------------------------------------ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

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

.card h3 {
    margin-top: 14px;
}

.card p {
    color: var(--ink-muted);
    margin-bottom: 0;
}

.card .mono {
    color: var(--accent-ink);
    font-size: 0.72rem;
}

/* Phase cards on the framework page — a real sequence, so numbered */
.phase {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2px;
    padding: 25px 0;
    border-top: 1px solid var(--line);
}

    .phase:last-of-type {
        border-bottom: 1px solid var(--line);
    }

.phase-marker {
    font-family: var(--font-mono);
    color: var(--accent-ink);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    padding-top: 6px;
}

    .phase-marker strong {
        display: block;
        font-family: var(--font-display);
        font-size: 2rem;
        font-weight: 700;
        color: var(--ink);
        letter-spacing: -0.02em;
    }

.phase h3 {
    margin-bottom: 8px;
}

.phase p {
    color: var(--ink-muted);
    max-width: 52em;
}

.phase ul {
    color: var(--ink-muted);
    margin: 10px 0 0;
    padding-left: 20px;
}

.phase li {
    margin-bottom: 4px;
}

/* ---- Careers ------------------------------------------------------------ */

.role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

    .role:last-of-type {
        border-bottom: 1px solid var(--line);
    }

    .role h3 {
        margin: 0;
    }

    .role .role-meta {
        color: var(--ink-muted);
        font-size: 0.95rem;
    }

    .role .btn {
        margin-left: auto;
    }

.perk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 32px;
    margin-top: 8px;
}

.perk {
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

    .perk strong {
        font-family: var(--font-display);
        display: block;
        margin-bottom: 2px;
    }

    .perk span {
        color: var(--ink-muted);
        font-size: 0.95rem;
    }

/* ---- Contact form ------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
}

.form-field {
    margin-bottom: 20px;
}

    .form-field label {
        display: block;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-field input,
    .form-field textarea {
        width: 100%;
        background: var(--bg);
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px 14px;
        font: inherit;
    }

        .form-field input:focus,
        .form-field textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

.field-validation-error {
    color: #C7402D;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

html[data-theme="dark"] .field-validation-error {
    color: #FF9B8A;
}

input.input-validation-error, textarea.input-validation-error {
    border-color: #C7402D;
}

.contact-aside .card {
    margin-bottom: 18px;
}

/* ---- Prose (privacy) ---------------------------------------------------- */

.prose {
    max-width: 46em;
}

    .prose h2 {
        font-size: 1.45rem;
        margin-top: 2em;
    }

    .prose p, .prose li {
        color: var(--ink-muted);
    }

    .prose ul {
        padding-left: 22px;
    }

/* ---- Footer ------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 48px 0 36px;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    gap: 22px;
}

.footer-brand .logo {
    width: 112px;
}

.footer-tag {
    color: var(--ink-muted);
    font-size: 0.68rem;
    margin-top: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

    .footer-nav a {
        color: var(--ink-muted);
        font-size: 0.95rem;
    }

        .footer-nav a:hover {
            color: var(--accent-ink);
        }

.footer-legal {
    color: var(--ink-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
    .hero {
        padding: 56px 0 40px;
    }

    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
        position: relative;
    }

    .nav-toggle-bar,
    .nav-toggle-bar::before,
    .nav-toggle-bar::after {
        content: "";
        display: block;
        position: absolute;
        width: 18px;
        height: 2px;
        background: var(--ink);
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle-bar {
        top: 50%;
        margin-top: -1px;
    }

        .nav-toggle-bar::before {
            top: -6px;
        }

        .nav-toggle-bar::after {
            top: 6px;
        }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
        background: transparent;
    }

        .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
            transform: translateX(-50%) translateY(6px) rotate(45deg);
        }

        .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
            transform: translateX(-50%) translateY(-6px) rotate(-45deg);
        }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links li {
            width: 100%;
        }

        .nav-links a {
            display: block;
            padding: 10px 0;
        }

            .nav-links a.active {
                border-bottom: none;
                color: var(--accent-ink);
            }

    .nav-cta {
        margin-top: 8px;
    }

    .phase {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .role .btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

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

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- ELEVATE acronym & portal ------------------------------------------- */

.acronym-strip {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

    .acronym-strip span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--accent-ink);
        font-size: 1rem;
    }

.score-grid {
    display: grid;
    gap: 0;
}

.score {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

    .score:last-of-type {
        border-bottom: 1px solid var(--line);
    }

.score-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.score strong {
    font-family: var(--font-display);
    display: block;
}

.score div > span {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    border-radius: 999px;
    padding: 6px 12px;
}

.portal-hero {
    padding-bottom: 24px;
}

@media (prefers-reduced-motion: no-preference) {
    .ascent .wp-5 .waypoint, .ascent .wp-5 .waypoint-label {
        animation-delay: 1.55s;
    }

    .ascent .wp-6 .waypoint, .ascent .wp-6 .waypoint-label {
        animation-delay: 1.7s;
    }

    .ascent .wp-7 .waypoint, .ascent .wp-7 .waypoint-label {
        animation-delay: 1.85s;
    }
}

/* ---- ELEVATE chevron diagram --------------------------------------------- */

.elevate-diagram-section {
    padding-top: 0;
    padding-bottom: 24px;
}

.elevate-scroll {
    width: 100%;
}

.elevate-chevrons {
    width: 100%;
    height: auto;
    display: block;
}

.elevate-arrow {
    fill: var(--surface);
}

.elevate-circle {
    fill: var(--blue);
    stroke: var(--bg);
    stroke-width: 3;
}

.elevate-letter {
    fill: var(--white);
    font-weight: 700;
    font-size: 34px;
    font-family: var(--font-display);
}

.elevate-arrow-label {
    fill: var(--ink);
    font-weight: 600;
    font-size: 17px;
    font-family: var(--font-display);
    dominant-baseline: middle;
}

html[data-theme="dark"] .elevate-circle {
    fill: var(--accent);
    stroke: var(--bg);
}

@media (max-width: 860px) {
    .elevate-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .elevate-chevrons {
        width: 900px;
        max-width: none;
    }
}

@keyframes elevate-in {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .elevate-item {
        animation: elevate-in 0.45s ease-out backwards;
    }

    .elevate-item-1 {
        animation-delay: 0.05s;
    }

    .elevate-item-2 {
        animation-delay: 0.2s;
    }

    .elevate-item-3 {
        animation-delay: 0.35s;
    }

    .elevate-item-4 {
        animation-delay: 0.5s;
    }

    .elevate-item-5 {
        animation-delay: 0.65s;
    }

    .elevate-item-6 {
        animation-delay: 0.8s;
    }

    .elevate-item-7 {
        animation-delay: 0.95s;
    }
}

/* ---- Services page ------------------------------------------------------- */

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.diff {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

    .diff .gauge {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
        display: block;
    }

    .diff h3 {
        margin-bottom: 6px;
    }

    .diff p {
        color: var(--ink-muted);
        margin: 0;
    }

.gauge .ring {
    stroke: var(--line);
    fill: none;
    stroke-width: 3;
}

.gauge .mark {
    stroke: var(--accent);
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.gauge .fill {
    fill: var(--accent);
}

/* Platform convergence diagram */
.flow-scroll {
    width: 100%;
    margin-top: 34px;
}

.platform-flow {
    width: 100%;
    height: auto;
    display: block;
}

    .platform-flow .node {
        fill: var(--bg);
        stroke: var(--line);
        stroke-width: 1.5;
    }

    .platform-flow .node-label {
        fill: var(--ink);
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 16px;
    }

    .platform-flow .flow-line {
        stroke: var(--accent);
        fill: none;
        stroke-width: 2.5;
    }

    .platform-flow .flow-chevron {
        fill: var(--accent);
    }

    .platform-flow .flow-caption {
        fill: var(--ink-muted);
        font-family: var(--font-mono);
        font-size: 12px;
        letter-spacing: 0.14em;
    }

/* Service offering cards */
.service-card .mono {
    color: var(--accent-ink);
    font-size: 0.72rem;
}

.service-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

    .service-list li {
        position: relative;
        padding: 8px 0 8px 22px;
        color: var(--ink-muted);
    }

        .service-list li + li {
            border-top: 1px solid var(--line);
        }

        .service-list li::before {
            content: "";
            position: absolute;
            left: 2px;
            top: 50%;
            width: 7px;
            height: 7px;
            border-right: 2px solid var(--accent);
            border-top: 2px solid var(--accent);
            transform: translateY(-50%) rotate(45deg);
        }

/* Staggered entrance + line draw (reduced-motion safe) */
@keyframes flow-draw {
    from {
        stroke-dashoffset: 400;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .diff {
        animation: elevate-in 0.45s ease-out backwards;
    }

    .diff-1 {
        animation-delay: 0.05s;
    }

    .diff-2 {
        animation-delay: 0.2s;
    }

    .diff-3 {
        animation-delay: 0.35s;
    }

    .diff-4 {
        animation-delay: 0.5s;
    }

    .platform-flow .flow-line {
        stroke-dasharray: 400;
        animation: flow-draw 1s ease-out 0.3s backwards;
    }
}

@media (max-width: 860px) {
    .flow-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .platform-flow {
        width: 760px;
        max-width: none;
    }
}

/* ---- Privacy page -------------------------------------------------------- */

.policy-art {
    width: 100%;
    height: auto;
    display: block;
}

    .policy-art .ring {
        stroke: var(--line);
        fill: none;
        stroke-width: 1.5;
    }

    .policy-art .shield {
        stroke: var(--accent);
        stroke-width: 3;
        fill: var(--bg);
        stroke-linejoin: round;
    }

    .policy-art .shield-chevron {
        fill: var(--accent);
    }

    .policy-art .blip {
        fill: var(--accent);
        opacity: 0.55;
    }

    .policy-art .sweep {
        stroke: var(--accent);
        stroke-width: 2;
        opacity: 0.35;
        transform-origin: 240px 180px;
    }

@keyframes radar-sweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .policy-art .sweep {
        animation: radar-sweep 9s linear infinite;
    }
}

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

.tldr {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .tldr strong {
        font-family: var(--font-display);
        display: block;
        margin-bottom: 2px;
    }

    .tldr span {
        color: var(--ink-muted);
        font-size: 0.92rem;
    }

/* Icon-marked policy sections */
.policy-section {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    max-width: 52em;
}

    .policy-section:last-of-type {
        border-bottom: 1px solid var(--line);
    }

    .policy-section h2 {
        font-size: 1.3rem;
        margin: 8px 0 10px;
    }

    .policy-section p,
    .policy-section li {
        color: var(--ink-muted);
    }

    .policy-section ul {
        padding-left: 20px;
        margin: 0 0 1em;
    }

        .policy-section p:last-child,
        .policy-section ul:last-child {
            margin-bottom: 0;
        }

.policy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
}

    .policy-icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--accent-ink);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

@media (max-width: 860px) {
    .policy-section {
        grid-template-columns: 44px 1fr;
        gap: 14px;
    }
}

/* ---- Our Team page ------------------------------------------------------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

    .team-photo img,
    .team-photo svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .team-photo .ph-ring {
        stroke: var(--line);
        fill: none;
        stroke-width: 1.5;
    }

    .team-photo .ph-person {
        fill: var(--accent-soft);
        stroke: var(--accent-ink);
        stroke-width: 2.5;
        stroke-linejoin: round;
    }

    .team-photo .ph-chevron {
        fill: var(--accent);
        opacity: 0.9;
    }

.team-body {
    padding: 22px 24px 24px;
}

    .team-body .mono {
        color: var(--accent-ink);
        font-size: 0.72rem;
    }

    .team-body h3 {
        margin: 10px 0 2px;
    }

.team-role {
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.team-bio {
    color: var(--ink-muted);
    font-size: 0.97rem;
    margin-bottom: 14px;
}

.team-links {
    display: flex;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

@media (prefers-reduced-motion: no-preference) {
    .team-card {
        animation: elevate-in 0.45s ease-out backwards;
    }

        .team-card:nth-child(1) {
            animation-delay: 0.05s;
        }

        .team-card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .team-card:nth-child(3) {
            animation-delay: 0.35s;
        }
}

/* ---- About page ---------------------------------------------------------- */

/* Experience stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

    .stat svg {
        width: 54px;
        height: 54px;
        flex-shrink: 0;
    }

    .stat .stat-track {
        stroke: var(--line);
        fill: none;
        stroke-width: 5;
    }

    .stat .stat-arc {
        stroke: var(--accent);
        fill: none;
        stroke-width: 5;
        stroke-linecap: round;
        transform: rotate(-90deg);
        transform-origin: 32px 32px;
    }

    .stat strong {
        display: block;
        font-family: var(--font-display);
        font-size: 1.6rem;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .stat span {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

/* Flight log timeline */
.flightlog-scroll {
    width: 100%;
    margin-top: 30px;
}

.flightlog {
    width: 100%;
    height: auto;
    display: block;
}

    .flightlog .fl-line {
        stroke: var(--accent);
        stroke-width: 3;
        stroke-linecap: round;
        fill: none;
    }

    .flightlog .fl-point {
        fill: var(--bg);
        stroke: var(--accent);
        stroke-width: 3;
    }

    .flightlog .fl-year {
        fill: var(--accent-ink);
        font-family: var(--font-mono);
        font-size: 13px;
        letter-spacing: 0.14em;
    }

    .flightlog .fl-label {
        fill: var(--ink);
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 16px;
    }

    .flightlog .fl-chevron {
        fill: var(--accent);
    }

/* Narrative */
.about-narrative {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}

    .about-narrative p {
        color: var(--ink-muted);
    }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 6px 12px;
}

/* Solution case studies */
.solution {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid var(--line);
}

    .solution:last-of-type {
        border-bottom: 1px solid var(--line);
    }

    .solution:nth-of-type(even) .solution-art {
        order: 2;
    }

    .solution .mono {
        color: var(--accent-ink);
        font-size: 0.72rem;
    }

    .solution h3 {
        font-size: 1.45rem;
        margin: 10px 0 4px;
    }

    .solution p {
        color: var(--ink-muted);
    }

.solution-meta {
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.solution-art {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

    .solution-art svg,
    .solution-art img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
    }

    .solution-art .sa-grid {
        stroke: var(--line);
        stroke-width: 1;
    }

    .solution-art .sa-muted {
        stroke: var(--ink-muted);
        stroke-width: 2.5;
        fill: none;
        stroke-linecap: round;
        opacity: 0.6;
    }

    .solution-art .sa-accent {
        stroke: var(--accent);
        stroke-width: 3;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .solution-art .sa-fill {
        fill: var(--accent);
    }

    .solution-art .sa-node {
        fill: var(--bg);
        stroke: var(--line);
        stroke-width: 1.5;
    }

    .solution-art .sa-bar {
        fill: var(--accent);
        opacity: 0.85;
    }

    .solution-art .sa-bar-muted {
        fill: var(--accent-soft);
    }

    .solution-art .sa-tile {
        fill: var(--bg);
        stroke: var(--line);
        stroke-width: 1.5;
    }

    .solution-art .sa-label {
        fill: var(--ink-muted);
        font-family: var(--font-mono);
        font-size: 11px;
        letter-spacing: 0.12em;
    }

.outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Motion */
@keyframes flightlog-draw {
    from {
        stroke-dashoffset: 920;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .stat {
        animation: elevate-in 0.45s ease-out backwards;
    }

        .stat:nth-child(1) {
            animation-delay: 0.05s;
        }

        .stat:nth-child(2) {
            animation-delay: 0.15s;
        }

        .stat:nth-child(3) {
            animation-delay: 0.25s;
        }

        .stat:nth-child(4) {
            animation-delay: 0.35s;
        }

    .flightlog .fl-line {
        stroke-dasharray: 920; /* matches the line's exact length (x 40 to 960) */
        animation: flightlog-draw 1.4s ease-out 0.2s backwards;
    }

    .flightlog .fl-stop {
        animation: fade-up 0.5s ease-out backwards;
    }

    .flightlog .fl-stop-1 {
        animation-delay: 0.3s;
    }

    .flightlog .fl-stop-2 {
        animation-delay: 0.65s;
    }

    .flightlog .fl-stop-3 {
        animation-delay: 1.0s;
    }

    .flightlog .fl-stop-4 {
        animation-delay: 1.35s;
    }
}

@media (max-width: 860px) {
    .about-narrative,
    .solution {
        grid-template-columns: 1fr;
    }

        .solution:nth-of-type(even) .solution-art {
            order: 0;
        }

    .flightlog-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .flightlog {
        width: 760px;
        max-width: none;
    }
}
/* ---- ELEVATE Invaders game ------------------------------------------------ */

.game-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#elevate-invaders {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #elevate-invaders:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

.game-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px 24px;
    margin-top: 22px;
    color: var(--ink-muted);
    font-size: 0.92rem;
}

    .game-legend strong {
        display: block;
        font-family: var(--font-display);
        color: var(--ink);
        margin-bottom: 2px;
    }

/* ---- What's Eating You? game --------------------------------------------- */

.wey-wrap {
    max-width: 494px;
    margin: 0 auto;
}

#whats-eating-you {
    display: block;
    width: 100%;
    aspect-ratio: 494 / 590;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #whats-eating-you:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* .game-legend is shared with ELEVATE Invaders — harmless if already present */
.game-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
    gap: 14px 24px;
    margin-top: 22px;
    color: var(--ink-muted);
    font-size: .92rem
}

    .game-legend strong {
        display: block;
        font-family: var(--font-display);
        color: var(--ink);
        margin-bottom: 2px
    }
/* ---- Scope Creep game ----------------------------------------------------- */

.scope-wrap {
    max-width: 576px;
    margin: 0 auto;
}

#scope-creep {
    display: block;
    width: 100%;
    aspect-ratio: 576 / 476;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #scope-creep:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Arcade leaderboard (shared by all games) ----------------------------- */

.arcade-board {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}

.arcade-post {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

    .arcade-post h3 {
        margin-bottom: 14px;
    }

.arcade-post-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

    .arcade-post-fields label {
        display: block;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 0.92rem;
    }

    .arcade-post-fields input {
        display: block;
        width: 100%;
        margin-top: 6px;
        background: var(--bg);
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px 12px;
        font: inherit;
    }

        .arcade-post-fields input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

.arcade-opt {
    color: var(--ink-muted);
    font-weight: 400;
}

.arcade-turnstile:not(:empty) {
    margin-bottom: 14px;
}

.arcade-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.arcade-post-status {
    font-size: 0.92rem;
    color: var(--accent-ink);
}

.arcade-post-fine {
    color: var(--ink-muted);
    font-size: 0.82rem;
    margin: 14px 0 0;
}

.arcade-ranks {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

    .arcade-ranks li {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 10px 16px;
        background: var(--bg);
    }

        .arcade-ranks li + li {
            border-top: 1px solid var(--line);
        }

        .arcade-ranks li:first-child:not(.arcade-empty) {
            background: var(--accent-soft);
        }

.arcade-rank {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--accent-ink);
}

.arcade-name {
    font-family: var(--font-display);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcade-score {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.arcade-empty {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* ---- Scope Creep game ----------------------------------------------------- */

.scope-wrap {
    max-width: 576px;
    margin: 0 auto;
}

#scope-creep {
    display: block;
    width: 100%;
    aspect-ratio: 576 / 476;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #scope-creep:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Arcade leaderboard (shared by all games) ----------------------------- */

.arcade-board {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}

.arcade-post {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

    .arcade-post h3 {
        margin-bottom: 14px;
    }

.arcade-post-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

    .arcade-post-fields label {
        display: block;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 0.92rem;
    }

    .arcade-post-fields input {
        display: block;
        width: 100%;
        margin-top: 6px;
        background: var(--bg);
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px 12px;
        font: inherit;
    }

        .arcade-post-fields input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

.arcade-opt {
    color: var(--ink-muted);
    font-weight: 400;
}

.arcade-turnstile:not(:empty) {
    margin-bottom: 14px;
}

.arcade-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.arcade-post-status {
    font-size: 0.92rem;
    color: var(--accent-ink);
}

.arcade-post-fine {
    color: var(--ink-muted);
    font-size: 0.82rem;
    margin: 14px 0 0;
}

.arcade-ranks {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

    .arcade-ranks li {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 10px 16px;
        background: var(--bg);
    }

        .arcade-ranks li + li {
            border-top: 1px solid var(--line);
        }

        .arcade-ranks li:first-child:not(.arcade-empty) {
            background: var(--accent-soft);
        }

.arcade-rank {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--accent-ink);
}

.arcade-name {
    font-family: var(--font-display);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcade-score {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.arcade-empty {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* ---- Clear the Backlog game ----------------------------------------------- */

.backlog-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#clear-the-backlog {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #clear-the-backlog:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }
/* ---- Scope Creep game ----------------------------------------------------- */

.scope-wrap {
    max-width: 576px;
    margin: 0 auto;
}

#scope-creep {
    display: block;
    width: 100%;
    aspect-ratio: 576 / 476;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #scope-creep:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Arcade leaderboard (shared by all games) ----------------------------- */

.arcade-board {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}

.arcade-post {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

    .arcade-post h3 {
        margin-bottom: 14px;
    }

.arcade-post-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

    .arcade-post-fields label {
        display: block;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 0.92rem;
    }

    .arcade-post-fields input {
        display: block;
        width: 100%;
        margin-top: 6px;
        background: var(--bg);
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px 12px;
        font: inherit;
    }

        .arcade-post-fields input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

.arcade-opt {
    color: var(--ink-muted);
    font-weight: 400;
}

.arcade-turnstile:not(:empty) {
    margin-bottom: 14px;
}

.arcade-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.arcade-post-status {
    font-size: 0.92rem;
    color: var(--accent-ink);
}

.arcade-post-fine {
    color: var(--ink-muted);
    font-size: 0.82rem;
    margin: 14px 0 0;
}

.arcade-ranks {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

    .arcade-ranks li {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 10px 16px;
        background: var(--bg);
    }

        .arcade-ranks li + li {
            border-top: 1px solid var(--line);
        }

        .arcade-ranks li:first-child:not(.arcade-empty) {
            background: var(--accent-soft);
        }

.arcade-rank {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--accent-ink);
}

.arcade-name {
    font-family: var(--font-display);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcade-score {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.arcade-empty {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* ---- Clear the Backlog game ----------------------------------------------- */

.backlog-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#clear-the-backlog {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #clear-the-backlog:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Go-Live Landing game ------------------------------------------------- */

.landing-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#go-live-landing {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #go-live-landing:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Scope Creep game ----------------------------------------------------- */

.scope-wrap {
    max-width: 576px;
    margin: 0 auto;
}

#scope-creep {
    display: block;
    width: 100%;
    aspect-ratio: 576 / 476;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #scope-creep:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Arcade leaderboard (shared by all games) ----------------------------- */

.arcade-board {
    margin-top: 28px;
    display: grid;
    gap: 22px;
}

.arcade-post {
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

    .arcade-post h3 {
        margin-bottom: 14px;
    }

.arcade-post-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

    .arcade-post-fields label {
        display: block;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 0.92rem;
    }

    .arcade-post-fields input {
        display: block;
        width: 100%;
        margin-top: 6px;
        background: var(--bg);
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px 12px;
        font: inherit;
    }

        .arcade-post-fields input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

.arcade-opt {
    color: var(--ink-muted);
    font-weight: 400;
}

.arcade-turnstile:not(:empty) {
    margin-bottom: 14px;
}

.arcade-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.arcade-post-status {
    font-size: 0.92rem;
    color: var(--accent-ink);
}

.arcade-post-fine {
    color: var(--ink-muted);
    font-size: 0.82rem;
    margin: 14px 0 0;
}

.arcade-ranks {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

    .arcade-ranks li {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 10px 16px;
        background: var(--bg);
    }

        .arcade-ranks li + li {
            border-top: 1px solid var(--line);
        }

        .arcade-ranks li:first-child:not(.arcade-empty) {
            background: var(--accent-soft);
        }

.arcade-rank {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--accent-ink);
}

.arcade-name {
    font-family: var(--font-display);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arcade-score {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.arcade-empty {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* ---- Clear the Backlog game ----------------------------------------------- */

.backlog-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#clear-the-backlog {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #clear-the-backlog:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Go-Live Landing game ------------------------------------------------- */

.landing-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#go-live-landing {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: pointer;
}

    #go-live-landing:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Incident Command game ------------------------------------------------ */

.incident-wrap {
    max-width: 720px;
    margin: 0 auto;
}

#incident-command {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 520;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    touch-action: none;
    outline: none;
    cursor: crosshair;
}

    #incident-command:focus-visible {
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

/* ---- Arcade landing page -------------------------------------------------- */

.arcade-marquee {
    width: 100%;
    height: auto;
    display: block;
}

/* Illustration tokens — every card SVG is drawn with these, so they theme */
.ac-accent {
    fill: var(--accent);
}

.ac-danger {
    fill: #E5484D;
}

.ac-gold {
    fill: #E8A317;
}

.ac-bg {
    fill: var(--bg);
}

.ac-cab {
    fill: var(--bg);
    stroke: var(--line);
    stroke-width: 1.5;
}

.ac-screen {
    fill: var(--surface);
    stroke: var(--line);
    stroke-width: 1;
}

.ac-grid line {
    stroke: var(--line);
    stroke-width: 1;
}

.ac-pill rect {
    fill: var(--bg);
    stroke: var(--line);
    stroke-width: 1.2;
}

.ac-wall rect {
    fill: var(--bg);
    stroke: var(--line);
    stroke-width: 1.2;
}

.ac-brick rect {
    fill: var(--bg);
    stroke: var(--line);
    stroke-width: 1.2;
}

.ac-brick-gold {
    fill: var(--bg);
    stroke: #E8A317;
    stroke-width: 1.8;
}

.ac-dot rect {
    fill: var(--accent);
    opacity: 0.55;
}

.ac-shield {
    fill: var(--accent);
    opacity: 0.4;
}

.ac-site rect {
    fill: var(--bg);
    stroke: var(--accent);
    stroke-width: 1.4;
}

.ac-terrain {
    fill: var(--bg);
    stroke: var(--line);
    stroke-width: 1.5;
}

.ac-ground {
    stroke: var(--line);
    stroke-width: 1.5;
}

.ac-trail {
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.6;
}

.ac-trail-danger line {
    stroke: #E5484D;
    stroke-width: 1.5;
    opacity: 0.55;
}

.ac-ring-danger {
    fill: none;
    stroke: #E5484D;
    stroke-width: 1;
}

.ac-burst {
    fill: var(--accent);
    fill-opacity: 0.25;
    stroke: var(--accent);
    stroke-width: 2;
}

.ac-burst-gold {
    fill: #E8A317;
    fill-opacity: 0.3;
    stroke: #E8A317;
    stroke-width: 1.5;
}

.ac-label {
    fill: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
}

.ac-plus {
    fill: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
}

.ac-readout {
    fill: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.ac-ok {
    fill: #2FA66A;
}

.ac-marquee-text {
    fill: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
}

.arcade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.arcade-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.arcade-art {
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

    .arcade-art svg {
        display: block;
        width: 100%;
        height: auto;
    }

    .arcade-art:hover .ac-accent,
    .arcade-art:focus-visible .ac-accent {
        filter: brightness(1.12);
    }

.arcade-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .arcade-body .mono {
        color: var(--accent-ink);
        font-size: 0.72rem;
    }

    .arcade-body h3 {
        margin: 8px 0 6px;
    }

    .arcade-body > p {
        color: var(--ink-muted);
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .arcade-body .btn {
        align-self: flex-start;
        margin-top: auto;
    }

.arcade-top3 {
    margin-bottom: 18px;
}

    .arcade-top3 .mono {
        color: var(--ink-muted);
        font-size: 0.68rem;
    }

.arcade-top3-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

    .arcade-top3-list li {
        display: grid;
        grid-template-columns: 30px 1fr auto;
        gap: 10px;
        align-items: center;
        padding: 7px 12px;
        font-size: 0.92rem;
    }

        .arcade-top3-list li + li {
            border-top: 1px solid var(--line);
        }

        .arcade-top3-list li:first-child {
            background: var(--accent-soft);
        }

.arcade-top3-empty {
    color: var(--ink-muted);
    font-size: 0.88rem;
    margin: 8px 0 0;
}

.arcade-rules {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 40px;
    align-items: start;
}

.arcade-rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 28px;
}

    .arcade-rules-list > div {
        border-left: 2px solid var(--accent);
        padding-left: 14px;
    }

    .arcade-rules-list strong {
        display: block;
        font-family: var(--font-display);
        margin-bottom: 2px;
    }

    .arcade-rules-list span {
        color: var(--ink-muted);
        font-size: 0.92rem;
    }

@media (max-width: 860px) {
    .arcade-rules {
        grid-template-columns: 1fr;
    }
}
