/* ========================================
   KREDIT LAB — "Institutional Editorial" theme
   Paper, ink, one banker's green. FT-meets-modern-advisory.
   Same class contract as v1 (drop-in restyle).
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --paper: #FBFAF7;
    --panel: #FFFFFF;
    --ink: #101418;
    --ink-2: #48525C;
    --muted: #8A94A0;
    --line: #E3E0D6;
    --accent: #0F5C46;
    --accent-ink: #0B4634;
    --accent-soft: rgba(15, 92, 70, 0.07);
    --gold: #A67F35;
    --warning: #B45309;
    --danger: #B3261E;
    --font-sans: 'Hanken Grotesk', -apple-system, sans-serif;
    --font-serif: 'Marcellus', Georgia, serif;

    /* v1 token aliases so any leftover references keep working */
    --teal: var(--accent);
    --teal-dark: var(--accent-ink);
    --teal-glow: var(--accent-soft);
    --bg: var(--paper);
    --card: var(--panel);
    --border: var(--line);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-muted: var(--muted);
}

[data-theme="dark"] {
    --paper: #10141B;
    --panel: #161B24;
    --ink: #ECEEF1;
    --ink-2: #A7B0BA;
    --muted: #6D7680;
    --line: rgba(255,255,255,0.12);
    --accent: #4BAE8F;
    --accent-ink: #63C2A4;
    --accent-soft: rgba(75, 174, 143, 0.1);
    --gold: #C9A45C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    font-size: 15.5px;
    overflow-x: hidden;
    counter-reset: sec;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

::selection { background: var(--accent); color: #fff; }

/* ========== NAV ========== */
nav.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 28px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 62px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-links a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }
.nav-links a.nav-login {
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 5px 11px;
    white-space: nowrap;
    transition: border-color 0.15s;
}
.nav-links a.nav-login:hover { border-color: var(--accent); }

.toggle-btn {
    background: none;
    border: 1px solid var(--line);
    color: var(--ink-2);
    border-radius: 3px;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.15s;
}
.toggle-btn:hover { border-color: var(--ink-2); }

.nav-menu-btn { display: none; }
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 18px 28px;
        gap: 14px;
    }
    .nav-links.open { display: flex; }
    .nav-menu-btn {
        display: inline-block;
        background: none;
        border: 1px solid var(--line);
        color: var(--ink-2);
        border-radius: 3px;
        padding: 5px 11px;
        cursor: pointer;
        font-size: 15px;
    }
}

/* ========== SECTIONS ========== */
main { padding-top: 62px; }

section.block {
    padding: 76px 0;
    border-top: 1px solid var(--line);
}
section.block:first-of-type { border-top: none; }
section.block.tight { padding: 60px 0; }
section.block { counter-increment: sec; }

.section-label {
    display: block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 18px;
}
.section-label::before {
    content: counter(sec, decimal-leading-zero) " · ";
    color: var(--muted);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4.2vw, 42px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    max-width: 720px;
}
.section-title em { color: var(--accent); font-style: italic; font-weight: 400; }

.section-sub { color: var(--ink-2); font-size: 16.5px; max-width: 640px; }

/* ========== HERO ========== */
.hero { padding: 96px 0 72px; text-align: left; }
.hero .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    border: none;
    background: none;
    padding: 0 0 18px;
    margin: 0;
}
.hero h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(40px, 6.8vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 860px;
    margin: 0 0 26px;
}
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 400; }
.hero p.lead {
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 0 36px;
}
.hero .btn-row { justify-content: flex-start; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    border-radius: 3px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-primary { background: var(--ink); color: #10141B; }
[data-theme="dark"] .btn-primary:hover { background: var(--accent); color: #0B1510; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========== CARDS / GRIDS ========== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.grid-3 > * { border-right: 1px solid var(--line); }
.grid-3 > *:last-child { border-right: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-3 > * { border-right: none; border-bottom: 1px solid var(--line); }
    .grid-3 > *:last-child { border-bottom: none; }
    .grid-2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--panel);
    border: none;
    border-radius: 0;
    padding: 34px 30px;
    transition: background 0.15s;
}
.grid-2 .card { border: 1px solid var(--line); }
.card:hover { background: var(--accent-soft); }

.card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.card p { color: var(--ink-2); font-size: 14.5px; }

/* doors: numbered, no emoji */
.door { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); counter-increment: door; }
.door .door-icon { display: none; }
.door::before {
    content: counter(door, decimal-leading-zero);
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    color: var(--line);
    line-height: 1;
    transition: color 0.15s;
}
.door:hover::before { color: var(--accent); }
.grid-3 { counter-reset: door; }
.door .door-who {
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.door .door-cta { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ========== LISTS / STEPS ========== */
.step-list { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--line); }
.step-list li {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--panel);
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 24px 28px;
}
.step-list li:last-child { border-bottom: none; }
.step-num {
    flex: none;
    width: 26px; height: auto;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px;
    font-weight: 400;
    display: block;
    line-height: 1.2;
}
.step-list h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step-list p { color: var(--ink-2); font-size: 14.5px; }

/* ========== STATS ========== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left; border: 1px solid var(--line); }
.stat-row > * { border-right: 1px solid var(--line); }
.stat-row > *:last-child { border-right: none; }
@media (max-width: 700px) {
    .stat-row { grid-template-columns: 1fr; }
    .stat-row > * { border-right: none; border-bottom: 1px solid var(--line); }
    .stat-row > *:last-child { border-bottom: none; }
}
.stat .stat-num {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.stat .stat-label { color: var(--ink-2); font-size: 13.5px; }

/* ========== PLACEHOLDER MARKER ========== */
.placeholder {
    border: 1px dashed var(--warning);
    background: rgba(180, 83, 9, 0.05);
    border-radius: 0;
    padding: 18px 20px;
    color: var(--ink-2);
    font-size: 14px;
}
.placeholder::before {
    content: 'PLACEHOLDER — real content goes here';
    display: block;
    color: var(--warning);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ========== DRAFT BANNER ========== */
.draft-banner {
    background: rgba(180, 83, 9, 0.06);
    border: 1px solid rgba(180, 83, 9, 0.35);
    color: var(--warning);
    border-radius: 0;
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 34px;
}

/* ========== PROSE ========== */
.prose { max-width: 720px; }
.prose h2 {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 36px 0 10px;
}
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--accent-ink); }
[data-theme="dark"] .prose a { color: var(--accent); }

/* ========== FORMS ========== */
.form-grid { display: grid; gap: 16px; max-width: 600px; }
.form-grid label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    display: block;
    margin-bottom: 7px;
}
.form-grid input, .form-grid textarea, .form-grid select {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 12px 14px;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--accent); }

/* ========== CTA BAND — inverted ink panel ========== */
.cta-band {
    background: var(--ink);
    border: none;
    border-radius: 0;
    padding: 56px 44px;
    text-align: center;
    color: var(--paper);
}
.cta-band h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    color: var(--paper);
}
.cta-band p { color: color-mix(in srgb, var(--paper) 72%, transparent); margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .cta-band { background: var(--panel); border: 1px solid var(--line); }
[data-theme="dark"] .cta-band h2 { color: var(--ink); }
[data-theme="dark"] .cta-band p { color: var(--ink-2); }
[data-theme="dark"] .cta-band .btn-primary { background: var(--accent); color: #0B1510; }

/* ========== FOOTER — colophon ========== */
footer.site-footer {
    border-top: 3px double var(--line);
    padding: 52px 0 44px;
    margin-top: 48px;
    text-align: center;
}
footer.site-footer .theme-logo { height: 36px; margin-bottom: 14px; }
.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    margin-bottom: 10px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.footer-links a {
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-links a:hover { color: var(--accent-ink); }
.footer-legal { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.footer-legal a { color: var(--muted); text-decoration: none; }

/* Marcellus has one weight and no italic — engrave, don't slant */
.hero h1, .section-title, .card h3, .prose h2, .cta-band h2, .footer-tagline, .logo { font-weight: 400; }
.hero h1 em, .section-title em { font-style: normal; }
.hero h1 { letter-spacing: 0; }

/* ===== ENGRAVED ORNAMENTS (banknote guilloche) ===== */
.hero { position: relative; }
.hero::after {
    content: '';
    position: absolute;
    top: -10px; right: -150px;
    width: 580px; height: 580px;
    pointer-events: none;
    opacity: .55;
    z-index: 0;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cellipse id='e' cx='200' cy='200' rx='188' ry='56' fill='none' stroke='%230F5C46' stroke-width='0.6' opacity='0.33'/%3E%3Cellipse id='f' cx='200' cy='200' rx='148' ry='94' fill='none' stroke='%23A67F35' stroke-width='0.5' opacity='0.25'/%3E%3C/defs%3E%3Cuse href='%23e'/%3E%3Cuse href='%23e' transform='rotate(15 200 200)'/%3E%3Cuse href='%23e' transform='rotate(30 200 200)'/%3E%3Cuse href='%23e' transform='rotate(45 200 200)'/%3E%3Cuse href='%23e' transform='rotate(60 200 200)'/%3E%3Cuse href='%23e' transform='rotate(75 200 200)'/%3E%3Cuse href='%23e' transform='rotate(90 200 200)'/%3E%3Cuse href='%23e' transform='rotate(105 200 200)'/%3E%3Cuse href='%23e' transform='rotate(120 200 200)'/%3E%3Cuse href='%23e' transform='rotate(135 200 200)'/%3E%3Cuse href='%23e' transform='rotate(150 200 200)'/%3E%3Cuse href='%23e' transform='rotate(165 200 200)'/%3E%3Cuse href='%23f' transform='rotate(7 200 200)'/%3E%3Cuse href='%23f' transform='rotate(22 200 200)'/%3E%3Cuse href='%23f' transform='rotate(37 200 200)'/%3E%3Cuse href='%23f' transform='rotate(52 200 200)'/%3E%3Cuse href='%23f' transform='rotate(67 200 200)'/%3E%3Cuse href='%23f' transform='rotate(82 200 200)'/%3E%3Cuse href='%23f' transform='rotate(97 200 200)'/%3E%3Cuse href='%23f' transform='rotate(112 200 200)'/%3E%3Cuse href='%23f' transform='rotate(127 200 200)'/%3E%3Cuse href='%23f' transform='rotate(142 200 200)'/%3E%3Cuse href='%23f' transform='rotate(157 200 200)'/%3E%3Cuse href='%23f' transform='rotate(172 200 200)'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero > * { position: relative; z-index: 1; }
@media (max-width: 1100px) { .hero::after { display: none; } }

/* engraved edge on CTA bands */
.cta-band { position: relative; }
.cta-band::before, .cta-band::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    height: 8px;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q10 0 20 8 T40 8' fill='none' stroke='%23A67F35' stroke-width='0.8' opacity='0.65'/%3E%3C/svg%3E") repeat-x;
    background-size: 40px 8px;
}
.cta-band::before { top: 8px; }
.cta-band::after { bottom: 8px; transform: scaleY(-1); }

/* ===== PRODUCT PREVIEW FRAMES ===== */
.preview-frame { border: 1px solid var(--line); background: var(--panel); }
.preview-bar {
    display: flex; gap: 6px; align-items: center;
    height: 34px; padding: 0 14px;
    border-bottom: 1px solid var(--line);
}
.preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.preview-bar em {
    font-style: normal; margin-left: 10px;
    color: var(--muted); font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .12em;
}
.preview-clip { height: 360px; overflow: hidden; position: relative; }
.preview-clip iframe {
    width: 200%; height: 760px;
    transform: scale(.5); transform-origin: 0 0;
    border: 0;
}
.preview-clip::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(transparent 72%, var(--panel));
}
.preview-cap {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--ink-2);
}
.preview-cap a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
[data-theme="dark"] .preview-cap a { color: var(--accent); }


/* ========== COMPARISON — head to head ========== */
.spec-note { color: var(--muted); font-size: 13px; margin-top: 16px; max-width: 660px; }

.vs { border: 1px solid var(--line); background: var(--panel); padding-bottom: 10px; }

.vs-head {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    border-bottom: 1px solid var(--ink);
}
.vs-head > div {
    padding: 15px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-align: center;
}
.vs-head .us { color: var(--accent-ink); }
.vs-head .them { color: var(--muted); }
[data-theme="dark"] .vs-head { border-bottom-color: var(--ink-2); }
[data-theme="dark"] .vs-head .us { color: var(--accent); }

.vs-group {
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    padding: 22px 18px 10px;
}

.vs-row {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    align-items: center;
    padding: 4px 12px;
}
.vs-label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    line-height: 1.45;
    color: var(--muted);
    padding: 0 8px;
}

.pill {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 11px 15px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.45;
    min-height: 100%;
}
.pill.us { background: rgba(15, 92, 70, 0.085); color: var(--ink); font-weight: 500; }
.pill.them { background: rgba(16, 20, 24, 0.05); color: var(--muted); }
[data-theme="dark"] .pill.us { background: rgba(75, 174, 143, 0.13); }
[data-theme="dark"] .pill.them { background: rgba(255, 255, 255, 0.045); }
.pill a { color: inherit; }

.pill .ic {
    flex: none;
    width: 17px; height: 17px;
    margin-top: 1px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}
.pill.us .ic { color: var(--accent-ink); opacity: 0.9; }
[data-theme="dark"] .pill.us .ic { color: var(--accent); }

.pill span::before { content: none; }

/* Three-way variant: row label on the left, then one pill per party. */
.vs3 .vs-head,
.vs3 .vs-row { grid-template-columns: 150px repeat(3, 1fr); gap: 8px; }
.vs3 .vs-row { align-items: stretch; }
.vs3 .vs-label { text-align: left; align-self: center; padding: 0 4px 0 6px; }

@media (max-width: 860px) {
    .vs-head { display: none; }
    .vs-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 14px 14px 18px;
        border-bottom: 1px solid var(--line);
    }
    .vs-row:last-child { border-bottom: none; }
    .pill { min-height: 0; }
    .vs-label { text-align: left; color: var(--gold); padding: 0 2px 2px; order: -1; }
    .vs3 .vs-label { align-self: auto; padding: 0 2px 2px; }
    .vs-group { text-align: left; padding: 22px 14px 8px; border-top: 1px solid var(--line); }
    .pill span::before {
        content: attr(data-who);
        display: block;
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        opacity: 0.65;
        margin-bottom: 3px;
    }
}

/* ========== TEAM ========== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.team-grid > * { border-right: 1px solid var(--line); }
.team-grid > *:last-child { border-right: none; }
@media (max-width: 900px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-grid > * { border-right: none; border-bottom: 1px solid var(--line); }
    .team-grid > *:last-child { border-bottom: none; }
}
.person { background: var(--panel); display: flex; flex-direction: column; }
.person .portrait {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.person .portrait img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}
.person .person-body { padding: 24px 26px 28px; }
.person .person-role {
    display: block;
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
}
.person h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.person p { color: var(--ink-2); font-size: 14px; }

/* ========== QUIET STATEMENT PANEL ========== */
.statement {
    border-left: 2px solid var(--accent);
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 32px;
    max-width: 720px;
}
.statement p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; }
.statement p:last-child { margin-bottom: 0; }
.statement a { color: var(--accent-ink); font-weight: 600; }
[data-theme="dark"] .statement a { color: var(--accent); }

/* ========== ARTICLE LIST ========== */
.entry-list { list-style: none; border-top: 1px solid var(--line); }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list a {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    padding: 28px 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.entry-list a:hover { background: var(--accent-soft); }
@media (max-width: 700px) {
    .entry-list a { grid-template-columns: 1fr; gap: 8px; }
}
.entry-date {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    line-height: 2.2;
}
.entry-list h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    line-height: 1.2;
}
.entry-list p { color: var(--ink-2); font-size: 15px; }
.entry-more { color: var(--accent-ink); font-weight: 600; font-size: 13.5px; }
[data-theme="dark"] .entry-more { color: var(--accent); }

/* ========== ARTICLE BODY ========== */
.article { max-width: 680px; }
.article .article-meta {
    color: var(--muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 34px;
}
.article p { color: var(--ink-2); font-size: 16.5px; line-height: 1.72; margin-bottom: 20px; }
.article p.standfirst { color: var(--ink); font-size: 19px; line-height: 1.6; }
.article h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 44px 0 14px;
    line-height: 1.2;
}
.article ul { padding-left: 0; list-style: none; margin-bottom: 20px; }
.article ul li {
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.72;
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
}
.article ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}
.article a { color: var(--accent-ink); }
[data-theme="dark"] .article a { color: var(--accent); }
.article .pullquote {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.35;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
    margin: 36px 0;
}
.article-foot {
    border-top: 3px double var(--line);
    margin-top: 48px;
    padding-top: 26px;
    color: var(--muted);
    font-size: 14px;
}
.article-foot a { color: var(--accent-ink); font-weight: 600; }
[data-theme="dark"] .article-foot a { color: var(--accent); }

/* ========== FLOW DIAGRAM (what happens to your file) ========== */
.flow { display: grid; grid-template-columns: 1.55fr 1fr; border: 1px solid var(--line); background: var(--panel); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

.flow-tag {
    display: block;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 18px 24px 0;
}
.flow-hidden { border-right: 1px solid var(--line); }
@media (max-width: 860px) { .flow-hidden { border-right: none; border-bottom: 1px solid var(--line); } }

.flow-steps { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 10px 10px; }
@media (max-width: 520px) { .flow-steps { grid-template-columns: 1fr; } }
.flow-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; }
.flow-step span {
    flex: none;
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--line);
    line-height: 1.1;
}
.flow-step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.flow-out { background: var(--ink); display: flex; flex-direction: column; }
.flow-out .flow-tag { color: color-mix(in srgb, var(--gold) 85%, white); }
.flow-verdict {
    font-family: var(--font-serif);
    font-size: 21px;
    line-height: 1.3;
    color: var(--paper);
    padding: 14px 24px 8px;
}
.flow-out .flow-foot {
    margin-top: auto;
    padding: 0 24px 22px;
    font-size: 13px;
    color: color-mix(in srgb, var(--paper) 62%, transparent);
}
[data-theme="dark"] .flow-out { background: #05070A; border-left: 1px solid var(--line); }
@media (max-width: 860px) { [data-theme="dark"] .flow-out { border-left: none; border-top: 1px solid var(--line); } }
[data-theme="dark"] .flow-verdict { color: var(--ink); }
[data-theme="dark"] .flow-out .flow-foot { color: var(--muted); }

.flow-caption { color: var(--ink-2); font-size: 15.5px; max-width: 660px; margin-top: 20px; }

/* ========== VIDEO (click-to-load facade — no YouTube request until play) ========== */
.video { border: 1px solid var(--line); background: var(--panel); }
.video-play {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: var(--ink);
    cursor: pointer;
    overflow: hidden;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.video-play:hover img { opacity: .82; }
.video-btn {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 74px; height: 74px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
}
.video-play:hover .video-btn { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.video-btn svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--ink); }
.video-play:hover .video-btn svg { fill: #fff; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-cap {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--ink-2);
}
.video-cap a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
[data-theme="dark"] .video-cap a { color: var(--accent); }

/* two videos side by side, labelled by audience */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }
.video-who {
    display: block;
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}

/* The Lab — progression motif (two shipped, more ahead) */
.lab-motif { display: block; width: 300px; max-width: 100%; height: 46px; margin: 2px 0 20px; overflow: visible; }
.lab-motif .lm-line  { stroke: var(--line); stroke-width: 1.2; }
.lab-motif .lm-done  { fill: var(--accent); }
.lab-motif .lm-next  { fill: var(--panel); stroke: var(--muted); stroke-width: 1.5; }
.lab-motif .lm-arrow { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lab-motif .lm-cap   { fill: var(--muted); font-size: 8.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.lab-motif .lm-cap.on { fill: var(--accent-ink); }
[data-theme="dark"] .lab-motif .lm-cap.on { fill: var(--accent); }
