/* ==========================================================
   STES Rocketry — shared styles (home + inner pages)
   Theme: race-engineer timing screen.
     black base · grey data cells · purple / magenta / yellow / green
     status colours · teal micro-labels · dotted LED texture
   Display + data: Michroma (regular only)   Body: Barlow
   ========================================================== */

:root {
    --bg: #050506;
    --bg-2: #0b0c0e;
    --cell: #2a2b2e;
    --cell-2: #17181a;
    --line: rgba(255, 255, 255, 0.12);

    --white: #f2f2f2;
    --muted: rgba(242, 242, 242, 0.62);

    --cyan: #2fd0ff;
    --cyan-bg: #06222d;
    --orange: #ff7a1a;
    --yellow: #f2e51c;
    --yellow-bg: #4b4511;
    --green: #38dc4c;
    --green-bg: #0b2b13;
    --teal: #3f958f;
    --gold: #c6a73b;

    --accent: #ffffff;
    --on-accent: #050506;

    --gutter: clamp(20px, 7vw, 140px);
    --display: "Michroma", "Barlow", system-ui, sans-serif;
    --ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-synthesis: none;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--ui);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* faint film grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

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

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

/* LED-matrix dot texture used on data cells */
.led {
    background-image: radial-gradient(rgba(255, 255, 255, 0.075) 0.9px, transparent 1.3px);
    background-size: 3px 3px;
}

/* ---------------------------------------------------------
   HEADER — blur that dissolves into the page (no hard edges)
   --------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 88px;
}

.site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% + 46px);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(5, 5, 6, 0.7) 0%, rgba(5, 5, 6, 0.4) 62%, rgba(5, 5, 6, 0) 100%);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%);
    transition: background 0.3s ease;
}

.site-header.is-solid::before {
    background: linear-gradient(to bottom, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.55) 62%, rgba(5, 5, 6, 0) 100%);
}

.hd-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 12px var(--gutter) 0;
    box-sizing: border-box;
}

.brand {
    flex-shrink: 0;
    display: block;
}

.brand img {
    height: 70px;
    width: auto;
    max-width: none;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 44px);
    margin-left: auto;
}

.nav-center>a,
.nav-center .dd>a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 400 9.84px/1 var(--display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 10px 0;
    position: relative;
    color: rgba(242, 242, 242, 0.78);
    transition: color 0.2s;
}

.nav-center>a:hover,
.nav-center .dd:hover>a,
.nav-center .is-current {
    color: #fff;
}

.nav-center>a::after,
.nav-center .dd>a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-center>a:hover::after,
.nav-center .dd:hover>a::after,
.nav-center .is-current::after {
    transform: scaleX(1);
}

.hd-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-pill {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.0993em;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-pill:hover {
    background: var(--white);
    color: var(--bg);
    border-color: var(--white);
}

.btn-pill--lg {
    height: 46px;
    padding: 0 34px;
    font: 400 9.84px/1 var(--display);
    letter-spacing: 0.11em;
}

.btn-sq {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    padding: 0 30px;
    background: #fff;
    color: var(--on-accent);
    border: 1px solid #fff;
    font: 400 9.84px/1 var(--display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.btn-sq:hover {
    background: transparent;
    color: #fff;
}

.hd-right .btn-sq {
    height: 38px;
    padding: 0 22px;
    font-size: 11px;
}

/* dropdowns */
.dd {
    position: relative;
}

.dd-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    min-width: 210px;
    padding: 8px 0;
    background: rgba(12, 12, 14, 0.78);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dd::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.dd:hover .dd-panel,
.dd:focus-within .dd-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dd-panel a {
    display: block;
    padding: 11px 20px;
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.0993em;
    text-transform: uppercase;
    color: var(--muted);
}

.dd-panel a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

/* hamburger (hooked by sidebar.js) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s, opacity 0.25s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, 82vw);
    padding: 96px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(8, 8, 10, 0.82);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.side-menu.active {
    transform: none;
}

.side-menu a {
    color: inherit;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: #000;
}

.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 100%);
    transform: scale(calc(var(--s, 1) * 1.08));
    transform-origin: var(--o, 50% 50%);
    opacity: 0;
    filter: blur(26px) brightness(var(--dim, 1));
    transition: opacity 1.3s ease, filter 1.5s ease, transform 8s ease-out;
}

.hero-media img.is-active {
    opacity: 1;
    filter: blur(0) brightness(var(--dim, 1));
    transform: scale(var(--s, 1));
}

/* slides that are an object on black rather than a full photo */
.hero-media img.slide-obj {
    left: auto;
    right: 7vw;
    width: auto;
    height: 100%;
    aspect-ratio: 344 / 618;
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 32%, #000 68%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 26%, #000 72%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 32%, #000 68%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 26%, #000 72%, transparent 100%);
    mask-composite: intersect;
}

.hero-media img.slide-rocket {
    object-fit: contain;
    object-position: 50% 50%;
    padding: 60vh 4vw 12vh 40vw;
    -webkit-mask-image: none;
    mask-image: none;
    background: radial-gradient(55% 60% at 70% 48%, #062a38 0%, #000 72%);
    filter: blur(26px) drop-shadow(0 0 10px rgba(47, 208, 255, 0.5));
}

.hero-media img.slide-rocket.is-active {
    filter: blur(0) drop-shadow(0 0 10px rgba(47, 208, 255, 0.5));
}

.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 100%);
    transform: scale(calc(var(--s, 1) * 1.05));
    transform-origin: var(--o, 50% 50%);
    opacity: 0;
    transition: opacity 0.9s ease, transform 7s ease-out;
}

.hero-media img.is-active {
    opacity: 1;
    transform: scale(var(--s, 1));
}

/* slides that are an object on black rather than a full photo */
.hero-media img.slide-obj {
    left: auto;
    right: 7vw;
    width: auto;
    height: 100%;
    aspect-ratio: 344 / 618;
    object-fit: cover;
    object-position: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 32%, #000 68%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 26%, #000 72%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 32%, #000 68%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 26%, #000 72%, transparent 100%);
    mask-composite: intersect;
}

.hero-media img.slide-rocket {
    padding: 20vh 5vw 34vh 44vw;
    -webkit-mask-image: none;
    mask-image: none;
    background: radial-gradient(55% 60% at 70% 48%, #062a38 0%, #000 72%);
}

.hero-shade {
    background:
        linear-gradient(to bottom, rgba(5, 5, 6, 0.6) 0%, rgba(5, 5, 6, 0) 24%),
        linear-gradient(to top, var(--bg) 0%, rgba(5, 5, 6, 0.88) 14%, rgba(5, 5, 6, 0) 52%),
        linear-gradient(to right, rgba(5, 5, 6, 0.6) 0%, rgba(5, 5, 6, 0) 58%);
}

.hero-center {
    position: absolute;
    inset: 0;
    padding: max(31vh, 150px) var(--gutter) 110px;
    display: flex;
    align-items: flex-start;
}

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

.kicker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    font: 400 9.84px/1 var(--display);
    letter-spacing: 0.187em;
    text-transform: uppercase;
}

.kicker em {
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--teal);
}

.slash {
    width: 46px;
    height: 12px;
    background: repeating-linear-gradient(115deg, var(--yellow) 0 5px, transparent 5px 9px);
}

.hero-title {
    font: 400 clamp(17.68px, min(2.788vw, 4.488vh), 39.44px)/1.3 var(--display);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.55));
}

/* headline words come into focus one after another */
.hero-title .w {
    display: inline-block;
    margin-right: 0.28em;
}

.hero-title .w>span {
    display: inline-block;
    opacity: 0;
    filter: blur(14px);
    animation: focusIn 1s cubic-bezier(.3, .6, .2, 1) forwards;
    animation-delay: calc(var(--i) * 80ms + 0.1s);
}

@keyframes focusIn {
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* PRC-style position tag from the dashboard */
.pos {
    display: inline-flex;
    align-items: stretch;
    margin-top: 26px;
    height: 34px;
    border-radius: 0 17px 17px 0;
    overflow: hidden;
    background: #f2f2f2;
    color: #0a0a0a;
    font: 400 10.66px/1 var(--display);
    letter-spacing: 0.0767em;
    text-transform: uppercase;
}

.pos::before {
    content: "";
    width: 22px;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
}

.pos span {
    display: flex;
    align-items: center;
    padding: 0 18px 0 12px;
}

.pos[hidden] {
    display: none;
}

.hero-cta {
    margin-top: 28px;
}

.hero-controls {
    position: absolute;
    right: var(--gutter);
    bottom: 214px;
    z-index: 2;
    display: flex;
    gap: 12px;
}

.circ {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(5, 5, 6, 0.55);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.circ:hover {
    background: var(--white);
    color: var(--bg);
}

/* ---------------------------------------------------------
   STORIES (news-card grid)
   --------------------------------------------------------- */
.stories {
    position: relative;
    z-index: 2;
    margin-top: -200px;
    padding: 0 var(--gutter) 90px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px clamp(24px, 3.4vw, 64px);
}

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    cursor: pointer;
}

.thumb .bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--yellow);
}

.story.is-active .thumb .bar {
    animation: fill var(--dur, 7s) linear forwards;
}

.story.is-paused .thumb .bar {
    animation: none;
    width: 100%;
}

@keyframes fill {
    to {
        width: 100%;
    }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tags span {
    padding: 6px 9px 5px;
    background: var(--cell);
    font: 400 9.004px/1 var(--display);
    letter-spacing: 0.0993em;
    text-transform: uppercase;
}

.story-body h3 {
    font: 400 clamp(10.66px, 0.902vw, 13.94px)/1.44 var(--display);
    letter-spacing: 0.0275em;
    text-transform: uppercase;
}

.story:hover .story-body h3 {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

/* ---------------------------------------------------------
   SECTION SCAFFOLDING
   --------------------------------------------------------- */
.block {
    padding: 104px 0;
}

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

.block-head {
    margin-bottom: 52px;
}

/* "SECTOR n" label with the diagonal leader line from the dashboard */
.sector {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-right: 46px;
    font: 400 10.66px/1 var(--display);
    letter-spacing: 0.121em;
    text-transform: uppercase;
}

.sector::after {
    content: "";
    position: absolute;
    left: calc(100% - 38px);
    top: 50%;
    width: 30px;
    height: 2px;
    background: currentColor;
    transform-origin: left center;
    transform: rotate(-38deg);
}

.sector--c {
    color: var(--cyan);
}

.sector--o {
    color: var(--orange);
}

.sector--y {
    color: var(--yellow);
}

.sector--g {
    color: var(--green);
}

.block-title {
    font: 400 clamp(17.68px, 2.04vw, 31.28px)/1.24 var(--display);
    letter-spacing: 0.0275em;
    text-transform: uppercase;
}

.block-sub {
    margin-top: 16px;
    max-width: 60ch;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.5;
}

/* grey header cell + value cell, as on the timing screen */
.cell-h {
    padding: 11px 14px;
    background: var(--cell);
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-align: center;
}

/* ---------------------------------------------------------
   MISSION + VISION
   --------------------------------------------------------- */
.mv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.mv-cell {
    background: var(--bg-2);
    padding: 40px clamp(24px, 3vw, 48px) 46px;
}

.mv-cell h3 {
    margin-bottom: 22px;
    font: 400 9.84px/1 var(--display);
    letter-spacing: 0.165em;
    text-transform: uppercase;
    color: var(--teal);
}

.mv-cell p {
    font: 400 clamp(10.72px, 1.015vw, 15.23px)/1.59 var(--display);
    letter-spacing: 0.0055em;
}

.mv-cell p+p {
    margin-top: 18px;
    color: var(--muted);
}

/* ---------------------------------------------------------
   ARENAS (competitions)
   --------------------------------------------------------- */
.arenas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.arena {
    background: var(--bg-2);
    padding: 28px 30px 32px;
}

.arena h4 {
    font: 400 clamp(10.15px, 0.9588vw, 13.53px)/1.3 var(--display);
    letter-spacing: 0.033em;
    text-transform: uppercase;
}

.arena .where {
    display: block;
    margin: 10px 0 14px;
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.121em;
    text-transform: uppercase;
    color: var(--teal);
}

.arena p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   MISSION LOG (timing board)
   --------------------------------------------------------- */
.board {
    display: grid;
    gap: 6px;
}

.b-row {
    display: grid;
    grid-template-columns: 84px minmax(150px, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 6px;
}

.b-row>div {
    padding: 18px 16px;
    font: 400 clamp(11.48px, 0.984vw, 14.76px)/1.42 var(--display);
    letter-spacing: 0.022em;
    display: flex;
    align-items: center;
}

.b-head>div {
    padding: 11px 14px;
    background: var(--cell);
    justify-content: center;
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.b-row:not(.b-head)>div {
    position: relative;
    background-color: var(--cell-2);
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.9px, transparent 1.3px);
    background-size: 3px 3px;
}

.b-row:not(.b-head)>div:first-child {
    color: var(--muted);
    justify-content: center;
}

.b-name {
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em !important;
}

.b-row:not(.b-head)>div:nth-child(3) {
    color: var(--muted);
    font-size: clamp(13px, 1.05vw, 16px);
}

/* result cells: purple / green / yellow, grey notch at the left */
.b-res {
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.b-res::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(255, 255, 255, 0.45);
}

.b-res {
    padding-left: 24px !important;
}

.res-c {
    background-color: var(--cyan-bg) !important;
    color: var(--cyan);
}

.res-g {
    background-color: var(--green-bg) !important;
    color: var(--green);
}

.res-y {
    background-color: var(--yellow-bg) !important;
    color: var(--yellow);
    box-shadow: inset 0 0 0 1px var(--yellow);
}

.res-n {
    color: var(--muted);
}

.b-row:not(.b-head):hover>div:not(.b-res) {
    background-color: #202225;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 22px;
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.0993em;
    text-transform: uppercase;
    color: var(--muted);
}

.legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -2px;
}

/* ---------------------------------------------------------
   LIQUID ENGINE
   --------------------------------------------------------- */
.engine-hero {
    position: relative;
    margin-bottom: 6px;
    aspect-ratio: 21 / 8;
    min-height: 260px;
    overflow: hidden;
    background: #000;
}

.engine-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 36%;
}

.engine-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0) 55%),
        linear-gradient(to right, rgba(5, 5, 6, 0.55), transparent 55%);
}

.engine-hero figcaption {
    position: absolute;
    z-index: 1;
    left: 28px;
    bottom: 24px;
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.143em;
    text-transform: uppercase;
    color: var(--teal);
}

.engine-hero figcaption b {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font: 400 clamp(14.96px, 2.04vw, 28.56px)/1 var(--display);
    letter-spacing: 0.0165em;
}

.eng-cells {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.eng {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
}

.eng .cell-h {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.eng .cell-h em {
    font-style: normal;
    color: var(--teal);
}

.eng-body {
    padding: 26px 26px 30px;
    flex: 1;
}

.eng-num {
    font: 400 clamp(32.64px, 3.672vw, 57.12px)/1.35 var(--display);
    letter-spacing: 0.0055em;
    font-variant-numeric: tabular-nums;
}

.eng-num small {
    margin-left: 6px;
    font-size: 0.36em;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.eng-bar {
    position: relative;
    height: 8px;
    margin: 22px 0 8px;
    background: var(--cell);
}

.eng-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w);
    background: var(--c, var(--yellow));
}

.eng-bar-l {
    display: flex;
    justify-content: space-between;
    font: 400 9.004px/1 var(--display);
    letter-spacing: 0.11em;
    color: var(--muted);
}

.eng dl {
    margin-top: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 18px;
    font-size: 16px;
}

.eng dt {
    font: 400 9.004px/1.81 var(--display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--teal);
}

.eng dd {
    text-align: right;
}

.eng--next {
    background: var(--cyan-bg);
}

.eng--next .cell-h {
    background: #0b4a63;
    color: #c4f1ff;
}

.eng--next .eng-num {
    color: var(--cyan);
}

.eng-note {
    margin-top: 6px;
    padding: 18px 26px;
    background: var(--bg-2);
    font: 400 9.84px/1.65 var(--display);
    letter-spacing: 0.121em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* ---------------------------------------------------------
   SUBSYSTEMS
   --------------------------------------------------------- */
.sys-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.sys {
    background: var(--bg-2);
    transition: background 0.25s;
}

.sys:hover {
    background: #121316;
}

.sys .cell-h {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.sys .cell-h em {
    font-style: normal;
    color: var(--teal);
}

.sys-body {
    padding: 22px 24px 28px;
}

.sys-tag {
    margin-bottom: 16px;
    font: 400 10.88px/1.42 var(--display);
    letter-spacing: 0.022em;
    color: var(--yellow);
}

.sys ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.sys li {
    position: relative;
    padding-left: 18px;
    color: rgba(242, 242, 242, 0.82);
    font-size: 16px;
    line-height: 1.45;
}

.sys li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 2px;
    background: var(--teal);
}

.sys li b {
    font-weight: 600;
    color: #fff;
}

/* ---------------------------------------------------------
   ROADMAP
   --------------------------------------------------------- */
.road {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.road-cell {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    min-height: 340px;
}

.road-cell .cell-h {
    display: flex;
    justify-content: space-between;
}

.road-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 30px 32px;
}

.road-body h3 {
    font: 400 clamp(19.04px, 2.312vw, 35.36px)/1 var(--display);
    letter-spacing: 0.011em;
    text-transform: uppercase;
}

.road-body p {
    margin-top: 16px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.road-meta {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.road-meta span {
    padding: 9px 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.0993em;
    text-transform: uppercase;
}

.road-cell--a .cell-h {
    background: #0b4a63;
    color: #c4f1ff;
}

.road-cell--a .road-meta span {
    border-color: var(--cyan);
    color: var(--cyan);
}

.road-cell--b .cell-h {
    background: #5a2a08;
    color: #ffd5ae;
}

.road-cell--b .road-meta span {
    border-color: var(--orange);
    color: var(--orange);
}

/* ---------------------------------------------------------
   PARTNER
   --------------------------------------------------------- */
.partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 100px);
    align-items: start;
}

.why {
    list-style: none;
    display: grid;
    gap: 6px;
}

.why li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 20px 22px;
    background: var(--bg-2);
}

.why li>span {
    font: 400 14.96px/1 var(--display);
    color: var(--yellow);
}

.why h4 {
    font: 400 9.588px/1.3 var(--display);
    letter-spacing: 0.044em;
    text-transform: uppercase;
}

.why p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.perks .b-row {
    grid-template-columns: minmax(130px, 1.3fr) repeat(3, minmax(0, 1fr));
}

.perks .b-row>div {
    justify-content: center;
    text-align: center;
    font-size: 15px;
}

.perks .b-row>div:first-child {
    justify-content: flex-start;
    text-align: left;
    color: #fff;
}

.perks .b-head>div small {
    display: block;
    margin-top: 6px;
    font: 400 9.004px/1 var(--display);
    letter-spacing: 0.055em;
    color: var(--muted);
}

.perks .b-row:not(.b-head)>div.yes {
    color: var(--green);
    font-weight: 700;
}

.perks .b-row:not(.b-head)>div.no {
    color: rgba(242, 242, 242, 0.3);
}

.perks-cta {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------------------------------------------------------
   OUTREACH
   --------------------------------------------------------- */
.out {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.out-cell {
    padding: 30px 28px 34px;
    background: var(--bg-2);
}

.out-cell>span {
    display: block;
    margin-bottom: 40px;
    font: 400 9.84px/1 var(--display);
    letter-spacing: 0.132em;
    color: var(--teal);
}

.out-cell h4 {
    font: 400 10.15px/1.36 var(--display);
    letter-spacing: 0.033em;
    text-transform: uppercase;
}

.out-cell p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   TEAM BAND + FOOTER
   --------------------------------------------------------- */
.band {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.band>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    filter: grayscale(1) contrast(1.08) brightness(0.62);
}

.band-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(5, 5, 6, 0.96) 0%, rgba(5, 5, 6, 0.3) 55%, rgba(5, 5, 6, 0.1) 100%),
        linear-gradient(to right, rgba(5, 5, 6, 0.7), transparent 60%);
}

.band-copy {
    position: relative;
    padding-block: 80px;
}

.band-copy h2 {
    margin-bottom: 30px;
    max-width: 16ch;
    font: 400 clamp(20.4px, 2.856vw, 46.24px)/1 var(--display);
    letter-spacing: 0.0055em;
    text-transform: uppercase;
}

.footer {
    padding-top: 56px;
    border-top: 1px solid var(--line);
    background: #000;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 54px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.footer-links a {
    font: 400 9.02px/1 var(--display);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-social img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.footer-social a:hover img {
    opacity: 1;
}

.footer-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 44px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.footer-base a:hover {
    color: #fff;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1180px) {
    .hd-inner {
        padding: 12px 28px 0;
        gap: 18px;
    }

    .nav-center {
        gap: 16px;
    }

    .nav-center>a,
    .nav-center .dd>a {
        font-size: 9px;
        letter-spacing: 0.07em;
    }

    .hd-right .btn-sq {
        padding: 0 16px;
    }

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

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

    .nav-center>a,
    .nav-center .dd>a {
        letter-spacing: 0.13em;
    }

    .partner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {

    .nav-center,
    .hd-right .btn-sq {
        display: none;
    }

    .hd-inner {
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .hero-center {
        padding-bottom: 150px;
    }

    .hero-controls {
        bottom: 120px;
    }

    .stories {
        margin-top: -120px;
    }

    .mv,
    .arenas,
    .road,
    .eng-cells {
        grid-template-columns: 1fr;
    }

    .hero-media img.slide-rocket {
        padding: 18vh 4vw 40vh 4vw;
    }
}

@media (max-width: 760px) {
    .b-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .b-head {
        display: none;
    }

    .b-row>div:nth-child(3) {
        grid-column: 1 / -1;
        order: 4;
    }

    .b-row .b-res {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .hero {
        min-height: 620px;
    }

    .stories-grid,
    .sys-grid,
    .eng-cells,
    .out {
        grid-template-columns: 1fr;
    }

    .block {
        padding: 64px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ---------------------------------------------------------
   MOTION
   --------------------------------------------------------- */
@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

.site-header .hd-inner>* {
    animation: dropIn 0.9s cubic-bezier(.2, .8, .2, 1) both;
}

.site-header .hd-inner>:nth-child(2) {
    animation-delay: 0.12s;
}

.site-header .hd-inner>:nth-child(3) {
    animation-delay: 0.24s;
}

.hero-media {
    will-change: transform;
}

.hero-controls {
    animation: fadeUp 0.9s 0.8s cubic-bezier(.2, .8, .2, 1) both;
}

.slash {
    background-size: 18px 12px;
    animation: slashRun 1.2s linear infinite;
}

@keyframes slashRun {
    to {
        background-position: 18px 0;
    }
}

.btn-sq span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-sq:hover span {
    transform: translateX(6px);
}

/* running ticker */
.ticker {
    overflow: hidden;
    padding: 18px 0;
    background: #000;
    border-block: 1px solid var(--line);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tick 48s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-group {
    display: flex;
    flex-shrink: 0;
}

.ticker-group span {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.ticker-group span::after {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--c, var(--cyan));
    transform: rotate(45deg);
}

.ticker-group b {
    font-weight: 400;
    color: #fff;
}

@keyframes tick {
    to {
        transform: translateX(-50%);
    }
}

/* mission log: rows slide in, result cells wipe open */
/* thrust bars fill when the cell appears */
.js .eng .eng-bar i {
    width: 0;
    transition: width 1.5s 0.4s cubic-bezier(.2, .7, .2, 1);
}

.js .eng.in .eng-bar i {
    width: var(--w);
}

.eng-num span {
    display: inline-block;
    min-width: 2ch;
}

/* hover motion */
.sys {
    position: relative;
}

.sys::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0;
    background: var(--cyan);
    transition: width 0.5s cubic-bezier(.2, .7, .2, 1);
}

.sys:hover::after {
    width: 100%;
}

.why li {
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.7s ease;
}

.why li:hover {
    transform: translateX(8px);
    background: #121316;
}

.out-cell,
.road-cell,
.arena,
.mv-cell {
    transition: background 0.3s ease, transform 0.5s ease, opacity 0.7s ease;
}

.out-cell:hover,
.arena:hover,
.mv-cell:hover {
    background: #121316;
}

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

    .ticker-track,
    .slash {
        animation: none;
    }

}



/* =========================================================
   v4 — framed photos, curtain reveals, hover enlarge, spotlight
   ========================================================= */

/* --- scroll reveal: curtain wipe, not fade-and-slide --- */
.js .reveal {
    opacity: 0;
    filter: blur(16px);
    transition:
        opacity 1.1s ease var(--d, 0s),
        filter 1.2s ease var(--d, 0s),
        transform 0.5s cubic-bezier(.2, .8, .2, 1),
        background-color 0.3s ease,
        box-shadow 0.4s ease;
}

.js .reveal.in {
    opacity: 1;
    filter: blur(0);
}

@keyframes curtain {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(-90px);
    }
}

@keyframes wipeIn {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(-12px);
    }
}

/* leader line + hairline draw themselves */
.js .sector::after {
    transform: rotate(-38deg) scaleX(0);
    transition: transform 0.6s 0.6s cubic-bezier(.7, 0, .2, 1);
}

.js .block-head.in .sector::after {
    transform: rotate(-38deg) scaleX(1);
}

.block-head::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 28px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 75%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s 0.35s cubic-bezier(.7, 0, .2, 1);
}

.block-head.in::after {
    transform: scaleX(1);
}

/* --- story cards --- */
.story {
    position: relative;
    transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.35s ease, filter 0.35s ease;
}

.story:hover {
    transform: scale(1.07);
    z-index: 4;
}

.stories-grid:hover .story:not(:hover) {
    opacity: 0.38;
    filter: saturate(0.4);
}

/* card type goes back to Michroma, small and wide */
.story-body h3 {
    font: 400 clamp(10px, 0.9vw, 13px)/1.55 "Michroma", var(--display);
    letter-spacing: 0.03em;
}

.tags span {
    font: 400 8.5px/1 "Michroma", var(--display);
    letter-spacing: 0.12em;
}

.thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #04070a;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--p, 50% 50%);
    transform: scale(var(--z, 1));
    transform-origin: var(--p, 50% 50%);
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.story:hover .thumb img {
    transform: scale(calc(var(--z, 1) * 1.14));
}

.thumb .bar {
    z-index: 4;
}

.thumb--obj {
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 14px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 14px 100%,
        radial-gradient(circle at 60% 50%, #0a4560, #020a0f 80%);
}

.thumb--obj img {
    object-fit: contain;
    padding: 8px 12px;
    filter: drop-shadow(0 0 5px rgba(47, 208, 255, 0.5));
}

/* framed banner photos */
.frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(#fff, #fff) 0 0 / 22px 1px no-repeat,
        linear-gradient(#fff, #fff) 0 0 / 1px 22px no-repeat,
        linear-gradient(#fff, #fff) 100% 0 / 22px 1px no-repeat,
        linear-gradient(#fff, #fff) 100% 0 / 1px 22px no-repeat,
        linear-gradient(#fff, #fff) 0 100% / 22px 1px no-repeat,
        linear-gradient(#fff, #fff) 0 100% / 1px 22px no-repeat,
        linear-gradient(#fff, #fff) 100% 100% / 22px 1px no-repeat,
        linear-gradient(#fff, #fff) 100% 100% / 1px 22px no-repeat;
    opacity: 0.85;
}

.engine-hero {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.engine-hero img[data-parallax],
.band>img[data-parallax] {
    top: -12%;
    bottom: auto;
    height: 124%;
    will-change: transform;
}

/* --- hover enlarge for rows and cells --- */
.board .b-row:not(.b-head),
.sys,
.eng,
.road-cell,
.mv-cell,
.arena,
.out-cell,
.why li {
    position: relative;
}

.board .b-row:not(.b-head):hover {
    transform: scale(1.025);
    z-index: 3;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75);
}

.sys:hover,
.eng:hover,
.road-cell:hover,
.mv-cell:hover,
.arena:hover,
.out-cell:hover {
    transform: translateY(-6px) scale(1.025);
    z-index: 3;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
}

.why li:hover {
    transform: translateX(10px) scale(1.02);
    z-index: 3;
}

/* cursor spotlight on cards */
.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.085), transparent 62%);
}

.spot:hover::before {
    opacity: 1;
}

/* magnetic buttons */
.btn-sq,
.btn-pill {
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s cubic-bezier(.2, .8, .2, 1);
}

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

    .reveal,
    .story {
        opacity: 1;
        clip-path: none;
        animation: none;
    }
}


/* =========================================================
   v6 — minimal hero, highlights section, blur motion
   ========================================================= */
.kicker {
    margin-bottom: 26px;
}

.hero-copy.swap .kicker,
.hero-copy.swap .hero-meta,
.hero-copy.swap .hero-link {
    animation: focusIn 1.1s cubic-bezier(.3, .6, .2, 1) both;
}

.hero-copy.swap .kicker {
    animation-delay: 0s;
}

.hero-copy.swap .hero-meta {
    animation-delay: 0.55s;
}

.hero-copy.swap .hero-link {
    animation-delay: 0.7s;
}

.hero-copy.swap .kicker,
.hero-copy.swap .hero-meta,
.hero-copy.swap .hero-link {
    opacity: 0;
    filter: blur(14px);
}

/* old copy melts out before the next one comes in;
   the container snaps back, so only the new pieces animate in */
.hero-copy {
    transition: none;
}

.hero-copy.is-leaving {
    opacity: 0;
    filter: blur(16px);
    transition: opacity 0.45s ease, filter 0.45s ease;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 26px;
}

.hero-meta .pos {
    margin-top: 0;
}

.hero-tags {
    display: flex;
    gap: 6px;
}

.hero-tags span {
    padding: 8px 10px 7px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font: 400 8.5px/1 "Michroma", var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    font: 400 10px/1 var(--display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: gap 0.3s ease, border-color 0.3s ease;
}

.hero-link:hover {
    gap: 20px;
    border-color: #fff;
}

/* thin slide indicators */
.hero-progress {
    position: absolute;
    left: var(--gutter);
    bottom: 48px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.hero-progress button {
    width: 44px;
    height: 18px;
    padding: 8px 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero-progress i {
    display: block;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
    overflow: hidden;
}

.hero-progress i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
}

.hero-progress button.is-done i::after {
    transform: scaleX(1);
    background: rgba(255, 255, 255, 0.7);
}

.hero-progress button.is-active i::after {
    animation: segfill var(--dur, 7s) linear forwards;
}

@keyframes segfill {
    to {
        transform: scaleX(1);
    }
}

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: 38px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.scroll-cue i {
    position: relative;
    display: block;
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.scroll-cue i::after {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: #fff;
    animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
    to {
        top: 110%;
    }
}

/* hero fades into the page, no overlapping cards any more */
.hero-shade {
    background:
        linear-gradient(to bottom, rgba(5, 5, 6, 0.6) 0%, rgba(5, 5, 6, 0) 24%),
        linear-gradient(to top, var(--bg) 0%, rgba(5, 5, 6, 0.7) 12%, rgba(5, 5, 6, 0) 40%),
        linear-gradient(to right, rgba(5, 5, 6, 0.6) 0%, rgba(5, 5, 6, 0) 58%);
}

.stories-grid {
    gap: 48px clamp(24px, 3.4vw, 64px);
}

@media (max-width: 960px) {
    .hero-center {
        padding-bottom: 130px;
    }

    .scroll-cue {
        display: none;
    }

    .hero-media img.slide-rocket {
        padding: 22vh 4vw 40vh 4vw;
    }
}

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

    .hero-copy.swap .kicker,
    .hero-copy.swap .hero-meta,
    .hero-copy.swap .hero-link,
    .hero-title .w>span {
        opacity: 1;
        filter: none;
        animation: none;
    }
}


/* =========================================================
   v7 — journal bento, quiet ticker, open mission & vision
   ========================================================= */

/* ticker: one tone, tiny dots */
.ticker {
    padding: 15px 0;
    border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.ticker-track {
    animation-duration: 70s;
}

.ticker-group span {
    gap: 22px;
    padding-right: 22px;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(242, 242, 242, 0.42);
}

.ticker-group span::after {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(242, 242, 242, 0.35);
    transform: none;
}

.ticker-group b {
    color: rgba(242, 242, 242, 0.9);
}

/* section header with a link on the right */
.block-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.all-link {
    display: inline-flex;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font: 400 9px/1 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: gap 0.3s ease, border-color 0.3s ease;
}

.all-link:hover {
    gap: 20px;
    border-color: #fff;
}

/* --- bento grid --- */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 10px;
}

.bt {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 24px;
    color: inherit;
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: border-color 0.4s ease, transform 0.55s cubic-bezier(.2, .8, .2, 1), background-color 0.3s ease;
}

.bt:hover {
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-4px);
    background-color: #101115;
}

.bt--feat {
    grid-column: 1 / 7;
    grid-row: 1 / 4;
}

.bt--a {
    grid-column: 7 / 10;
    grid-row: 1 / 3;
}

.bt--b {
    grid-column: 10 / 13;
    grid-row: 1 / 3;
}

.bt--wide {
    grid-column: 7 / 13;
    grid-row: 3 / 4;
}

.bt--c {
    grid-column: 1 / 5;
    grid-row: 4 / 6;
}

.bt--d {
    grid-column: 5 / 9;
    grid-row: 4 / 6;
}

.bt--e {
    grid-column: 9 / 13;
    grid-row: 4 / 6;
}

.bt-body {
    position: relative;
    z-index: 2;
}

.bt-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 400 8.5px/1 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bt-tag i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.bt h3 {
    margin-top: 14px;
    font: 400 clamp(11px, 0.95vw, 14px)/1.55 var(--display);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bt--feat h3 {
    font-size: clamp(15px, 1.6vw, 23px);
    line-height: 1.45;
    max-width: 22ch;
}

.bt p {
    margin-top: 12px;
    max-width: 40ch;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.bt-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font: 400 8.5px/1 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.bt-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.bt:hover .bt-more::after {
    transform: translateX(7px);
}

/* photo tiles */
.bt-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.8);
    transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), filter 0.5s ease;
}

.bt:hover .bt-img {
    transform: scale(1.07);
    filter: saturate(1) brightness(0.95);
}

.bt--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.3) 55%, rgba(5, 5, 6, 0.1) 100%);
}

.bt--feat .bt-img {
    object-position: 45% 40%;
}

.bt--d .bt-img {
    object-position: 50% 40%;
}

/* tiles with a small object picture on top (boards, patches) */
.bt-fig {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    margin-bottom: 18px;
    object-fit: contain;
    object-position: left center;
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
    transform-origin: left center;
}

.bt:hover .bt-fig {
    transform: scale(1.06);
}

.bt--c .bt-fig {
    object-position: left center;
}

/* wide tile: text left, picture right */
.bt--wide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 26px;
}

.bt--wide .bt-body {
    flex: 1;
}

.bt--wide p,
.bt--wide .bt-more {
    display: none;
}

.bt--wide h3 {
    margin-top: 12px;
}

.bt--wide .bt-fig {
    order: 2;
    flex: none;
    width: auto;
    height: 100%;
    max-width: 30%;
    margin: 0;
    object-position: center;
}

.bt-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.bt-stats span {
    display: block;
    font: 400 8.5px/1 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bt-stats b {
    display: block;
    margin-bottom: 8px;
    font: 400 clamp(20px, 2.2vw, 30px)/1 var(--display);
    letter-spacing: 0.02em;
    color: #fff;
}

.bt--e {
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.9px, transparent 1.3px);
    background-size: 3px 3px;
}

/* --- mission & vision: just type --- */
.mv2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mv2-col {
    padding-right: clamp(24px, 4vw, 72px);
}

.mv2-col+.mv2-col {
    padding-right: 0;
    padding-left: clamp(24px, 4vw, 72px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mv2-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--teal);
}

.mv2-label::after {
    content: "";
    width: 36px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.mv2-lead {
    font: 500 clamp(21px, 2vw, 30px)/1.35 var(--ui);
    letter-spacing: 0;
}

.mv2-sub {
    margin-top: 22px;
    max-width: 44ch;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 190px;
    }

    .bt--feat {
        grid-column: 1 / 7;
        grid-row: auto / span 3;
    }

    .bt--a {
        grid-column: 1 / 4;
        grid-row: auto / span 2;
    }

    .bt--b {
        grid-column: 4 / 7;
        grid-row: auto / span 2;
    }

    .bt--wide {
        grid-column: 1 / 7;
        grid-row: auto / span 1;
    }

    .bt--c,
    .bt--d,
    .bt--e {
        grid-column: 1 / 7;
        grid-row: auto / span 2;
    }
}

@media (max-width: 680px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bt,
    .bt--feat,
    .bt--a,
    .bt--b,
    .bt--wide,
    .bt--c,
    .bt--d,
    .bt--e {
        grid-column: 1;
        grid-row: auto;
        min-height: 280px;
    }

    .bt-fig {
        flex: none;
        height: 140px;
    }

    .bt--wide {
        flex-direction: column;
        align-items: stretch;
    }

    .bt--wide .bt-fig {
        max-width: 100%;
        order: 0;
    }

    .mv2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mv2-col,
    .mv2-col+.mv2-col {
        padding: 0;
        border: 0;
    }

    .block-head--row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* board pictures fill their slot instead of floating small */
.bt--a .bt-fig,
.bt--b .bt-fig {
    object-fit: cover;
    object-position: 50% 40%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transform-origin: center;
}

/* --- sponsor perks: taller header row so the price sits inside its column --- */
.perks .b-head>div {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    padding: 20px 10px;
    text-align: center;
}

.perks .b-head>div:first-child {
    align-items: flex-start;
    padding-left: 18px;
}

.perks .b-head>div small {
    display: block;
    margin: 0;
    font: 500 12px/1.3 var(--ui);
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--muted);
}

.perks .b-row:not(.b-head)>div {
    min-height: 64px;
}


/* =========================================================
   v8 — roomier mission log intro, stacked mission & vision,
        quieter engine-card hover
   ========================================================= */

/* more air between the two competitions and the log table */
.arenas {
    gap: 10px;
    margin-bottom: 72px;
}

.block-head+.arenas {
    margin-top: 8px;
}

/* mission & vision: two stacked chapters */
.mv3 {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mv3-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px 200px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 60px 0 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mv3-row::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 0;
    background: #fff;
    transition: width 0.9s cubic-bezier(.2, .8, .2, 1);
}

.mv3-row:hover::before {
    width: 100%;
}

.mv3-no {
    padding-top: 9px;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.2em;
    color: var(--teal);
}

.mv3-label {
    padding-top: 6px;
    font: 400 13px/1 var(--display);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mv3-lead {
    max-width: 34ch;
    font: 500 clamp(22px, 2.4vw, 36px)/1.28 var(--ui);
}

.mv3-sub {
    margin-top: 24px;
    max-width: 52ch;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.mv3-row:hover .mv3-sub {
    color: rgba(242, 242, 242, 0.88);
}

/* engine cards: no lift, no spotlight; a hairline draws across the top
   and the thrust bar brightens */
.eng:hover {
    transform: none;
    box-shadow: none;
    background: #0e0f12;
}

.eng--next:hover {
    background: #08222d;
}

.eng.spot::before {
    display: none;
}

.eng::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0;
    background: #fff;
    transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}

.eng--next::after {
    background: var(--cyan);
}

.eng:hover::after {
    width: 100%;
}

.eng .eng-bar i {
    transition: width 1.5s 0.4s cubic-bezier(.2, .7, .2, 1), filter 0.4s ease;
}

.eng:hover .eng-bar i {
    filter: brightness(1.35);
}

.eng .cell-h {
    transition: background-color 0.4s ease, color 0.4s ease;
}

.eng:hover .cell-h {
    color: #fff;
}

@media (max-width: 760px) {
    .mv3-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 40px 0 44px;
    }

    .mv3-no,
    .mv3-label {
        padding-top: 0;
    }

    .arenas {
        margin-bottom: 48px;
    }
}


/* =========================================================
   v9 — mission & vision as a plain editorial spread,
        calmer hover on the subsystem cards
   ========================================================= */
.mf {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}

.mf-photos {
    position: relative;
    padding-bottom: 96px;
}

.mf-photos figure {
    overflow: hidden;
    background: #0b0c0e;
}

.mf-a {
    width: 80%;
    aspect-ratio: 4 / 5;
}

.mf-b {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    aspect-ratio: 1 / 1;
    outline: 8px solid var(--bg);
}

.mf-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.3s cubic-bezier(.2, .8, .2, 1);
}

.mf-a img {
    object-position: 58% 40%;
}

.mf-b img {
    object-position: 50% 30%;
}

.mf-photos figure:hover img {
    transform: scale(1.05);
}

.mf-text {
    padding-top: clamp(30px, 7vw, 110px);
}

.mf-big {
    max-width: 30ch;
    font: 400 clamp(24px, 2.5vw, 38px)/1.34 var(--ui);
    letter-spacing: -0.005em;
    text-wrap: pretty;
}

.mf-big b {
    font-weight: 600;
}

.mf-sm {
    max-width: 42ch;
    margin: 26px 0 0 clamp(0px, 5vw, 84px);
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
    text-wrap: pretty;
}

.mf-vision {
    margin-top: clamp(56px, 7vw, 100px);
}

/* hand-marked phrases */
.hl {
    background: linear-gradient(rgba(242, 229, 28, 0.34), rgba(242, 229, 28, 0.34)) no-repeat 0 88% / 0% 0.42em;
    transition: background-size 1.1s 0.5s cubic-bezier(.2, .7, .2, 1);
    padding: 0 0.06em;
    margin: 0 -0.06em;
}

.in .hl,
.mf-text .in.reveal .hl {
    background-size: 100% 0.42em;
}

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

    .mf-photos {
        max-width: 460px;
    }

    .mf-text {
        padding-top: 0;
    }
}

/* subsystem cards: no lift, no spotlight; the bullets slide and a line draws */
.sys:hover {
    transform: none;
    box-shadow: none;
    background: #0e0f12;
}

.sys.spot::before {
    display: none;
}

.sys::after {
    height: 2px;
    background: #fff;
    transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}

.sys .cell-h em {
    transition: color 0.4s ease;
}

.sys:hover .cell-h em {
    color: #fff;
}

.sys li {
    transition: padding-left 0.45s cubic-bezier(.2, .8, .2, 1), color 0.3s ease;
}

.sys li::before {
    transition: width 0.45s cubic-bezier(.2, .8, .2, 1), background-color 0.3s ease;
}

.sys:hover li {
    padding-left: 30px;
    color: #fff;
}

.sys:hover li::before {
    width: 20px;
    background: #fff;
}

.sys li:nth-child(2) {
    transition-delay: 0.05s;
}

.sys li:nth-child(3) {
    transition-delay: 0.1s;
}


/* engine cards: monochrome blocks; colour only on the thrust bars */
.eng--next,
.eng--next:hover {
    background: var(--bg-2);
}

.eng--next:hover {
    background: #0e0f12;
}

.eng--next .cell-h {
    background: var(--cell);
    color: var(--white);
}

.eng--next .eng-num {
    color: inherit;
}

.eng--next::after {
    background: #fff;
}

.eng .cell-h em,
.eng dt {
    color: var(--muted);
}

.eng-note {
    color: var(--muted);
}


/* mission & vision set in the site's display font */
.mf-big {
    max-width: 36ch;
    font: 400 clamp(15px, 1.5vw, 22px)/1.75 var(--display);
    letter-spacing: 0.02em;
}

.mf-big b {
    font-weight: 400;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mf-sm {
    max-width: 46ch;
    font: 400 clamp(11px, 0.95vw, 13px)/1.95 var(--display);
    letter-spacing: 0.03em;
}

.hl {
    padding: 0 0.1em;
    margin: 0 -0.1em;
}


/* =========================================================
   v10 — mission & vision built around the wide display face:
   one giant word per row, text beside it, a photo band between
   ========================================================= */
.mv4-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 110px);
    align-items: start;
    padding: 28px 0;
}

.mv4-row--flip {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.mv4-word {
    font: 400 clamp(32px, 5.4vw, 82px)/1 var(--display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mv4-row--flip .mv4-word {
    text-align: right;
}

.mv4-text {
    padding-top: 0.5em;
}

.mv4-lead {
    max-width: 38ch;
    font: 400 clamp(14px, 1.4vw, 20px)/1.85 var(--display);
    letter-spacing: 0.02em;
}

.mv4-sub {
    max-width: 48ch;
    margin-top: 28px;
    color: var(--muted);
    font: 400 clamp(11px, 0.92vw, 12.5px)/2 var(--display);
    letter-spacing: 0.03em;
}

.mv4-band {
    position: relative;
    margin: 36px 0;
    aspect-ratio: 21 / 7;
    min-height: 200px;
    overflow: hidden;
    background: #0b0c0e;
}

.mv4-band img {
    position: absolute;
    left: 0;
    top: -16%;
    width: 100%;
    height: 132%;
    object-fit: cover;
    object-position: 58% 38%;
    filter: saturate(0.9) brightness(0.88);
    will-change: transform;
}

@media (max-width: 860px) {

    .mv4-row,
    .mv4-row--flip {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .mv4-row--flip .mv4-word {
        order: -1;
        text-align: left;
    }
}


/* v10b — portrait photo beside the two statements */
.mv4 {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}

.mv4-photo {
    position: sticky;
    top: 110px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0b0c0e;
}

.mv4-photo img {
    position: absolute;
    left: 0;
    top: -8%;
    width: 100%;
    height: 116%;
    object-fit: cover;
    object-position: 58% 45%;
    filter: saturate(0.92) brightness(0.92);
    will-change: transform;
}

.mv4-col {
    display: flex;
    flex-direction: column;
    gap: clamp(72px, 9vw, 130px);
    padding-top: 6px;
}

.mv4-row,
.mv4-row--flip {
    display: block;
    padding: 0;
}

.mv4-word,
.mv4-row--flip .mv4-word {
    margin-bottom: clamp(22px, 2.6vw, 36px);
    text-align: left;
    font-size: clamp(30px, 4.6vw, 70px);
}

.mv4-row:nth-child(2) {
    margin-left: clamp(0px, 5vw, 80px);
}

.mv4-text {
    padding-top: 0;
}

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

    .mv4-photo {
        position: relative;
        top: 0;
        max-width: 420px;
    }

    .mv4-row:nth-child(2) {
        margin-left: 0;
    }
}

letter-spacing: 0.18em;
color: var(--teal);
text-transform: uppercase;
}

.card-subtag {
    font: 500 11px/1 var(--ui);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.card-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: auto;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.card-status-dot--cyan {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.manifesto-lead {
    font: 500 clamp(18px, 1.6vw, 24px)/1.4 var(--ui);
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    text-wrap: pretty;
}

.txt-glow {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
}

.manifesto-sub {
    font: 400 15px/1.65 var(--ui);
    color: var(--muted);
    max-width: 52ch;
}

.manifesto-card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-pill {
    font: 400 8.5px/1 var(--display);
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px 10px;
    border-radius: 2px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .manifesto {
        grid-template-columns: 1fr;
    }

    .manifesto-frame {
        min-height: 340px;
    }
}


/* =========================================================
   MISSION LOG — Arenas & F1 Live Timing Leaderboard
   ========================================================= */
.arenas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.arena {
    background: linear-gradient(180deg, rgba(16, 17, 21, 0.75) 0%, rgba(10, 11, 14, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: clamp(22px, 2.5vw, 30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.arena:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 36px -10px rgba(0, 0, 0, 0.8);
}

.arena-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arena-chip {
    font: 500 9px/1 var(--display);
    letter-spacing: 0.18em;
    color: var(--teal);
    text-transform: uppercase;
}

.arena-loc {
    font: 500 12px/1 var(--ui);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.arena h4 {
    font: 600 clamp(16px, 1.3vw, 20px)/1.35 var(--ui);
    letter-spacing: 0.01em;
    color: #fff;
    margin-top: 4px;
}

.arena p {
    font: 400 14.5px/1.6 var(--ui);
    color: var(--muted);
}

.arena-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font: 400 10px/1 var(--display);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.arena-stats-bar b {
    color: #fff;
    font-weight: 500;
}

.arena-stats-bar .sep {
    opacity: 0.25;
}

@media (max-width: 760px) {
    .arenas {
        grid-template-columns: 1fr;
    }
}

/* F1 Leaderboard Table Container */
.log-table-wrap {
    background: linear-gradient(180deg, rgba(14, 15, 18, 0.9) 0%, rgba(9, 10, 13, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    overflow-x: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
}

.log-board {
    display: grid;
    width: 100%;
    min-width: 640px;
}

.log-board .b-row {
    display: grid;
    grid-template-columns: 96px 1.25fr 1.6fr 1.35fr;
    align-items: center;
    padding: 0 24px;
    min-height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: background-color 0.2s ease;
}

.log-board .b-row:last-child {
    border-bottom: none;
}

.log-board .b-row:not(.b-head):hover {
    background-color: rgba(255, 255, 255, 0.035);
}

.log-board .b-row:not(.b-head)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cyan);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.log-board .b-row:not(.b-head):hover::before {
    opacity: 1;
}

.log-board .b-head {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 44px;
    font: 500 8.5px/1 var(--display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.log-board .c-yr {
    font: 400 11px/1 var(--display);
    letter-spacing: 0.06em;
}

.yr-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.65);
    font: 400 10.5px/1 var(--display);
    letter-spacing: 0.06em;
}

.log-board .c-veh {
    font: 600 15px/1.2 var(--ui);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.log-board .c-comp {
    font: 400 14px/1.4 var(--ui);
    color: var(--muted);
    padding-right: 16px;
}

.log-board .c-res {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* F1 Telemetry Result Pills */
.res-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 3px;
    font: 500 10.5px/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.res-pip {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

/* Podium / World #2 / World #3 */
.res-tag--podium {
    background: rgba(47, 208, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(47, 208, 255, 0.35);
    box-shadow: 0 0 12px -2px rgba(47, 208, 255, 0.25);
}

.res-tag--podium .res-pip {
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

/* National First / 1st in Asia */
.res-tag--first {
    background: rgba(56, 220, 76, 0.1);
    color: var(--green);
    border: 1px solid rgba(56, 220, 76, 0.35);
    box-shadow: 0 0 12px -2px rgba(56, 220, 76, 0.25);
}

.res-tag--first .res-pip {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* Category finish */
.res-tag--cat {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.res-tag--cat .res-pip {
    background: rgba(255, 255, 255, 0.8);
}

/* Classified finish */
.res-tag--fin {
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.res-tag--fin .res-pip {
    background: var(--muted);
}

/* Base / Where it began */
.res-tag--base {
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.res-tag--base .res-pip {
    background: rgba(255, 255, 255, 0.3);
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 20px;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    align-items: center;
}

.legend-pip {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 0;
}

.legend-pip--first {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.legend-pip--podium {
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

.legend-pip--fin {
    background: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   v12: hero headline on the true vertical centre, lean tags
   ========================================================= */
.hero-center {
    padding: 0 var(--gutter);
    align-items: stretch;
}

.hero-copy {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    width: 100%;
    max-width: 900px;
    height: 100%;
}

.hero-copy .kicker {
    align-self: end;
}

.hero-copy .hero-after {
    align-self: start;
}

/* the position tag: square and slim, like the tags beside it */
.pos {
    height: 28px;
    border-radius: 0;
    font-size: 9px;
    letter-spacing: 0.1em;
}

.pos::before {
    width: 14px;
}

.pos span {
    padding: 0 14px 0 10px;
}

.slash {
    display: none;
}


/* v13: the line under the headline is plain text, no tag boxes */
.hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
}

.hero-meta .pos {
    height: auto;
    padding: 0;
    background: none;
    color: #fff;
    font: 400 11px/1.3 var(--display);
    letter-spacing: 0.14em;
}

.hero-meta .pos::before {
    display: none;
}

.hero-meta .pos span {
    padding: 0;
}

.hero-tags {
    gap: 0 18px;
}

.hero-tags span {
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--muted);
    font: 400 10px/1.3 var(--display);
    letter-spacing: 0.14em;
}


/* =========================================================
   v15: mission log as a result sheet. Every row opens its project.
   ========================================================= */
.ml {
    --cols: 84px minmax(0, 1.15fr) minmax(0, 1.45fr) minmax(0, 1.25fr) 190px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ml-head,
.ml-row {
    display: grid;
    grid-template-columns: var(--cols);
    column-gap: clamp(14px, 2vw, 32px);
    align-items: center;
}

.ml-head {
    padding: 16px 0;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.ml-row {
    --acc: var(--muted);
    position: relative;
    padding: clamp(20px, 2.6vw, 30px) 0;
    color: inherit;
    }

.acc-c { --acc: var(--cyan); }
.acc-g { --acc: var(--green); }
.acc-y { --acc: var(--yellow); }
.acc-n { --acc: rgba(255, 255, 255, 0.5); }

/* hairline below each row; on hover it is drawn over in the row's colour */
.ml-row::before,
.ml-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
}

.ml-row::before {
    background: rgba(255, 255, 255, 0.1);
}

.ml-row::after {
    background: var(--acc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
}

.ml-yr {
    font: 400 11px/1 var(--display);
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: color 0.3s ease;
}

.ml-name {
    font: 400 clamp(14px, 1.55vw, 22px)/1.3 var(--display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.ml-ev {
    color: var(--muted);
    font: 400 16px/1.45 var(--ui);
}

.ml-res b {
    display: block;
    font: 400 clamp(20px, 2.5vw, 36px)/1 var(--display);
    letter-spacing: 0.02em;
    color: var(--acc);
}

.ml-res i {
    display: block;
    margin-top: 10px;
    font: 400 9px/1.5 var(--display);
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ml-pic {
    position: absolute;
    right: 56px;
    top: 50%;
    width: 124px;
    height: 70px;
    margin-top: -35px;
    overflow: hidden;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.7s cubic-bezier(.2, .8, .2, 1);
}

.ml-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

.ml-go {
    justify-self: end;
    font: 400 18px/1 var(--ui);
    color: var(--acc);
    opacity: 0.35;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), opacity 0.3s ease;
}

a.ml-row:focus-visible {
    outline: none;
}

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

a.ml-row:hover .ml-name,
a.ml-row:focus-visible .ml-name {
    transform: translateX(10px);
}

a.ml-row:hover .ml-yr {
    color: #fff;
}

a.ml-row:hover .ml-pic,
a.ml-row:focus-visible .ml-pic {
    clip-path: inset(0);
}

a.ml-row:hover .ml-go,
a.ml-row:focus-visible .ml-go {
    opacity: 1;
    transform: translateX(6px);
}

@media (max-width: 860px) {
    .ml {
        --cols: 56px minmax(0, 1fr) 28px;
    }

    .ml-head,
    .ml-pic {
        display: none;
    }

    .ml-row {
        row-gap: 10px;
    }

    .ml-ev {
        grid-column: 2 / 3;
        grid-row: 2;
        font-size: 15px;
    }

    .ml-res {
        grid-column: 2 / 3;
        grid-row: 3;
        display: flex;
        align-items: baseline;
        gap: 14px;
    }

    .ml-res i {
        margin-top: 0;
    }

    .ml-go {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 1180px) and (min-width: 861px) {
    .ml {
        --cols: 64px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 150px;
    }

    .ml-pic {
        width: 104px;
        right: 50px;
    }

    .ml-name {
        padding-right: 10px;
        font-size: 14px;
    }
}


/* =========================================================
   v19: subsystems as a spec sheet. Pick a system on the left,
   its line drawing and notes open on the right.
   ========================================================= */
.ss {
    display: grid;
    grid-template-columns: minmax(230px, 3.2fr) minmax(0, 8.8fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.ss-list {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ss-tab {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 6px;
    width: 100%;
    padding: 22px 0 22px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    color: rgba(242, 242, 242, 0.42);
    text-align: left;
    cursor: pointer;
    transition: color 0.35s ease, padding-left 0.45s cubic-bezier(.2, .8, .2, 1);
}

.ss-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
    transition: width 0.45s cubic-bezier(.2, .8, .2, 1);
}

.ss-n {
    grid-row: 1 / span 2;
    padding-top: 4px;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.1em;
}

.ss-t {
    font: 400 clamp(14px, 1.35vw, 19px)/1.25 var(--display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ss-g {
    margin-top: 8px;
    font: 500 15px/1.3 var(--ui);
    color: var(--muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.45s ease;
}

.ss-tab:hover,
.ss-tab:focus-visible {
    color: #fff;
    outline: none;
}

.ss-tab.is-on {
    color: #fff;
    padding-left: 34px;
}

.ss-tab.is-on::before {
    width: 22px;
}

.ss-tab.is-on .ss-g {
    opacity: 1;
    max-height: 30px;
}

/* ----- stage ----- */
.ss-stage {
    position: relative;
    min-width: 0;
}

.ss-panel {
    display: none;
}

.ss-panel.is-on {
    display: block;
}

.ss-fig {
    position: relative;
    overflow-x: auto;
    background-color: #08090b;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.9px, transparent 1.3px);
    background-size: 14px 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 46px 28px 22px;
}

.ss-fig::before,
.ss-fig::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.ss-fig::before {
    top: 10px;
    right: 10px;
    border-width: 1px 1px 0 0;
}

.ss-fig::after {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 1px 1px;
}

.ss-cap {
    position: absolute;
    left: 28px;
    top: 18px;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.18em;
    color: var(--muted);
}

.ss-fig svg {
    display: block;
    width: 100%;
    min-width: 620px;
    height: auto;
    overflow: visible;
    fill: none;
    stroke: #fff;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ss-fig .m {
    stroke-opacity: 0.55;
}

.ss-fig .f {
    stroke-opacity: 0.22;
}

.ss-fig .dot {
    fill: #fff;
    stroke: none;
}

.ss-fig text {
    fill: #fff;
    stroke: none;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.14em;
}

/* the drawing is traced in each time a system is opened */
.ss-panel.is-on .ss-fig svg :is(path, line, rect, circle) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ssDraw 1.1s cubic-bezier(.3, .6, .2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 14ms);
}

.ss-panel.is-on .ss-fig svg .dot {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: ssFade 0.6s ease both;
    animation-delay: calc(var(--i, 0) * 14ms + 0.5s);
}

.ss-panel.is-on .ss-fig svg text {
    animation: ssFade 0.7s ease both;
    animation-delay: calc(var(--i, 0) * 14ms + 0.4s);
}

@keyframes ssDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes ssFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

html:not(.js) .ss-panel {
    display: block;
    margin-bottom: 40px;
}

.ss-info {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: clamp(20px, 3vw, 48px);
    padding-top: 30px;
}

.ss-line {
    font: 400 clamp(14px, 1.3vw, 18px)/1.4 var(--display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ss-info ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(20px, 2.4vw, 40px);
}

.ss-info li {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(242, 242, 242, 0.78);
    font-size: 17px;
    line-height: 1.55;
}

.ss-info li b {
    color: #fff;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .ss-panel.is-on .ss-fig svg :is(path, line, rect, circle) {
        animation: none;
        stroke-dashoffset: 0;
    }
}

@media (max-width: 980px) {
    .ss {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ss-list {
        display: flex;
        overflow-x: auto;
        border-top: 0;
        gap: 22px;
        scrollbar-width: none;
    }

    .ss-list::-webkit-scrollbar {
        display: none;
    }

    .ss-list li {
        flex: none;
    }

    .ss-tab,
    .ss-tab.is-on {
        padding: 10px 0;
        border-bottom: 2px solid transparent;
    }

    .ss-tab::before {
        display: none;
    }

    .ss-tab.is-on {
        border-bottom-color: #fff;
    }

    .ss-n,
    .ss-g {
        display: none;
    }

    .ss-tab {
        display: block;
        white-space: nowrap;
    }

    .ss-info {
        grid-template-columns: 1fr;
    }

    .ss-info ul {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}



/* =========================================================
   v20: subsystems as a bento. Click a tile and it opens in place.
   ========================================================= */
.sb {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(290px, auto));
    gap: 8px;
}

.sb-tile {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 24px 26px;
    border: 0;
    background-color: #0a0b0d;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.9px, transparent 1.3px);
    background-size: 3px 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.sb-tile:nth-child(1) { grid-column: 1 / 6; }
.sb-tile:nth-child(2) { grid-column: 6 / 10; }
.sb-tile:nth-child(3) { grid-column: 10 / 13; }
.sb-tile:nth-child(4) { grid-column: 1 / 4; }
.sb-tile:nth-child(5) { grid-column: 4 / 8; }
.sb-tile:nth-child(6) { grid-column: 8 / 13; }

.sb-n {
    display: block;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.14em;
    color: var(--muted);
}

.sb-t {
    display: block;
    margin-top: 16px;
    font: 400 clamp(14px, 1.5vw, 21px)/1.25 var(--display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sb-g {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font: 500 16px/1.4 var(--ui);
}

/* plus mark, turns when hovered */
.sb-plus {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 14px;
    height: 14px;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.sb-plus::before,
.sb-plus::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 1px;
    background: #fff;
}

.sb-plus::after {
    transform: rotate(90deg);
}

.sb-tile:hover .sb-plus {
    transform: rotate(90deg);
}

/* a dimmed drawing bleeds off the bottom right corner */
.sb-prev {
    position: absolute;
    right: -1%;
    bottom: -2%;
    width: 64%;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1);
}

.sb-prev svg {
    display: block;
    width: 100%;
    height: auto;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sb-prev .m { stroke-opacity: 0.55; }
.sb-prev .f { stroke-opacity: 0.22; }

.sb-tile:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.sb-tile:hover .sb-prev {
    opacity: 0.9;
    transform: translate(-6px, -6px);
}

.sb-tile:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 2px;
}

.sb-detail {
    display: none;
}

/* ----- one system open: it takes the left, the rest line up as a list ----- */
.sb[data-open] {
    grid-template-rows: repeat(6, auto);
}

.sb[data-open] .sb-detail {
    display: block;
    grid-column: 1 / 9;
    grid-row: 1 / 7;
    min-width: 0;
}

.sb[data-open] .sb-tile {
    grid-column: 9 / 13;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    min-height: 58px;
    color: rgba(242, 242, 242, 0.5);
}

.sb[data-open] .sb-tile:nth-child(1) { grid-row: 1; }
.sb[data-open] .sb-tile:nth-child(2) { grid-row: 2; }
.sb[data-open] .sb-tile:nth-child(3) { grid-row: 3; }
.sb[data-open] .sb-tile:nth-child(4) { grid-row: 4; }
.sb[data-open] .sb-tile:nth-child(5) { grid-row: 5; }
.sb[data-open] .sb-tile:nth-child(6) { grid-row: 6; }

.sb[data-open] .sb-t {
    margin: 0;
    font-size: clamp(12px, 1.1vw, 15px);
}

.sb[data-open] .sb-g,
.sb[data-open] .sb-prev {
    display: none;
}

.sb[data-open] .sb-plus {
    top: 50%;
    margin-top: -7px;
}

.sb[data-open] .sb-tile:hover {
    color: #fff;
}

.sb[data-open] .sb-tile.is-on {
    color: #fff;
    background-color: #14151a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.sb[data-open] .sb-tile.is-on .sb-plus {
    transform: rotate(45deg);
}

/* ----- the open panel ----- */
.sb-detail .ss-panel {
    display: none;
    height: 100%;
    background-color: #08090b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sb-detail .ss-panel.is-on {
    display: block;
}

.sb-detail .ss-fig {
    box-shadow: none;
    background-color: transparent;
}

.sb-detail .ss-info {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 10px 28px 30px;
}

.sb-back {
    position: absolute;
    top: 14px;
    right: 34px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background: none;
    color: #fff;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sb-back:hover {
    border-color: #fff;
}

.sb-back i {
    font: 400 14px/1 var(--ui);
    font-style: normal;
}

/* tiles and panel glide to their new places */
html.sb-vt-on .sb-tile:nth-child(1) { view-transition-name: sb1; }
html.sb-vt-on .sb-tile:nth-child(2) { view-transition-name: sb2; }
html.sb-vt-on .sb-tile:nth-child(3) { view-transition-name: sb3; }
html.sb-vt-on .sb-tile:nth-child(4) { view-transition-name: sb4; }
html.sb-vt-on .sb-tile:nth-child(5) { view-transition-name: sb5; }
html.sb-vt-on .sb-tile:nth-child(6) { view-transition-name: sb6; }
html.sb-vt-on .sb-detail { view-transition-name: sbd; }

html.sb-vt-on::view-transition-old(root),
html.sb-vt-on::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-group(sb1),
::view-transition-group(sb2),
::view-transition-group(sb3),
::view-transition-group(sb4),
::view-transition-group(sb5),
::view-transition-group(sb6),
::view-transition-group(sbd) {
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 900px) {
    .sb {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: minmax(210px, auto);
    }

    .sb-tile:nth-child(n) {
        grid-column: auto;
    }

    .sb[data-open] {
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .sb[data-open] .sb-detail {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .sb[data-open] .sb-tile:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        min-height: 54px;
    }

    .sb-detail .ss-info ul {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   v23: overview is an even grid of six tiles, names only.
   Opening one gives it the left; the rest line up on the right.
   ========================================================= */
.sb {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, 250px);
    gap: 8px;
}

.sb-tile:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
}

.sb-tile {
    --mx: 50%;
    --my: 50%;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0;
    background-color: #0a0b0d;
    background-image:
        radial-gradient(280px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.07), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.06) 0.9px, transparent 1.3px);
    background-size: auto, 3px 3px;
    transition: box-shadow 0.4s ease, transform 0.55s cubic-bezier(.2, .8, .2, 1);
}

.sb:not([data-open]) .sb-n {
    position: absolute;
    top: 26px;
    left: 28px;
}

.sb:not([data-open]) .sb-t {
    margin: 0;
    font-size: clamp(15px, 1.6vw, 23px);
    letter-spacing: 0.05em;
}

.sb:not([data-open]) .sb-g {
    margin-top: 12px;
    opacity: 0.7;
}

.sb:not([data-open]) .sb-tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.sb:not([data-open]) .sb-tile:hover .sb-g {
    opacity: 1;
}

.sb[data-open] {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
}

.sb[data-open] .sb-tile {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.sb-detail .ss-panel {
    border-radius: 0;
}

@media (max-width: 900px) {
    .sb {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 170px;
    }

    .sb[data-open] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }
}


/* =========================================================
   v24: pure black tiles, each carrying its drawing
   ========================================================= */
.sb {
    grid-template-rows: repeat(2, 280px);
}

.sb-tile {
    background-color: #000;
    background-image: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* the drawing fills the tile; a black fade lets the name sit on top of it */
.sb-prev {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 64px;
    width: auto;
    display: flex;
    align-items: center;
    padding: 18px 20px 0;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sb-prev svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sb-prev .m { stroke-opacity: 0.6; }
.sb-prev .f { stroke-opacity: 0.25; }
.sb-prev .dot { fill: #fff; stroke: none; }

.sb:not([data-open]) .sb-tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, #000 8%, rgba(0, 0, 0, 0.85) 40%, transparent);
    pointer-events: none;
}

.sb:not([data-open]) .sb-t,
.sb:not([data-open]) .sb-g {
    position: relative;
    z-index: 2;
}

.sb:not([data-open]) .sb-n,
.sb:not([data-open]) .sb-plus {
    z-index: 2;
}

.sb:not([data-open]) .sb-n {
    position: absolute;
}

.sb:not([data-open]) .sb-t {
    font-size: clamp(14px, 1.45vw, 21px);
}

.sb:not([data-open]) .sb-g {
    margin-top: 8px;
    font-size: 15px;
}

.sb:not([data-open]) .sb-tile:hover .sb-prev {
    opacity: 1;
}

/* on hover the drawing is traced again */
.sb:not([data-open]) .sb-tile:hover .sb-prev svg :is(path, line, rect, circle, ellipse) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: sbTrace 1.4s cubic-bezier(.3, .6, .2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 4ms);
}

@keyframes sbTrace {
    to { stroke-dashoffset: 0; }
}

/* in the open state the list stays plain */
.sb[data-open] .sb-prev {
    display: none;
}

.sb-detail .ss-panel {
    background-color: #000;
}

@media (max-width: 900px) {
    .sb {
        grid-auto-rows: 220px;
    }
}

.sb:not([data-open]) .sb-tile:hover .sb-prev {
    transform: none;
}


/* =========================================================
   v25: subsystems as a bare blueprint grid. Hairlines, crosshairs,
   one drawing per cell, the rest steps back when you point at one.
   ========================================================= */
.sb:not([data-open]) {
    gap: 0;
    grid-template-rows: repeat(2, 300px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
}

.sb:not([data-open])::after {
    content: "+";
    position: absolute;
    right: -6px;
    bottom: -11px;
    font: 300 14px/1 var(--ui);
    color: rgba(255, 255, 255, 0.55);
}

.sb:not([data-open]) .sb-tile {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: opacity 0.5s ease;
    transform: none;
}

/* crosshair on every top-left corner */
.sb:not([data-open]) .sb-tile::before {
    content: "+";
    position: absolute;
    left: -6px;
    top: -11px;
    z-index: 3;
    font: 300 14px/1 var(--ui);
    color: rgba(255, 255, 255, 0.55);
}

.sb:not([data-open]) .sb-tile::after {
    display: none;
}

.sb:not([data-open]) .sb-plus {
    display: none;
}

.sb:not([data-open]) .sb-prev {
    bottom: 92px;
    padding: 34px 34px 0;
    opacity: 0.72;
}

.sb:not([data-open]) .sb-t {
    position: absolute;
    left: 28px;
    bottom: 46px;
    font-size: clamp(12px, 1.1vw, 15px);
    letter-spacing: 0.12em;
}

.sb:not([data-open]) .sb-g {
    position: absolute;
    left: 28px;
    bottom: 22px;
    margin: 0;
    font-size: 15px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.sb:not([data-open]) .sb-n {
    position: absolute;
    top: auto;
    left: auto;
    right: 28px;
    bottom: 48px;
}

/* point at one and the others step back */
.sb:not([data-open]):hover .sb-tile:not(:hover) {
    opacity: 0.3;
}

.sb:not([data-open]) .sb-tile:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.sb:not([data-open]) .sb-tile:hover .sb-g {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .sb:not([data-open]) {
        grid-auto-rows: 240px;
    }
}


/* =========================================================
   v26: upcoming projects as two quiet panels with a drawing each
   ========================================================= */
.rd {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rd-cell {
    position: relative;
    padding: 36px clamp(20px, 3.5vw, 56px) 52px 0;
}

.rd-cell+.rd-cell {
    padding: 36px 0 52px clamp(20px, 3.5vw, 56px);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.rd-top {
    display: flex;
    gap: 22px;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.rd-name {
    margin-top: 28px;
    font: 400 clamp(34px, 5.2vw, 78px)/1 var(--display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rd-fig {
    margin-top: 34px;
}

.rd-fig svg {
    display: block;
    width: 100%;
    height: auto;
    fill: none;
    stroke: #fff;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rd-fig .m { stroke-opacity: 0.6; }
.rd-fig .f { stroke-opacity: 0.24; }
.rd-fig .dot { fill: #fff; stroke: none; }

.rd-fig text {
    fill: rgba(255, 255, 255, 0.7);
    stroke: none;
    font: 400 8.5px/1 var(--display);
    letter-spacing: 0.16em;
}

/* the drawing is traced again when you point at a project */
.rd-cell:hover .rd-fig svg :is(path, line, rect, circle, ellipse):not(.dt) {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: rdTrace 1.5s cubic-bezier(.3, .6, .2, 1) forwards;
}

@keyframes rdTrace {
    to { stroke-dashoffset: 0; }
}

.rd-text {
    max-width: 46ch;
    margin-top: 34px;
    color: rgba(242, 242, 242, 0.8);
    font-size: 19px;
    line-height: 1.6;
    text-wrap: pretty;
}

/* dates as a thin line with a dot per milestone */
.rd-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px clamp(28px, 4vw, 64px);
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rd-steps li {
    position: relative;
}

.rd-steps i {
    position: absolute;
    left: 0;
    top: -26px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
}

.rd-steps b {
    display: block;
    font: 400 12px/1 var(--display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rd-steps span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font: 500 16px/1.3 var(--ui);
}

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

    .rd-cell,
    .rd-cell+.rd-cell {
        padding: 36px 0 44px;
        border-left: 0;
    }

    .rd-cell+.rd-cell {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}


/* flight profiles are dotted lines */
.rd-fig .dt {
    stroke-dasharray: 0.1 6.5;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-opacity: 0.85;
}

.rd-fig .dt.f {
    stroke-opacity: 0.4;
}


/* =========================================================
   v29: footer. A closing line, four short columns, one big quiet wordmark.
   ========================================================= */
.ft {
    position: relative;
    overflow: hidden;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ft .wrap {
    position: relative;
    z-index: 1;
}

.ft-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-top: clamp(72px, 12vh, 140px);
    padding-bottom: clamp(56px, 8vh, 96px);
}

.ft-big {
    font: 400 clamp(22px, 3.4vw, 50px)/1.25 var(--display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ft-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    font: 400 11px/1 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: gap 0.35s ease, border-color 0.3s ease;
}

.ft-btn:hover {
    gap: 24px;
    border-color: #fff;
}

.ft-grid {
    display: grid;
    grid-template-columns: minmax(0, 4.4fr) repeat(3, minmax(0, 2.2fr));
    gap: clamp(28px, 4vw, 64px);
    padding-top: 44px;
    padding-bottom: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-brand img {
    height: 52px;
    width: auto;
}

.ft-brand p {
    max-width: 34ch;
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.ft-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.ft-col h4 {
    margin-bottom: 8px;
    font: 400 9px/1 var(--display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.ft-col a {
    color: rgba(242, 242, 242, 0.82);
    font: 500 17px/1.3 var(--ui);
    transition: color 0.25s ease, transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.ft-col a:hover {
    color: #fff;
    transform: translateX(6px);
}

/* one huge wordmark, cropped by the page edge, fading into the black */
.ft-word {
    margin-top: 8px;
    text-align: center;
    white-space: nowrap;
    font: 400 6.3vw/1 var(--display);
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    padding-bottom: 0.06em;
}

.ft-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font: 500 14px/1 var(--ui);
}

.ft-base a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .ft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-brand {
        grid-column: 1 / -1;
    }

    .ft-word {
        font-size: 9vw;
    }
}


/* back button on sub pages */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font: 400 10px/1 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: gap 0.35s ease, border-color 0.3s ease;
}

.back-link span {
    display: inline-block;
    font: 400 14px/1 var(--ui);
    letter-spacing: 0;
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.back-link:hover {
    border-color: #fff;
}

.back-link:hover span {
    transform: translateX(-5px);
}

.journal-hero .back-link {
    display: flex;
    width: max-content;
}


/* engine test footage */
.engine-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
}

/* keep the plume bright: only a fade at the foot for the caption */
.engine-hero--video::after {
    background: linear-gradient(to top, rgba(5, 5, 6, 0.85) 0%, rgba(5, 5, 6, 0) 45%);
}


/* mission photo: a second picture layered over its corner */
.mv4-stack {
    position: sticky;
    top: 110px;
    aspect-ratio: 4 / 5;
}

.mv4-stack .mv4-photo {
    position: absolute;
    inset: 0;
    top: 0;
    aspect-ratio: auto;
}

.mv4-inset {
    position: absolute;
    right: -17%;
    bottom: -9%;
    z-index: 2;
    width: 58%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0b0c0e;
    box-shadow: 0 0 0 6px #050506, 0 0 0 7px rgba(255, 255, 255, 0.28), 0 30px 70px rgba(0, 0, 0, 0.65);
}

.mv4-inset img {
    position: absolute;
    left: 0;
    top: -8%;
    width: 100%;
    height: 116%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: saturate(0.95) brightness(0.95);
    will-change: transform;
}

/* it drifts against the page as you scroll, so the two pictures slide past each other */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .mv4-inset {
            animation: mvDrift linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }

        @keyframes mvDrift {
            from { transform: translateY(46px); }
            to { transform: translateY(-46px); }
        }
    }
}

@media (max-width: 860px) {
    .mv4-stack {
        position: relative;
        top: 0;
        max-width: 420px;
        margin-bottom: 40px;
    }

    .mv4-inset {
        right: -4%;
    }
}



/* =========================================================
   v41: mobile menu. A full-height sheet, numbered links that rise in one
   after another, current page marked, page scroll locked while it is open.
   ========================================================= */
html.menu-open,
html.menu-open body {
    overflow: hidden;
}

.hamburger {
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -10px;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: #fff;
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), width 0.4s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(2) {
    width: 15px;
}

.hamburger:hover span:nth-child(2) {
    width: 24px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.hamburger:focus-visible,
.sm-close:focus-visible,
.sm-links a:focus-visible,
.sm-foot a:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 4px;
}

.overlay {
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: opacity 0.5s ease;
}

.side-menu {
    inset: 0 0 0 auto;
    width: min(440px, 100vw);
    padding: max(22px, env(safe-area-inset-top)) 28px max(24px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(5, 5, 6, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
    visibility: hidden;
    transform: translateX(101%);
    transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), visibility 0s linear 0.7s;
}

.side-menu.active {
    visibility: visible;
    transform: none;
    transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

.sm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    margin-bottom: clamp(24px, 7vh, 64px);
    font: 400 10px/1 var(--display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.sm-close {
    position: relative;
    width: 44px;
    height: 44px;
    margin-right: -12px;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sm-close i {
    position: absolute;
    left: 10px;
    top: 21.5px;
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.sm-close i:first-child {
    transform: rotate(45deg);
}

.sm-close i:last-child {
    transform: rotate(-45deg);
}

.sm-close:hover i:first-child {
    transform: rotate(135deg);
}

.sm-close:hover i:last-child {
    transform: rotate(45deg);
}

.sm-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sm-links a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: baseline;
    padding: clamp(15px, 2.6vh, 24px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(242, 242, 242, 0.55);
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.5s ease, color 0.3s ease;
}

.side-menu.active .sm-links a {
    opacity: 1;
    transform: none;
    filter: none;
    transition-delay: calc(0.2s + var(--i, 0) * 0.065s), calc(0.2s + var(--i, 0) * 0.065s), calc(0.2s + var(--i, 0) * 0.065s), 0s;
}

.sm-n {
    font: 400 10px/1 var(--display);
    letter-spacing: 0.12em;
    color: var(--muted);
}

.sm-t {
    font: 400 clamp(22px, 6.6vw, 31px)/1.1 var(--display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.sm-a {
    font: 400 18px/1 var(--ui);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.sm-links a:hover,
.sm-links a:active,
.sm-links a[aria-current="page"] {
    color: #fff;
}

.sm-links a:hover .sm-t,
.sm-links a:active .sm-t {
    transform: translateX(8px);
}

.sm-links a:hover .sm-a,
.sm-links a:active .sm-a,
.sm-links a[aria-current="page"] .sm-a {
    opacity: 1;
    transform: none;
}

.sm-links a[aria-current="page"] .sm-n {
    color: #fff;
}

.sm-links a[aria-current="page"] .sm-a {
    font-size: 8px;
}

.sm-links a[aria-current="page"] .sm-a::before {
    content: "\25CF";
}

.sm-links a[aria-current="page"] .sm-a {
    font-size: 0;
}

.sm-links a[aria-current="page"] .sm-a::before {
    font-size: 8px;
}

.sm-foot {
    margin-top: auto;
    padding-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
}

.side-menu.active .sm-foot {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.2s + var(--i, 0) * 0.065s);
}

.sm-mail {
    color: #fff;
    font: 500 17px/1.3 var(--ui);
    word-break: break-all;
}

.sm-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.sm-social a {
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(242, 242, 242, 0.85);
    font: 400 9px/1 var(--display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sm-foot small {
    color: var(--muted);
    font: 500 13px/1 var(--ui);
}

@media (max-width: 560px) {
    .side-menu {
        width: 100vw;
        border-left: 0;
    }

    .site-header {
        height: 76px;
    }

    .hd-inner {
        padding: 10px 20px 0;
    }

    .brand img {
        height: 52px;
    }
}

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

    .side-menu,
    .side-menu.active,
    .sm-links a,
    .sm-foot,
    .hamburger span {
        transition-duration: 0.01s;
        transition-delay: 0s;
    }
}


/* =========================================================
   v42: mission pictures stay put; phones get a shorter, lighter home page
   ========================================================= */

/* pictures no longer follow the scroll */
.mv4-stack {
    position: relative;
    top: 0;
}

.mv4-photo img,
.mv4-inset img {
    top: 0;
    height: 100%;
    will-change: auto;
    transform: none !important;
}

.mv4-inset {
    animation: none !important;
    transform: none !important;
}

@media (max-width: 860px) {
    .mv4 {
        gap: 64px;
    }

    .mv4-stack {
        width: calc(100% - 26px);
        max-width: 460px;
        margin: 0 0 56px;
    }

    .mv4-inset {
        right: -22px;
        bottom: -44px;
        width: 54%;
    }

    .mv4-col {
        gap: 56px;
    }

    .mv4-word {
        font-size: clamp(30px, 9vw, 46px);
    }
}

@media (max-width: 700px) {

    /* whole sections that only add weight on a phone */
    #subsystems,
    .perks {
        display: none;
    }

    .block {
        padding: 64px 0;
    }

    .block-head {
        margin-bottom: 32px;
    }

    /* journal: three posts, titles only */
    .bento .bt--wide,
    .bento .bt--c,
    .bento .bt--d,
    .bento .bt--e,
    .bento .bt p,
    .bento .bt-stats {
        display: none;
    }

    /* mission log: five key rows */
    .ml-row--opt,
    .ml .ml-head,
    .arenas {
        display: none;
    }

    .legend {
        margin-top: 18px;
        gap: 10px 20px;
    }

    /* engine: the clip and the figures fit the screen, three facts per engine */
    .engine-hero {
        aspect-ratio: 16 / 10;
        min-height: 0;
        margin-bottom: 8px;
    }

    .engine-hero figcaption {
        left: 16px;
        bottom: 14px;
    }

    .engine-hero figcaption b {
        font-size: 18px;
    }

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

    .eng-bar,
    .eng-bar-l,
    .eng dl dt:nth-of-type(n+3),
    .eng dl dd:nth-of-type(n+3),
    .eng-note {
        display: none;
    }

    /* sponsors teaser: the four reasons only */
    .why {
        grid-template-columns: 1fr;
    }

    .why li p {
        display: none;
    }
}

@media (max-width: 700px) {
    .ml-res b {
        white-space: nowrap;
    }
}

/* desktop: with the pictures fixed in place, centre them beside the two statements */
@media (min-width: 861px) {
    .mv4 {
        align-items: center;
    }
}


/* =========================================================
   v43: section heading. A small label with a line that draws across,
   a big title whose last word is outlined, one line of support beside it.
   ========================================================= */
.sh {
    margin-bottom: clamp(40px, 6vw, 72px);
}

.sh-top {
    display: flex;
    align-items: center;
    gap: 20px;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.sh-label {
    position: relative;
    padding-left: 18px;
    color: #fff;
}

.sh-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border: 1px solid #fff;
    transform: rotate(45deg);
}

.sh-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s cubic-bezier(.2, .8, .2, 1) 0.2s;
}

.reveal.in .sh-line,
.sh:not(.reveal) .sh-line {
    transform: scaleX(1);
}

.sh-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px clamp(32px, 6vw, 96px);
    margin-top: clamp(22px, 3vw, 34px);
}

.sh-title {
    font: 400 clamp(30px, 5.4vw, 80px)/1.04 var(--display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* the last word is drawn as an outline */
.sh-title em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
}

.sh-side {
    max-width: 30ch;
    padding-bottom: 0.7em;
    color: var(--muted);
    font: 500 clamp(16px, 1.3vw, 19px)/1.55 var(--ui);
}

.sh-link {
    display: inline-flex;
    gap: 12px;
    margin-bottom: 0.9em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font: 400 10px/1 var(--display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: gap 0.35s ease, border-color 0.3s ease;
}

.sh-link:hover {
    gap: 22px;
    border-color: #fff;
}

@media (max-width: 700px) {
    .sh-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sh-title {
        font-size: clamp(30px, 10vw, 46px);
    }

    .sh-side,
    .sh-link {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .sh-link {
        padding-bottom: 8px;
        justify-self: start;
    }
}


/* =========================================================
   v44: subsystems, quieter. Drawings sit back until you point at a cell;
   only the name is always on show.
   ========================================================= */
.sb:not([data-open]) {
    grid-template-rows: repeat(2, 260px);
}

.sb:not([data-open]) .sb-tile::before {
    display: none;
}

.sb:not([data-open])::after {
    display: none;
}

.sb:not([data-open]) .sb-n {
    display: none;
}

.sb:not([data-open]) .sb-prev {
    bottom: 84px;
    padding: 40px 64px 0;
    opacity: 0.26;
    transition: opacity 0.6s ease;
}

.sb:not([data-open]) .sb-prev svg {
    stroke-width: 1.5;
}

.sb:not([data-open]) .sb-t {
    left: 30px;
    bottom: 38px;
    font-size: clamp(12px, 1.05vw, 15px);
    letter-spacing: 0.14em;
    color: rgba(242, 242, 242, 0.78);
    transition: color 0.4s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.sb:not([data-open]) .sb-g {
    left: 30px;
    bottom: 16px;
    font-size: 14px;
}

/* the cell you point at lights up and its name nudges right */
.sb:not([data-open]) .sb-tile:hover .sb-prev {
    opacity: 0.95;
}

.sb:not([data-open]) .sb-tile:hover .sb-t {
    color: #fff;
    transform: translateX(6px);
}

.sb:not([data-open]):hover .sb-tile:not(:hover) {
    opacity: 0.55;
}

@media (max-width: 900px) {
    .sb:not([data-open]) {
        grid-auto-rows: 220px;
    }

    .sb:not([data-open]) .sb-prev {
        padding: 30px 36px 0;
    }
}


/* =========================================================
   v45: plain engine clip (no corner marks) and a quiet outreach list
   ========================================================= */
.engine-hero--video {
    border: 0;
}

.engine-hero--video figcaption {
    left: clamp(18px, 2.4vw, 32px);
    bottom: clamp(16px, 2vw, 28px);
}

.og {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.og-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(90px, 1.5fr) minmax(0, 4.5fr) minmax(0, 5fr);
    gap: clamp(20px, 4vw, 64px);
    align-items: center;
    padding: clamp(28px, 4vw, 52px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.og-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.og-row:hover::after {
    transform: scaleX(1);
}

.og-n {
    font: 400 clamp(44px, 6vw, 88px)/1 var(--display);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
}

.og-row:hover .og-n {
    color: #fff;
    -webkit-text-stroke-color: #fff;
}

.og-t {
    font: 400 clamp(18px, 2.3vw, 32px)/1.25 var(--display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.og-row:hover .og-t {
    transform: translateX(8px);
}

.og-p {
    max-width: 42ch;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .og-row {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px 18px;
        align-items: baseline;
    }

    .og-n {
        grid-row: 1;
        font-size: 40px;
    }

    .og-t {
        grid-column: 2;
    }

    .og-p {
        grid-column: 2;
        font-size: 16px;
    }
}


/* =========================================================
   v46: outreach, quieter. Three short columns under thin lines.
   ========================================================= */
.sh--s .sh-title {
    font-size: clamp(24px, 3.4vw, 50px);
}

.ou {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 88px);
}

.ou-col {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ou-col::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(.2, .8, .2, 1);
}

.ou-col:hover::before {
    transform: scaleX(1);
}

.ou-n {
    display: block;
    font: 400 10px/1 var(--display);
    letter-spacing: 0.2em;
    color: var(--muted);
}

.ou-col h3 {
    margin-top: 26px;
    font: 400 clamp(15px, 1.5vw, 21px)/1.3 var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ou-col p {
    max-width: 32ch;
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .ou {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ou-col {
        padding-top: 22px;
    }

    .ou-col h3 {
        margin-top: 16px;
    }

    .ou-col p {
        max-width: none;
        margin-top: 10px;
    }
}


/* =========================================================
   v49: arrow on the Projects menu, and the Rockets / Motors / Engines switch
   ========================================================= */
.dd-caret {
    width: 5px;
    height: 5px;
    margin: -3px 0 0 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease, margin 0.3s ease;
}

.nav-center .dd:hover .dd-caret,
.nav-center .dd:focus-within .dd-caret {
    transform: rotate(225deg);
    margin-top: 2px;
}

.pj-switch {
    display: flex;
    gap: clamp(22px, 3.4vw, 52px);
    margin: clamp(30px, 4vw, 48px) var(--gutter) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pj-switch a {
    position: relative;
    padding: 0 0 16px;
    font: 400 12px/1 var(--display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.45);
    transition: color 0.3s ease;
}

.pj-switch a sup {
    margin-left: 7px;
    font-size: 8px;
    letter-spacing: 0.08em;
    vertical-align: top;
    color: var(--muted);
}

.pj-switch a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}

.pj-switch a:hover,
.pj-switch a.is-on {
    color: #fff;
}

.pj-switch a:hover::after,
.pj-switch a.is-on::after {
    transform: scaleX(1);
}

@media (max-width: 560px) {
    .pj-switch {
        gap: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pj-switch::-webkit-scrollbar {
        display: none;
    }

    .pj-switch a {
        flex: none;
        font-size: 9.5px;
        letter-spacing: 0.06em;
    }

    .pj-switch a sup {
        display: none;
    }
}



/* =========================================================
   v55: page transitions. Moving between pages, the old page dims and
   lifts away while the new one settles in from a soft blur.
   The navbar stays put. Browsers without cross-page transitions get
   a short fade out instead (sidebar.js).
   ========================================================= */
@view-transition {
    navigation: auto;
    types: page;
}

.site-header {
    view-transition-name: site-header;
}

html:active-view-transition-type(page)::view-transition-group(site-header) {
    animation: none;
}

html:active-view-transition-type(page)::view-transition-old(root) {
    animation: pgOut 0.42s cubic-bezier(.4, 0, .2, 1) both;
}

html:active-view-transition-type(page)::view-transition-new(root) {
    animation: pgIn 0.7s cubic-bezier(.2, .8, .2, 1) 0.1s both;
}

@keyframes pgOut {
    to {
        opacity: 0;
        transform: translateY(-14px) scale(0.99);
        filter: blur(6px);
    }
}

@keyframes pgIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(10px);
    }
}

/* fallback: fade only, so fixed elements are not disturbed */
html.pg-leave body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}


/* v57: a smaller, quieter phone menu */
.side-menu {
    padding-left: 24px;
    padding-right: 24px;
}

.sm-top {
    min-height: 56px;
    margin-bottom: clamp(18px, 5vh, 40px);
    font-size: 9px;
}

.sm-links a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 17px 0;
}

.sm-n {
    font-size: 9px;
}

.sm-t {
    font-size: 14px;
    letter-spacing: 0.1em;
}

.sm-a {
    font-size: 15px;
}

.sm-mail {
    font-size: 15px;
}

.sm-social a {
    font-size: 8.5px;
}

.sm-foot small {
    font-size: 12px;
}


/* =========================================================
   v58: footer, second pass. Display font on every label and link,
   hairline rows, an outlined wordmark, and a layout that holds
   on narrow Android screens (long email wraps, 48px tap rows,
   gesture-bar safe padding).
   ========================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.ft-cta {
    padding-top: clamp(64px, 11vh, 128px);
    padding-bottom: clamp(48px, 7vh, 88px);
}

.ft-big {
    max-width: 22ch;
    text-wrap: balance;
    font-size: clamp(20px, 3.1vw, 46px);
    line-height: 1.3;
}

.ft-btn {
    min-height: 44px;
    padding-bottom: 10px;
    letter-spacing: 0.2em;
}

.ft-grid {
    padding-top: 48px;
    padding-bottom: 64px;
}

.ft-brand img {
    height: 46px;
}

.ft-brand p {
    max-width: 36ch;
    font-size: 15px;
    line-height: 1.65;
}

.ft-col {
    gap: 0;
}

.ft-col h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.24em;
}

.ft-col h4::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    background: #fff;
    transform: rotate(45deg);
    opacity: 0.8;
}

.ft-col a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font: 400 11px/1.4 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.7);
    overflow-wrap: anywhere;
}

.ft-col a[href^="mailto"] {
    text-transform: none;
    letter-spacing: 0.04em;
}

.ft-col a:hover {
    color: #fff;
    transform: none;
}

.ft-word {
    margin-top: 0;
    padding-bottom: 0.1em;
    font-size: 7.1vw;
    letter-spacing: 0.04em;
    color: transparent;
    background: none;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

.ft-base {
    align-items: center;
    padding-top: 6px;
    padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    font: 400 9px/1 var(--display);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ft-base span,
.ft-base a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (hover: none) {
    .ft-col a:active,
    .ft-base a:active,
    .ft-btn:active {
        color: #fff;
    }
}

@media (max-width: 900px) {
    .ft-grid {
        gap: 40px 28px;
    }

    .ft-word {
        font-size: 7.1vw;
    }
}

@media (max-width: 700px) {
    .ft-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding-top: 64px;
        padding-bottom: 44px;
    }

    .ft-big {
        font-size: clamp(18px, 5.6vw, 24px);
        line-height: 1.35;
    }

    .ft-btn {
        justify-content: space-between;
        min-height: 52px;
        padding: 0 0 4px;
        font-size: 11px;
    }

    .ft-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 36px;
        padding-bottom: 12px;
    }

    .ft-brand {
        padding-bottom: 32px;
    }

    .ft-brand img {
        height: 40px;
    }

    .ft-brand p {
        margin-top: 18px;
        font-size: 15px;
    }

    .ft-col {
        padding: 22px 0 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ft-col a {
        width: 100%;
        min-height: 48px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 11px;
    }

    .ft-col a:last-child {
        border-bottom: 0;
    }

    /* Explore: two short columns instead of seven tall rows */
    .ft-col[aria-label="Explore"] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }

    .ft-col[aria-label="Explore"] h4 {
        grid-column: 1 / -1;
    }

    .ft-col[aria-label="Explore"] a:nth-last-child(2) {
        border-bottom: 0;
    }

    .ft-word {
        font-size: 7.4vw;
        letter-spacing: 0.02em;
    }

    .ft-base {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        font-size: 8.5px;
        letter-spacing: 0.16em;
    }
}

/* v58b: no orphaned "IT." on phones, wordmark clear of the base rule */
.ft-word {
    padding-bottom: 0.18em;
}

@media (max-width: 700px) {
    .ft-big {
        max-width: none;
    }

    .ft-big br {
        display: none;
    }
}


/* =========================================================
   v59: content comes from the dashboard now, so it can be any length.
   Only a card that actually contains a very long word (marked data-lw by js/cms-live.js)
   gets the wrapping rules, so normal content keeps exactly the layout it had.
   ========================================================= */
[data-lw],
[data-lw] * {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* shown where the team lead has not added anything yet */
.cms-empty {
    padding: 56px 0;
    color: var(--muted);
    font: 400 11px/1.6 var(--display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* a hero headline word longer than the screen breaks instead of running off it */
.hero-copy { min-width: 0; max-width: min(900px, 100%); }
.hero-copy > * { min-width: 0; }
.hero-title { overflow-wrap: anywhere; }
.hero-title .w { max-width: 100%; }
.hero-title .w > span { max-width: 100%; overflow-wrap: anywhere; }
.hero-meta, .hero-meta > *, .hero-tags, .hero-tags > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
