/* ==========================================================================
   MAXQlabs — site design system
   Brand guide v1.0: Deep Night surfaces, Epilogue (400 · 700 · 800),
   JetBrains Mono for data. Enable Blue is the default accent; every pillar
   page takes its own pillar colour through [data-pillar] on <body>.
   ========================================================================== */

@font-face {
    font-family: "Epilogue";
    src: url("../fonts/epilogue-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Epilogue";
    src: url("../fonts/epilogue-variable-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #0F1117;
    --surface: #1A1C24;
    --elevated: #242630;
    --line: #2E303C;
    --line-strong: #3A3D4B;

    --white: #FFFFFF;
    --text-soft: rgba(255, 255, 255, 0.78);
    --grey: #8B8FA3;

    /* Pillar colours — each belongs to exactly one pillar */
    --build: #54B095;
    --enable: #83D2FB;
    --grow: #F59E0B;
    --transform: #ED747E;
    --empower: #956DF7;

    /* Accent: Enable Blue by default, the signature gradient runs to Empower Purple */
    --accent: #83D2FB;
    --accent-rgb: 131, 210, 251;
    --accent-2: #956DF7;

    --ok: #10B981;
    --warn: #D97706;
    --err: #EF4444;

    --font: "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --gutter: clamp(16px, 5vw, 48px);
    --max: 1200px;
    --header-h: 76px;
    --radius: 18px;
    --radius-lg: 24px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: dark;
}

[data-pillar="build"] { --accent: #54B095; --accent-rgb: 84, 176, 149; --accent-2: #A6DCCB; }
[data-pillar="enable"] { --accent: #83D2FB; --accent-rgb: 131, 210, 251; --accent-2: #C3E8FD; }
[data-pillar="grow"] { --accent: #F59E0B; --accent-rgb: 245, 158, 11; --accent-2: #FACB72; }
[data-pillar="transform"] { --accent: #ED747E; --accent-rgb: 237, 116, 126; --accent-2: #F6B4BA; }
[data-pillar="empower"] { --accent: #956DF7; --accent-rgb: 149, 109, 247; --accent-2: #C8B3FB; }

:root, [data-pillar] {
    --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    --accent-soft: rgba(var(--accent-rgb), 0.12);
    --accent-line: rgba(var(--accent-rgb), 0.42);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--night);
}

body {
    margin: 0;
    background: var(--night);
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: var(--white); }
.nowrap { white-space: nowrap; }

/* Middot-separated labels: when a label wraps, the dot never hangs at the end of a line.
   Each part carries its own dot; the one opening a new line falls outside the box and is clipped. */
.seps { display: flex; flex-wrap: wrap; gap: 0; overflow: hidden; }
.seps > span { margin-left: -1.3em; margin-right: 1.3em; padding-left: 1.3em; text-indent: -1.3em; }
.seps > span:last-child { margin-right: 0; }
.seps > span::before { content: "·"; content: "·" / ""; display: inline-block; width: 1.3em; text-align: center; text-indent: 0; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--night);
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 1.55rem + 3.6vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h2 {
    font-weight: 700;
    font-size: clamp(2rem, 1.45rem + 2.1vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h3 {
    font-weight: 700;
    font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.625rem);
    line-height: 1.22;
    text-wrap: balance;
}
h4 { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }

.lead {
    margin-top: 22px;
    max-width: 680px;
    color: var(--text-soft);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    text-wrap: pretty;
}
.muted { color: var(--grey); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow__num { color: var(--grey); }
.eyebrow.seps { display: flex; gap: 0; }
.eyebrow__num::after { content: "—"; margin-left: 12px; color: var(--line-strong); }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.kicker {
    margin-top: 48px;
    max-width: 820px;
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}
.note { margin-top: 28px; max-width: 680px; color: var(--grey); font-size: 0.975rem; }
.source { margin-top: 16px; color: var(--grey); font-size: 0.8125rem; line-height: 1.5; }
.section-head { max-width: 860px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons, chips, status
   -------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.actions--center { justify-content: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary {
    background: var(--grad);
    color: var(--night);
    box-shadow: 0 12px 32px -12px rgba(var(--accent-rgb), 0.6);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), 0.75); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.03); color: var(--white); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn { max-width: 100%; }
@media (max-width: 520px) {
    .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 14px; }
    .actions > .btn { flex: 1 1 100%; }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(15, 17, 23, 0.5);
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.5;
}
.chips--accent li { border-color: var(--accent-line); color: var(--white); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--grad);
    color: var(--night);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.6;
}

.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-soft); }
.ticks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.42em;
    width: 7px;
    height: 12px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}
.ticks strong { color: var(--white); }
.ticks--sm li { font-size: 0.95rem; }

.icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 90; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.nav-open .site-header {
    background: rgba(15, 17, 23, 0.86);
    border-bottom-color: rgba(46, 48, 60, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav__link,
.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}
.site-nav__link:hover, .site-nav__toggle:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.site-nav__link[aria-current="page"], .site-nav__toggle.is-current { color: var(--white); }
.site-nav__toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s; }
.site-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__cta { margin-left: 10px; }
.site-nav__link .badge { margin-left: 2px; }

.dropdown { position: relative; }
.dropdown__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 420px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(26, 28, 36, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
}
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.2s, transform 0.2s var(--ease); }
.dropdown__item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 4px 14px;
    align-items: baseline;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
}
.dropdown__item:hover, .dropdown__item:focus-visible { background: rgba(255, 255, 255, 0.05); }
.dropdown__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); align-self: center; }
.dropdown__name { font-weight: 700; }
.dropdown__desc { grid-column: 2; color: var(--grey); font-size: 0.85rem; line-height: 1.4; }
.dropdown__item[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .menu-toggle { display: block; }
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 28px;
        background: var(--night);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
    }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
    .site-nav__link, .site-nav__toggle { justify-content: space-between; min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
    .site-nav__link:hover, .site-nav__toggle:hover { background: none; }
    .dropdown__panel {
        position: static;
        width: auto;
        padding: 6px 0 10px;
        border: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .dropdown.is-open .dropdown__panel { display: block; transform: none; }
    .dropdown__item { padding: 10px 4px; }
    .site-nav__cta { margin: 22px 0 0; }
    body.nav-open { overflow: hidden; }
    .site-nav__toggle { width: 100%; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
main { display: block; }
.slide { position: relative; padding-block: clamp(96px, 12vh, 150px); isolation: isolate; }
.slide--tight { padding-block: clamp(72px, 9vh, 110px); }
.slide + .slide::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 48, 60, 0.9) 20%, rgba(46, 48, 60, 0.9) 80%, transparent);
    z-index: 1;
}
.slide--dots::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
    pointer-events: none;
}
.slide--glow { background: radial-gradient(ellipse 60% 60% at 85% 40%, rgba(var(--accent-rgb), 0.07), transparent 70%); }
.slide--glow-left { background: radial-gradient(ellipse 55% 60% at 12% 55%, rgba(var(--accent-rgb), 0.07), transparent 70%); }
.slide--band { background: linear-gradient(180deg, var(--night) 0%, #12141B 50%, var(--night) 100%); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}
.split--top { align-items: start; }
.split--wide-right { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 920px) { .split, .split--wide-right { grid-template-columns: minmax(0, 1fr); } }

.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(36, 38, 48, 0.72), rgba(26, 28, 36, 0.72));
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.card:hover { border-color: rgba(var(--accent-rgb), 0.35); }
.card--glass { background: rgba(15, 17, 23, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card--accent { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.12), rgba(26, 28, 36, 0.72)); }
.card__num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.card__title { margin-top: 16px; font-size: 1.2rem; line-height: 1.3; }
.card__title:first-child { margin-top: 0; }
.card p { margin-top: 10px; color: var(--grey); font-size: 0.975rem; line-height: 1.55; }
.card .ticks { margin-top: 18px; gap: 10px; }
.card .ticks li { font-size: 0.925rem; }
.card .chips { margin-top: auto; padding-top: 20px; }
.card .icon + .card__title { margin-top: 20px; }
.card__meta { margin-top: 14px; color: var(--grey); font-size: 0.875rem; }
.card__meta strong { color: var(--white); font-weight: 700; }
.card__foot { margin-top: auto; padding-top: 22px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    min-height: min(100svh, 1000px);
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 96px;
    overflow: clip;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 55% 55% at 78% 42%, rgba(var(--accent-rgb), 0.16), transparent 70%),
        radial-gradient(ellipse 45% 40% at 90% 85%, rgba(var(--accent-rgb), 0.08), transparent 70%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero__copy { max-width: 760px; }
.hero__lockup { width: 220px; margin-bottom: 30px; }
.hero__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__points strong { display: block; font-size: 1rem; line-height: 1.35; }
.hero__points li > span { display: block; margin-top: 4px; color: var(--grey); font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 1000px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); }
    .hero__visual { width: 100%; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 640px) {
    .hero__points { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hero { min-height: 0; padding-top: calc(var(--header-h) + 32px); padding-bottom: 72px; }
}
.hero--page { min-height: 0; padding-bottom: clamp(72px, 10vh, 120px); }

/* --------------------------------------------------------------------------
   Home hero: the five pillars as stages on one launch trajectory,
   with MAXQ marking where the pressure peaks
   -------------------------------------------------------------------------- */
.th {
    --tele-h: 92px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: clamp(800px, 100svh, 1040px);
    padding-top: var(--header-h);
    overflow: clip;
    background: var(--night);
}

/* Atmosphere: a violet glow high on the right, a blue one where the climb starts, a dot grid, and a faint horizon */
.th__bg { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(46% 58% at 84% 20%, rgba(149, 109, 247, 0.2), transparent 70%),
    radial-gradient(38% 48% at 70% 64%, rgba(131, 210, 251, 0.13), transparent 72%),
    radial-gradient(120% 55% at 50% 138%, rgba(131, 210, 251, 0.12), transparent 62%); }
.th__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.4px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(75% 80% at 62% 42%, #000 20%, transparent 78%);
    mask-image: radial-gradient(75% 80% at 62% 42%, #000 20%, transparent 78%);
}

/* --------------------------------------------------------------------------
   The trajectory: one curve, five stages, one Max Q
   -------------------------------------------------------------------------- */
.th__traj { position: absolute; inset: var(--header-h) 0 var(--tele-h) 0; z-index: 0; }
.th__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.th__svg--stack { display: none; }
.th__line { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.th__svg { filter: drop-shadow(0 0 7px rgba(131, 210, 251, 0.45)); }
.th__alt { stroke: rgba(255, 255, 255, 0.045); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }

.th__stops { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
:where(.th__stop) { --c: var(--accent); }
.th__stop {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: 0;
    height: 0;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.th__dot {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 0 24px var(--c);
    transition: transform 0.3s var(--ease);
}
.th__dot::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid var(--c);
    border-radius: 50%;
    opacity: 0;
}
.th__stop.is-hit .th__dot::after { animation: th-ping 1.1s var(--ease); }
@keyframes th-ping { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(2.6); } }
.th__stop:hover .th__dot, .th__stop:focus-visible .th__dot { transform: scale(1.3); }
.th__stop:focus-visible { outline: none; }
.th__stop:focus-visible .th__label { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 6px; }

.th__label {
    position: absolute;
    display: grid;
    gap: 3px;
    white-space: nowrap;
    text-shadow: 0 1px 14px rgba(15, 17, 23, 0.95), 0 0 2px rgba(15, 17, 23, 0.9);
}
.th__label strong { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.th__label span { font-size: 1.02rem; font-weight: 700; line-height: 1.2; color: var(--white); transition: color 0.2s; }
.th__stop:hover .th__label span { color: var(--c); }

/* Label placement around the stage dot (wide layout) */
@media (min-width: 1101px) {
    .th__stop[data-pos="above"] .th__label { left: 0; bottom: 22px; transform: translateX(-50%); text-align: center; justify-items: center; }
    .th__stop[data-pos="below"] .th__label { left: 0; top: 22px; transform: translateX(-50%); text-align: center; justify-items: center; }
    .th__stop[data-pos="right"] .th__label { left: 24px; top: 0; transform: translateY(-50%); }
    .th__stop[data-pos="left"] .th__label { right: 24px; top: 0; transform: translateY(-50%); text-align: right; justify-items: end; }
    .th__stop[data-pos="above-left"] .th__label { right: -6px; bottom: 22px; text-align: right; justify-items: end; }
    .th__stop[data-pos="below-right"] .th__label { left: -6px; top: 22px; }
}

.th__maxq { position: absolute; left: var(--x); top: var(--y); z-index: 1; width: 0; height: 0; pointer-events: none; transition: opacity 0.6s var(--ease); }
.th__maxq-mark {
    position: absolute;
    left: -15px;
    top: -15px;
    width: 30px;
    height: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: th-spin 24s linear infinite;
}
@keyframes th-spin { to { transform: rotate(360deg); } }
.th__maxq-label {
    position: absolute;
    left: 30px;
    top: 0;
    transform: translateY(-50%);
    display: grid;
    gap: 3px;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
    text-shadow: 0 1px 12px rgba(15, 17, 23, 0.95);
}
.th__maxq-label strong { font-family: var(--font); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; color: var(--white); }
.th__maxq-label strong b { font-weight: 800; color: #83D2FB; text-shadow: 0 0 14px rgba(131, 210, 251, 0.55); }

/* The craft: one bright point that climbs the curve */
.th__craft {
    --c: #83D2FB;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 0 26px 7px color-mix(in srgb, var(--c) 70%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, box-shadow 0.6s;
}

/* Entrance: the line draws itself, the stages arrive as it reaches them */
.js .th:not(.is-drawn) .th__stop,
.js .th:not(.is-drawn) .th__maxq { opacity: 0; transform: translateY(6px); }
.th__stop, .th__maxq { transition-delay: calc(var(--at, 0) * 1.9s); }

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */
.th__inner { position: relative; z-index: 2; padding-top: clamp(24px, 6.5vh, 72px); }
.th__announce {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 5px 16px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(26, 28, 36, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text-soft);
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.th__announce:hover { border-color: var(--accent-line); color: var(--white); }
.th__badge { flex-shrink: 0; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: var(--night); font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.th__announce-short { display: none; }
.th__arrow { color: var(--accent); transition: transform 0.2s var(--ease); }
.th__announce:hover .th__arrow { transform: translateX(3px); }

.th__title {
    margin-top: clamp(20px, 3.6vh, 40px);
    font-size: min(5.6vw, 8.8vh);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
}
.th__title > span { display: block; }
.th__lead { max-width: 34em; margin-top: clamp(18px, 3.2vh, 32px); color: var(--text-soft); font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.28rem); line-height: 1.55; text-wrap: pretty; }
.th__actions { margin-top: clamp(22px, 3.8vh, 38px); }

/* --------------------------------------------------------------------------
   Telemetry: the proof points, read like mission data
   -------------------------------------------------------------------------- */
.th__telemetry { position: relative; z-index: 2; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.09); background: linear-gradient(180deg, rgba(15, 17, 23, 0.4), rgba(15, 17, 23, 0.85)); }
.th__telemetry dl { display: grid; grid-template-columns: 0.8fr 0.95fr 1.3fr 1.15fr; margin: 0 auto; }
.th__telemetry div { display: grid; align-content: start; gap: 5px; min-height: var(--tele-h); padding: 22px 20px 18px 0; }
.th__telemetry div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.th__telemetry dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.th__telemetry dd { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.4; }
.th__num { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Stacked: tablets and phones get the copy first, then the trajectory as its own band
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .th { height: auto; }
    .th__inner { order: 1; padding-top: clamp(32px, 7vw, 64px); }
    .th__traj { position: relative; inset: auto; order: 2; height: clamp(330px, 50vw, 470px); margin: 28px 0 8px; }
    .th__telemetry { order: 3; margin-top: 0; }
    .th__svg--wide { display: none; }
    .th__svg--stack { display: block; }
    .th__stop, .th__maxq { left: var(--mx); top: var(--my); }
    .th__stop, .th__maxq { transition-delay: calc(var(--mat, 0) * 1.9s); }
    .th__title { font-size: clamp(2.5rem, 7.6vw, 4.8rem); }
    .th__telemetry dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th__telemetry div { min-height: 0; padding: 16px 16px 16px 0; }
    .th__telemetry div:nth-child(3) { padding-left: 0; border-left: 0; }
    .th__telemetry div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
    .th__label span { font-size: 0.95rem; }

    .th__stop[data-mpos="above"] .th__label { left: 0; bottom: 20px; transform: translateX(-50%); text-align: center; justify-items: center; }
    .th__stop[data-mpos="right"] .th__label { left: 22px; top: 0; transform: translateY(-50%); }
    .th__stop[data-mpos="left"] .th__label { right: 22px; top: 0; transform: translateY(-50%); text-align: right; justify-items: end; }
    .th__stop[data-mpos="below-right"] .th__label { left: -6px; top: 20px; }
    .th__stop[data-mpos="above-left"] .th__label { right: -6px; bottom: 20px; text-align: right; justify-items: end; }
    .th__maxq-label { left: auto; right: 30px; text-align: right; justify-items: end; }
    .th__title > span { display: inline; }
    .th__title { text-wrap: balance; }
    .th__title .grad-text { white-space: nowrap; }
}
@media (max-width: 560px) {
    .th__announce { font-size: 0.82rem; gap: 10px; }
    .th__label strong { font-size: 0.64rem; letter-spacing: 0.12em; }
    .th__label span { font-size: 0.86rem; }
    .th__maxq-label { left: 30px; right: auto; text-align: left; justify-items: start; font-size: 0.6rem; }
    .th__maxq-label span { max-width: 10em; white-space: normal; line-height: 1.5; }
    .th__maxq-label strong { font-size: 0.95rem; }
    .th__announce-long { display: none; }
    .th__announce-short { display: inline; }
    .th__telemetry dd { font-size: 0.88rem; }
    .th__telemetry div + div { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .th__maxq-mark { animation: none; }
    .th__craft { display: none; }
}

/* --------------------------------------------------------------------------
   Pillar cards (home) and pillar navigation (pillar pages)
   -------------------------------------------------------------------------- */
.pillar-card { --c: var(--accent); }
.pillar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
    pointer-events: none;
}
.pillar-card:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.pillar-card__name { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.pillar-card__name::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.pillar-card .ticks li::before { border-color: var(--c); }
.pillar-card .link-arrow { color: var(--c); }
.pillar-card--wide { grid-column: span 2; }
@media (max-width: 1080px) { .pillar-card--wide { grid-column: auto; } }

.pillar-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 40px; text-align: left; }
:where(.pillar-nav) a { --c: var(--accent); }
.pillar-nav a {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 18px 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(26, 28, 36, 0.7);
    color: var(--white);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}
.pillar-nav a:hover { border-color: var(--c); transform: translateY(-2px); }
.pillar-nav a[aria-current="page"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, rgba(26, 28, 36, 0.7)); }
.pillar-nav strong { display: flex; align-items: center; gap: 10px; }
.pillar-nav strong::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pillar-nav span { color: var(--grey); font-size: 0.85rem; line-height: 1.35; }
@media (max-width: 1000px) { .pillar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pillar-nav { grid-template-columns: minmax(0, 1fr); } }

.c-build { --c: #54B095; }
.c-enable { --c: #83D2FB; }
.c-grow { --c: #F59E0B; }
.c-transform { --c: #ED747E; }
.c-empower { --c: #956DF7; }

/* --------------------------------------------------------------------------
   Steps (how it works)
   -------------------------------------------------------------------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 28px;
    right: calc((100% - (var(--n, 4) - 1) * 24px) / var(--n, 4) - 28px);
    height: 1px;
    background: var(--grad);
    opacity: 0.55;
    transform-origin: 0 50%;
}
.step__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: var(--night);
    box-shadow: 0 0 0 8px var(--night), 0 0 28px rgba(var(--accent-rgb), 0.25);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.9rem;
}
.step__title { margin: 26px 0 4px; font-size: 1.25rem; }
.step__sub { color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.step p { margin-top: 8px; color: var(--grey); font-size: 0.95rem; line-height: 1.55; }
.step .ticks { margin-top: 14px; gap: 8px; }
.step .ticks li { font-size: 0.9rem; color: var(--grey); padding-left: 24px; }
.step .ticks li::before { width: 5px; height: 10px; }
.step__deliverable { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--grey); font-size: 0.85rem; }
.step__deliverable strong { color: var(--white); }
@media (min-width: 981px) {
    /* Each step shares its rows with its neighbours, so sub-headings, lists and deliverables line up across the row */
    .step { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .step > * { align-self: start; }
    .step__num { justify-self: start; }
}
.js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.2s; }
.js .steps.is-visible::before { transform: scaleX(1); }
.js .steps .step { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .steps.is-visible .step { opacity: 1; transform: none; }
.js .steps.is-visible .step:nth-child(2) { transition-delay: 0.2s; }
.js .steps.is-visible .step:nth-child(3) { transition-delay: 0.4s; }
.js .steps.is-visible .step:nth-child(4) { transition-delay: 0.6s; }
.js .steps.is-visible .step:nth-child(5) { transition-delay: 0.8s; }
@media (max-width: 980px) {
    .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; }
    .steps::before { display: none; }
    .step { position: relative; }
    .step:not(:last-child)::after { content: ""; position: absolute; top: 56px; bottom: -32px; left: 28px; width: 1px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); opacity: 0.55; }
    .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; }
    .step > *:not(.step__num) { grid-column: 2; }
    .step__num { grid-row: 1 / span 6; }
    .step__title { margin-top: 12px; }
}

/* --------------------------------------------------------------------------
   Metrics
   -------------------------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.metric {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(26, 28, 36, 0.7);
}
.metric__value {
    display: block;
    font-family: var(--mono);
    font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
    line-height: 1.05;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.metric__value--text { font-family: var(--font); font-weight: 800; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.95rem); line-height: calc(1.05 * clamp(2rem, 1.6rem + 1.5vw, 3rem)); letter-spacing: -0.01em; white-space: nowrap; }
.metric__label { display: block; margin-top: 10px; font-weight: 700; }
.metric p { margin-top: 6px; color: var(--grey); font-size: 0.925rem; line-height: 1.5; }
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .metrics { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Comparison tables
   -------------------------------------------------------------------------- */
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 28, 36, 0.6); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; }
.table th, .table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table thead th { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); font-weight: 400; background: rgba(36, 38, 48, 0.6); }
.table tbody th { font-weight: 700; color: var(--white); width: 26%; }
.table td { color: var(--grey); }
.table .is-us { color: var(--white); background: var(--accent-soft); }
.table thead .is-us { color: var(--accent); background: rgba(var(--accent-rgb), 0.16); }
@media (max-width: 600px) {
    /* Fit the comparison on a phone rather than hiding the key column behind a sideways scroll. */
    .table { min-width: 0; font-size: 0.9rem; }
    .table th, .table td { padding: 12px 10px; }
    .table thead th { font-size: 0.66rem; letter-spacing: 0.08em; }
    .table tbody th { width: 30%; }
}

/* --------------------------------------------------------------------------
   Versus (before / after)
   -------------------------------------------------------------------------- */
.versus { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.versus__col { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(15, 17, 23, 0.72); }
.versus__col--new { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.12), rgba(15, 17, 23, 0.72)); }
.versus__tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.versus__col--new .versus__tag { color: var(--accent); }
.versus ul { display: grid; gap: 14px; margin-top: 20px; }
.versus li { position: relative; padding-left: 30px; line-height: 1.5; }
.versus__col--old li { color: var(--grey); }
.versus__col--old li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 1.5px; background: var(--grey); }
.versus__col--new li::before { content: ""; position: absolute; left: 1px; top: 0.35em; width: 7px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.versus__arrow { display: grid; place-items: center; }
.versus__arrow span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--night); color: var(--accent); font-size: 1.6rem; }
@media (max-width: 860px) { .versus { grid-template-columns: minmax(0, 1fr); } .versus__arrow { transform: rotate(90deg); } }

/* --------------------------------------------------------------------------
   Feature spotlight (e.g. Orbit on the home page)
   -------------------------------------------------------------------------- */
.spotlight {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid rgba(131, 210, 251, 0.35);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 50px 120px -60px rgba(131, 210, 251, 0.45);
}
.spotlight__body { padding: clamp(28px, 4vw, 56px); }
.spotlight__media { position: relative; min-height: 320px; }
.spotlight__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, rgba(26, 28, 36, 0) 40%); }
.spotlight .metric-line { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.spotlight .metric-line div { display: grid; }
.spotlight .metric-line strong { font-family: var(--mono); font-weight: 400; font-size: 1.35rem; color: var(--enable); }
.spotlight .metric-line span { color: var(--grey); font-size: 0.85rem; }
@media (max-width: 900px) {
    .spotlight { grid-template-columns: minmax(0, 1fr); }
    .spotlight__media { order: -1; min-height: 220px; }
    .spotlight__media::after { background: linear-gradient(0deg, var(--surface) 0%, rgba(26, 28, 36, 0) 60%); }
}

/* --------------------------------------------------------------------------
   Workshop / programme panels
   -------------------------------------------------------------------------- */
.panel { margin-top: 48px; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(26, 28, 36, 0.65); }
.panel--accent { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.09), rgba(26, 28, 36, 0.65)); }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 920px) { .panel__grid { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--grey); }
.facts dd { font-weight: 700; text-align: right; white-space: nowrap; }
@media (max-width: 480px) {
    .facts div { flex-direction: column; gap: 2px; }
    .facts dd { text-align: left; white-space: normal; }
}
.journey { display: grid; gap: 12px; margin-top: 24px; counter-reset: journey; }
.journey li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 17, 23, 0.5); }
.journey__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--mono); }
.journey h4 { font-size: 1.05rem; }
.journey p { margin-top: 4px; color: var(--grey); font-size: 0.925rem; }
.journey__out { display: block; margin-top: 6px; color: var(--accent); font-family: var(--mono); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 920px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { position: relative; padding: 22px 48px 22px 0; font-weight: 700; font-size: 1.1rem; line-height: 1.4; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -8px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease), margin-top 0.3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__answer { padding: 0 48px 24px 0; color: var(--text-soft); max-width: 680px; }
.faq__answer ul { display: grid; gap: 6px; margin-top: 10px; list-style: disc; padding-left: 20px; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta { overflow: clip; text-align: center; }
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 50% 60% at 50% 110%, rgba(var(--accent-rgb), 0.22), transparent 70%),
        radial-gradient(ellipse 35% 45% at 15% 20%, rgba(var(--accent-rgb), 0.07), transparent 70%);
}
.cta__title { max-width: 900px; margin-inline: auto; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.cta .lead { margin-inline: auto; }
.cta .btn--ghost { background: rgba(15, 17, 23, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cta__rings { position: absolute; left: 50%; bottom: -55%; z-index: -1; width: min(1100px, 150%); transform: translateX(-50%); opacity: 0.8; pointer-events: none; }
.cta__rings ellipse { fill: none; stroke: rgba(var(--accent-rgb), 0.28); stroke-width: 1.2; }

/* --------------------------------------------------------------------------
   Team gallery
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; margin-top: 48px; }
.gallery figure { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: saturate(0.9); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } }

/* --------------------------------------------------------------------------
   Values
   -------------------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.value { --c: var(--accent); padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 28, 36, 0.7); }
.value__name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.value__name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.value p:not(.value__name) { margin-top: 10px; color: var(--grey); font-size: 0.925rem; line-height: 1.5; }
@media (max-width: 1080px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }

.quote {
    position: relative;
    margin-top: 40px;
    padding: 34px 36px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.1), rgba(26, 28, 36, 0.6));
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
}
.quote::before { content: "“"; position: absolute; top: -10px; left: 24px; font-size: 5rem; line-height: 1; color: var(--accent); opacity: 0.6; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.925rem; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(15, 17, 23, 0.8);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); }
.field__error { color: #F87171; font-size: 0.85rem; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-soft); font-size: 0.925rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check.is-invalid { color: #F87171; }
.check a { color: var(--accent); }
.form__status:empty { display: none; }
.form__status { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form__status.is-ok { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.45); color: #6EE7B7; }
.form__status.is-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.45); color: #FCA5A5; }
.form-card { padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(26, 28, 36, 0.7); }

.contact-list { display: grid; gap: 22px; margin-top: 8px; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-list strong { display: block; }
.contact-list span, .contact-list a { color: var(--text-soft); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Job listing
   -------------------------------------------------------------------------- */
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), rgba(26, 28, 36, 0.7)); }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.job h4 { margin-top: 28px; font-size: 1.05rem; }
.job p { margin-top: 12px; color: var(--text-soft); }
@media (max-width: 920px) { .job { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.prose { color: var(--text-soft); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); color: var(--white); }
.prose h3 { margin: 32px 0 10px; font-size: 1.2rem; color: var(--white); }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.prose ol { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--white); }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--white); font-weight: 700; }
.prose .table-scroll { overflow-x: auto; }
@media (max-width: 600px) {
    .prose table { font-size: 0.86rem; }
    .prose th, .prose td { padding: 8px 6px; }
}
.legal-meta { margin-top: 18px; font-family: var(--mono); font-size: 0.8rem; color: var(--grey); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: #0B0D12; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { width: 150px; }
.site-footer__tagline { margin-top: 18px; font-weight: 700; font-size: 1.05rem; }
.site-footer__brand p { margin-top: 10px; color: var(--grey); font-size: 0.9rem; line-height: 1.55; }
.site-footer h2 { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.site-footer ul { display: grid; gap: 10px; margin-top: 16px; }
.site-footer a, .site-footer button.linklike { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover, .site-footer button.linklike:hover { color: var(--white); }
.site-footer__pillar { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__pillar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--grey); font-size: 0.85rem; }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__badges span { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__badges span::before { content: ""; width: 6px; height: 10px; margin-top: -3px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg); }
button.linklike { padding: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */
.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 95;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    max-width: 880px;
    margin-inline: auto;
    padding: 18px 20px 18px 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(26, 28, 36, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.4s var(--ease);
}
.cookie.is-shown { transform: none; }
.cookie p { color: var(--text-soft); font-size: 0.925rem; line-height: 1.5; }
.cookie a { color: var(--accent); }
.cookie__actions { display: flex; gap: 10px; }
@media (max-width: 640px) { .cookie { grid-template-columns: minmax(0, 1fr); } .cookie__actions .btn { flex: 1; } }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-code { font-family: var(--mono); font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .reveal-group > .reveal:nth-child(6) { transition-delay: 0.4s; }
.js .hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .hero .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
    .js .reveal, .js .steps .step { opacity: 1; transform: none; }
    .js .steps::before { transform: none; }
}

/* --------------------------------------------------------------------------
   Sitemap
   -------------------------------------------------------------------------- */
.sitemap-card__title a { color: var(--white); text-decoration: none; }
.sitemap-card__title a:hover { color: var(--c); }
.sitemap-list { display: grid; margin-top: 16px; }
.sitemap-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(46, 48, 60, 0.7); color: var(--text-soft); font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.sitemap-list li:last-child a { border-bottom: 0; }
.sitemap-list a::after { content: "→"; color: var(--c); transition: transform 0.2s var(--ease); }
.sitemap-list a:hover { color: var(--white); }
.sitemap-list a:hover::after { transform: translateX(3px); }

/* Legal pages: the closing note */
.legal-note { margin-top: 56px; padding: 26px 28px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), rgba(26, 28, 36, 0.6)); }
.prose .legal-note h3 { margin-top: 0; }
.legal-note__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Print: the page, without the chrome */
@media print { .site-header, .cookie, .skip-link, .menu-toggle { display: none !important; } }

/* Page-to-page navigation cross-fades, with the header holding still */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}

/* The brand word: MAXQ is always written as in the logo, with the Q in the accent colour */
.mq { font-weight: 800; white-space: nowrap; }
.mq b { font-weight: 800; color: var(--accent); }

/* --------------------------------------------------------------------------
   Polish pass 2
   -------------------------------------------------------------------------- */
/* Typography: fewer stranded words */
p, li, dd { text-wrap: pretty; }
h4, .card__title, .value__name, .faq summary { text-wrap: balance; }
.lead a, .note a, .legal-note a { white-space: nowrap; }

/* Word values in a stats row sit on the numerals' baseline, in the same typeface */
.metric__word { font-size: 0.6em; letter-spacing: -0.01em; }
.metric__value .comma { margin-inline: -0.22ch; }

/* Steps: the shared rows need no gap of their own */
@media (min-width: 981px) { .steps { row-gap: 0; } }

/* Forms */
.req { color: var(--accent); }
.check input {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(15, 17, 23, 0.6);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.check input:hover { border-color: var(--accent-line); }
.check input:checked { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230F1117' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check.is-invalid input { border-color: #F87171; }
.field select:has(option[value=""]:checked) { color: var(--grey); }
.field select option { color: var(--white); background: var(--surface); }
@media (max-width: 600px) { .form .btn { width: 100%; } }

/* Comparison tables: identical column widths from one table to the next */
@media (min-width: 601px) {
    .table { table-layout: fixed; }
    .table thead th:first-child { width: 26%; }
}
.table th, .table td { text-wrap: pretty; }

/* Pillar navigation: the current page stays readable on its tinted card */
.pillar-nav a[aria-current="page"] span { color: var(--text-soft); }

/* CTA: the rings sit lower, clear of the buttons */
.cta__rings { bottom: -64%; }

/* Galleries never flash alt text while a photo loads */
.gallery figure { background: var(--surface); }
.gallery img { color: transparent; }

/* Phones */
@media (max-width: 480px) {
    .cta__title { font-size: clamp(1.9rem, 7.6vw, 2.2rem); }
    .error-code + h1 { font-size: 2.05rem; }
}
@media (max-width: 420px) {
    .eyebrow, .card__num { letter-spacing: 0.1em; }
}

/* Cards: the closing link sits at the foot of the card, whatever the paragraph rules say */
.card > .card__foot { margin-top: auto; }

/* Small helpers used by the copy */
.block { display: block; }
.card__title.hang { text-indent: -0.42em; }
.facts .op { padding-inline: 0.12em; color: var(--grey); font-family: var(--mono); font-size: 0.92em; }
@media (min-width: 981px) { .chips--spread { justify-content: space-between; } }
.spotlight h2 { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.75rem); }
@media (max-width: 600px) {
    .panel { padding: 22px 16px; }
    .panel h3 { font-size: 1.25rem; }
    .journey li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .journey__num { width: 34px; height: 34px; }
}

/* ==========================================================================
   Page heroes: pillar stages on the trajectory, About and Careers
   ========================================================================== */

/* --------------------------------------------------------------------------
   Pillar pages: the home trajectory, with this pillar's stage lit
   -------------------------------------------------------------------------- */
.th--stage .th__bg { background:
    radial-gradient(46% 58% at 84% 20%, rgba(var(--accent-rgb), 0.17), transparent 70%),
    radial-gradient(38% 48% at 66% 66%, rgba(var(--accent-rgb), 0.11), transparent 72%),
    radial-gradient(120% 55% at 50% 138%, rgba(var(--accent-rgb), 0.1), transparent 62%); }
.th--stage .th__svg { filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.5)); }
.th__line--ahead { stroke: rgba(255, 255, 255, 0.26); stroke-dasharray: 2 8; }

.th__stagepill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 5px 16px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(26, 28, 36, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text-soft);
    font-size: 0.9rem;
}
.th--stage .th__title { font-size: min(4.3vw, 7.1vh); max-width: 12.8em; }
.th--stage .th__title > span { display: inline; }
.th--stage .th__title .grad-text.block { display: block; }
.th--stage .th__lead { max-width: 31em; }

/* Stages: past ones are solid, the current one is a beacon, the ones ahead are hollow */
.th--stage .th__stop:not(.is-current) { opacity: 0.72; }
.th--stage .th__stop:not(.is-current):hover, .th--stage .th__stop:not(.is-current):focus-visible { opacity: 1; }
.th--stage .th__stop:not(.is-current) .th__dot { transform: scale(0.72); }
.th--stage .th__stop:not(.is-current) .th__label span { display: none; }
.th--stage .th__stop:not(.is-current):hover .th__label span,
.th--stage .th__stop:not(.is-current):focus-visible .th__label span { display: block; }
.th--stage .th__stop.is-ahead .th__dot { background: var(--night); border: 2px solid var(--c); box-shadow: none; }
.th--stage .th__stop.is-current { z-index: 3; }
.th--stage .th__stop.is-current .th__dot {
    left: -10px;
    top: -10px;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 20%, transparent), 0 0 38px var(--c);
}
.th--stage .th__stop.is-current .th__dot::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid var(--c);
    border-radius: 50%;
    animation: th-beacon 2.6s var(--ease) infinite;
}
@keyframes th-beacon { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.8); } }
.th--stage .th__stop.is-current .th__label strong { font-size: 0.74rem; }
.th--stage .th__stop.is-current .th__label span { font-size: 1.4rem; line-height: 1.15; }
.th--stage .th__stop.is-current[data-pos="below"] .th__label { top: 26px; }
@media (min-width: 1101px) {
    .th--stage .th__stop.is-current[data-pos="below-right"] .th__label { left: -6px; top: 26px; }
}
.th--stage .th__stop.is-current[data-pos="above"] .th__label,
.th--stage .th__stop.is-current[data-pos="above-left"] .th__label { bottom: 26px; }

.th__next a { color: var(--white); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.th__next a:hover { color: var(--accent); }
.th__next dt { color: var(--white) !important; }

.th--stage { --tele-h: 108px; }
@media (min-width: 1101px) { .th--stage .th__telemetry dl { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.9fr); } }
.th--stage .th__title .grad-text { white-space: normal; }
@media (max-width: 640px) {
    .th--stage .th__telemetry dl { grid-template-columns: minmax(0, 1fr); }
    .th--stage .th__telemetry div, .th--stage .th__telemetry div + div { padding: 14px 0; border-left: 0; }
    .th--stage .th__telemetry div + div { border-top: 1px solid rgba(255, 255, 255, 0.07); }
}

@media (max-width: 1100px) {
    .th--stage .th__title { font-size: clamp(2.3rem, 6.4vw, 4rem); max-width: none; }
    .th--stage .th__stop.is-current .th__label span { font-size: 1.15rem; }
    .th--stage .th__stop.is-current[data-mpos="below-right"] .th__label { top: 24px; }
    .th--stage .th__stop.is-current[data-mpos="above-left"] .th__label { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .th--stage .th__stop.is-current .th__dot::before { animation: none; opacity: 0.5; transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   About: the crew beside the copy, and our own trajectory underneath
   -------------------------------------------------------------------------- */
.ah { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--header-h) + clamp(40px, 7vh, 84px)); background: var(--night); }
.ah__bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(42% 60% at 80% 30%, rgba(149, 109, 247, 0.16), transparent 70%),
    radial-gradient(36% 50% at 18% 20%, rgba(131, 210, 251, 0.09), transparent 70%); }
.ah__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 70% at 40% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(70% 70% at 40% 40%, #000 20%, transparent 78%); }
.ah__inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ah__title { margin-top: 4px; font-size: clamp(2.4rem, 1.4rem + 2.6vw, 3.7rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ah__copy .lead { margin-top: 26px; max-width: 30em; }
.ah__copy .actions { margin-top: 34px; }

.ah__crew { position: relative; aspect-ratio: 1 / 0.86; }
.ah__photo { position: absolute; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.ah__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.04); }
.ah__photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 17, 23, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--white); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ah__photo--a { left: 0; top: 8%; width: 60%; aspect-ratio: 4 / 3; z-index: 2; }
.ah__photo--b { right: 0; top: 0; width: 45%; aspect-ratio: 1 / 1; z-index: 1; }
.ah__photo--c { left: 30%; bottom: 0; width: 50%; aspect-ratio: 4 / 3; z-index: 3; }

.ah__log { position: relative; margin-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(24px, 4vh, 48px); }
.ah__log-inner { position: relative; }
.ah__log-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ah__curve { position: absolute; left: 0; top: 34px; width: 100%; height: 150px; overflow: visible; filter: drop-shadow(0 0 6px rgba(131, 210, 251, 0.4)); }
.ah__steps { position: absolute; left: 0; right: 0; top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 210px; margin: 0; padding: 0; list-style: none; }
.ah__log-inner { min-height: 244px; }
.ah__steps li { position: relative; }
.ah__dot { position: absolute; left: 50%; top: calc(var(--dy) * 150px - 7px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--night); border: 2px solid #83D2FB; box-shadow: 0 0 16px rgba(131, 210, 251, 0.6); }
.ah__steps li.is-now .ah__dot { background: #956DF7; border-color: #C8B3FB; box-shadow: 0 0 0 6px rgba(149, 109, 247, 0.2), 0 0 26px #956DF7; }
.ah__when, .ah__what { position: absolute; left: 50%; transform: translateX(-50%); width: min(100%, 15rem); text-align: center; }
.ah__when { top: calc(var(--dy) * 150px + 18px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #83D2FB; }
.ah__steps li.is-now .ah__when { color: #C8B3FB; }
.ah__what { top: calc(var(--dy) * 150px + 40px); color: var(--text-soft); font-size: 0.95rem; line-height: 1.45; }
.ah__what a { color: var(--white); }

@media (max-width: 900px) {
    .ah__inner { grid-template-columns: minmax(0, 1fr); }
    .ah__crew { max-width: 560px; }
}
@media (max-width: 760px) {
    .ah__curve { display: none; }
    .ah__log-inner { min-height: 0; }
    .ah__steps { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); height: auto; gap: 0; margin-top: 22px; }
    .ah__steps::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, rgba(131, 210, 251, 0.2), #83D2FB 40%, #956DF7); border-radius: 2px; }
    .ah__steps li { display: grid; gap: 2px; padding: 0 0 22px 34px; }
    .ah__dot { left: 0; top: 4px; margin-left: 0; }
    .ah__when, .ah__what { position: static; transform: none; width: auto; text-align: left; }
}

/* --------------------------------------------------------------------------
   Careers: open applications, and the crew on a slow reel
   -------------------------------------------------------------------------- */
.ch { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--header-h) + clamp(40px, 7vh, 84px)); background: var(--night); }
.ch__bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(50% 55% at 78% 18%, rgba(131, 210, 251, 0.14), transparent 70%),
    radial-gradient(40% 45% at 12% 70%, rgba(149, 109, 247, 0.12), transparent 70%); }
.ch__inner { position: relative; z-index: 2; }
.ch__status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 999px; background: rgba(16, 185, 129, 0.08); color: var(--white); font-size: 0.88rem; }
.ch__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ch__pulse::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ok); border-radius: 50%; animation: th-beacon 2.2s var(--ease) infinite; }
.ch__title { max-width: 13em; margin-top: 22px; font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.ch__inner .lead { max-width: 34em; margin-top: 26px; }
.ch__inner .actions { margin-top: 32px; }

.ch__reel { display: flex; gap: 14px; margin-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(36px, 6vh, 64px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ch__track { display: flex; flex-shrink: 0; gap: 14px; margin: 0; padding: 0; list-style: none; animation: ch-reel 90s linear infinite; }
.ch__reel:hover .ch__track { animation-play-state: paused; }
@keyframes ch-reel { to { transform: translateX(calc(-100% - 14px)); } }
.ch__track li { flex-shrink: 0; }
.ch__track figure { position: relative; margin: 0; height: clamp(190px, 26vh, 270px); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: var(--surface); }
.ch__track img { width: auto; height: 100%; max-width: none; object-fit: cover; filter: saturate(0.88) contrast(1.04); transition: transform 0.6s var(--ease); }
.ch__track figure:hover img { transform: scale(1.04); }
.ch__track figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 17, 23, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--white); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ch .th__telemetry { margin-top: 0; }
@media (max-width: 1100px) { .ch .th__telemetry dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
    .ch__track { animation: none; }
    .ch__track--clone { display: none; }
    .ch__reel { overflow-x: auto; }
    .ch__pulse::after { animation: none; }
}

/* Polish pass 3 */
.pillar-nav span { text-wrap: balance; }
.pillar-card__name { align-items: flex-start; }
.pillar-card__name::before { flex-shrink: 0; margin-top: 0.15em; }
.th:not(.th--stage) .th__telemetry dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .th:not(.th--stage) .th__telemetry dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .th__maxq-label span { max-width: 13em; } }

/* Card labels written as paragraphs keep the label style, not the body-paragraph one */
.card > p.card__num { margin-top: 0; color: var(--accent); font-size: 0.78rem; line-height: 1.5; }

/* ==========================================================================
   Page content: statement, spec sheet, proof band, cases, stage index and
   navigation, manifesto, gates — the components that replaced the card grids
   ========================================================================== */

/* Statement: the problem, in one editorial sentence, with three symptoms under it */
.statement__text {
    max-width: 21em;
    font-size: clamp(1.85rem, 1.15rem + 2.3vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.statement__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.statement__points li { padding: 26px 28px 6px 0; }
.statement__points li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.statement__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent); }
.statement__points strong { display: block; margin-top: 12px; font-size: 1.15rem; line-height: 1.3; }
.statement__points p { margin-top: 8px; color: var(--grey); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 800px) {
    .statement__points { grid-template-columns: minmax(0, 1fr); }
    .statement__points li, .statement__points li + li { padding: 20px 0; border-left: 0; }
    .statement__points li + li { border-top: 1px solid var(--line); }
}

/* Spec sheet: what you get, as a list you can scan in one pass */
.spec { margin-top: 40px; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2.2fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec dt { padding-top: 5px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.spec dd { margin: 0; color: var(--text-soft); line-height: 1.55; }
.spec dd strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 1.15rem; line-height: 1.3; }
@media (max-width: 700px) { .spec > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Proof band: numbers read like mission data */
.band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > div { padding: 22px 24px 24px 0; }
.band > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.band dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.band dd { margin: 10px 0 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.45; }
.band__num { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: clamp(1.7rem, 1.25rem + 1.4vw, 2.5rem); line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band__word { font-size: 0.72em; }
@media (max-width: 900px) {
    .band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .band > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
    .band { grid-template-columns: minmax(0, 1fr); }
    .band > div, .band > div + div { padding: 18px 0; border-left: 0; }
    .band > div + div { border-top: 1px solid var(--line); }
}

/* Cases: work already delivered, client names under NDA */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.case { position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), rgba(26, 28, 36, 0.72) 55%); }
.case__tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.case__title { margin-top: 12px; font-size: 1.2rem; line-height: 1.3; }
.case > p:not(.case__tag):not(.case__how) { margin-top: 8px; color: var(--grey); line-height: 1.55; }
.case__how { margin-top: auto; padding-top: 14px; position: relative; top: 12px; margin-bottom: 12px; border-top: 1px solid var(--line); color: var(--text-soft); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.cases__note { margin-top: 16px; color: var(--grey); font-size: 0.875rem; }
.cases__lead { margin-top: 64px; }
@media (max-width: 900px) { .cases { grid-template-columns: minmax(0, 1fr); } }

/* Stage navigation: where this pillar sits on the trajectory */
.stage-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 48px auto 0; text-align: left; }
:where(.stage-nav__link) { --c: var(--accent); }
.stage-nav__link { display: grid; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 28, 36, 0.72); color: var(--white); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
.stage-nav__link:hover, .stage-nav__link:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.stage-nav__link--next { justify-items: end; text-align: right; grid-column: 2; }
.stage-nav__dir { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.stage-nav__name { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; }
.stage-nav__name::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.stage-nav__scope { color: var(--grey); }
@media (max-width: 600px) {
    .stage-nav { grid-template-columns: minmax(0, 1fr); }
    .stage-nav__link--next { grid-column: auto; justify-items: start; text-align: left; }
}

/* Manifesto: principles as sentences, not cards */
.manifesto { margin-top: 44px; border-top: 1px solid var(--line); }
.manifesto li { display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px 36px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.manifesto__k { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.manifesto__line { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.95rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.manifesto__note { color: var(--grey); line-height: 1.55; }
@media (max-width: 760px) {
    .manifesto li { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 14px; }
    .manifesto__note { grid-column: 2; }
}

/* Gates: what a person signs off at each step of a pipeline */
.step__gate { margin-top: 14px; padding: 10px 12px; border: 1px dashed rgba(var(--accent-rgb), 0.45); border-radius: 10px; color: var(--text-soft); font-size: 0.85rem; line-height: 1.45; }
.step__gate b { display: block; margin-bottom: 2px; font-family: var(--mono); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.compliance-strip, .strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(26, 28, 36, 0.6); }
.compliance-strip p, .strip p { color: var(--text-soft); font-size: 0.95rem; }
.compliance-strip strong, .strip strong { color: var(--white); }

/* Two-column section head: title left, lead right */
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.head-split .lead { margin-top: 0; }
@media (max-width: 900px) { .head-split { grid-template-columns: minmax(0, 1fr); } }
/* A lone stage link (first stage) sits centred */
.stage-nav:has(> .stage-nav__link:only-child) { grid-template-columns: minmax(0, 440px); justify-content: center; }
.stage-nav > .stage-nav__link:only-child { grid-column: auto; justify-items: center; text-align: center; }

/* Stage index (home): the five pillars as rows on one climb */
.stages { margin-top: 48px; border-top: 1px solid var(--line); }
.stages li { border-bottom: 1px solid var(--line); }
:where(.stages__link) { --c: var(--accent); }
.stages__link {
    display: grid;
    grid-template-columns: 52px minmax(210px, 0.9fr) minmax(0, 1.7fr) auto;
    gap: 10px 32px;
    align-items: center;
    padding: 26px 12px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.25s;
}
.stages__link:hover, .stages__link:focus-visible { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 75%); }
.stages__num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--grey); }
.stages__name { display: grid; gap: 6px; }
.stages__name b { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stages__name b::before { content: ""; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 0 20px var(--c); }
.stages__name i { padding-left: 26px; font-style: normal; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.stages__text { color: var(--text-soft); line-height: 1.55; }
.stages__text small { display: block; margin-top: 8px; color: var(--grey); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; }
.stages__go { color: var(--c); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; transition: transform 0.2s var(--ease); }
.stages__go::after { content: " →"; }
.stages__link:hover .stages__go { transform: translateX(4px); }
@media (max-width: 900px) {
    .stages__link { grid-template-columns: 40px minmax(0, 1fr); align-items: start; padding: 22px 4px; }
    .stages__text, .stages__go { grid-column: 2; }
}

/* A slim entry banner: for when the reader does not know where to start */
.entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 28px; padding: 22px 26px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.1), rgba(26, 28, 36, 0.7) 60%); }
.entry p { max-width: 46em; color: var(--text-soft); }
.entry strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 1.15rem; }
.spec__link { display: block; margin-top: 12px; }

/* The logo is inline SVG: crisp at any zoom, and its Q takes the page's accent colour */
.logo { display: block; width: 150px; height: auto; }
.logo__ink { fill: #fff; }
.logo__q { fill: var(--accent); }

/* --------------------------------------------------------------------------
   Polish pass 4
   -------------------------------------------------------------------------- */
/* Short titles break into even lines, never one stranded word */
.spec dd strong, .case__title, .statement__points strong { text-wrap: balance; }

/* Stage pill: on phones the pill keeps the stage and its name; the scope lives in the hero below */
@media (max-width: 560px) { .th__scope { display: none; } }

/* The current stage's beacon ring is wider than a normal dot: side labels keep clear of it */
@media (min-width: 1101px) {
    .th--stage .th__stop.is-current[data-pos="right"] .th__label { left: 38px; }
    .th--stage .th__stop.is-current[data-pos="left"] .th__label { right: 38px; }
}
@media (max-width: 1100px) {
    .th--stage .th__stop.is-current[data-mpos="right"] .th__label { left: 36px; }
    .th--stage .th__stop.is-current[data-mpos="left"] .th__label { right: 36px; }
    /* Stacked: the last stage's label sits above the curve, close to the buttons */
    .th--stage .th__traj[data-current="empower"] { margin-top: 60px; }
}

/* Steps: gates and outputs are one height across the row */
@media (min-width: 981px) { .step > .step__gate { align-self: stretch; } }

/* Manifesto notes start on the same line as the lead above them */
@media (min-width: 901px) { .manifesto li { grid-template-columns: 64px minmax(0, 1fr) minmax(0, calc(50% - 32px)); } }

/* About collage: each caption sits on a corner no other photo covers */
.ah__photo--a figcaption { top: 12px; bottom: auto; }
.ah__photo--b figcaption { left: auto; right: 12px; }

/* The whole trajectory: a dot in all five stage colours */
.stage-nav__link--all { --c: rgba(255, 255, 255, 0.6); }
.stage-nav__link--all .stage-nav__name::before { background: conic-gradient(#54B095, #83D2FB, #F59E0B, #ED747E, #956DF7, #54B095); box-shadow: 0 0 14px rgba(255, 255, 255, 0.22); }
@media (max-width: 1100px) {
    /* Any current label that hangs below the curve gets room above the strip */
    .th--stage .th__traj:has(.th__stop.is-current[data-mpos^="below"]) { margin-bottom: 40px; }
}
@media (max-width: 560px) {
    /* Phone headings in three lines, not four */
    .ah__title { font-size: clamp(2rem, 9vw, 2.4rem); }
    .ch__title { font-size: clamp(1.9rem, 8.8vw, 2.6rem); }
}
@media (min-width: 1101px) {
    /* Wide: a current label below the curve keeps clear of the strip, even on a 720px-high laptop screen */
    .th--stage .th__traj:has(.th__stop.is-current[data-pos^="below"]) { bottom: calc(var(--tele-h) + 28px); }
    /* Stage heroes need a little more height than the home hero: copy, beacon and label all share the lower half */
    .th--stage { height: clamp(900px, 100svh, 1040px); }
    /* The hero stops growing at 1040px, so its heading stops growing with it */
    .th__title { font-size: min(5.6vw, 8.8vh, 5.7rem); }
    .th--stage .th__title { font-size: min(4.3vw, 7.1vh, 4.6rem); }
}
@media (min-width: 1101px) {
    /* Home: the first stage's label keeps clear of the strip on short screens too */
    .th:not(.th--stage) .th__traj { bottom: calc(var(--tele-h) + 28px); }
}

/* Hero layers: the curve stays behind the copy; its stages and MAXQ sit above it, so every one of them can be clicked */
.th__traj { z-index: auto; }
.th__stop, .th__maxq { z-index: 3; }
.th--stage .th__stop.is-current { z-index: 4; }
.th__craft { z-index: 5; }

/* MAXQ on the curve opens the story behind the name */
.th__maxq { pointer-events: auto; color: inherit; text-decoration: none; }
.th__maxq-mark { transition: border-color 0.25s, box-shadow 0.25s; }
.th__maxq-label > span { transition: color 0.25s; }
.th__maxq:hover .th__maxq-mark, .th__maxq:focus-visible .th__maxq-mark { border: 1px solid #83D2FB; box-shadow: 0 0 0 4px rgba(131, 210, 251, 0.12), 0 0 22px rgba(131, 210, 251, 0.5); }
.th__maxq:hover .th__maxq-label > span, .th__maxq:focus-visible .th__maxq-label > span { color: #83D2FB; }
.th__maxq:focus-visible { outline: none; }
.th__maxq:focus-visible .th__maxq-label { outline: 2px solid #83D2FB; outline-offset: 4px; border-radius: 6px; }
