/* ============================================================
   Blueprint: It's René design system (PRD-001, ADR-0001/0004)
   Two colors. One motif { }. One line.
   ============================================================ */

:root {
    /* Ink (dark) is the default */
    --bg: #17181A;
    --bg-2: #1E2023;
    --text: #E8E9EA;
    --dim: #9A9DA2;
    --brand: #38A7DA;
    --brand-soft: rgba(56, 167, 218, 0.10);
    --hairline: #2C2E33;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --nav-height: 64px;
    --content: 1080px;
}

[data-theme="light"] {
    --bg: #FAFAF9;
    --bg-2: #FFFFFF;
    --text: #26272A;
    --dim: #5C5F66;
    --brand: #2288BC;
    --brand-soft: rgba(34, 136, 188, 0.10);
    --hairline: #E4E4E1;
}

/* Self-hosted variable fonts (ADR-0005): no Google Fonts requests, latin subset */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/inter-var-latin.woff2') format('woff2');
    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: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-var-latin.woff2') format('woff2');
    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;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1rem; }
img { max-width: 100%; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Focus outclasses hover (RESEARCH.md R2) */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

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

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--brand);
    color: #fff;
    padding: 0.6rem 1rem;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- shared vocabulary ---- */
.mono {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
}
.mono .brace { color: var(--brand); text-transform: none; }

.container { max-width: var(--content); margin: 0 auto; padding: 0 24px; }

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.9rem 0 1.6rem;
}

section { padding: 4.5rem 0 2rem; scroll-margin-top: calc(var(--nav-height) + 8px); }
section + section .container { border-top: 1px solid transparent; }

/* ---- navbar ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
}

.nav-container {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand a { display: flex; align-items: center; }
.logo { height: 40px; width: auto; }

.nav-menu { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-link {
    text-decoration: none;
    color: var(--dim);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); border-bottom-color: var(--brand); }
.nav-link.active { color: var(--text); border-bottom-color: var(--brand); }

.nav-actions { display: flex; align-items: center; }

@media (max-width: 639px) {
    .logo { height: 34px; }
    .company-logo { display: none; }
    .nav-container { padding: 0 16px; gap: 0.5rem; }
    .nav-menu { gap: 0.55rem; }
    .nav-link { font-size: 0.78rem; }
}
.theme-toggle {
    font-family: var(--font-mono);
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--text);
}
.theme-toggle:hover { border-color: var(--brand); }

/* ---- trace rail (the one signature interaction, ADR-0004) ---- */
.trace-rail { position: absolute; top: 0; left: -56px; bottom: 0; width: 24px; }
.trace-rail svg { overflow: visible; }
.trace-rail .track { stroke: var(--hairline); stroke-width: 1.5; fill: none; }
.trace-rail .draw { stroke: var(--brand); stroke-width: 1.5; fill: none; }
.trace-rail .node { fill: var(--bg); stroke: var(--hairline); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.trace-rail .node.passed { fill: var(--brand); stroke: var(--brand); }

.page-layout { position: relative; max-width: var(--content); margin: 0 auto; padding: 0 24px; }
@media (max-width: 1259px) { .trace-rail { display: none; } }

/* ---- hero ---- */
.hero { padding: calc(var(--nav-height) + 5.5rem) 0 3rem; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 1.1rem 0 1.3rem;
}

.hero-subtitle { color: var(--dim); font-size: 1.05rem; max-width: 48ch; margin-bottom: 1.8rem; }

.hero-links { display: flex; gap: 1.8rem; align-items: center; }
.hero-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 2px solid var(--brand);
    padding-bottom: 2px;
}
.hero-links a.dim { border-bottom-color: var(--hairline); color: var(--dim); }
.hero-links a:hover { color: var(--brand); }

/* Duotone portrait */
.portrait { position: relative; max-width: 300px; justify-self: end; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 3px; filter: grayscale(1) contrast(1.05); }
.portrait::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 3px;
    background: var(--brand);
    mix-blend-mode: soft-light;
    opacity: 0.85;
    pointer-events: none;
}
.portrait .tag {
    position: absolute;
    left: -10px; bottom: 14px;
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 0.25rem 0.6rem;
}

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .portrait { justify-self: start; max-width: 200px; }
}

/* ---- proof / work rows ---- */
.work-rows { border-top: 1px solid var(--hairline); }
.work-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--hairline);
    align-items: baseline;
}
.work-row h3 { font-size: 1.05rem; font-weight: 700; }
.work-row p { color: var(--dim); font-size: 0.95rem; margin: 0; max-width: 62ch; }
.work-row .outcome { color: var(--text); font-size: 0.9rem; margin-top: 0.4rem; }
.work-row .outcome::before { content: "→ "; color: var(--brand); }
.work-tags {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    white-space: nowrap;
}
@media (max-width: 820px) {
    .work-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ---- how I work ---- */
.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    margin-top: 0.5rem;
}
.approach-item h3 { font-size: 1rem; font-weight: 700; margin: 0.5rem 0 0.4rem; }
.approach-item p { color: var(--dim); font-size: 0.95rem; margin: 0; max-width: 52ch; }
@media (max-width: 719px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---- experience ---- */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 0 0 2.2rem;
    font-variant-numeric: tabular-nums;
}
.stat b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; display: block; line-height: 1.1; }
.stat span { color: var(--dim); font-size: 0.82rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 5px; top: 10px; bottom: 10px;
    width: 1.5px;
    background: var(--hairline);
}
.timeline-item { position: relative; padding: 0.55rem 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -26px; top: 1.15rem;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--dim);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.timeline-item:first-child::before,
.timeline-item:hover::before,
.timeline-item:focus-within::before {
    background: var(--brand);
    border-color: var(--brand);
}
.timeline-item:hover::before, .timeline-item:focus-within::before {
    box-shadow: 0 0 0 4px var(--brand-soft);
}

/* Pulse: a packet routes up the trace from the hovered node (RESEARCH.md R1) */
.timeline-item::after {
    content: "";
    position: absolute;
    left: -22.5px; top: 1.3rem;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0;
    pointer-events: none;
}
.timeline-item.pulse::after {
    animation: packet 0.9s ease-out;
}
@keyframes packet {
    0% { opacity: 0.9; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-90px); }
}
@media (prefers-reduced-motion: reduce) {
    .timeline-item.pulse::after { animation: none; }
}

.timeline-item summary {
    cursor: pointer;
    padding: 0.35rem 1.4rem 0.35rem 0;
    min-height: 28px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    position: relative;
}
.timeline-item summary::-webkit-details-marker { display: none; }
.timeline-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    color: var(--dim);
    position: absolute;
    right: 0;
    top: 0.35rem;
}
.timeline-item details[open] summary::after { content: "−"; }

.role { font-weight: 600; font-size: 0.98rem; }
.company { color: var(--dim); font-size: 0.98rem; }
.period {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--dim);
    white-space: nowrap;
}
.company-logo { height: 18px; width: auto; filter: grayscale(1); opacity: 0.65; transition: filter 0.25s, opacity 0.25s; }
.timeline-item:hover .company-logo { filter: none; opacity: 1; }
[data-theme="dark"] .company-logo.logo-backbase { filter: invert(1) grayscale(1) brightness(1.4); }
[data-theme="dark"] .timeline-item:hover .company-logo.logo-backbase { filter: invert(1) brightness(1.4); }

.timeline-item details > p, .timeline-item .experience-highlights {
    color: var(--dim);
    font-size: 0.92rem;
    margin: 0.6rem 0 0.4rem;
    max-width: 68ch;
}
.experience-highlights { padding-left: 1.1rem; }
.experience-highlights li { margin-bottom: 0.35rem; }
.experience-highlights strong { color: var(--text); }

/* ---- writing ---- */
.writing-intro { color: var(--dim); max-width: 62ch; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-top: 1.6rem;
}
.article-card {
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1.4rem 1.5rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: background 0.25s, border-color 0.25s;
}
a.article-card:hover { border-color: var(--brand); }
a.article-card:hover { background: var(--brand-soft); }
.article-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0.55rem 0 0.45rem; }
.article-card p { color: var(--dim); font-size: 0.9rem; margin: 0 0 0.6rem; }
.article-card.placeholder { opacity: 0.65; }

.article-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}
.article-meta .article-category { color: var(--brand); }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.tag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--dim);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 0.1rem 0.45rem;
}
.read-more { color: var(--brand); font-size: 0.85rem; font-weight: 600; }

/* ---- contact ---- */
.contact .lead { font-size: 1.15rem; max-width: 52ch; }
.contact-methods { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.4rem 0; align-items: flex-start; }
.contact-method {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--brand);
    padding-bottom: 2px;
    cursor: pointer;
}
.contact-method:hover { color: var(--brand); }
.contact-icon { display: none; }

.motto {
    font-family: var(--font-mono);
    font-size: clamp(1.05rem, 2.6vw, 1.5rem);
    font-weight: 600;
    margin: 3rem 0 0.6rem;
}
.motto .brace { color: var(--brand); font-weight: 400; }
.motto-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.print-hint {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.04em;
    margin-top: 2rem;
}
.print-hint .brace { color: var(--brand); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--hairline); padding: 2rem 0 2.5rem; margin-top: 3rem; }
.footer-text p { margin: 0 0 0.3rem; font-size: 0.85rem; color: var(--dim); }
.colophon { font-size: 0.78rem; color: var(--dim); line-height: 1.5; max-width: 68ch; }
.colophon .brace { color: var(--brand); }

/* ---- reveal (subtle, CSS transition only) ---- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---- speaking ---- */
.topic-list { border-top: 1px solid var(--hairline); margin-top: 0.5rem; }
.topic {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--hairline);
}
.topic .idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brand); padding-top: 0.3rem; }
.topic h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.topic p { color: var(--dim); font-size: 0.95rem; margin: 0; max-width: 62ch; }
.bio-box {
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1.3rem 1.5rem;
    max-width: 68ch;
    margin: 1.2rem 0;
}
.bio-box p { margin: 0; font-size: 0.98rem; }
@media (max-width: 639px) { .topic { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ============================================================
   Blog
   ============================================================ */

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--brand);
    z-index: 1001;
}

.blog-hero { padding: calc(var(--nav-height) + 4rem) 0 1rem; }
.blog-hero .hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
.hero-title .title-main { display: block; }
.hero-title .title-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--dim);
    margin-top: 0.7rem;
    text-transform: none;
}
.hero-title .title-sub::before { content: '{ '; color: var(--brand); }
.hero-title .title-sub::after { content: ' }'; color: var(--brand); }
.blog-hero .hero-subtitle { margin-bottom: 0.5rem; }

.blog-list { padding-top: 1.5rem; }
.series-section { margin-bottom: 2.5rem; }
.series-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.4rem; }
.series-intro { color: var(--dim); font-size: 0.95rem; max-width: 68ch; margin: 0 0 0.8rem; }

.blog-cta { padding: 2rem 0 3rem; }
.blog-cta h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.blog-cta p { color: var(--dim); max-width: 62ch; }
.hero-cta { display: flex; gap: 1.6rem; margin-top: 1rem; }
.btn {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 2px solid var(--brand);
    padding-bottom: 2px;
}
.btn-secondary { border-bottom-color: var(--hairline); color: var(--dim); }
.btn:hover { color: var(--brand); }

/* article page */
.blog-article { padding: calc(var(--nav-height) + 3.5rem) 0 2rem; }
.blog-article .container { max-width: 820px; }

.article-header { margin-bottom: 2.2rem; }
.article-series {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 0.8rem;
}
.article-header h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
.article-header .article-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}

.article-content { font-size: 1.02rem; }
.article-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 2.4rem 0 0.9rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--hairline);
}
.article-content h3 { font-size: 1.12rem; font-weight: 700; margin: 1.8rem 0 0.7rem; }
.article-content h4 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 0.5rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.article-content li { margin-bottom: 0.3rem; }
.article-content hr { border: none; border-top: 1px solid var(--hairline); margin: 2rem 0; }
.article-content hr + h2 { border-top: none; padding-top: 0; }
.article-content blockquote {
    margin: 1.2rem 0;
    padding: 0.2rem 0 0.2rem 1.1rem;
    border-left: 2px solid var(--brand);
    color: var(--dim);
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 0.08em 0.35em;
}
.article-content pre {
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    margin: 0 0 1.2rem;
    line-height: 1.5;
}
.article-content pre code { background: none; border: none; padding: 0; font-size: 0.82rem; }

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1.2rem;
    font-size: 0.92rem;
    display: block;
    overflow-x: auto;
}
.article-content th, .article-content td {
    text-align: left;
    padding: 0.5rem 0.9rem 0.5rem 0;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}
.article-content th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    font-weight: 500;
}

.article-content .mermaid {
    background: var(--bg-2);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1rem;
    margin: 0 0 1.2rem;
    text-align: center;
    overflow-x: auto;
}

.series-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--hairline);
    margin-top: 2.5rem;
    padding-top: 1.2rem;
}
.series-nav a { font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--text); }
.series-nav a:hover { color: var(--brand); }

.article-footer { margin-top: 1.5rem; }
.back-link { font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--dim); }
.back-link:hover { color: var(--brand); }

/* ============================================================
   Konami easter egg (it stays, restyled)
   ============================================================ */
.easter-egg {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(6px);
    z-index: 10000;
    padding: 1.5rem;
}
.easter-egg.active { display: flex; }
.easter-egg > * { max-width: 420px; }
.easter-egg h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 0.6rem; }
.easter-egg-subtitle { color: var(--dim); }
.easter-egg-stats { display: flex; gap: 2.5rem; justify-content: center; margin: 1.2rem 0; }
.easter-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.easter-stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.easter-egg-links { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.5rem 0 1rem; }
.easter-egg-links a { color: var(--text); text-decoration: none; font-weight: 600; border: 1px solid var(--hairline); border-radius: 3px; padding: 0.6rem 1rem; }
.easter-egg-links a:hover { border-color: var(--brand); color: var(--brand); }
.link-desc { display: block; font-weight: 400; font-size: 0.8rem; color: var(--dim); }
.easter-egg-footer { color: var(--dim); font-size: 0.85rem; }
.easter-egg-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 3px;
    color: var(--text);
    font-size: 1.1rem;
    width: 2.2rem; height: 2.2rem;
    cursor: pointer;
}
.easter-egg-close:hover { border-color: var(--brand); }
@keyframes confettiFall {
    to { transform: translateY(105vh) rotate(720deg); }
}

/* ============================================================
   Print = CV (backlog E1)
   ============================================================ */
@media print {
    @page { margin: 1.4cm; }

    .rv { opacity: 1 !important; transform: none !important; }

    body { background: #fff !important; color: #1a1a1a !important; font-size: 10.5pt; line-height: 1.45; }

    .navbar, .trace-rail, .hero-links, .portrait, .writing, .footer,
    .print-hint, .theme-toggle, .scroll-progress, .easter-egg, .motto, .motto-sub {
        display: none !important;
    }

    section, .hero { padding: 0.4cm 0 !important; }
    .hero-grid { display: block; }

    /* Name exists only in the logo on screen; put it in type for paper */
    .hero-title::before {
        content: "René Nijkamp";
        display: block;
        font-size: 22pt;
        font-weight: 800;
        margin-bottom: 0.15cm;
    }
    .hero-title { font-size: 13pt; color: #333 !important; margin: 0 0 0.3cm; }
    .hero-subtitle { color: #333 !important; max-width: none; }
    .mono, .work-tags, .period { color: #555 !important; }
    .mono .brace { color: #555 !important; }

    .section-title { font-size: 13pt; margin: 0 0 0.3cm; page-break-after: avoid; }

    .work-row { grid-template-columns: 1fr; gap: 0.1cm; break-inside: avoid; padding: 0.25cm 0; }
    .work-row p, .approach-item p { color: #444 !important; font-size: 9.5pt; max-width: none; }
    .work-row .outcome { color: #1a1a1a !important; }

    .approach-grid { gap: 0.4cm 1cm; }

    .stats-row { gap: 1.2cm; margin-bottom: 0.4cm; }
    .stat span { color: #555 !important; }

    .timeline::before { display: none; }
    .timeline { padding-left: 0; }
    .timeline-item { break-inside: avoid; padding: 0.18cm 0; }
    .timeline-item::before, .timeline-item::after { display: none; }
    .timeline-item summary::after { display: none; }
    .company-logo { display: none; }
    .role { color: #1a1a1a !important; }
    .company { color: #333 !important; }
    .timeline-item details > p, .experience-highlights { color: #444 !important; font-size: 9.5pt; max-width: none; }

    .contact .lead { color: #333 !important; }
    .contact-method { color: #1a1a1a !important; border-bottom: none; }

    a { color: #1a1a1a !important; text-decoration: none !important; }
}
