/* Cognitient public pages: the landing page (landing.html, served at /) and the catalogue (assessments.html).
   Hand-written CSS, no build step and no third-party template or component code. Follows the Taste Skill
   rules (github.com/Leonxlnx/taste-skill, MIT): one font, a neutral page with one accent, a 12-column
   grid on equal edges, a one-screen hero, sections of one screen, top-aligned, and motion only for the
   hero's entrance, hover and the testimonials marquee. */

/* Caveat (SIL Open Font License), self-hosted, weight 600, latin subset: the handwritten "Don't guess," */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/static/fonts/caveat-600-latin.woff2') format('woff2'); }
/* Geist (SIL Open Font License, static/fonts/OFL-geist.txt), self-hosted: the site's CSP only allows its own fonts */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/static/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/static/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    /* one ink, three grounds, one accent (the logo blue, lifted to 3:1 on the dark ground; white on it is 5.3:1) */
    --ink: #16171c;
    --muted: #5d606b;            /* 6:1 on the light grounds */
    --line: rgba(22, 23, 28, 0.12);
    --line-2: rgba(22, 23, 28, 0.22);
    --g-main: #fbfbfa;
    --g-alt: #f3f3f0;
    --g-dark: #0d0e12;
    /* the dark bands (nav, hero, closing): the logo blue fading sideways to the near-black */
    --brand: #29378f;
    --brand-deep: #1f2a72;
    --g-brand: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 42%, var(--g-dark) 100%);
    --card: #ffffff;
    --on-dark: #f4f4f5;
    --on-dark-muted: #cdd3f0;    /* 7:1 on the logo blue, more on the near-black */
    --dark-line: rgba(255, 255, 255, 0.16);
    --accent: #4a5fdc;
    --accent-hover: color-mix(in oklab, #4a5fdc 86%, #16171c);
    --accent-soft: rgba(74, 95, 220, 0.1);
    /* rhythm */
    --nav: 72px;
    --gut: 80px;
    --padt: 120px;
    --padb: 72px;
    --r-1: 8px;
    --r-2: 12px;
    --r-3: 20px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-in: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 639px) {
    :root { --nav: 56px; --gut: 24px; --padt: 96px; --padb: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px; line-height: 1.625; font-weight: 400;
    color: var(--ink); background: var(--g-main);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin: 0 auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: fixed; left: 12px; top: -80px; z-index: 20;
    background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: var(--r-1);
    font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grounds */
.ground-main { background: var(--g-main); }
.ground-alt { background: var(--g-alt); }
.ground-dark {
    position: relative; isolation: isolate; color: var(--on-dark);
    background: radial-gradient(38% 55% at 72% 42%, rgba(143, 216, 238, 0.16), transparent 70%), var(--g-brand);   /* a soft glow of the logo's cyan */
}
/* a dot grid, the world map's motif, dissolving from the blue side */
.ground-dark::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.1px, transparent 1.6px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 65%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 65%);
}
.ground-dark :focus-visible, .site-header :focus-visible, .nav-sheet :focus-visible { outline-color: #fff; }

/* Type scale: h1 72, h2 48, card titles 20, lead 20, body 16, small 14, labels 13 */
.hero h1, .page-band h1 { font-size: clamp(48px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }

/* Buttons: one filled (the accent), one bordered secondary */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 24px; border-radius: var(--r-1); border: 1px solid transparent;
    font: inherit; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .12s var(--ease), background-color .12s var(--ease), border-color .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.ground-dark .btn--secondary { background: rgba(255, 255, 255, 0.06); color: var(--on-dark); border-color: rgba(255, 255, 255, 0.4); }
/* on the blue the main button is white with the logo blue */
.ground-dark .btn--primary, .site-header .btn--primary, .nav-sheet .btn--primary { background: #fff; color: var(--brand); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-1px); transition-duration: .15s; }
    .btn--primary:hover { background: var(--accent-hover); }
    .btn--secondary:hover { background: var(--g-alt); border-color: rgba(22, 23, 28, 0.36); }
    .ground-dark .btn--secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.55); }
    .ground-dark .btn--primary:hover, .site-header .btn--primary:hover, .nav-sheet .btn--primary:hover { background: #e4e7f6; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text links: an underline draws in from the left */
.nav-links a, .nav-signin, .closing-foot a, .catalogue-empty .link {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
    transition: background-size .15s var(--ease), color .15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover, .nav-signin:hover, .closing-foot a:hover, .catalogue-empty .link:hover { background-size: 100% 1px; }
}

/* Header: fixed, opaque, a hairline underneath */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--g-brand); border-bottom: 1px solid var(--dark-line); }
.nav { display: flex; align-items: center; height: var(--nav); }
.nav-logo { flex: none; }
.nav-logo.text-logo { display: inline-flex; font-size: 17px; }   /* the text logo itself: static/logo.css */
.nav-links { display: flex; gap: 32px; margin-left: 56px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--on-dark-muted); padding: 4px 0; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-dark); }
/* The links as the liquid glass navbar (frontend/src/islands/nav.tsx replaces .nav-links with it): the
   site's font and the header's two text colours, the pill a touch shorter than the header */
.nav-liquid { display: flex; margin-left: 40px; }
.site-header .nimbus-nav { font-family: inherit; }
.site-header .nimbus-nav[data-tone="dark"] { --n-fg: var(--on-dark); --n-fg-soft: var(--on-dark-muted); }
.site-header .nimbus-item { font-size: 15px; height: 40px; }
.site-header .nimbus-nav[data-tone="light"] { --n-fg: var(--ink); --n-fg-soft: var(--muted); --n-tint: rgba(255, 255, 255, 0.55); }

/* The floating header (desktop, with the navbar: frontend/src/islands/nav.tsx adds .is-floating and keeps
   data-tone on the ground under it). No band: the logo, the links and the buttons are three glass pills
   of one height over the page, and the space between them lets clicks through. Over a light ground the
   pills turn light and the text ink, and the logo sits in its blue box, as on any light ground. */
@media (min-width: 1024px) {
    .site-header.is-floating {
        --pill-tint: rgba(10, 18, 40, 0.26); --pill-rim: rgba(255, 255, 255, 0.34);
        background: transparent; border-bottom-color: transparent; pointer-events: none;
    }
    .site-header.is-floating[data-tone="light"] { --pill-tint: rgba(255, 255, 255, 0.55); --pill-rim: rgba(255, 255, 255, 0.85); }
    .site-header.is-floating .nav > * { pointer-events: auto; }
    .is-floating .nav-logo, .is-floating .nav-actions {
        height: 52px; border-radius: 999px; background: var(--pill-tint);
        -webkit-backdrop-filter: blur(10px) saturate(1.2) brightness(1.08); backdrop-filter: blur(10px) saturate(1.2) brightness(1.08);
        box-shadow: inset 0 1px 1px var(--pill-rim), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 32px -14px rgba(0, 40, 90, 0.5), 0 2px 6px rgba(0, 40, 90, 0.1);
        transition: background-color .3s var(--ease);
    }
    .is-floating .nav-logo.text-logo { justify-content: center; padding: 0 22px; }
    .is-floating .nav-actions { padding: 0 4px 0 22px; gap: 18px; }
    .is-floating .nav-request { height: 44px; border-radius: 999px; }
    .is-floating[data-tone="light"] .nav-logo { background: rgba(41, 55, 143, 0.9); }
    .is-floating[data-tone="light"] .nav-signin { color: var(--ink); }
    .site-header.is-floating[data-tone="light"] .btn--primary { background: var(--accent); color: #fff; }
    .site-header.is-floating[data-tone="light"] :focus-visible { outline-color: var(--accent); }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    .site-header.is-floating[data-tone="light"] .btn--primary:hover { background: var(--accent-hover); }
}
.nav-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-signin { font-size: 15px; font-weight: 500; color: var(--on-dark); padding: 4px 0; }
.nav-toggle {
    display: none; position: relative; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: transparent; cursor: pointer; color: var(--on-dark);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor; content: '';
    transition: transform .18s var(--ease), opacity .12s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: var(--on-dark); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: var(--on-dark); }
.nav-sheet {
    position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0; z-index: 9; overflow-y: auto;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 55%, var(--g-dark) 100%); padding: 24px var(--gut) 32px;
    display: flex; flex-direction: column; gap: 32px;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a:not(.btn) { display: block; padding: 12px 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.nav-sheet .btn { width: 100%; height: 48px; }

/* Hero: exactly the first screen, the copy centred over the neural field (frontend/src/islands/neural.tsx) */
.hero { min-height: 100svh; padding: calc(var(--nav) + 48px) 0 64px; display: grid; align-content: center; overflow: hidden; }
.hero-copy { max-width: 920px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--on-dark); }
/* A neural field (frontend/src/islands/neural.tsx) fills a dark band (the hero, the closing) above its dot
   grid; while it draws, the band is the sign-in page's deep navy and the dots give way to the field */
.neural-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ground-dark.has-neural { background: radial-gradient(60% 70% at var(--glow-x, 50%) 45%, #121a44 0%, #0b1020 70%); }
.ground-dark.has-neural::before { display: none; }
/* the brand line, once per page, above the h1 */
.hero-brand { margin-bottom: 20px; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--on-dark); }
/* "Don't guess," as a quick handwritten note against the solid "know." (the whole phrase, so the two bold
   words never pair up as "Don't know"); scaled so its x-height matches the sans */
.hero-guess { font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.28em; line-height: 0.9; letter-spacing: 0; color: var(--on-dark-muted); }
.hero-sub { margin: 24px auto 0; max-width: 52ch; font-size: 20px; line-height: 1.5; color: var(--on-dark-muted); }
.hero .actions { margin-top: 40px; justify-content: center; }

/* The results card: product UI as live HTML, the first page of the report deck */
.mock {
    background: var(--card); color: var(--ink); border-radius: var(--r-2); padding: 24px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 32px 64px -24px rgba(0, 0, 0, 0.6);
    container-type: inline-size;
}
.mock-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.mock-title { font-size: 18px; font-weight: 500; margin-top: 2px; }
.mock-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.mock-tag { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--g-alt); border-radius: 999px; padding: 2px 10px; }
.mock-indices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* each tile spans the same five rows (label, value, two bars, cohort), so a label that wraps keeps the values level */
.mock-index { border: 1px solid var(--line); border-radius: var(--r-1); padding: 16px; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 6px; }
.mock-label { font-size: 13px; font-weight: 500; color: var(--muted); }
/* sized to the card so three two-decimal values always fit */
.mock-value { font-size: clamp(20px, 5cqi, 28px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.mock-cohort { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-bar, .mock-track { display: block; height: 6px; border-radius: 3px; background: var(--g-alt); overflow: hidden; }
.mock-bar i, .mock-track i { display: block; height: 100%; width: var(--v); border-radius: 3px; background: var(--accent); }
.mock-bar--cohort i { background: #b9bcc8; }
.mock-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.key { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.key--cohort { background: #b9bcc8; margin-left: 12px; }
.mock-risk { margin-top: 24px; }
.mock-sub { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.mock-risk li { display: grid; grid-template-columns: 104px 1fr 52px; align-items: center; gap: 16px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.mock-risk li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mock-track i { background: var(--ink); opacity: .78; }
.mock-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; font-weight: 500; }
.mock-total small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.mock-total strong { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }

/* The report's Risk Index Benchmark: product UI as live HTML, the app's design (report-charts.js) with sample data.
   The bands keep the app's risk colours: in a chart of risk they are the data, not decoration. */
.rc {
    --rc-vh: #fadbd8; --rc-vh-line: #d98880; --rc-vh-ink: #922b21;
    --rc-h: #fdebd0;  --rc-h-line: #e5a46a;  --rc-h-ink: #a04000;
    --rc-m: #fcf3cf;  --rc-m-line: #e3c64f;  --rc-m-ink: #7d6608;
    --rc-b: #d4efdf;  --rc-b-line: #6fbf8e;  --rc-b-ink: #145a32;
    --rc-earlier: #8a8f9c;
    background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); padding: 24px;
    container-type: inline-size;
}
.rc-callout { display: grid; gap: 8px; padding: 12px 16px; border-radius: var(--r-1); background: var(--g-alt); font-size: 14px; line-height: 1.55; }
.rc-callout strong { font-weight: 600; }
.rc-chip { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.rc-chip--vh { background: var(--rc-vh); color: var(--rc-vh-ink); }
.rc-chip--h { background: var(--rc-h); color: var(--rc-h-ink); }
.rc-chip--m { background: var(--rc-m); color: var(--rc-m-ink); }
.rc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 12px; font-size: 13px; color: var(--muted); }
.rc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rc-swatch { display: inline-block; width: 20px; height: 0; border-top: 3px solid var(--accent); }
.rc-swatch--new { border-top: 2px dashed var(--accent); }
.rc-swatch--dot, .rc-swatch--checkpoint, .rc-swatch--target { width: 10px; height: 10px; border: 2px solid var(--card); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rc-swatch--checkpoint { background: var(--rc-earlier); box-shadow: 0 0 0 1px var(--rc-earlier); }
.rc-swatch--target { background: var(--card); border-color: var(--accent); box-shadow: none; }
/* the plot, the curve names beside it, and the timeline under it */
.rc-chart { display: grid; grid-template-columns: 1fr 104px; column-gap: 10px; }
.rc-plot { position: relative; aspect-ratio: 2 / 1; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.rc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rc-plot path { vector-effect: non-scaling-stroke; fill: none; }
.rc-band--vh { fill: var(--rc-vh) !important; } .rc-band--h { fill: var(--rc-h) !important; }
.rc-band--m { fill: var(--rc-m) !important; } .rc-band--b { fill: var(--rc-b) !important; }
.rc-curve { stroke-width: 1; }
.rc-curve--vh { stroke: var(--rc-vh-line); } .rc-curve--h { stroke: var(--rc-h-line); }
.rc-curve--m { stroke: var(--rc-m-line); } .rc-curve--b { stroke: var(--rc-b-line); }
.rc-path--before { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 4; }
.rc-path--earlier { stroke: var(--rc-earlier); stroke-width: 2.5; }
.rc-path--new { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.rc-path--current { stroke: var(--accent); stroke-width: 3; }
.rc-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--card); background: var(--accent); }
.rc-dot--now { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.rc-dot--checkpoint { background: var(--rc-earlier); }
.rc-dot--target { background: var(--card); border-color: var(--accent); }
.rc-step {
    position: absolute; transform: translate(calc(-100% - 8px), -50%); font-size: 13px; font-weight: 600; white-space: nowrap;
    text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 3px var(--card);
}
.rc-names { position: relative; }
.rc-name { position: absolute; left: 0; transform: translateY(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rc-name--vh { color: var(--rc-vh-ink); } .rc-name--h { color: var(--rc-h-ink); }
.rc-name--m { color: var(--rc-m-ink); } .rc-name--b { color: var(--rc-b-ink); }
.rc-axis { grid-column: 1; position: relative; height: 1.6em; margin-top: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-axis li { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }   /* each month at its own point */
.rc-axis li:first-child { transform: none; }
.rc-axis li:last-child { transform: translateX(-100%); }
@container (max-width: 320px) { .rc-axis-minor { display: none; } }   /* 0, 6 and 12 months only on the narrowest */
.rc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rc-facts > div { border: 1px solid var(--line); border-radius: var(--r-1); padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.rc-value { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-value .rc-chip { font-size: 14px; padding: 2px 10px; letter-spacing: 0; }
/* a narrow card (the half-width column at 1024-1439, phones): two facts a row */
/* the Cash J-Curve page: the same card, cumulative cash against months, the bands between the edge curves */
.jc .rc-plot svg { overflow: hidden; }
.jc-grid { stroke: var(--line); stroke-width: 1; }
.jc-grid--zero { stroke: var(--ink); stroke-width: 1.5; }
.jc-plan { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.jc-swatch--plan { border-top: 2px dashed var(--muted); }
.jc-dot--plan { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--muted); }
.jc-y li { position: absolute; left: 6px; transform: translateY(calc(-100% - 2px)); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
    text-shadow: 0 0 3px var(--card), 0 0 3px var(--card); }
.jc-jump { position: absolute; transform: translate(-50%, 10px); font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap;
    text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 3px var(--card); }
@container (max-width: 520px) { .rc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 420px) {
    /* the curve names go under the timeline */
    .rc-chart { grid-template-columns: 1fr; }
    .rc-plot { aspect-ratio: 4 / 3; }
    .rc-names { grid-row: 3; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
    .rc-name { position: static; transform: none; top: auto !important; }
}

/* Hero entrance, once on load */
@media (prefers-reduced-motion: no-preference) {
    .hero-brand { animation: fade-up .52s var(--ease-in) both; }
    .hero h1 { animation: rise .7s var(--ease-in) .08s both; }
    .hero-sub { animation: fade-up .52s var(--ease-in) .32s both; }
    .hero .actions { animation: fade-up .52s var(--ease-in) .38s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Sections: one screen each, top-aligned, the h2 first */
.sec { min-height: 100svh; padding: var(--padt) 0 var(--padb); scroll-margin-top: 0; }
.sec-head { margin-bottom: 48px; }
.sec-head p { margin-top: 16px; max-width: 58ch; font-size: 20px; line-height: 1.5; color: var(--muted); }
.sec-head--action { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Assessment areas: five cards, three then two, one height per row */
.theme-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.theme-tile { grid-column: span 2; }
.theme-tile:nth-child(n+4) { grid-column: span 3; }
.theme-tile a {
    display: flex; flex-direction: column; height: 100%; padding: 28px; text-decoration: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2);
    transition: transform .12s var(--ease), border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.theme-tile h3::before {
    content: ''; display: block; width: 24px; height: 24px; margin-bottom: 16px;
    background: var(--icon) center / contain no-repeat;
}
/* line icons in the ink */
.theme-tile[data-theme="initiatives"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 8 2a6 6 0 0 0 3.6-1.2 1 1 0 0 1 1.4.8v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 15c-3 0-5-2-8-2a6 6 0 0 0-4 1.5'/%3E%3C/svg%3E"); }
.theme-tile[data-theme="strategy"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.theme-tile[data-theme="it"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='7' rx='2'/%3E%3Crect x='3' y='14' width='18' height='7' rx='2'/%3E%3Cpath d='M7 6.5h.01M7 17.5h.01'/%3E%3C/svg%3E"); }
.theme-tile[data-theme="security"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.theme-tile[data-theme="sourcing"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.theme-tile h3 { color: var(--ink); }
.theme-tile p { margin-top: 8px; color: var(--muted); }
.theme-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; margin-top: 16px; }
.theme-list li { font-size: 13px; font-weight: 500; color: var(--ink); padding: 2px 10px; border-radius: 999px; background: var(--g-alt); }
.theme-more { margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--ink); }
.theme-more span { display: inline-block; transition: transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .theme-tile a:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 12px 24px -12px rgba(22, 23, 28, 0.1); transition-duration: .18s; }
    .theme-tile a:hover .theme-more span { transform: translateX(3px); }
}

/* Method: four steps, then three figures */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: 32px; }
.step-num {
    display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-1);
    background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 500;
}
.step h3 { margin-top: 24px; }
.step p { margin-top: 8px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.stats li { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.stats strong { font-size: 38px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.stats span { font-size: 15px; color: var(--muted); }
.stats--compact { margin-top: 48px; }
/* Method on its dark band: the steps as stacked glass cards (frontend/src/components/ui/stacked-glass-cards.tsx),
   in a column narrower than the page so each card reads as one; the stats under them in the band's colours */
.method-cards { max-width: 980px; margin: 0 auto; }
.ground-dark .stats li { border-top-color: var(--dark-line); }
.ground-dark .stats span { color: var(--on-dark-muted); }

/* Text left, visual right, top-aligned */
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.split > :first-child { grid-column: 1 / 6; }
.split > :last-child { grid-column: 7 / 13; }
.checks { margin-top: 48px; border-top: 1px solid var(--line); }
.checks li {
    position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line);
}
.checks li::before {
    content: ''; position: absolute; left: 0; top: 19px; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a5fdc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 10.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.shot { border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; background: var(--card); }

/* Finding an assessment: a switch between "by situation" (the picker) and "by area" (the tiles), run by
   landing.js; without it the tiles show alone. The picker lists situations on the left and shows the
   checked one's assessments on the right. */
.finder-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 32px; border-radius: 999px; background: var(--g-alt); border: 1px solid var(--line); }
.finder-switch[hidden], .picker[hidden], .picker-answer[hidden], [role="tabpanel"][hidden] { display: none; }
.finder-switch button {
    padding: 8px 18px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s var(--ease), background-color .15s var(--ease);
}
.finder-switch button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(22, 23, 28, 0.08); }
.picker { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.picker-choices { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 0; border: 0; }
.picker-choices legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.picker-choice {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-1);
    font-weight: 500; color: var(--muted); cursor: pointer; transition: color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease);
}
.picker-choice input { position: absolute; opacity: 0; pointer-events: none; }
.picker-choice::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.picker-choice:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(22, 23, 28, 0.45); }
.picker-choice:has(input:checked)::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.picker-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.picker-answers { grid-column: 7 / 13; }
.picker-answer { display: grid; gap: 16px; }
.picker-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r-2); background: var(--card); border: 1px solid var(--line); }
.picker-card h4 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.picker-card p { color: var(--muted); }
.picker-meta { font-size: 14px; color: var(--muted); }
.picker-card a { align-self: flex-start; margin-top: 8px; font-weight: 500; color: var(--accent); text-decoration: none; }
.picker-card a span { display: inline-block; transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .finder-switch button:hover, .picker-choice:hover { color: var(--ink); }
    .picker-card a:hover span { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
    .picker-answer:not([hidden]) .picker-card { animation: fade-up .4s var(--ease-in) both; }
    .picker-answer:not([hidden]) .picker-card + .picker-card { animation-delay: .06s; }
}

/* Report deck: the sample pages stacked like prints (landing.js poses them); the list beside it picks one.
   The section clips sideways so a thrown page never scrolls the page. */
.sec--deck { overflow-x: clip; }
.deck-index { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* the page on top of the deck is marked in the list: its row tinted, with an accent bar at its edge, its number
   a filled accent badge and its words in ink; the other rows stay muted, titles included */
.deck-index li { position: relative; }
.deck-pick {
    position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0; width: 100%; padding: 16px 16px 16px 12px;
    text-align: left; font: inherit; color: var(--muted); background: none; border: 0; border-bottom: 1px solid var(--line);
    cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease);
}
.deck-pick::before {
    content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 3px; background: var(--accent);
    transform: scaleY(0); transition: transform .3s var(--ease);
}
.deck-index li:last-child .deck-pick { border-bottom: 0; }
.deck-pick-num {
    display: grid; place-items: center; width: 30px; height: 24px; border-radius: 999px; font-size: 13px; font-weight: 500;
    font-variant-numeric: tabular-nums; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line-2);
    transition: color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.deck-pick-text strong { display: block; font-weight: 500; color: inherit; }
.deck-pick-text > span { display: block; margin-top: 2px; }
.deck-pick[aria-current="true"] { color: var(--ink); background: var(--accent-soft); }
.deck-pick[aria-current="true"]::before { transform: scaleY(1); }
.deck-pick[aria-current="true"] .deck-pick-num { color: #fff; background: var(--accent); box-shadow: none; }
.deck-pick[aria-current="true"] .deck-pick-text strong { font-weight: 600; }
.deck-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-1); }
.deck-note { margin-top: 24px; max-width: 46ch; color: var(--muted); }

.deck { position: relative; padding-top: 48px; outline: none; border-radius: var(--r-2); }
.deck:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.deck-pile { position: relative; aspect-ratio: 4 / 3; touch-action: pan-y; }
.deck-card {
    position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r-2);
    box-shadow: 0 1px 2px rgba(22, 23, 28, .06), 0 28px 56px -32px rgba(22, 23, 28, .45);
    transition: transform .6s var(--ease), opacity .4s ease, filter .4s ease; will-change: transform;
    user-select: none; -webkit-user-select: none;
}
/* the screenshots are white pages: shown whole, from the top, on the card's white */
.deck-card img { width: 100%; height: 100%; object-fit: contain; object-position: center top; pointer-events: none; }
.deck:not(.is-live) .deck-card + .deck-card { display: none; }
.deck-card.is-top { cursor: grab; }
.deck-card[data-mode="drag"] { cursor: grabbing; transition: none; }
.deck-card[data-mode="fly"] { transition: transform .45s cubic-bezier(.3, .5, .3, 1), opacity .45s ease; }
.deck-card[data-mode="snap"] { transition: none; }
/* the live results page fills its card, the total at the foot; on a small card the legend, then the risk
   by dimension, give way */
.deck-card--live { container-type: size; }
.deck-card--live .mock { height: 100%; display: flex; flex-direction: column; border-radius: 0; box-shadow: none; overflow: hidden; }
.deck-card--live .mock-head { padding-bottom: 16px; }
.deck-card--live .mock-risk { margin-top: 16px; }
.deck-card--live .mock-risk li { padding: 6px 0; }
.deck-card--live .mock-total { margin-top: auto; }
/* the gap report: outsourcer (accent) and service provider (grey) bars in pairs, the gap in points beside them */
/* the statement gaps tile has no bars: its two counts take the bars' two rows */
.mock-gap-note { grid-row: span 2; font-size: 13px; line-height: 1.35; color: var(--muted); }
.mock-risk--gap li { grid-template-columns: 104px 1fr 52px; }
.mock-pair { display: grid; gap: 4px; }
.mock-pair .mock-track { height: 5px; }
.deck-card--live .mock-risk--gap { margin-top: 12px; }
.deck-card--live .mock-risk--gap li { padding: 4px 0; }
.deck-card--live .mock--gap .mock-total { padding-top: 12px; }
.mock-risk--gap .mock-track i { background: var(--accent); opacity: 1; }
.mock-risk--gap .mock-track--side i { background: #b9bcc8; }
@container (max-height: 490px) { .deck-card--live .mock-legend { display: none; } }
@container (max-height: 450px) { .deck-card--live .mock-risk { display: none; } }
/* the risk curve as a page of the deck: the chart takes the room the callout leaves; the facts only where it fits */
.deck-card--live .rc { height: 100%; display: flex; flex-direction: column; border: 0; border-radius: 0; overflow: hidden; padding: 20px 24px; }
.deck-card--live .rc .mock-head { padding-bottom: 12px; }
.deck-card--live .rc-callout { font-size: 13px; line-height: 1.5; padding: 10px 12px; gap: 4px; }
.deck-card--live .rc-legend { margin: 12px 0 8px; }
.deck-card--live .rc-chart { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.deck-card--live .rc-plot { aspect-ratio: auto; min-height: 0; }
.deck-card--live .rc-facts { display: none; }
@container (min-height: 640px) { .deck-card--live .rc-facts { display: grid; } }
/* short pages (1024 wide, phones): each card keeps its point and lets the detail go */
@container (max-height: 460px) {
    .deck-card--live .mock-cohort { display: none; }
    .deck-card--live .mock-index { grid-row: span 4; }
}
@container (max-height: 400px) {
    .deck-card--live .rc .mock-head { padding-bottom: 8px; }
    .deck-card--live .rc-legend, .deck-card--live .rc-callout p + p { display: none; }
    .deck-card--live .rc-callout { margin-bottom: 10px; }
}
@container (max-height: 400px) {
    .deck-card--live .jc-y li:nth-child(odd), .deck-card--live .jc-jump { display: none; }   /* $0 and $4M only; the callout gives the gain */
}
@container (max-height: 300px) {
    .deck-card--live .rc-callout, .deck-card--live .rc-names { display: none; }
    .deck-card--live .mock-total { display: none; }     /* the Risk index tile already shows it */
    .deck-card--live .mock-head { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .deck-card, .deck-card[data-mode="fly"] { transition: opacity .2s ease; }
}

.deck-meta { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.deck-meta[hidden] { display: none; }
.deck-cap { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 16px; }
.deck-count { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--muted); }
.deck-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-btn {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
    color: var(--ink); background: var(--card); border: 1px solid var(--line-2); cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.deck-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.deck-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
    .deck-pick:hover { color: var(--ink); }
    .deck-pick:not([aria-current="true"]):hover { background: var(--g-alt); }
    .deck-btn:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
}

/* Testimonials: five cards, three then two, one height per row */
.quotes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.quote {
    grid-column: span 2; display: flex; flex-direction: column; gap: 32px; padding: 32px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2);
}
.quote:nth-child(n+4) { grid-column: span 3; }
.quote blockquote { flex: 1; margin: 0; }
.quote blockquote p { font-size: 18px; line-height: 1.55; letter-spacing: -0.01em; }
.quote-by { display: flex; align-items: flex-start; gap: 12px; }
.quote-avatar {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--g-alt); color: var(--ink); font-size: 13px; font-weight: 500;
}
.quote-who { display: flex; flex-direction: column; font-size: 14px; line-height: 1.45; color: var(--muted); }
.quote-who strong { font-size: 15px; font-weight: 500; color: var(--ink); }
/* on a dark band the quotes are frosted glass over the neural field, like the method's cards */
.ground-dark .quote {
    color: var(--on-dark); border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)), rgba(12, 18, 44, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 32px -16px rgba(0, 0, 0, 0.55);
}
/* the moving marquee's cards fake the frost with a denser fill instead: a live blur behind 20-odd cards
   that move every frame over an animated field drops the marquee to under 20 fps, with freezes */
.ground-dark .marquee .quote {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)), rgba(16, 24, 58, 0.82);
}
.ground-dark .quote-avatar { background: rgba(106, 140, 255, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(106, 140, 255, 0.45); }
.ground-dark .quote-who { color: var(--on-dark-muted); }
.ground-dark .quote-who strong { color: var(--on-dark); }

/* Testimonials marquee (static/app/js/landing.js builds it when motion is allowed): two rows drifting in
   opposite directions, paused on hover, faded at both edges. The list above stays as the accessible copy
   (visually hidden); the marquee is aria-hidden. Each row repeats its cards in groups, and every group
   moves left by its own width plus the gap, so the loop has no seam. */
.marquee { position: relative; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.marquee::before, .marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; z-index: 1; width: 18%; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--g-alt), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--g-alt), transparent); }
/* on a dark band the edges fade into the band's own colours: overlays, not a mask, since a mask would
   cut the glass cards off from the neural field they blur */
.ground-dark .marquee::before { background: linear-gradient(90deg, var(--brand), transparent); }
.ground-dark .marquee::after { background: linear-gradient(270deg, var(--g-dark), transparent); }
.ground-dark.has-neural .marquee::before { background: linear-gradient(90deg, #0b1020, transparent); }
.ground-dark.has-neural .marquee::after { background: linear-gradient(270deg, #0b1020, transparent); }
.marquee-row { --gap: 24px; display: flex; gap: var(--gap); }
.marquee-group {
    flex: none; display: flex; gap: var(--gap);
    animation: marquee var(--duration, 60s) linear infinite; will-change: transform;
}
.marquee-row--reverse .marquee-group { animation-direction: reverse; }
.marquee:hover .marquee-group { animation-play-state: paused; }
.marquee .quote { width: 380px; flex: none; gap: 24px; }
.marquee .quote blockquote p { font-size: 16px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }

/* Heritage: the text over a dotted world map that fills the section; the former offices are accent dots */
.sec--map { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; }
/* the heading top left, the figures top right, the map across the middle and the text just under it */
.heritage-top { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.heritage-top h2 { grid-column: 1 / 6; }
.heritage-top .stats { grid-column: 7 / 13; margin-top: 0; }
.heritage-map {
    position: relative; z-index: 0; width: 100%; max-width: 1200px; margin: 16px auto 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.heritage-map + .wrap { position: relative; z-index: 1; margin-top: 16px; }
/* the history: four stops on a dotted line, the last one (today) filled */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before {
    content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
    background: radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 50% / 8px 2px repeat-x;
}
.timeline li { position: relative; padding-top: 32px; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--g-main); border: 2px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-year { display: block; font-size: 28px; line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.timeline p { margin-top: 10px; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
/* the database figures count up once, when they come into view (landing.js) */
.stats strong[data-count] { font-variant-numeric: tabular-nums; }
.heritage-map svg { display: block; width: 100%; max-width: 1440px; height: auto; }
.heritage-map image { opacity: .55; }
.office-dots circle { fill: var(--accent); }
.office-dots .halo { fill-opacity: .2; }

/* Closing: the last call to action beside a "questions first?" card, then the footer; as tall as its
   content, over a dimmer neural field (its glow to the right, behind the card) */
.closing { --glow-x: 68%; overflow: hidden; display: flex; flex-direction: column; gap: 96px; padding: var(--padt) 0 40px; }
.closing-cta { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.closing-lead { grid-column: 1 / 8; }
.closing-lead p { margin-top: 24px; max-width: 52ch; font-size: 20px; line-height: 1.5; color: var(--on-dark-muted); }
.closing-cta .actions { margin-top: 40px; align-items: center; gap: 24px; }
.closing-signin { font-size: 15px; color: var(--on-dark-muted); text-decoration: none; }
.closing-signin span { color: var(--on-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
/* the card is glass, like the header's pills */
.closing-talk {
    grid-column: 9 / 13; padding: 28px; border-radius: var(--r-3);
    background: rgba(10, 18, 40, 0.26); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.closing-talk p { margin-top: 8px; color: var(--on-dark-muted); }
.closing-talk-link { display: inline-flex; gap: 8px; margin-top: 20px; font-weight: 500; color: var(--on-dark); text-decoration: none; }
.closing-talk-link span { transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .closing-signin:hover span { text-decoration-color: currentColor; }
    .closing-talk-link:hover span { transform: translateX(4px); }
}
.foot-cols { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: 48px; border-top: 1px solid var(--dark-line); }
.foot-brand { grid-column: 1 / 5; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-brand .foot-logo { font-size: 17px; }
.foot-brand p { font-size: 14px; color: var(--on-dark-muted); }
.foot-cols nav { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-cols nav:first-of-type { grid-column: 9 / 11; }
.foot-cols nav p { font-size: 13px; font-weight: 500; color: var(--on-dark-muted); margin-bottom: 4px; }
.foot-cols nav a { font-size: 15px; color: var(--on-dark); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--on-dark-muted); }
.legal a { color: var(--on-dark-muted); }
.legal a:hover, .legal a[aria-current="page"] { color: var(--on-dark); }

/* the privacy policy: one readable column of prose */
.policy { max-width: 760px; padding-top: 56px; padding-bottom: var(--padb); font-size: 17px; line-height: 1.65; }
.policy h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; }
.policy p, .policy ul { margin: 0 0 16px; }
.policy ul { padding-left: 22px; list-style: disc; }
.policy li { margin-bottom: 8px; }
.policy a { color: var(--accent); }
.policy a:hover { color: var(--accent-hover); }

/* Catalogue page */
.page-band { padding: calc(var(--nav) + 48px) 0 72px; }
.page-band h1 { font-size: 60px; color: var(--on-dark); }
.page-band p { margin-top: 24px; max-width: 58ch; font-size: 20px; line-height: 1.5; color: var(--on-dark-muted); }
.catalogue { padding: 48px 0 var(--padt); }
.catalogue-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; height: 36px;
    padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
    background: var(--card); color: var(--ink); transition: background-color .12s var(--ease), border-color .12s var(--ease);
}
.chip:hover { background: var(--g-alt); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { opacity: .6; margin-left: 2px; }
.catalogue-search input {
    font: inherit; font-size: 16px; width: 300px; max-width: 100%; height: 44px;
    padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: var(--card); color: var(--ink);
}
.catalogue-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalogue-status { min-height: 24px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    display: flex; flex-direction: column; gap: 8px; padding: 32px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2);
}
.card[hidden] { display: none; }
.card-theme { font-size: 13px; font-weight: 500; color: var(--muted); }
.card h3 { margin-top: 8px; }
.card p { flex: 1; color: var(--muted); }
.card-meta { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--ink); }
.catalogue-empty { padding: 32px 0; color: var(--muted); }
.catalogue-empty .link { font: inherit; color: var(--ink); border: 0; padding: 0; cursor: pointer; background-color: transparent; background-size: 100% 1px; }

/* Tablet: 640 to 1023 */
@media (max-width: 1023px) {
    .nav-links, .nav-liquid { display: none; }
    .nav-toggle { display: block; }
    .nav-actions { gap: 16px; }
    .hero h1 { font-size: 60px; }
    .theme-tiles, .quotes { grid-template-columns: 1fr 1fr; }
    .theme-tile, .theme-tile:nth-child(n+4), .quote, .quote:nth-child(n+4) { grid-column: span 1; }
    .steps { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; row-gap: 48px; }
    .split > :first-child, .split > :last-child { grid-column: 1 / -1; }
    .heritage-top { grid-template-columns: 1fr; row-gap: 32px; }
    .heritage-top h2, .heritage-top .stats { grid-column: 1 / -1; }
    .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .timeline::before { display: none; }
    .picker { grid-template-columns: 1fr; row-gap: 24px; }
    .picker-choices, .picker-answers { grid-column: 1 / -1; }
    .picker-choices { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .picker-choices legend { width: 100%; }
    .picker-choice { padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
    .cards { grid-template-columns: 1fr 1fr; }
    .closing-cta { row-gap: 48px; }
    .closing-lead { grid-column: 1 / -1; }
    .closing-talk { grid-column: 1 / -1; max-width: 520px; }
    .foot-cols { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
    .foot-brand { grid-column: 1 / -1; }
    .foot-cols nav, .foot-cols nav:first-of-type { grid-column: span 1; }
}

/* Phone: under 640 */
@media (max-width: 639px) {
    .nav-signin, .nav-request { display: none; }
    .nav-logo.text-logo { font-size: 15px; }
    .hero { padding-top: calc(var(--nav) + 40px); padding-bottom: 24px; }
    .hero h1 { font-size: 40px; line-height: 1.05; }
    .hero-brand { font-size: 30px; margin-bottom: 16px; }
    .hero-sub { font-size: 18px; }
    .hero .actions .btn, .closing .actions .btn { flex: 1 1 100%; }
    .mock { padding: 16px; }
    .mock-indices { gap: 6px; }
    .mock-index { padding: 12px 10px; }   /* room for "Performance" at 375 */
    .mock-value { font-size: 20px; }
    h2 { font-size: 30px; line-height: 1.15; }
    .sec-head { margin-bottom: 32px; }
    .sec-head p, .closing-lead p, .page-band p { font-size: 18px; }
    .theme-tiles, .quotes, .steps, .cards { grid-template-columns: 1fr; gap: 12px; }
    .theme-tile a, .step, .quote, .card { padding: 24px; }
    .marquee, .marquee-row { gap: 12px; }
    .marquee-row { --gap: 12px; }
    .marquee .quote { width: 280px; }
    .stats { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
    .stats li { flex-direction: row; align-items: baseline; gap: 12px; padding: 16px 0; }
    .stats strong { font-size: 28px; flex: none; }
    .timeline { grid-template-columns: 1fr; row-gap: 28px; }
    .timeline li { padding: 0 0 0 32px; }
    .timeline li::before { top: 6px; }
    .picker-card { padding: 24px; }
    /* the situations in one row that scrolls sideways, so the assessments sit just under them */
    .picker-choices { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; scrollbar-width: none; }
    .picker-choices::-webkit-scrollbar { display: none; }
    .picker-choice { flex: none; }
    .office-dots circle { r: 2.2px; }   /* larger on phones, where the map is drawn small */
    .office-dots .halo { r: 5px; }
    .page-band h1 { font-size: 38px; }
    .catalogue-search, .catalogue-search input { width: 100%; }
    .catalogue-controls { display: block; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)) 12px; padding: 2px var(--gut) 6px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
    .closing { gap: 64px; }
    .closing-talk { padding: 24px; }
    .closing-cta .actions { gap: 20px; }
    .closing-signin { flex: 1 1 100%; text-align: center; }
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .legal { flex-direction: column; }
}
