:root {
    /* Space */
    --space-0: #05070f;
    --space-2: #111a30;
    --space-3: #1c2947;
    /* Accents */
    --cyan: #07D5EE;
    --magenta: #ff60ff;
    --amber: #ffc46b;
    --gold: #ffcf4d;
    --green: #5ef08a;
    /* The same accents as bare RGB, for translucent tints: rgba(var(--cyan-rgb), 0.3) */
    --cyan-rgb: 7, 213, 238;
    --magenta-rgb: 255, 96, 255;
    /* Wishlist banner button, also used by the header wishlist button */
    --banner-fill: linear-gradient(90deg, #0a1730 0%, #0c3f93 45%, #3b2380 72%, #2b1136 100%);
    --banner-border: linear-gradient(90deg, var(--cyan), #3b6fd8 50%, #7a3fb0);
    --banner-text: #f2f4f8;
    --banner-accent: #df6bff;
    /* Text */
    --text: #e8eefc;
    --text-dim: #9aa6c4;

    /* Type scale. Every font-size on the site uses one of these, except the
       wishlist banner button, which scales with the screen on its own. */
    --text-h1: clamp(32px, 6vw, 52px);
    --text-h2: 28px;
    --text-h3: 20px;
    --text-lead: 21px;
    --text-body: 18px;
    --text-small: 16px;

    --page-width: 1120px;
    --nav-height: 60px;
}

/*#region ----- Global Body Properties */
/* Font: Play */
* {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--space-0);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Play', sans-serif;
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--text);
}

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
    color: var(--cyan);
}

h3 {
    font-size: var(--text-h3);
}

a {
    color: var(--cyan);
}

a:hover {
    color: var(--magenta);
}

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

main {
    padding-top: var(--nav-height);
}
/*#endregion*/

/*#region ----- Page Background */
/* Starfield behind the page, under a dark wash that keeps text readable. On a
   fixed pseudo-element rather than the body, because background-attachment:
   fixed is ignored on mobile. It is taller than the screen and slides up as
   the page scrolls (js/effects.js sets --scroll-progress from 0 to 1), so it
   moves more slowly than the content in front of it. */
body::before {
    --parallax-travel: 30vh;
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    height: calc(100vh + var(--parallax-travel));
    background:
        linear-gradient(rgba(5, 7, 15, 0.75), rgba(5, 7, 15, 0.75)),
        url("../res/images/branding/bg.jpg") center / cover no-repeat,
        var(--space-0);
    transform: translateY(calc(var(--scroll-progress, 0) * -1 * var(--parallax-travel)));
    will-change: transform;
}
/*#endregion*/

/*#region ----- Page Scrollbar */
/* A dark track with a blue-to-pink thumb. Chrome, Edge and Safari take the
   ::-webkit rules; Firefox can't draw a gradient, so it gets a thin blue
   thumb instead. */
html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: var(--space-0);
}

html::-webkit-scrollbar-thumb {
    border: 3px solid var(--space-0);
    border-radius: 6px;
    background: linear-gradient(var(--cyan), var(--magenta)) padding-box;
}

html::-webkit-scrollbar-thumb:hover {
    border-width: 2px;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--cyan) var(--space-0);
    }
}
/*#endregion*/

/*#region ----- Main Page Content Container */
.section {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 56px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

/* Thin cyan-to-magenta rule under a section title. */
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

.lead {
    max-width: 760px;
    margin: 0 auto 16px;
    text-align: center;
    color: var(--text-dim);
}

/* Title block at the top of the Media, Story and Roadmap pages. */
.page-hero {
    padding: 72px 24px 8px;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 12px;
}
/*#endregion*/

/*#region ----- Global Button Properties */
/* Regular button: cyan border, magenta highlight. */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    overflow: hidden;
    font-size: var(--text-small);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    border: 2px solid var(--cyan);
    border-radius: 4px;
    background: rgba(5, 7, 15, 0.6);
    transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.button:hover {
    color: var(--text);
    border-color: var(--magenta);
    background: rgba(var(--magenta-rgb), 0.2);
    box-shadow: 0 0 16px rgba(var(--magenta-rgb), 0.45);
}

/* The special "Wishlist now on Steam!" button. The element itself is the
   border (a gradient showing through a 2px gap) and ::before is the fill, so
   the border follows the cut corners. */
.banner-button {
    --cut: 14px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 22px);
    padding: clamp(8px, 2vw, 11px) clamp(18px, 5vw, 40px);
    /* Logo height plus padding, so a button without a logo is as tall as one with. */
    min-height: calc(1.5em + 2 * clamp(8px, 2vw, 11px));
    font-size: clamp(15px, 4.4vw, 28px);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--banner-text);
    background: var(--banner-border);
    transition: filter 0.2s ease-in-out;
}

.banner-button::before {
    /* A slightly smaller cut than the outside, so the border is 2px wide
       along the diagonals too: 14px - 2px * (2 - sqrt(2)). */
    --cut: 12.83px;
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--banner-fill);
}

.banner-button,
.banner-button::before {
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

.banner-button:hover {
    color: #fff;
    filter: brightness(1.25);
}

.banner-button svg {
    flex: none;
    width: 1.5em;
    height: 1.5em;
    fill: currentColor;
}

/* The divider between the logo and the text. */
.banner-button svg + span {
    padding: 0.25em 0 0.25em clamp(12px, 3vw, 22px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-button em {
    font-style: normal;
    color: var(--banner-accent);
}
/*#endregion*/

/*#region ----- Cursor Glow */
/* A soft light that follows the pointer across a hovered button.
   js/effects.js sets --glow-x and --glow-y; the glow sits above the button's
   fill and below its label. */
.button,
.banner-button,
.carousel-arrow {
    --glow-size: 120px;
    isolation: isolate;
}

.button::after,
.banner-button::after,
.carousel-arrow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle var(--glow-size) at var(--glow-x, 50%) var(--glow-y, 50%), 
        rgba(255, 255, 255, 0.22),
        rgba(255, 255, 255, 0.12) 30%,
        rgba(255, 255, 255, 0.04) 60%,
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.button:hover::after,
.banner-button:hover::after,
.carousel-arrow:hover::after {
    opacity: 1;
}
/*#endregion*/

/*#region ----- Sheen Border */
/* A cyan and pink gradient that drifts sideways. Used for the header's bottom
   edge and, through .sheen-border, as a frame around the carousel and the
   trailer. */
.site-header::after,
.sheen-border {
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--cyan)) 0 0 / 200% 100%;
    box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.5);
    animation: sheen 6s linear infinite;
}

/* The gradient shows through a 2px gap around whatever is inside. */
.sheen-border {
    padding: 2px;
}

@keyframes sheen {
    to { background-position: -200% 0; }
}
/*#endregion*/

/*#region ----- Glitch Effects */
/* Occasional colour-split stutter. data-text must match the element's text. */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
}

.glitch::before {
    color: var(--cyan);
    animation: glitch-split 1s steps(1) infinite;
}

.glitch::after {
    color: var(--magenta);
    animation: glitch-split 1s steps(1) infinite reverse;
}

@keyframes glitch-split {
    0%, 79%, 100% { opacity: 0; transform: none; }
    80% { opacity: 0.8; transform: translateX(-3px); }
    87% { opacity: 0.8; transform: translateX(3px); }
    94% { opacity: 0; transform: none; }
}

/* Corrupted and redacted text, as in the game's lore logs. */
.corrupted {
    color: var(--magenta);
}

.redacted {
    color: var(--amber);
}
/*#endregion*/

/*#region ----- Navigation Bar */
.site-header {
    position: fixed;
    top: 0;
    z-index: 50;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(8px);
}

/* Bottom edge. Its colours and motion come from the Sheen Border region. */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: var(--page-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Brand in the logo's colours: icy white SPACE, cyan-to-magenta NOMADS. */
.site-nav .brand {
    margin-right: auto;
    font-size: var(--text-h3);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #dff4ff;
    text-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.7);
}

.site-nav .brand span {
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 6px 12px;
    font-size: var(--text-small);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--magenta);
}

/* Header wishlist button: the banner button's colours on the regular
   button's shape. The two backgrounds are the fill and the gradient border. */
.site-nav .button {
    padding: 6px 16px;
    margin-left: 8px;
    color: var(--banner-text);
    border-color: transparent;
    background: var(--banner-fill) padding-box, var(--banner-border) border-box;
    transition: filter 0.2s ease-in-out;
}

.site-nav .button:hover {
    color: #fff;
    box-shadow: none;
    filter: brightness(1.25);
}
/*#endregion*/

/*#region ----- Mobile Navigation */
/* The burger and the checkbox that holds its open state are hidden until the
   screen is narrow. */
.nav-toggle,
.nav-burger {
    display: none;
}

/* Below this width the page links no longer fit beside the brand and wishlist
   button, so they collapse into a dropdown. Zooming in on a desktop browser
   triggers this too. */
@media screen and (max-width: 760px) {
    .site-nav .button {
        order: 1;
    }

    .nav-burger {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }

    /* Three bars: the span is the middle one. They fold into a cross when open. */
    .nav-burger span,
    .nav-burger span::before,
    .nav-burger span::after {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 1px;
        background: var(--text);
        transition: transform 0.2s ease-in-out, background 0.2s ease-in-out;
    }

    .nav-burger span {
        position: relative;
    }

    .nav-burger span::before,
    .nav-burger span::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-burger span::before { top: -8px; }
    .nav-burger span::after { top: 8px; }

    .nav-toggle:checked + .nav-burger span { background: transparent; }
    .nav-toggle:checked + .nav-burger span::before { transform: translateY(8px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span::after { transform: translateY(-8px) rotate(-45deg); }

    /* The checkbox stays focusable for keyboards but is visually hidden. */
    .nav-toggle {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .nav-toggle:focus-visible + .nav-burger {
        outline: 2px solid var(--cyan);
        outline-offset: 2px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 2px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        background: var(--space-0);
        border-bottom: 1px solid var(--space-3);
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links .nav-link {
        padding: 12px 24px;
        border-bottom: 0;
        border-left: 2px solid transparent;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link[aria-current="page"] {
        border-left-color: var(--magenta);
    }
}
/*#endregion*/

/*#region ----- Homepage Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 96px 24px 72px;
    text-align: center;
}

.hero-title {
    width: min(100%, 640px);
}

.hero-title img {
    width: 100%;
    height: auto;
}

/* Status line above the logo: plain text between two fading rules.
   Deliberately not button-shaped, since it isn't clickable. */
.status-line {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: var(--text-small);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.status-line::before,
.status-line::after {
    content: "";
    width: clamp(24px, 8vw, 72px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan));
}

.status-line::after {
    background: linear-gradient(90deg, var(--magenta), transparent);
}

.hero-tagline {
    max-width: 720px;
    font-size: var(--text-lead);
    text-wrap: balance;
}

/* Extra room on top of the hero's gap, the same above (tagline) and below (carousel). */
.hero .banner-button {
    margin: 36px 0;
}
/*#endregion*/

/*#region ----- Homepage Features */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 56px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: feature;
}

.feature {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "icon body"
        "number body";
    align-items: start;
    padding: 26px 0;
    border-top: 1px solid var(--space-3);
    counter-increment: feature;
}

/* Line icon above the number, stroked with the shared #feature-accent
   gradient defined in index.html. */
.feature-icon {
    grid-area: icon;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    fill: none;
    stroke: url(#feature-accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(var(--cyan-rgb), 0.45));
}

.feature > div {
    grid-area: body;
}

/* Holds the icons' gradient without taking up space. */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Number in the left column: 01, 02, ... */
.feature::before {
    grid-area: number;
    content: counter(feature, decimal-leading-zero);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.feature p {
    color: var(--text-dim);
}
/*#endregion*/

/*#region ----- Screenshots (grid tiles and lightbox) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* One screenshot link. Used in the Media grid and as a carousel slide. */
.shot {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--space-3);
    background: var(--space-2);
    cursor: zoom-in;
    transition: border-color 0.2s ease-in-out;
}

.shot:hover {
    border-color: var(--cyan);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The enlarged view, created by js/lightbox.js. */
.lightbox {
    max-width: 94vw;
    max-height: 94vh;
    margin: auto;
    padding: 0;
    border: 2px solid var(--cyan);
    background: var(--space-0);
    cursor: zoom-out;
}

.lightbox::backdrop {
    background: rgba(5, 7, 15, 0.9);
}

.lightbox img {
    max-width: 94vw;
    max-height: 94vh;
}
/*#endregion*/

/*#region ----- Homepage Screenshot Carousel */
/* A horizontal scroller showing one slide at a time, snapping to each. The
   arrows and auto-advance are wired up in js/carousel.js. */
.carousel {
    position: relative;
    width: min(100%, 880px);
}

.carousel-track {
    display: flex;
    gap: 16px;
    background: var(--space-0);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .shot {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border: 0;
}

.carousel-arrow {
    --glow-size: 50px;
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    overflow: hidden;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    color: var(--text);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    background: rgba(5, 7, 15, 0.7);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.carousel-arrow:hover {
    border-color: var(--magenta);
    background: rgba(var(--magenta-rgb), 0.2);
    box-shadow: 0 0 16px rgba(var(--magenta-rgb), 0.45);
}

.carousel-arrow--prev { left: 12px; }
.carousel-arrow--next { right: 12px; }
/*#endregion*/

/*#region ----- Trailer */
.video-wrap {
    max-width: 880px;
    margin: 0 auto;
}

/* Fits both the stand-in below and the YouTube iframe that will replace it. */
.video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Stand-in for the trailer: a recording that can't be retrieved. */
.lost-signal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    background: var(--space-2);
}

/* Scanlines and a vignette over the frame. */
.lost-signal::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.85) 100%),
        repeating-linear-gradient(180deg, transparent 0 3px, rgba(var(--cyan-rgb), 0.06) 3px 4px);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.lost-signal-title {
    font-size: var(--text-h1);
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.1;
    text-transform: uppercase;
}

.lost-signal-log {
    padding: 0;
    list-style: none;
    font-size: var(--text-small);
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    color: var(--text-dim);
}

.lost-signal-log li::before {
    content: "> ";
    color: var(--cyan);
}

.lost-signal-note {
    font-size: var(--text-small);
    color: var(--text-dim);
}
/*#endregion*/

/*#region ----- Timelines (Story and Roadmap pages) */
.timeline {
    --when-width: 170px;
    --marker-width: 48px;
    /* Extra breathing room between the spine and the content boxes. */
    --body-gap: 16px;
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* The spine every marker sits on. */
.timeline::before {
    content: "";
    position: absolute;
    left: calc(var(--when-width) + var(--marker-width) / 2 - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(var(--cyan-rgb), 0.3);
    box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.5);
}

.era {
    display: grid;
    grid-template-columns: var(--when-width) var(--marker-width) 1fr;
    grid-template-areas: "when marker body";
    /* Periods are drawn roughly to scale: --years is set inline per entry. */
    min-height: calc(var(--years, 0) * 30px);
    margin-bottom: 36px;
}

.era:last-child {
    margin-bottom: 0;
}

.era-when {
    grid-area: when;
    font-size: var(--text-small);
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

/* An event's date sits level with the title inside its box. */
.era--event .era-when {
    padding-top: 14px;
    color: var(--magenta);
}

/* A period's date starts level with the top of its line. */
.era--period .era-when {
    line-height: 1;
    color: var(--cyan);
}

/* Each entry sits in its own box, outlined all round in a soft tint of its
   type's colour. A period's box runs the full length of its line, with the
   text at the top. */
.era-body {
    grid-area: body;
    margin-left: var(--body-gap);
    padding: 14px 20px 16px;
    border: 1px solid rgba(var(--cyan-rgb), 0.4);
    background: rgba(17, 26, 48, 0.75);
}

.era--event .era-body {
    border-color: rgba(var(--magenta-rgb), 0.4);
}

.era-body h3 {
    margin-bottom: 4px;
}

.era-body p {
    max-width: 52ch;
    color: var(--text-dim);
}

.era-body ul {
    padding-left: 20px;
    color: var(--text-dim);
}

.era-marker {
    grid-area: marker;
    position: relative;
    justify-self: center;
}

/* Periods are a thin lit line running the length of the entry. */
.era-marker--period {
    align-self: stretch;
    width: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* Ruler variant (Story page): adds one tick per year.
   Needs --years on the entry. Backgrounds, top to bottom: the closing tick,
   a tick at the start of each year, and the line itself. */
.era-marker--ruler {
    /* The line stays centred on the spine; ticks fill only the left half,
       pointing at the dates. */
    --tick-width: calc(50% + 1px);
    width: 16px;
    background:
        linear-gradient(var(--cyan), var(--cyan)) left bottom / var(--tick-width) 2px no-repeat,
        linear-gradient(var(--cyan) 2px, transparent 2px) left top / var(--tick-width) calc(100% / var(--years, 1)) repeat-y,
        linear-gradient(var(--cyan), var(--cyan)) center / 2px 100% no-repeat;
    box-shadow: none;
    filter: drop-shadow(0 0 4px var(--cyan));
}

/* Events are signal emitters: a small bright core inside a fixed ring,
   sending out two expanding rings. */
.era-marker--event {
    width: 10px;
    height: 10px;
    margin-top: 24px;
    color: var(--magenta);
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px var(--space-0), 0 0 0 5px currentColor, 0 0 14px 5px currentColor;
}

.era-marker--event::before,
.era-marker--event::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid currentColor;
    border-radius: inherit;
    opacity: 0;
    animation: era-ring 3s ease-out infinite;
}

.era-marker--event::after {
    animation-delay: 1.5s;
}

/* A stronger, faster signal: the Fracture, and the current roadmap stage. */
.era-marker--pulse::before,
.era-marker--pulse::after {
    --ring-scale: 5;
    animation-duration: 2s;
}

.era-marker--pulse::after {
    animation-delay: 1s;
}

@keyframes era-ring {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(var(--ring-scale, 3)); opacity: 0; }
}
/*#endregion*/

/*#region ----- Progress (Roadmap page) */
/* One bar split into equal stages, each segment filled to its stage's --done
   width. Each stage has its own colour, --stage, shared by its segment and
   its timeline title. */
.progress-leg,
.era {
    --stage: var(--magenta);
}

.stage--early-access {
    --stage: var(--cyan);
}

.stage--release {
    --stage: var(--gold);
}

.progress-route {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 820px;
    margin: 0 auto 40px;
    padding: 0;
    list-style: none;
}

.progress-leg {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.progress-track {
    height: 20px;
    margin-bottom: 8px;
    background: color-mix(in srgb, var(--stage) 12%, transparent);
    overflow: hidden;
}

.progress-fill {
    display: block;
    width: var(--done, 0%);
    height: 100%;
    background: var(--stage);
    box-shadow: 0 0 12px color-mix(in srgb, var(--stage) 80%, transparent);
}

.progress-name {
    font-weight: 700;
    color: var(--stage);
    letter-spacing: 0.06em;
}

/* Round only the bar's outer ends. */
.progress-leg:first-child .progress-track {
    border-radius: 10px 0 0 10px;
}

.progress-leg:last-child .progress-track {
    border-radius: 0 10px 10px 0;
}

/* The split between stages: a line running a little past the bar, with the
   next stage's label starting just after it. */
.progress-leg + .progress-leg::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -1px;
    width: 2px;
    height: 32px;
    background: var(--text-dim);
}

.progress-leg + .progress-leg .progress-name {
    padding-left: 10px;
}

/* The hand-kept "Last updated" line under the roadmap's subtitle. */
.updated {
    margin-top: 8px;
    font-size: var(--text-small);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* The current stage's line is lit only up to --done, with its ping riding
   the tip of the fill. */
.era-marker--progress {
    background: linear-gradient(var(--magenta) var(--done), rgba(var(--cyan-rgb), 0.3) var(--done));
    box-shadow: 0 0 8px var(--magenta);
}

/* Stage titles sit in the date column, above the stage's date. */
.era-when h3 {
    margin-bottom: 6px;
    color: var(--stage);
}


.era-marker--progress .era-marker--event {
    position: absolute;
    top: var(--done);
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
}

/* A stage's summary is full white, to stand apart from its task list. */
.era-body p:has(+ .checklist, + .checklist-group) {
    margin-bottom: 10px;
    color: var(--text);
}

/* Optional subheading above a checklist, for phases split by feature type. */
.checklist-group {
    margin: 14px 0 6px;
    font-size: var(--text-small);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

.checklist-group:first-of-type {
    margin-top: 0;
}

.checklist {
    display: grid;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

/* The box is drawn by ::before so the markup stays a plain list. */
.checklist li::before {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--text-dim);
    border-radius: 3px;
    transform: translateY(1px);
}

.checklist li.checked {
    color: var(--green);
}

.checklist li.checked::before {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}
/*#endregion*/

/*#region ----- Call To Action */
.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 64px 24px;
    text-align: center;
    border-top: 1px solid var(--space-3);
    border-bottom: 1px solid var(--space-3);
    background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.1), rgba(var(--magenta-rgb), 0.1));
}
/*#endregion*/

/*#region ----- Footer */
.site-footer {
    margin-top: auto;
    padding: 32px 24px;
    text-align: center;
    background: var(--space-0);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 16px;
    padding: 0;
    list-style: none;
}

/* Icons are inline SVGs in each page's footer, coloured by the link's text
   colour so they can change on hover. */
.social-icon {
    display: block;
    color: var(--cyan);
    transition: color 0.2s ease-in-out;
}

.social-icon:hover {
    color: var(--magenta);
}

.social-icon svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.site-footer small {
    font-size: var(--text-small);
    color: var(--text-dim);
}
/*#endregion*/

/*#region ----- Media Queries (keep last so they override everything above) */
/* Phones. The burger menu has its own breakpoint in Mobile Navigation. */
@media screen and (max-width: 640px) {
    :root {
        --text-h2: 24px;
        --text-h3: 18px;
        --text-lead: 19px;
        --text-body: 16px;
        --text-small: 14px;
    }

    .section {
        padding: 40px 16px;
    }

    .site-nav {
        padding: 0 12px;
    }

    .site-nav .button {
        padding: 6px 12px;
    }

    /* Tightened so the status line stays on one row. */
    .status-line {
        gap: 10px;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .progress-name {
        font-size: var(--text-small);
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    .carousel-arrow--prev { left: 6px; }
    .carousel-arrow--next { right: 6px; }

    /* Dates move above their entry, leaving the spine on the left edge. */
    .timeline {
        --when-width: 0px;
        --marker-width: 36px;
        --body-gap: 8px;
    }

    .era {
        grid-template-columns: var(--marker-width) 1fr;
        grid-template-areas:
            "marker when"
            "marker body";
        grid-template-rows: auto 1fr;
    }

    .era--event .era-when,
    .era--period .era-when {
        margin-left: var(--body-gap);
        margin-bottom: 6px;
        padding-top: 0;
        text-align: left;
    }

    .era-marker--event {
        margin-top: 6px;
    }
}

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

    * {
        transition: none !important;
        animation: none !important;
    }
}
/*#endregion*/
