/* ==========================================================================
   Southern Cross Dynamics — design system
   Refined dark: deep teal ground, cyan signal, one type family, fluid scale.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
    /* Ground */
    --bg: #0b1519;
    --bg-soft: #0e1c22;
    --surface: #12242c;
    --surface-2: #16303a;
    --surface-3: #1b3b47;

    /* Lines */
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* Ink */
    --text: #e9f4f8;
    --text-muted: #a3bcc7;
    --text-dim: #7b98a4;

    /* Signal */
    --primary: #00c3ff;
    --primary-soft: rgba(0, 195, 255, 0.12);
    --primary-line: rgba(0, 195, 255, 0.32);
    --primary-ink: #04222c;
    --amber: #ffb43a;
    --amber-soft: rgba(255, 180, 58, 0.12);
    --danger: #ff6b6b;

    /* Type — fluid, clamped */
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.88rem);
    --step-0: clamp(0.95rem, 0.91rem + 0.18vw, 1.05rem);
    --step-1: clamp(1.1rem, 1.03rem + 0.32vw, 1.3rem);
    --step-2: clamp(1.35rem, 1.2rem + 0.68vw, 1.75rem);
    --step-3: clamp(1.7rem, 1.42rem + 1.25vw, 2.5rem);
    --step-4: clamp(2.1rem, 1.6rem + 2.2vw, 3.5rem);
    --step-5: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);

    /* Space */
    --gap: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
    --gutter: clamp(1rem, 0.6rem + 1.8vw, 2.5rem);
    --section-y: clamp(3.5rem, 2.4rem + 4.6vw, 7rem);
    --wrap: 1200px;

    /* Shape */
    --r-sm: 0.5rem;
    --r: 0.75rem;
    --r-lg: 1rem;
    --r-xl: 1.5rem;

    /* Depth */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 60px -20px rgba(0, 0, 0, 0.7);
    --glow: 0 0 0 1px var(--primary-line), 0 18px 48px -18px rgba(0, 195, 255, 0.45);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --fast: 160ms;
    --mid: 280ms;
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    /* The closed nav drawer is parked off-screen at translate:100%; without this
       it extends the scroll area and shoves the header off a phone viewport.
       `clip` (not `hidden`) contains it without creating a scroll container,
       which would break the sticky header. */
    overflow-x: clip;
}

body {
    min-height: 100svh;
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

/* Ambient glow — sits behind everything, never intercepts clicks. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60rem 40rem at 12% -5%, rgba(0, 195, 255, 0.1), transparent 60%),
        radial-gradient(50rem 36rem at 92% 8%, rgba(0, 195, 255, 0.06), transparent 62%),
        radial-gradient(70rem 50rem at 50% 110%, rgba(0, 195, 255, 0.05), transparent 60%);
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    line-height: 1.12;
    letter-spacing: -0.022em;
    text-wrap: balance;
    font-weight: 800;
}

p {
    text-wrap: pretty;
}

ul {
    list-style: none;
    padding: 0;
}

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

::selection {
    background: var(--primary);
    color: var(--primary-ink);
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% -120%;
    z-index: 200;
    padding: 0.7rem 1.2rem;
    border-radius: 0 0 var(--r) var(--r);
    background: var(--primary);
    color: var(--primary-ink);
    font-weight: 700;
    transition: translate var(--fast) var(--ease);
}

.skip-link:focus-visible {
    translate: -50% 0;
}

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

/* --- Layout ------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
}

.section--tight {
    padding-block: calc(var(--section-y) * 0.6);
}

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

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

main {
    flex: 1;
}

/* --- Type helpers ------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.eyebrow--plain::before {
    display: none;
}

.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.h4 { font-size: var(--step-1); }

.display {
    font-size: var(--step-5);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.lede {
    font-size: var(--step-1);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 60ch;
}

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.accent { color: var(--primary); }
.small { font-size: var(--step--1); }

.measure { max-width: 68ch; }
.center { text-align: center; }

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: calc(var(--gap) * 1.6);
}

.section-head--center {
    align-items: center;
    text-align: center;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--r);
    font-size: var(--step-0);
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
        color var(--fast) var(--ease), transform var(--fast) var(--ease),
        box-shadow var(--mid) var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--primary);
    color: var(--primary-ink);
    box-shadow: 0 10px 30px -12px rgba(0, 195, 255, 0.7);
}

.btn--primary:hover {
    background: #4ad4ff;
    box-shadow: 0 16px 40px -14px rgba(0, 195, 255, 0.85);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    color: var(--text);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-line);
}

.btn--quiet {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text-muted);
}

.btn--quiet:hover {
    color: var(--text);
    border-color: var(--primary-line);
}

.btn--sm {
    min-height: 2.375rem;
    padding: 0.45rem 1rem;
    font-size: var(--step--1);
}

.btn--lg {
    min-height: 3.25rem;
    padding: 0.9rem 1.9rem;
    font-size: var(--step-1);
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-row--center {
    justify-content: center;
}

/* Text link that reads as an action */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    font-size: var(--step--1);
}

.link-arrow .mi {
    font-size: 1.15em;
    transition: transform var(--fast) var(--ease);
}

.link-arrow:hover .mi {
    transform: translateX(3px);
}

/* --- Icons -------------------------------------------------------------- */

.mi {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    flex-shrink: 0;
}

.mi--sm { font-size: 1.15rem; }
.mi--lg { font-size: 2rem; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: var(--step-0);
    flex-shrink: 0;
}

.brand__logo {
    height: 2.1rem;
    width: auto;
    flex-shrink: 0;
}

.brand__name {
    white-space: nowrap;
    line-height: 1.15;
}

.brand__name span {
    color: var(--text-muted);
    font-weight: 600;
}

/* Below this the monogram carries the brand on its own. */
@media (max-width: 420px) {
    .brand__name {
        display: none;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 0.3rem + 1.6vw, 2rem);
}

.nav__link {
    position: relative;
    padding-block: 0.35rem;
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--fast) var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--fast) var(--ease);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
    transform: scaleX(1);
}

.nav__link[aria-current="page"] {
    color: var(--primary);
}

.nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.nav-toggle__bars {
    position: relative;
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: background var(--fast) var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--mid) var(--ease), top var(--fast) var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(4, 12, 15, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity var(--mid) var(--ease);
}

.nav-backdrop.is-shown {
    opacity: 1;
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 99;
        width: min(20rem, 84vw);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 5.5rem 1.5rem 2rem;
        background: var(--bg-soft);
        border-left: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        translate: 100% 0;
        visibility: hidden;
        transition: translate var(--mid) var(--ease), visibility var(--mid) var(--ease);
        overflow-y: auto;
    }

    .nav.is-open {
        translate: 0 0;
        visibility: visible;
    }

    .nav__link {
        padding: 0.9rem 0.25rem;
        font-size: var(--step-1);
        font-weight: 600;
        color: var(--text);
        border-bottom: 1px solid var(--line);
    }

    .nav__link::after {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-cta {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (min-width: 861px) {
    .nav-backdrop {
        display: none;
    }
}

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

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 21, 25, 0.72) 0%, rgba(11, 21, 25, 0.88) 55%, var(--bg) 100%);
}

/* Video variant. <video> is a replaced element, so the scrim can't be a
   pseudo-element on it — the wrapper carries it instead. */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--bg) center / cover no-repeat;
}

/* Lighter than the photographic hero scrim: the point cloud is already dark on
   black, so a heavy overlay erases it. Radial keeps contrast behind the
   headline while letting the cloud read at the edges. */
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(60% 55% at 50% 45%, rgba(11, 21, 25, 0.66) 0%, rgba(11, 21, 25, 0.3) 100%),
        linear-gradient(180deg, rgba(11, 21, 25, 0.35) 0%, rgba(11, 21, 25, 0.45) 60%, var(--bg) 100%);
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Don't autoplay motion at people who asked for less of it — the poster
   frame on the wrapper still carries the visual. */
@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
    max-width: 46rem;
}

.hero--center .hero__inner {
    align-items: center;
    text-align: center;
    margin-inline: auto;
}

.hero__rule {
    width: 5rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Panel hero used on lighter interior pages */
.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    padding: clamp(2.5rem, 1.6rem + 4vw, 4.5rem) var(--gap);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(40rem 20rem at 50% -20%, rgba(0, 195, 255, 0.14), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--bg-soft));
    box-shadow: var(--shadow);
}

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

.grid {
    display: grid;
    gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.25rem, 1rem + 0.8vw, 1.85rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease),
        box-shadow var(--mid) var(--ease);
}

.card:hover {
    border-color: var(--primary-line);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--r);
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary);
}

.card__title {
    font-size: var(--step-1);
    font-weight: 700;
}

.card__body {
    color: var(--text-muted);
    font-size: var(--step--1);
    line-height: 1.7;
}

.card--flat:hover {
    transform: none;
}

/* Numbered feature rows */
.card__index {
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
}

/* --- Product cards ------------------------------------------------------ */

.product-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
}

.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease),
        box-shadow var(--mid) var(--ease);
}

.product:hover {
    border-color: var(--primary-line);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product--soon {
    opacity: 0.72;
}

.product--soon:hover {
    opacity: 1;
}

.product__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.04);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--line);
    transition: scale var(--mid) var(--ease);
}

.product__media--cover {
    background-size: cover;
    filter: grayscale(1);
}

.product:hover .product__media {
    scale: 1.02;
}

.product__body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.25rem;
    flex: 1;
}

.product__title {
    font-size: var(--step-1);
    font-weight: 700;
}

.product__desc {
    color: var(--text-muted);
    font-size: var(--step--1);
    line-height: 1.65;
}

.product__specs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: var(--step--1);
}

.product__specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product__specs .mi {
    color: var(--primary);
}

.product__foot {
    margin-top: auto;
    padding-top: 0.35rem;
}

.badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--primary);
    color: var(--primary-ink);
}

.badge--soon {
    background: var(--amber);
    color: #2a1a00;
}

.badge--classified {
    background: rgba(11, 21, 25, 0.85);
    color: var(--primary);
    border: 1px solid var(--primary-line);
    backdrop-filter: blur(4px);
}

.note-soon {
    color: var(--amber);
    font-size: var(--step--1);
    font-weight: 600;
}

.note-classified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-size: var(--step--1);
    font-weight: 600;
}

/* Classified programs — no imagery released, so the tile is a holding pattern. */
.product--classified {
    opacity: 1;
}

.product--classified .product__media {
    display: grid;
    place-items: center;
    background-image:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px),
        radial-gradient(18rem 10rem at 50% 45%, rgba(0, 195, 255, 0.1), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--bg-soft));
    color: var(--text-dim);
}

.product--classified .product__media .mi {
    font-size: 2.75rem;
    opacity: 0.45;
}

/* Blacked-out value in a spec list. */
.redacted {
    display: inline-block;
    min-width: 4.5rem;
    border-radius: 3px;
    background: var(--line-strong);
    color: transparent;
    user-select: none;
}

/* --- Filter chips ------------------------------------------------------- */

.filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: var(--gap);
}

.chip {
    padding: 0.45rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}

.chip:hover {
    color: var(--text);
    border-color: var(--primary-line);
}

.chip[aria-pressed="true"] {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Specs (product detail) --------------------------------------------- */

.spec-group + .spec-group {
    margin-top: calc(var(--gap) * 1.75);
}

.spec-group__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--step-1);
    font-weight: 700;
    margin-bottom: 1rem;
}

.spec-group__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.spec-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    background: var(--bg-soft);
}

.spec__label {
    font-size: var(--step--1);
    color: var(--text-dim);
}

.spec__value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* --- Stat strip --------------------------------------------------------- */

.stats {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.5rem 1.25rem;
    background: var(--bg-soft);
    text-align: center;
    align-items: center;
}

.stat__value {
    font-size: var(--step-3);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat__label {
    font-size: var(--step--1);
    color: var(--text-muted);
}

/* --- Split (media + copy) ----------------------------------------------- */

.split {
    display: grid;
    gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.split__media {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.split__media--contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.04);
}

.split--flip .split__media {
    order: 2;
}

@media (max-width: 700px) {
    .split--flip .split__media {
        order: 0;
    }
}

/* --- Pill list (org logos) ---------------------------------------------- */

.pill-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
}

.pill {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    padding: 0.9rem 0.75rem;
    text-align: center;
    border: 1px solid var(--primary-line);
    border-radius: var(--r);
    background: var(--primary-soft);
}

.pill__name {
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
    font-size: var(--step--1);
}

.pill__meta {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* --- Logo wall ---------------------------------------------------------- */

.logo-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

.logo-wall img {
    height: 2rem;
    max-width: 7.5rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: opacity var(--mid) var(--ease), filter var(--mid) var(--ease);
}

.logo-wall img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* --- Roles (careers) ---------------------------------------------------- */

.role {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}

.role:hover {
    border-color: var(--primary-line);
    transform: translateY(-4px);
}

.role__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.role__title {
    font-size: var(--step-1);
    font-weight: 700;
}

.tag {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-dim);
    font-size: var(--step--1);
}

.meta-row li,
.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Forms -------------------------------------------------------------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}

.form__row {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field__label {
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--text);
}

.field__label .req {
    color: var(--primary);
}

.input,
.textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: var(--step-0);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
        background var(--fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-dim);
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.18);
}

.input:user-invalid,
.textarea:user-invalid {
    border-color: var(--danger);
}

.textarea {
    min-height: 9rem;
    resize: vertical;
}

.form__status {
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: var(--step--1);
    font-weight: 600;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
}

.form__status[data-state="ok"] {
    border-color: var(--primary-line);
    background: var(--primary-soft);
    color: var(--primary);
}

.form__status[data-state="error"] {
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger);
}

.form__status[hidden] {
    display: none;
}

/* --- Contact details ---------------------------------------------------- */

.contact-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.contact-item .mi {
    color: var(--primary);
    margin-top: 0.15rem;
}

.contact-item__label {
    font-weight: 700;
    font-size: var(--step--1);
}

.contact-item__value {
    color: var(--text-muted);
    font-size: var(--step--1);
}

a.contact-item__value:hover {
    color: var(--primary);
}

/* --- Downloads ---------------------------------------------------------- */

.download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.download:hover {
    border-color: var(--primary-line);
    background: rgba(255, 255, 255, 0.06);
}

.download__left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 600;
    font-size: var(--step--1);
}

.download__left .mi {
    color: var(--primary);
}

.download .mi--arrow {
    color: var(--text-dim);
    transition: transform var(--fast) var(--ease);
}

.download:hover .mi--arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* Gated resource: reads as restricted, routes to an enquiry rather than a file. */
.download--locked {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.015);
}

.download--locked .download__left {
    color: var(--text-muted);
}

.download--locked .download__left > .mi:first-child {
    color: var(--text-dim);
}

.download--locked:hover .download__left,
.download--locked:hover .download__left > .mi:first-child {
    color: var(--text);
}

.download__left .tag {
    margin-left: 0.5rem;
}

/* --- Certifications ----------------------------------------------------- */

.cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.cert img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: opacity var(--mid) var(--ease), filter var(--mid) var(--ease);
}

.cert:hover img {
    opacity: 1;
    filter: grayscale(0);
}

.cert__label {
    font-size: var(--step--1);
    color: var(--text-muted);
    font-weight: 600;
}

/* --- CTA panel ---------------------------------------------------------- */

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    padding: clamp(2rem, 1.4rem + 3vw, 4rem) var(--gap);
    border: 1px solid var(--primary-line);
    border-radius: var(--r-xl);
    background:
        radial-gradient(35rem 18rem at 50% 0%, rgba(0, 195, 255, 0.16), transparent 70%),
        linear-gradient(180deg, var(--surface-2), var(--bg-soft));
    box-shadow: var(--shadow);
}

/* Inline supporting points inside a CTA panel — wraps to a stack on narrow. */
.cta__points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 500;
}

.cta__points li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta__points .mi {
    color: var(--primary);
}

/* --- Sticky mobile CTA -------------------------------------------------- */

.sticky-cta {
    position: sticky;
    bottom: 0;
    z-index: 90;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
}

@media (min-width: 861px) {
    .sticky-cta {
        display: none;
    }
}

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

.site-footer {
    margin-top: var(--section-y);
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.site-footer__grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    grid-column: span 2;
    min-width: 0;
}

@media (max-width: 560px) {
    .site-footer__brand {
        grid-column: span 1;
    }
}

.site-footer h2 {
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer__col a {
    font-size: var(--step--1);
    color: var(--text-muted);
    transition: color var(--fast) var(--ease);
    width: fit-content;
}

.site-footer__col a:hover {
    color: var(--primary);
}

.site-footer__logo {
    width: min(13.5rem, 70%);
    height: auto;
    margin-bottom: 0.35rem;
}

.site-footer__tagline {
    color: var(--primary);
    font-size: var(--step--1);
    font-weight: 600;
    font-style: italic;
}

.site-footer__addr {
    color: var(--text-dim);
    font-size: var(--step--1);
    line-height: 1.6;
}

.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: var(--step--1);
}

/* --- Reveal on scroll --------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Never leave content hidden if JS fails to run. */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* --- Motion / print ----------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    body::before,
    .site-header,
    .site-footer,
    .sticky-cta,
    .nav-backdrop {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
