/* ==========================================================================
   Code Orion

   TWO grounds, and only two: ink for the sky, paper for the content. No
   alternating bands, no third tone.

   The paper is cut into three sheets lying over the star canvas, which is
   fixed behind the whole document. The seams between them are gaps, not
   stripes — you are looking through the page at the sky, and it is moving.
   That is where the layering comes from, and the index rail gives the page
   its spine.

   Two accents, both cited:
     Betelgeuse (alpha Orionis, B-V +1.85) — action, the live state
     Rigel      (beta Orionis,  B-V -0.03) — links
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted, 92 KB. No CDN, so no third-party request and no
   cross-site cookie warning.
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("fonts/cabinet-grotesk-800.woff2") format("woff2");
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "General Sans";
    src: url("fonts/general-sans-400.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "General Sans";
    src: url("fonts/general-sans-500.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "General Sans";
    src: url("fonts/general-sans-600.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}

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

:root {
    /* ink — the sky */
    --ink:       #06080C;
    --ink-1:     #0A0E14;
    --star:      #F4F6FA;
    --star-dim:  #7E8899;
    --ink-rule:  #1B222C;

    /* paper — one tone, everywhere */
    --paper:     #E8EBEF;
    --lift:      #F1F3F6;   /* used only to acknowledge a pointer */
    --text:      #0C1117;
    --text-dim:  #59636F;
    --rule:      #CDD3DA;
    --rule-soft: #DFE4EA;

    --flare:     #B0421D;   /* Betelgeuse, on paper */
    --flare-ink: #E0674A;   /* Betelgeuse, on ink   */
    --cool:      #2A5896;   /* Rigel, on paper      */

    --display: "Cabinet Grotesk", system-ui, sans-serif;
    --font:    "General Sans", system-ui, -apple-system, sans-serif;

    --wrap:     1280px;
    --gutter:   clamp(1.25rem, 4vw, 3.5rem);
    --section:  clamp(5.5rem, 10vw, 9rem);
    --header-h: 4.1rem;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* anchor jumps must clear the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

body {
    background: var(--ink);
    color: var(--star);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font: inherit; }
ol, ul { list-style: none; }

::selection { background: var(--flare-ink); color: #FFF6F2; }

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

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

/* three registers: lowercase display, sentence body, letterspaced data */
.data {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    line-height: 1.4;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.logotype {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.skip {
    position: fixed;
    left: 0.75rem; top: -4rem;
    z-index: 900;
    padding: 0.7rem 1.1rem;
    background: var(--star);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 500;
    transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.75rem; }

/* --------------------------------------------------------------------------
   The sky, fixed behind the whole document
   -------------------------------------------------------------------------- */

.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* --------------------------------------------------------------------------
   Header — fixed, so it is always there, and above everything that paints
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 500;
    padding-block: 1.15rem;
    color: var(--star);
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.site-header.is-day {
    background: rgba(232, 235, 239, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--rule);
    color: var(--text);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; }
.brand-mark { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Index rail — the page's spine.

   Fixed in the left gutter on wide screens. It is not decoration: it says
   where you are in a long page and moves you around it. This is the one
   bold element; everything else stays quiet.
   -------------------------------------------------------------------------- */

.rail {
    display: none;
    position: fixed;
    left: max(1.25rem, calc((100vw - var(--wrap)) / 2 - 8.5rem));
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rail.in { opacity: 1; }

.rail li + li { margin-top: 0.15rem; }

.rail a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-block: 0.42rem;
    color: var(--rail-dim, var(--text-dim));
    transition: color 0.3s ease;
}

.rail-tick {
    width: 14px;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
    transition: width 0.4s var(--ease), background-color 0.3s ease;
}

.rail-name {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.rail a:hover { color: var(--rail-text, var(--text)); }
.rail a:hover .rail-name { opacity: 1; }
.rail a:hover .rail-tick { width: 22px; }

.rail a[aria-current="true"] { color: var(--flare); }
.rail a[aria-current="true"] .rail-tick { width: 30px; }
.rail a[aria-current="true"] .rail-name { opacity: 1; }

@media (min-width: 1500px) { .rail { display: block; } }

/* --------------------------------------------------------------------------
   Buttons — flat, square, no glow
   -------------------------------------------------------------------------- */

.btn {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; gap: 0.65rem;
    padding: 0.84rem 1.55rem;
    border: 1px solid transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary { background: var(--flare-ink); color: #FFF3EF; }
.btn-primary:hover { background: #C9522A; }
.paper .btn-primary { background: var(--flare); }
.paper .btn-primary:hover { background: #8E3416; }

.btn-line { border-color: currentColor; color: inherit; opacity: 0.72; }
.btn-line:hover { opacity: 1; }

.btn-sm { padding: 0.44rem 1.05rem; font-size: 0.875rem; }
.site-header:not(.is-day) .btn-sm:hover { background: var(--star); color: var(--ink); opacity: 1; }
.site-header.is-day .btn-sm:hover { background: var(--text); color: var(--paper); opacity: 1; }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero — a full viewport, as it should be
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-block: calc(var(--header-h) + 3rem) 2.75rem;
}

.hero-content { max-width: 44rem; }

.wordmark {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.35rem, 8.2vw, 6.75rem);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.hero-rule {
    height: 1px;
    background: var(--ink-rule);
    margin: 2rem 0 1.55rem;
    transform-origin: left;
}

.lead {
    font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
    line-height: 1.6;
    color: var(--star-dim);
    max-width: 37rem;
}
.lead strong { color: var(--star); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.1rem; }

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--star-dim);
}

.scroll-cue .track {
    width: 1px; height: 46px;
    background: var(--ink-rule);
    position: relative; overflow: hidden;
}

.scroll-cue .track::after {
    content: "";
    position: absolute; inset: 0 auto auto 0;
    width: 1px; height: 14px;
    background: var(--star-dim);
    animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
    0%   { transform: translateY(-16px); }
    100% { transform: translateY(46px); }
}

/* --------------------------------------------------------------------------
   Paper — one continuous sheet
   -------------------------------------------------------------------------- */

/* The paper is no longer one slab. It is a run of sheets lying over the star
   canvas, and the gaps between them are windows onto it — so the layering is
   literal, and the thing showing through is already moving. */
.paper {
    position: relative;
    z-index: 2;
}

.sheet {
    position: relative;
    background: var(--paper);
    color: var(--text);
}

/* the sheet's own edge, so it reads as a physical thing lying on something */
.sheet::before,
.sheet::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: rgba(12, 17, 23, 0.10);
}
.sheet::before { top: 0; }
.sheet::after  { bottom: 0; }

.seam {
    position: relative;
    height: clamp(11rem, 26vh, 19rem);
}

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

.section-rule {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-dim);
}

.rule-line {
    flex: 1;
    height: 1px;
    background: var(--rule);
    transform-origin: left;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: baseline;
}

.section-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.3rem, 5.8vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.042em;
    text-wrap: balance;
}

.section-intro {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--text-dim);
    max-width: 40rem;
}

/* --------------------------------------------------------------------------
   Services — typeset by stellar magnitude.

   --mag is the star's real apparent magnitude; --k normalises it across the
   range Rigel (0.13) to Mintaka (2.23) so k = 1 is the brightest. Type size
   and dot size run on the same k, which makes the dots down the right an
   actual brightness scale rather than a row of bullets.
   -------------------------------------------------------------------------- */

.services {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    border-top: 1px solid var(--rule);

    --sz-min: clamp(1.4rem, 3.4vw, 1.9rem);
    --sz-max: clamp(2.1rem, 6.2vw, 4.15rem);
}

.svc-row {
    --k: calc((2.23 - var(--mag)) / 2.10);

    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr) 2.75rem 8.5rem;
    align-items: baseline;
    gap: 0 1.5rem;
    padding: clamp(1.5rem, 2.6vw, 2.4rem) 1.25rem;
    margin-inline: -1.25rem;
    border-bottom: 1px solid var(--rule-soft);
    transition: background-color 0.3s ease;
}

.svc-row:last-child { border-bottom-color: var(--rule); }
.svc-row:hover, .svc-row:focus-within { background: var(--lift); }

.svc-mag {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.3s ease;
}
.svc-row:hover .svc-mag, .svc-row:focus-within .svc-mag { color: var(--flare); }

.svc-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: calc(var(--sz-min) + var(--k) * (var(--sz-max) - var(--sz-min)));
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.svc-desc {
    margin-top: 0.85rem;
    max-width: 40rem;
    color: var(--text-dim);
    font-size: 0.9625rem;
}

.svc-dot-cell { align-self: center; display: flex; justify-content: center; }

.svc-dot {
    width: calc(5px + var(--k) * 14px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--text);
    transition: background-color 0.3s ease;
}

/* scintillation, same idea as the hero canvas: these are the same seven
   stars, so they twinkle here too. Irregular periods so they never sync. */
.js .svc-row.in .svc-dot {
    animation: scintillate calc(4.6s + var(--i, 0) * 0.63s) ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.1s);
}

@keyframes scintillate {
    0%, 100% { opacity: 1; }
    42%      { opacity: 0.62; }
    68%      { opacity: 0.9; }
}
.svc-row:hover .svc-dot, .svc-row:focus-within .svc-dot { background: var(--flare); }

.svc-star { color: var(--text-dim); }
.svc-star .dist { display: block; margin-top: 0.3rem; opacity: 0.75; }

.svc-note {
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
    font-size: 0.875rem;
    color: var(--text-dim);
    max-width: 44rem;
}

/* --------------------------------------------------------------------------
   Process — the line does not terminate, because the work does not
   -------------------------------------------------------------------------- */

.process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 2rem;
}

.process::before,
.process::after { content: ""; position: absolute; top: 0; height: 1px; }
.process::before { left: 0; width: 75%; background: var(--rule); }

/* past the last stop it carries on dashed: support has no end date */
.process::after {
    left: 75%; right: calc(-1 * var(--gutter));
    background: repeating-linear-gradient(to right, var(--rule) 0 3px, transparent 3px 7px);
}

.step { position: relative; }

.step::before {
    content: "";
    position: absolute;
    top: -2.22rem; left: 0;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text);
    transition: background-color 0.3s ease;
}

.step:hover::before { background: var(--flare); }

.step-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.step-body { margin-top: 0.7rem; color: var(--text-dim); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Engagement models
   -------------------------------------------------------------------------- */

.models {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 1px solid var(--rule);
}

.model {
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2.25rem);
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule);
    transition: background-color 0.3s ease;
}

.model:first-child { padding-left: 0; }
.model:last-child { border-right: 0; padding-right: 0; }
.model:hover { background: var(--lift); }

.model-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.model-body { margin-top: 0.85rem; color: var(--text-dim); font-size: 0.9375rem; }

.model-fit {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule-soft);
    color: var(--text-dim);
}
.model-fit b { color: var(--text); font-weight: 500; }

/* the baseline that applies whichever model you pick — a run-on line, not a
   grid of ticks. It is a list of terms, so it reads as one. */
.baseline {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    gap: 1rem 2.5rem;
    align-items: baseline;
}

.baseline dt { color: var(--text-dim); }

.baseline dd {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    line-height: 1.5;
    letter-spacing: -0.028em;
}

.baseline dd i { font-style: normal; color: var(--rule); padding-inline: 0.4em; }

/* --------------------------------------------------------------------------
   Stack
   -------------------------------------------------------------------------- */

.stack { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }

.stack-group {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1rem 2.5rem;
    padding: clamp(1.4rem, 2.4vw, 2rem) 1.25rem;
    margin-inline: -1.25rem;
    border-bottom: 1px solid var(--rule-soft);
    transition: background-color 0.3s ease;
}

.stack-group:last-child { border-bottom-color: var(--rule); }
.stack-group:hover { background: var(--lift); }
.stack-group dt { color: var(--text-dim); padding-top: 0.45rem; }

.stack-group dd {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.stack-group dd i { font-style: normal; color: var(--rule); padding-inline: 0.35em; }

.stack-note {
    margin-top: 1.75rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
    color: var(--text-dim);
    font-size: 0.9375rem;
    max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Statement — headline across the full measure, prose in two columns
   underneath it. No sticky column, and no dead half-screen.
   -------------------------------------------------------------------------- */

.statement-lede {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.9rem, 5vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 22ch;
}

.statement-body {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: clamp(2rem, 4vw, 2.75rem);
    border-top: 1px solid var(--rule);
    column-count: 2;
    column-gap: clamp(2rem, 5vw, 4.5rem);
}

.statement-body p {
    color: var(--text-dim);
    font-size: clamp(1rem, 1.15vw, 1.075rem);
    break-inside: avoid;
}
.statement-body p + p { margin-top: 1.1rem; }
.statement-body strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 5vw, 4.5rem);
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.qa { padding-block: clamp(1.5rem, 2.4vw, 2rem); border-top: 1px solid var(--rule-soft); }
.qa:first-child, .qa:nth-child(2) { border-top-color: var(--rule); }

.qa-q {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.075rem, 1.5vw, 1.25rem);
    letter-spacing: -0.028em;
    line-height: 1.2;
}

.qa-a { margin-top: 0.75rem; color: var(--text-dim); font-size: 0.9375rem; }
.qa-a a { color: var(--cool); border-bottom: 1px solid currentColor; }

/* --------------------------------------------------------------------------
   Contact — no form. A static page cannot process one, and a button that
   silently drops what someone typed is worse than no button.
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.mailto {
    display: inline-block;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.4rem, 3.4vw, 2.5rem);
    letter-spacing: -0.038em;
    line-height: 1.05;
    border-bottom: 2px solid var(--rule);
    padding-bottom: 0.15rem;
    transition: color 0.25s ease, border-color 0.25s ease;
    word-break: break-word;
}
.mailto:hover { color: var(--flare); border-bottom-color: var(--flare); }

.contact-hint { margin-top: 1.75rem; color: var(--text-dim); max-width: 34rem; }

.checklist { margin-top: 1.25rem; }

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    padding-block: 0.4rem;
    color: var(--text-dim);
    font-size: 0.9375rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.05rem;
    width: 6px; height: 1px;
    background: var(--flare);
}

.registry { border-top: 1px solid var(--rule); }

.registry div {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    gap: 0.5rem 1.5rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--rule-soft);
}

.registry dt { color: var(--text-dim); padding-top: 0.15rem; }
.registry dd { font-size: 0.9375rem; line-height: 1.5; }
.registry dd a { color: var(--cool); border-bottom: 1px solid currentColor; }

/* --------------------------------------------------------------------------
   Policy prose
   -------------------------------------------------------------------------- */

.prose { max-width: 44rem; }

.prose h2 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    letter-spacing: -0.03em;
    margin: 2.75rem 0 0.85rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-dim); }
.prose p + p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.15rem; list-style: disc; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--cool); border-bottom: 1px solid currentColor; }
.prose code {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    background: var(--lift);
    border: 1px solid var(--rule);
}

.page-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.2rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.042em;
}

.hero--short {
    min-height: 62svh;
    padding-block: calc(var(--header-h) + 3rem) 3.5rem;
}

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

.foot {
    position: relative;
    z-index: 2;
    background: var(--ink);
    color: var(--star-dim);
    padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem;
}

.foot-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--ink-rule);
}

.foot-mark { font-size: 1.35rem; color: var(--star); }
.foot-blurb { margin-top: 1.1rem; max-width: 26rem; font-size: 0.9375rem; }
.foot-col h3 { color: var(--star); margin-bottom: 1rem; }
.foot-col li + li { margin-top: 0.6rem; }
.foot-col a { font-size: 0.9375rem; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--star); }

.foot-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Consent notice
   -------------------------------------------------------------------------- */

.consent {
    position: fixed;
    z-index: 600;
    left: 0; right: 0; bottom: 0;
    background: var(--ink-1);
    border-top: 1px solid var(--ink-rule);
    color: var(--star-dim);
    transform: translateY(100%);
}

.consent.in { transform: none; transition: transform 0.35s var(--ease); }

.consent-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2.5rem;
    padding-block: 1.15rem;
}

.consent p { font-size: 0.875rem; max-width: 58ch; }
.consent p a { color: var(--star); border-bottom: 1px solid var(--ink-rule); }
.consent p a:hover { border-bottom-color: var(--star-dim); }
.consent-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.consent .btn { padding: 0.5rem 1.15rem; font-size: 0.875rem; }
.consent .btn-line { border-color: var(--ink-rule); color: var(--star-dim); opacity: 1; }
.consent .btn-line:hover { border-color: var(--star-dim); color: var(--star); }
.consent .btn-solid { background: var(--star); color: var(--ink); }
.consent .btn-solid:hover { background: #fff; }

/* --------------------------------------------------------------------------
   Reveal — hidden only while scripting is live, so a script failure can
   never leave the page blank
   -------------------------------------------------------------------------- */

.js .reveal,
.js .fade-up { opacity: 0; transform: translateY(18px); }

.js .reveal.in,
.js .fade-up.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 55ms);
}

.js .hero-rule, .js .rule-line { transform: scaleX(0); }
.js .hero-rule.in, .js .rule-line.in { transform: scaleX(1); transition: transform 1s var(--ease); }

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

@media (max-width: 1080px) {
    .section-head { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .models { grid-template-columns: minmax(0, 1fr); }
    .model { border-right: 0; padding-inline: 0; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .svc-row { grid-template-columns: 4.5rem minmax(0, 1fr) 2.25rem 7rem; }
}

@media (max-width: 820px) {
    .scroll-cue { display: none; }
    .hero { padding-block: calc(var(--header-h) + 2rem) 2.25rem; }

    .svc-row { grid-template-columns: auto 1fr auto; gap: 0; padding-block: 1.6rem; }
    .svc-mag { grid-area: 1 / 1; }
    .svc-dot-cell { grid-area: 1 / 2; justify-content: flex-start; padding-left: 1rem; }
    .svc-star { grid-area: 1 / 3; text-align: right; }
    .svc-star .dist { display: inline; margin-left: 0.5rem; }
    .svc-body { grid-area: 2 / 1 / 3 / 4; margin-top: 0.9rem; }

    .process { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; padding-left: 1.75rem; }
    .process::before { left: 0; top: 0; bottom: 3.5rem; width: 1px; height: auto; }
    .process::after {
        left: 0; top: auto; right: auto; bottom: 0; width: 1px; height: 3.5rem;
        background: repeating-linear-gradient(to bottom, var(--rule) 0 3px, transparent 3px 7px);
    }
    .step { padding-block: 1.1rem; }
    .step::before { top: 1.6rem; left: -1.75rem; }

    .baseline, .stack-group { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .stack-group dt { padding-top: 0; }
    .statement-body { column-count: 1; }
    .faq { grid-template-columns: minmax(0, 1fr); }
    .qa:nth-child(2) { border-top-color: var(--rule-soft); }
    .registry div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
    .registry dt { padding-top: 0; }
    .foot-top { grid-template-columns: minmax(0, 1fr); }
    .consent-inner { align-items: flex-start; flex-direction: column; }
    .consent-actions { width: 100%; }
    .consent .btn { flex: 1; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-cue .track::after,
    .js .svc-row.in .svc-dot { animation: none; }
    .js .reveal, .js .fade-up { opacity: 1; transform: none; }
    .js .hero-rule, .js .rule-line { transform: scaleX(1); }
    .rail-tick, .btn .arrow { transition: none; }
}
