/* ============================================================
   TokenWave AI — site stylesheet
   Design language: deep night ground, luminous ink, one blue→
   violet current reserved for emphasis. IBM Plex Sans carries
   the voice, Plex Mono carries the data, Charter carries the
   long-form prose. Restraint is the aesthetic: hairlines over
   boxes, type over decoration, one signature wave in motion.
   ============================================================ */

/* ── Fonts (self-hosted; paths relative to this file) ─────── */
@font-face { font-family: 'Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexSans-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/IBMPlexSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/IBMPlexSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2'); }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
    --bg: #0A0D13;            /* page ground — deep blue-black */
    --bg-raise: #0E1219;      /* raised panels */
    --ink: #E8ECF4;           /* primary text */
    --ink-2: #C7CFDC;         /* body text on dark */
    --muted: #8B96A9;         /* secondary text */
    --dim: #5A6478;           /* tertiary / wayfinding */
    --line: rgba(148, 163, 184, 0.16);
    --hairline: rgba(148, 163, 184, 0.09);

    --accent: #60A5FA;        /* data + interactive accent (validated on dark) */
    --accent-bright: #93C5FD; /* hover states, small text on dark */
    --accent-2: #A78BFA;      /* violet — decorative gradient partner ONLY */
    --accent-dim: rgba(96, 165, 250, 0.12);
    --current: linear-gradient(120deg, #60A5FA, #A78BFA);

    --panel: rgba(255, 255, 255, 0.024);
    --panel-hover: rgba(255, 255, 255, 0.045);
    --tile-bg: #F4F6FB;       /* light wells for paper figures & artwork */

    --r-lg: 14px;
    --r-md: 10px;
    --r-pill: 999px;

    --sans: 'Plex Sans', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --serif: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;

    --shadow-pop: 0 24px 60px -28px rgba(2, 6, 16, 0.9);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    background:
        radial-gradient(1200px 700px at 78% -10%, rgba(96, 165, 250, 0.07), transparent 60%),
        radial-gradient(900px 600px at -10% 30%, rgba(167, 139, 250, 0.05), transparent 55%),
        var(--bg);
    color: var(--ink-2);
    line-height: 1.68;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
main.page-visible { opacity: 1; }

a { color: inherit; text-decoration: none; }
p a, li a, td a { color: var(--accent-bright); }
p a:hover, li a:hover, td a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(96, 165, 250, 0.32); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 92%;
    max-width: 1080px;
    margin: 0 auto;
}

.mono { font-family: var(--mono); }

h1, h2, h3 { margin: 8px 0 14px; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); }

p { margin: 0 0 16px; }

/* ── Scroll reveal (JS adds html.js; site.js flips .rv → .rv.in) */
html.js .rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js .rv.in { opacity: 1; transform: none; }
html.js .rv2 { transition-delay: 0.12s; }
html.js .rv3 { transition-delay: 0.24s; }

/* ── Header / navigation ───────────────────────────────────── */
.site-header {
    padding: 15px 0;
    background: rgba(10, 13, 19, 0.72);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo { display: flex; align-items: center; gap: 11px; }
.logo-icon { height: 26px; width: auto; display: block; }
.logo-word {
    font-weight: 700;
    font-size: 16.5px;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.logo-word .ai {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--dim);
    vertical-align: 3px;
    margin-left: 6px;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.site-header nav a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    padding: 7px 13px;
    border-radius: var(--r-pill);
    transition: color 0.18s ease, background 0.18s ease;
}

.site-header nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.site-header nav a.active { color: var(--ink); background: rgba(255, 255, 255, 0.07); }

/* ── Hero (landing) ────────────────────────────────────────── */
.hero { padding: 92px 0 30px; position: relative; }

.hero .eyebrow { margin-bottom: 22px; }

.hero h1 {
    font-size: clamp(44px, 7.4vw, 88px);
    font-weight: 700;
    letter-spacing: -0.042em;
    line-height: 1.02;
    margin: 0 0 10px;
    max-width: 14ch;
    color: var(--ink);
}

/* Sentence assembles word by word — no caret, no typing */
.hero h1 .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    animation: word-in 0.6s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes word-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Key phrase: the current, clipped into the letters.
   Applied to the word spans too — a transformed descendant breaks
   background-clip:text on the parent in Chromium. */
.hero h1 .hl,
.hero h1 .hl .w {
    background: var(--current);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-rule { display: none; }

.hero p {
    font-size: 18px;
    max-width: 56ch;
    color: var(--muted);
    line-height: 1.75;
}
.hero p b { color: var(--ink-2); font-weight: 600; }

.hero p.hero-thesis {
    margin: 22px 0 0;
    max-width: 28em;
    font-size: clamp(20px, 2.25vw, 28px);
    line-height: 1.55;
    letter-spacing: -0.018em;
    color: var(--ink-2);
}

.mission-emphasis {
    color: var(--accent-bright);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ── Live board marquee ────────────────────────────────────── */
.board {
    margin: 68px 0 8px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 14px 0;
    overflow: hidden;
    position: relative;
    background: rgba(10, 13, 19, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.board-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    margin: 0 0 12px;
}

.board-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: board-scroll 64s linear infinite;
}
.board:hover .board-track { animation-play-state: paused; }

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

.board-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
    font-size: 13.5px;
}
.board-item .b { font-weight: 600; color: var(--ink); }
.board-item .m { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.board-item .s { font-family: var(--mono); font-size: 12px; color: var(--accent-bright); }
.board-item:hover .b { color: var(--accent-bright); }

/* ── Page headers & eyebrows ───────────────────────────────── */
.page-header { padding: 64px 0 20px; }

.page-header h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    max-width: 22ch;
}

.page-header h1 .hl {
    background: var(--current);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-bright);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--current);
}

.page-intro { color: var(--muted); max-width: 64ch; margin-top: 2px; font-size: 16.5px; }

/* ── Card lists ────────────────────────────────────────────── */
.list {
    display: grid;
    gap: 14px;
    margin: 26px 0 56px;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.list .card {
    animation: card-in 0.5s var(--ease-out) both;
    animation-play-state: paused;
}

main.cards-ready .list .card { animation-play-state: running; }

.list .card:nth-child(1) { animation-delay: 0.04s; }
.list .card:nth-child(2) { animation-delay: 0.11s; }
.list .card:nth-child(3) { animation-delay: 0.18s; }
.list .card:nth-child(4) { animation-delay: 0.25s; }
.list .card:nth-child(5) { animation-delay: 0.32s; }
.list .card:nth-child(6) { animation-delay: 0.39s; }
.list .card:nth-child(7) { animation-delay: 0.46s; }
.list .card:nth-child(8) { animation-delay: 0.53s; }
.list .card:nth-child(n+9) { animation-delay: 0.6s; }

.card {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s var(--ease-out);
}

.list .card:hover,
.list .card:focus-within {
    background: var(--panel-hover);
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
}

/* Text left, artwork right — padded light well */
.card-row {
    display: grid;
    grid-template-columns: 1fr 132px;
    gap: 20px;
    align-items: stretch;
}

.card-image {
    order: 2;
    width: 100%;
    min-height: 112px;
    background-color: var(--tile-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    padding: 8px;
    border-radius: var(--r-md);
    opacity: 0.94;
}

.card-body {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 4px;
}

.card-meta .sep { color: var(--dim); }
.card-meta .lead { color: var(--accent-bright); }

.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }

.card h3 a { transition: color 0.16s ease; }
.card h3 a:hover { color: var(--accent-bright); }

.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-pill);
    background: var(--accent-dim);
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 11px;
    white-space: nowrap;
}

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

/* ── Benchmark chips ───────────────────────────────────────── */
.chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 9px;
}

.bench-chip {
    display: block;
    padding: 12px 15px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    background: var(--panel);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}

.bench-chip:hover {
    background: var(--panel-hover);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.bench-chip .name { display: block; font-weight: 600; font-size: 14px; color: var(--ink); }

.bench-chip .sub {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bench-chip .sub .sep { color: var(--dim); }

/* ── Detail pages (benchmark & article) ────────────────────── */
.detail { padding: 44px 0 72px; }

.detail-hero {
    display: grid;
    grid-template-columns: 1fr 172px;
    gap: 28px;
    align-items: center;
    margin-bottom: 12px;
}

.detail-image {
    order: 2;
    width: 100%;
    height: 152px;
    background-color: var(--tile-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    padding: 10px;
    border-radius: var(--r-lg);
    opacity: 0.94;
}

.detail-head { order: 1; }

.detail-hero h1 {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 10px 0 10px;
}

.detail-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    color: var(--muted);
    max-width: 58ch;
    margin: -2px 0 12px;
}

/* Key-number tiles under the hero */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0 28px;
}

.stat-tile {
    padding: 16px 18px 14px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--panel);
}

.stat-tile .v {
    font-family: var(--mono);
    font-size: 25px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stat-tile .l {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* Body + sticky table of contents (wide screens only) */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); }

.toc { display: none; }

@media (min-width: 1180px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 188px;
        gap: 44px;
    }

    .toc {
        display: block;
        position: sticky;
        top: 96px;
        align-self: start;
        padding-left: 16px;
        border-left: 1px solid var(--hairline);
        font-family: var(--mono);
        font-size: 12px;
        line-height: 1.5;
    }

    .toc-h {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--dim);
        margin-bottom: 10px;
    }

    .toc a {
        display: block;
        padding: 4px 0;
        color: var(--muted);
        position: relative;
    }

    .toc a:hover { color: var(--ink); text-decoration: none; }

    .toc a.on { color: var(--accent-bright); }

    .toc a.on::before {
        content: "";
        position: absolute;
        left: -17px;
        top: 6px;
        bottom: 6px;
        width: 2px;
        border-radius: 1px;
        background: var(--current);
    }
}

.markdown h2[id] { scroll-margin-top: 92px; }

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted);
}

.detail-meta .lead { color: var(--accent-bright); font-weight: 600; }
.detail-meta .sep { color: var(--dim); }

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 6px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: var(--panel);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
}

.button:hover {
    border-color: rgba(96, 165, 250, 0.5);
    background: var(--panel-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.button.primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #0B0E14;
}

.button.primary:hover { background: #fff; border-color: #fff; }

/* Long-form body — Charter, generous measure */
.markdown {
    max-width: 74ch;
    margin: 0 auto;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-2);
}

.markdown h2 {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-top: 42px;
}

.markdown h2::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 9px;
    border-radius: 1px;
    background: var(--current);
    opacity: 0.8;
}

.markdown h3 { font-family: var(--sans); font-size: 17px; }

.markdown ul { padding-left: 22px; margin: 0 0 16px; }
.markdown li { margin-bottom: 7px; }

.markdown img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
    background: var(--tile-bg);
    padding: 10px;
}

.markdown figure { margin: 24px 0; }
.markdown figcaption {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 9px;
    line-height: 1.55;
}

.markdown blockquote {
    margin: 20px 0;
    padding: 4px 0 4px 18px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}

.markdown pre {
    background: #060810;
    color: #DCE3EE;
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow: auto;
    font-family: var(--mono);
    font-size: 13.5px;
}

.markdown code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 5px;
    padding: 2px 6px;
}

.markdown pre code { background: transparent; padding: 0; }

/* Data tables — mono numerals, leader row carries the current */
.markdown table, .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
    font-family: var(--sans);
    font-size: 14px;
}

.markdown th, .data-table th {
    text-align: left;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dim);
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
}

.markdown td, .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-2);
}

.markdown td.num, .data-table td.num { font-family: var(--mono); font-size: 13px; }

tr.lead-row td { background: rgba(96, 165, 250, 0.08); color: var(--ink); font-weight: 600; }
tr.lead-row td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

.rank { font-family: var(--mono); color: var(--dim); }
tr.lead-row .rank { color: var(--accent-bright); }

/* Cross-link box (article ⇄ benchmark) */
.crosslink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 34px 0 8px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(140deg, rgba(96, 165, 250, 0.07), rgba(167, 139, 250, 0.04) 60%, transparent), var(--panel);
    font-family: var(--sans);
}

.crosslink .t { font-weight: 600; margin: 0; color: var(--ink); }
.crosslink .s { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.back-link { margin-top: 32px; font-family: var(--mono); font-size: 13.5px; }
.back-link a { color: var(--dim); }
.back-link a:hover { color: var(--accent-bright); text-decoration: none; }

/* ── Plain lists (Join Us) ─────────────────────────────────── */
.plain-list {
    font-size: 16.5px;
    margin: 4px 0 28px;
    padding: 0;
    list-style: none;
    max-width: 560px;
    color: var(--ink-2);
}

.plain-list li {
    padding: 12px 2px;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    gap: 13px;
}

.plain-list li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--current);
}

/* ── Footer — split layout ─────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 42px 0 46px;
    margin-top: auto;
    font-size: 13.5px;
    color: var(--muted);
    background: rgba(6, 8, 14, 0.6);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand { max-width: 360px; }

.footer-wordmark {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.footer-brand p { margin: 10px 0 0; color: var(--dim); }

.footer-col { min-width: 130px; }

.footer-col .h {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--dim);
    margin-bottom: 12px;
}

.footer-col a { display: block; padding: 3px 0; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }

.social-link { display: inline-flex; color: var(--muted); margin-top: 6px; }
.social-link:hover { color: var(--ink); }

/* ── Careers: occupation dossiers ──────────────────────────── */
.career-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 10px 0 6px;
    font-family: var(--mono);
    font-size: 12.5px;
}
.career-nav a { color: var(--dim); padding: 2px 0; transition: color 0.15s ease; }
.career-nav a:hover { color: var(--accent-bright); }
.career-nav .sep { color: rgba(148, 163, 184, 0.25); user-select: none; }

.career-index { padding-bottom: 34px; }

.career-block {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    margin-top: 58px;
    padding-top: 50px;
    border-top: 1px solid var(--hairline);
    scroll-margin-top: 92px;
}
.career-block:first-child { margin-top: 34px; }

.career-meta {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--mono);
    font-size: 11.5px;
    margin-bottom: 16px;
}
.career-idx { color: var(--dim); letter-spacing: 0.1em; }
.career-status { letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }
.career-status::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: 1px;
}
.st-certifying { color: var(--accent-bright); }
.st-certifying::before {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.9);
    animation: st-pulse 2.6s ease-in-out infinite;
}
@keyframes st-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(96, 165, 250, 0.4); }
    50%      { box-shadow: 0 0 12px rgba(96, 165, 250, 1); }
}
.st-next { color: var(--dim); }
.st-next::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dim); }

.career-block h2 {
    font-size: 30px;
    line-height: 1.14;
    letter-spacing: -0.028em;
    margin: 0 0 8px;
}
.career-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16.5px;
    color: var(--muted);
    margin: 0 0 16px;
}
.career-desc {
    font-family: var(--serif);
    font-size: 15.5px;
    color: var(--ink-2);
    line-height: 1.85;
    margin: 0 0 18px;
}
.career-duties {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.evidence-h {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 12px;
}
.career-evidence .chip-grid { grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); }

.eyebrow-link { color: inherit; }
.eyebrow-link:hover { text-decoration: underline; }

/* Careers: lab spotlight */
.lab-note {
    margin: 72px 0 12px;
    padding-top: 48px;
    border-top: 1px solid var(--hairline);
}
.lab-note .evidence-h { margin-bottom: 8px; }
.lab-note h2 {
    font-size: 26px;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.lab-note > p {
    font-family: var(--serif);
    color: var(--muted);
    max-width: 66ch;
    line-height: 1.8;
    margin: 0 0 24px;
}

/* ── Home: positioning ─────────────────────────────────────── */
.home-section { padding: 52px 0 12px; }
.home-section .eyebrow { margin-bottom: 14px; }
.home-section h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.16;
    letter-spacing: -0.028em;
    margin: 0 0 14px;
    max-width: 30ch;
}
.home-section > p {
    font-family: var(--serif);
    color: var(--muted);
    max-width: 64ch;
    line-height: 1.85;
    font-size: 16.5px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 34px;
}
.pillar { border-top: 1px solid var(--line); padding-top: 18px; }
.pillar .k {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
}
.pillar h3 { font-size: 16.5px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0; }

.flywheel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 34px;
    counter-reset: fly;
}
.fly-step { border-top: 1px solid var(--line); padding-top: 18px; position: relative; }
.fly-step .n {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--accent-bright);
}
.fly-step h3 { font-size: 15.5px; margin: 12px 0 7px; letter-spacing: -0.01em; }
.fly-step p { font-size: 13.5px; color: var(--muted); line-height: 1.72; margin: 0; }
.fly-loop {
    font-family: var(--serif);
    font-style: italic;
    font-size: 14.5px;
    color: var(--dim);
    margin-top: 30px;
}

.numbers-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 30px 0 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.num-item {
    flex: 1 1 160px;
    padding: 28px 28px 24px 0;
}
.num-item + .num-item { padding-left: 28px; border-left: 1px solid var(--hairline); }
.num-item .v {
    font-family: var(--mono);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ink);
}
.num-item .l {
    font-size: 13px;
    color: var(--dim);
    margin-top: 7px;
}

.home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding: 36px 0 8px;
    margin: 52px 0 56px;
}
.home-cta .t { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.home-cta .s { font-size: 14px; color: var(--muted); margin: 5px 0 0; }

/* ── Motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero h1 .w { animation: none; opacity: 1; transform: none; }
    .list .card { animation: none; }
    .board-track { animation: none; }
    .st-certifying::before { animation: none; }
    html.js .rv { opacity: 1; transform: none; transition: none; }
    .meter span { transition: none; }
    main { transition: none; }
}

/* ── Small screens ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .career-block { grid-template-columns: 1fr; gap: 26px; }
    .pillars, .flywheel { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
    .site-header nav a { padding: 6px 9px; font-size: 12.5px; }
    .logo-icon { height: 22px; }
    .logo-word { font-size: 15px; }
    .hero { padding-top: 56px; }
    .hero h1 { font-size: clamp(38px, 11vw, 54px); }
    .card-row { grid-template-columns: 1fr; }
    .card-image { order: 1; min-height: 130px; }
    .card-body { order: 2; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-image { order: 1; }
    .detail-head { order: 2; }
    .footer-grid { flex-direction: column; gap: 18px; }
    .markdown { font-size: 16.5px; }
    .home-cta { flex-direction: column; align-items: flex-start; }
    .career-block h2 { font-size: 24px; }
    .numbers-strip { flex-direction: column; }
    .num-item + .num-item { padding-left: 0; border-left: none; border-top: 1px solid var(--hairline); }
    .num-item { padding: 18px 0 16px; }
}

/* ── Home: current frontier (giant stat + single-hue bars) ── */
.frontier-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    margin-top: 34px;
}
.fr-num {
    font-family: var(--mono);
    font-size: clamp(56px, 7vw, 92px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--ink);
}
.fr-num .u { font-size: 0.45em; color: var(--muted); margin-left: 2px; }
.fr-cap {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    margin-top: 12px;
    line-height: 1.6;
}
.fr-chart { display: grid; gap: 13px; }
.fr-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
}
.fr-m {
    font-size: 13.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fr-lead .fr-m { color: var(--ink); font-weight: 600; }
.fr-track {
    display: block;
    height: 6px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
}
.fr-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: rgba(96, 165, 250, 0.55);
    transition: width 1s var(--ease-out) 0.1s;
}
.fr-lead .fr-bar { background: var(--accent); }
.fr-v {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    text-align: right;
}
.fr-lead .fr-v { color: var(--accent-bright); font-weight: 600; }
.fr-link { margin-top: 26px; font-family: var(--mono); font-size: 13px; }
.fr-link a { color: var(--accent-bright); }
.fr-link a:hover { text-decoration: underline; }

/* ── Home: careers readiness index ─────────────────────────── */
.career-x { margin-top: 30px; border-top: 1px solid var(--line); }
.cx-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 130px minmax(90px, 200px) 52px 110px;
    align-items: center;
    gap: 16px;
    padding: 17px 4px;
    border-bottom: 1px solid var(--hairline);
    transition: background 0.16s ease;
}
.cx-row:hover { background: var(--panel-hover); }
.cx-i { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.cx-n { font-weight: 600; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.cx-row:hover .cx-n { color: var(--accent-bright); }
.cx-st { font-family: var(--mono); }
.cx-v {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}
.cx-c {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .frontier-grid { grid-template-columns: 1fr; gap: 30px; }
    .cx-row { grid-template-columns: 28px minmax(0, 1fr) 56px; }
    .cx-st, .cx-meter, .cx-c { display: none; }
}

/* ── Home: certified-outcome report panel (illustrative UI) ── */
.report-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: center;
    margin-top: 36px;
}
.report-copy h3 { font-size: 17px; margin: 0 0 8px; }
.report-copy p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.report-copy ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.report-copy li {
    padding: 10px 0;
    border-top: 1px solid var(--hairline);
    font-size: 14px;
    color: var(--ink-2);
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.report-copy li .k { font-family: var(--mono); font-size: 11px; color: var(--accent-bright); }

.report-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(96, 165, 250, 0.06), rgba(167, 139, 250, 0.03) 45%, transparent 75%), rgba(16, 20, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-pop);
    padding: 22px 24px 20px;
    font-family: var(--mono);
}
.report-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.5), transparent);
}
.rp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 6px;
}
.rp-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); }
.rp-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #6EE7B7;
    border: 1px solid rgba(110, 231, 183, 0.35);
    border-radius: var(--r-pill);
    padding: 3px 10px;
}
.rp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 12px;
}
.rp-row:last-of-type { border-bottom: none; }
.rp-row .k { color: var(--muted); }
.rp-row .v { color: var(--ink); font-weight: 600; }
.rp-row .v.ok { color: #6EE7B7; }
.rp-note { font-size: 10px; color: var(--dim); margin: 10px 0 0; letter-spacing: 0.04em; }

/* ── Home: latest research cards ───────────────────────────── */
.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}
.rc-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--panel);
    overflow: hidden;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s var(--ease-out);
}
.rc-card:hover {
    background: var(--panel-hover);
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-3px);
}
.rc-img {
    height: 150px;
    background-color: var(--tile-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    padding: 12px;
    opacity: 0.94;
}
.rc-body { padding: 16px 18px 18px; }
.rc-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.rc-body h3 { font-size: 15.5px; margin: 0; line-height: 1.4; letter-spacing: -0.01em; }
.rc-card:hover h3 { color: var(--accent-bright); }

/* ── Home: closing scene with perspective grid ─────────────── */
.grid-scene {
    position: relative;
    margin: 60px 0 56px;
    padding: 64px 0 72px;
    text-align: center;
    overflow: hidden;
}
.grid-scene::before {
    content: "";
    position: absolute;
    left: -20%; right: -20%; bottom: -42%;
    height: 78%;
    background:
        linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
    background-size: 56px 44px;
    transform: perspective(480px) rotateX(62deg);
    transform-origin: 50% 0;
    -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}
.grid-scene .mark { height: 44px; width: auto; margin-bottom: 18px; }
.grid-scene h2 {
    font-size: clamp(26px, 3.6vw, 40px);
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}
.grid-scene p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.grid-scene .hero-actions { justify-content: center; margin-top: 0; }

@media (max-width: 900px) {
    .report-split { grid-template-columns: 1fr; gap: 30px; }
    .research-cards { grid-template-columns: 1fr; }
}

/* ── Dynamic layer ─────────────────────────────────────────── */

/* Scroll progress hairline (injected by site.js) */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--current);
    z-index: 90;
    pointer-events: none;
    opacity: 0.9;
}

/* Cursor spotlight on interactive cards */
.bench-chip, .list .card, .rc-card, .report-panel, .cx-row, .stat-tile {
    position: relative;
    overflow: hidden;
}
.bench-chip::after, .list .card::after, .rc-card::after,
.report-panel::after, .cx-row::after, .stat-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%),
                rgba(96, 165, 250, 0.09), transparent 65%);
}
.bench-chip:hover::after, .list .card:hover::after, .rc-card:hover::after,
.report-panel:hover::after, .cx-row:hover::after, .stat-tile:hover::after { opacity: 1; }

/* Leaderboard score bars (real data, filled on scroll) */
.lb-track {
    display: block;
    height: 2px;
    margin-top: 5px;
    border-radius: 1px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
    min-width: 72px;
}
.lb-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 1px;
    background: rgba(96, 165, 250, 0.5);
    transition: width 0.9s var(--ease-out) 0.12s;
}
tr.lead-row .lb-bar { background: var(--accent); }

/* Certification report — live simulation states */
.rp-badge { transition: color 0.3s ease, border-color 0.3s ease; }
.rp-badge.running {
    color: #FCD34D;
    border-color: rgba(252, 211, 77, 0.35);
    animation: rp-pulse 1.1s ease-in-out infinite;
}
@keyframes rp-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}
html.js .rp-row.sim {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
html.js .rp-row.sim.on { opacity: 1; transform: none; }

/* Flywheel — the current flowing through the loop */
.fly-track {
    grid-column: 1 / -1;
    height: 2px;
    border-radius: 1px;
    position: relative;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
    margin-bottom: -22px;
}
.fly-track::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 34%;
    background: linear-gradient(90deg, transparent, #60A5FA 45%, #A78BFA 70%, transparent);
    animation: fly-flow 3.4s linear infinite;
    opacity: 0.9;
}
@keyframes fly-flow {
    from { left: -36%; }
    to   { left: 102%; }
}
.flywheel.flow .fly-step { border-top: none; padding-top: 24px; }

/* Careers page — chips cascade in with their dossier */
html.js .career-block .bench-chip {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
html.js .career-block.in .bench-chip { opacity: 1; transform: none; }
html.js .career-block.in .bench-chip:nth-child(2)  { transition-delay: 0.05s; }
html.js .career-block.in .bench-chip:nth-child(3)  { transition-delay: 0.1s; }
html.js .career-block.in .bench-chip:nth-child(4)  { transition-delay: 0.15s; }
html.js .career-block.in .bench-chip:nth-child(5)  { transition-delay: 0.2s; }
html.js .career-block.in .bench-chip:nth-child(6)  { transition-delay: 0.25s; }
html.js .career-block.in .bench-chip:nth-child(7)  { transition-delay: 0.3s; }
html.js .career-block.in .bench-chip:nth-child(8)  { transition-delay: 0.35s; }
html.js .career-block.in .bench-chip:nth-child(9)  { transition-delay: 0.4s; }
html.js .career-block.in .bench-chip:nth-child(n+10) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    .fly-track::before { animation: none; left: 33%; }
    .rp-badge.running { animation: none; }
    html.js .rp-row.sim { opacity: 1; transform: none; transition: none; }
    html.js .career-block .bench-chip { opacity: 1; transform: none; transition: none; }
    .lb-bar { transition: none; }
    #scroll-progress { display: none; }
}

/* ── Home: careers roadmap (in definition) ─────────────────── */
.career-roadmap { border-top: 1px solid var(--hairline); }
.ghost-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--hairline);
}
.ghost-row .gr-n { font-size: 14.5px; color: var(--dim); letter-spacing: -0.01em; }
.ghost-row .gr-st {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}
.ghost-row .gr-st::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: 1px;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(90, 100, 120, 0.5);
}

/* ── Mission-only landing ──────────────────────────────────── */
.hero.solo {
    min-height: calc(88vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 64px;
}
.hero.solo h1 {
    max-width: 21ch;
    font-family: var(--sans);
    font-size: clamp(46px, 6.2vw, 74px);
    font-weight: 600;
    line-height: 1.055;
    letter-spacing: -0.034em;
    text-wrap: balance;
}
.hero.solo .hero-thesis {
    max-width: 40em;
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.55;
    letter-spacing: -0.01em;
}
@media (max-width: 680px) {
    .hero.solo { min-height: auto; padding: 64px 0 48px; }
    .hero.solo h1 {
        max-width: 17ch;
        font-size: clamp(40px, 10.5vw, 52px);
        line-height: 1.07;
        letter-spacing: -0.03em;
    }
    .hero.solo .hero-thesis { font-size: 18px; line-height: 1.55; }
}

/* ── Careers: side rail + evidence cards ───────────────────── */
.career-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 10px 0 6px;
    font-family: var(--mono);
    font-size: 12.5px;
}
.career-strip a { color: var(--dim); padding: 2px 0; }
.career-strip a:hover { color: var(--accent-bright); }
.career-strip .sep { color: rgba(148, 163, 184, 0.25); user-select: none; }

.careers-layout { display: grid; grid-template-columns: minmax(0, 1fr); }

.rail { display: none; }

@media (min-width: 1100px) {
    .career-strip { display: none; }

    .careers-layout {
        grid-template-columns: 188px minmax(0, 1fr);
        gap: 44px;
    }

    .rail {
        display: block;
        position: sticky;
        top: 132px;
        align-self: start;
        padding: 6px 0;
    }
    .rail::before {
        content: "";
        position: absolute;
        left: 5px; top: 14px; bottom: 14px;
        width: 1px;
        background: var(--line);
    }
    .rail a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 11px 0;
        font-size: 13px;
        color: var(--dim);
        transition: color 0.18s ease;
    }
    .rail a:hover { color: var(--ink); }
    .rail .dot {
        flex: none;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--bg);
        box-shadow: inset 0 0 0 1.5px var(--dim);
        transition: box-shadow 0.2s ease, background 0.2s ease;
    }
    .rail a.on { color: var(--ink); font-weight: 600; }
    .rail a.on .dot {
        background: var(--accent);
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), 0 0 12px rgba(96, 165, 250, 0.7);
    }
}

.ev-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 16px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    background: var(--panel);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.ev-card:hover {
    background: var(--panel-hover);
    border-color: rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
}
.ev-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: radial-gradient(220px circle at var(--sx, 50%) var(--sy, 50%),
                rgba(96, 165, 250, 0.09), transparent 65%);
}
.ev-card:hover::after { opacity: 1; }
.ev-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    margin-bottom: 5px;
}
.ev-meta .sep { color: rgba(148, 163, 184, 0.3); }
.ev-body h3 { font-size: 15.5px; margin: 0 0 5px; letter-spacing: -0.01em; }
.ev-card:hover h3 { color: var(--accent-bright); }
.ev-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-img {
    width: 92px;
    height: 68px;
    border-radius: 8px;
    background-color: var(--tile-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    padding: 5px;
    opacity: 0.94;
}

@media (max-width: 680px) {
    .ev-card { grid-template-columns: 1fr; }
    .ev-img { display: none; }
}

/* ── Research: flagship grid + direction panels ────────────── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.feat-grid .rc-img { height: 116px; }
.feat-grid .rc-body { padding: 14px 16px 16px; }
.feat-grid h3 { font-size: 15px; }
.rc-blurb {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .feat-grid { grid-template-columns: 1fr; }
}

/* ── Research: six directions along a guide line ───────────── */
.dirline {
    position: relative;
    margin-top: 26px;
    padding-left: 4px;
}
.dirline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.5), rgba(167, 139, 250, 0.35) 60%, transparent);
}
.dl-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 30px 0 34px;
}
.dl-item + .dl-item { border-top: 1px solid transparent; }
.dl-marker {
    position: relative;
}
.dl-marker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px rgba(96, 165, 250, 0.45);
}
.dl-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.dl-idx {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    background: var(--current);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dl-head h3 {
    font-size: 21px;
    margin: 0;
    letter-spacing: -0.02em;
}
.dl-blurb {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 62ch;
    margin: 0 0 16px;
}
.dl-works {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 860px;
}
.dl-work {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-2);
    padding: 5px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    background: var(--panel);
    line-height: 1.5;
}

@media (max-width: 680px) {
    .dl-item { grid-template-columns: 28px minmax(0, 1fr); }
    .dl-head h3 { font-size: 18px; }
}

/* Direction pills that link to their paper */
a.dl-work.dl-link { transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease; }
a.dl-work.dl-link:hover {
    border-color: rgba(96, 165, 250, 0.45);
    color: var(--accent-bright);
    background: var(--panel-hover);
}
.dl-work .x {
    font-size: 10px;
    color: var(--dim);
    margin-left: 5px;
}
a.dl-work.dl-link:hover .x { color: var(--accent-bright); }
