/* ============================================================
   Bohdan Humennyi — CV landing
   Light and dark themes share one set of tokens; teal is the
   only accent. No motion beyond hover feedback.
   ============================================================ */

/* =========================
   1. TOKENS
   ========================= */

:root {
    color-scheme: light;

    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-2: #eef3f2;
    --line: #dde6e4;
    --text: #0c1716;
    --text-2: #46585a;
    --text-3: #5f7072;
    --accent: #00b398;
    --accent-hover: #00c9ab;
    --accent-ink: #03201b;
    --accent-text: #007565;
    --accent-soft: rgba(0, 179, 152, 0.1);
    --chart: #00a089;
    --glow: rgba(0, 179, 152, 0.2);
    --glow-2: rgba(80, 150, 255, 0.1);
    --grid-line: rgba(12, 23, 22, 0.05);
    --shadow: 0 1px 2px rgba(12, 23, 22, 0.04), 0 12px 32px -12px rgba(12, 23, 22, 0.12);
    --nav-bg: rgba(244, 247, 246, 0.8);

    --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius: 22px;
    --radius-sm: 12px;
    --wrap: 1120px;
    --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --bg: #090c0d;
        --surface: #101617;
        --surface-2: #161e20;
        --line: #212c2e;
        --text: #eef4f3;
        --text-2: #a7b6b5;
        --text-3: #7f8f8e;
        --accent: #2dd4b8;
        --accent-hover: #55e3cb;
        --accent-ink: #03201b;
        --accent-text: #4be0c8;
        --accent-soft: rgba(45, 212, 184, 0.12);
        --chart: #2dd4b8;
        --glow: rgba(45, 212, 184, 0.18);
        --glow-2: rgba(70, 130, 255, 0.1);
        --grid-line: rgba(255, 255, 255, 0.04);
        --shadow: none;
        --nav-bg: rgba(9, 12, 13, 0.75);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #090c0d;
    --surface: #101617;
    --surface-2: #161e20;
    --line: #212c2e;
    --text: #eef4f3;
    --text-2: #a7b6b5;
    --text-3: #7f8f8e;
    --accent: #2dd4b8;
    --accent-hover: #55e3cb;
    --accent-ink: #03201b;
    --accent-text: #4be0c8;
    --accent-soft: rgba(45, 212, 184, 0.12);
    --chart: #2dd4b8;
    --glow: rgba(45, 212, 184, 0.18);
    --glow-2: rgba(70, 130, 255, 0.1);
    --grid-line: rgba(255, 255, 255, 0.04);
    --shadow: none;
    --nav-bg: rgba(9, 12, 13, 0.75);
}

/* =========================
   2. BASE
   ========================= */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h2 {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h3 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* =========================
   3. BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 26px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.005em;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--text-3); transform: translateY(-1px); }

.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-2);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover { color: var(--text); border-color: var(--text-3); }

/* the icon shows the theme you would switch to */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* =========================
   4. NAV
   ========================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav__name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

.nav__links { display: none; gap: 30px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* =========================
   5. HERO
   ========================= */

.hero { position: relative; padding: 56px 0 72px; isolation: isolate; }

/* static backdrop: two soft glows over a fading grid */
.hero::before {
    content: '';
    position: absolute;
    inset: calc(var(--nav-h) * -1) 0 0;
    z-index: -1;
    background:
        radial-gradient(620px 420px at 82% 22%, var(--glow), transparent 70%),
        radial-gradient(520px 380px at 6% 0%, var(--glow-2), transparent 70%),
        linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
    pointer-events: none;
}

.hero__grid { display: grid; gap: 44px; align-items: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 26px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 999px;
}

.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

h1 {
    font-size: clamp(50px, 9.4vw, 104px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

h1 span {
    display: block;
    background: linear-gradient(100deg, var(--accent-text), var(--accent) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.08em;
}

.hero__role {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
}

.hero__lead {
    max-width: 30em;
    margin-top: 22px;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.5;
    color: var(--text-2);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.print-contacts { display: none; }

.hero__photo { position: relative; width: min(100%, 380px); justify-self: center; }

.hero__photo::before {
    content: '';
    position: absolute;
    inset: 8%;
    z-index: -1;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}

.hero__photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.tag {
    position: absolute;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.tag--top { top: 22px; right: -14px; }
.tag--bottom { bottom: 22px; left: -14px; }

.kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 60px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.kpis li { padding: 26px 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }

.kpis b {
    display: block;
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kpis span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* =========================
   6. SECTIONS
   ========================= */

.section { padding: 80px 0; }
.section--last { padding-bottom: 96px; }

.head { max-width: 720px; margin-bottom: 40px; }
.head p { margin-top: 14px; font-size: 18px; color: var(--text-2); }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-text);
}

.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }

/* about */
.statement {
    max-width: 22em;
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.statement span { color: var(--text-3); }

.focus { display: grid; gap: 28px; margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--line); }
.focus h3 { font-size: 19px; }
.focus p { margin-top: 8px; font-size: 16px; color: var(--text-2); }

/* =========================
   7. CARDS / PROJECTS
   ========================= */

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.meta { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: var(--text-3); }

.card h3 { margin-top: 12px; }

.card__lead { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

.stats { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: auto 0 24px; padding-top: 24px; }
.stats li { min-width: 0; }

.stats b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stats span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--text-2); }

.stats--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats--two b { font-size: 24px; }

.stack { padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }

.subhead { margin-bottom: 20px; }
.subhead p { margin-top: 4px; font-size: 16px; color: var(--text-2); }

.featured { display: grid; gap: 16px; margin-bottom: 56px; }

.feature { gap: 28px; padding: 32px; }
.feature__text { display: flex; flex-direction: column; min-width: 0; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; }
.feature .stats b { font-size: clamp(26px, 2.7vw, 32px); }

.grid { display: grid; gap: 16px; }

/* =========================
   8. CHART — single-series bars
   ========================= */

.chart { min-width: 0; padding: 22px; background: var(--surface-2); border-radius: 16px; }

.chart figcaption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.chart figcaption span { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--text-3); white-space: nowrap; }

.chart__plot { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--line); }

.chart__bar {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    outline: none;
}

.chart__bar i {
    display: block;
    width: 100%;
    max-width: 48px;
    background: var(--chart);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.chart__bar:hover i,
.chart__bar:focus-visible i { opacity: 1; }

/* selective direct labels wear text tokens, never the series colour */
.chart__bar em {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -6px);
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.chart__bar::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--bg);
    background: var(--text);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.15s ease;
}

.chart__bar.is-start::after { left: 0; transform: none; }
.chart__bar.is-end::after { left: auto; right: 0; transform: none; }
.chart__bar:hover::after,
.chart__bar:focus-visible::after { opacity: 1; }

.chart__axis { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* the table is the no-JS fallback and the accessible view */
.chart__data { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text-2); }
.chart__data caption { text-align: left; padding-bottom: 8px; }
.chart__data th, .chart__data td { padding: 4px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.chart__data th:last-child, .chart__data td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.chart.is-built .chart__data {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================
   9. INCIDENTS
   ========================= */

.incidents { display: grid; gap: 16px; }

.incidents li {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.incidents b { display: block; font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.incidents p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* =========================
   10. EXPERIENCE
   ========================= */

.timeline { border-top: 1px solid var(--line); }

.job { display: grid; gap: 8px; padding: 30px 0; border-bottom: 1px solid var(--line); }

.job__when { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); padding-top: 4px; }

.job__where { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--accent-text); }

.job ul { display: grid; gap: 8px; margin-top: 16px; }

.job ul li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

.job ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

/* =========================
   11. SKILLS
   ========================= */

.skills { display: grid; gap: 22px; }

.skills dt { margin-bottom: 10px; font-size: 16px; font-weight: 700; }

.skills dd { display: flex; flex-wrap: wrap; gap: 8px; }

.skills dd span {
    padding: 7px 14px;
    font-size: 15px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.extras { display: grid; gap: 36px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.extras h3 { margin-bottom: 18px; }
.extras ul { display: grid; gap: 16px; }
.extras li b { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.extras li span { display: block; margin-top: 2px; font-size: 15px; color: var(--text-2); }

/* =========================
   12. CONTACT / FOOTER
   ========================= */

.contact {
    position: relative;
    padding: 64px 28px;
    text-align: center;
    background:
        radial-gradient(520px 260px at 50% 0%, var(--glow), transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact h2 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.04em; }
.contact p { margin-top: 14px; font-size: 18px; color: var(--text-2); }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.contact__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-top: 28px;
    font-size: 15px;
    color: var(--text-2);
}

.contact__list a:hover { color: var(--accent-text); }

.footer { padding: 26px 0 34px; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-3); }
.footer a:hover { color: var(--text); }

/* =========================
   13. RESPONSIVE
   ========================= */

@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .hero { padding: 36px 0 56px; }
    .section { padding: 60px 0; }
    .card, .feature, .incidents li { padding: 22px; }
    .chart { padding: 18px 16px; }
    .hero__cta .btn { flex: 1 1 auto; }
    .tag--top { right: -6px; }
    .tag--bottom { left: -6px; }
    .kpis li { padding: 22px 18px; }
    .contact { padding: 48px 20px; }
}

@media (min-width: 700px) {
    .kpis { grid-template-columns: repeat(4, 1fr); }
    .focus { grid-template-columns: repeat(3, 1fr); gap: 36px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .incidents { grid-template-columns: repeat(3, 1fr); }
    .job { grid-template-columns: 220px 1fr; gap: 28px; }
    .skills > div { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: baseline; }
    .skills dt { margin: 0; }
    .extras { grid-template-columns: 3fr 2fr; gap: 56px; }
}

@media (min-width: 960px) {
    .nav__links { display: flex; }
    .hero { padding: 72px 0 88px; }
    .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
    .hero__photo { justify-self: end; }
    .section { padding: 88px 0; }
    .feature .stats { flex-wrap: nowrap; gap: 28px; }
    .feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; padding: 40px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .job { grid-template-columns: 260px 1fr; }
    .skills > div { grid-template-columns: 260px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* =========================
   14. PRINT — always light, compact
   ========================= */

@media print {
    @page { margin: 13mm 13mm; }

    :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
        color-scheme: light;
        --bg: #ffffff;
        --surface: #ffffff;
        --surface-2: #f3f6f5;
        --line: #d5dedc;
        --text: #0c1716;
        --text-2: #333f40;
        --text-3: #55666a;
        --accent: #00a089;
        --accent-text: #007565;
        --accent-soft: transparent;
        --chart: #00a089;
        --glow: transparent;
        --glow-2: transparent;
        --grid-line: transparent;
        --shadow: none;
    }

    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    body { font-size: 10pt; line-height: 1.4; }

    .nav, .hero__cta, .contact__cta, .footer, .pill, .tag, .chart__bar::after,
    .hero__photo::before, .hero::before { display: none !important; }

    .wrap { max-width: none; padding: 0; }

    .hero { padding: 0 0 12px; }
    .hero__grid { grid-template-columns: 1fr 92px; gap: 20px; align-items: start; }
    .hero__photo { width: 92px; justify-self: end; }
    .hero__photo img { border-radius: 14px; }
    h1 { font-size: 27pt; letter-spacing: -0.03em; }
    h1 span { display: inline; background: none; color: var(--accent-text); -webkit-text-fill-color: currentColor; }
    .hero__role { margin-top: 6px; font-size: 10.5pt; }
    .hero__lead { max-width: none; margin-top: 8px; font-size: 10.5pt; }
    .print-contacts { display: block; margin-top: 8px; font-size: 9.5pt; color: var(--text-2); }

    .kpis { grid-template-columns: repeat(4, 1fr); margin-top: 14px; border-radius: 10px; }
    .kpis li { padding: 9px 12px; }
    .kpis b { font-size: 16pt; }
    .kpis span { margin-top: 4px; font-size: 8.5pt; }

    .section, .section--last { padding: 14px 0 0; }
    .head { max-width: none; margin-bottom: 8px; }
    .head p { margin-top: 2px; font-size: 9.5pt; }
    h2 { font-size: 14pt; letter-spacing: -0.02em; }
    h3, .feature h3, .focus h3 { font-size: 11pt; }
    .kicker { display: none; }

    .statement { max-width: none; font-size: 11pt; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
    .statement span { color: inherit; }
    .focus { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; padding-top: 8px; }
    .focus p { margin-top: 2px; font-size: 9.5pt; }

    .card, .incidents li { padding: 10px 12px; border-radius: 10px; break-inside: avoid; transform: none !important; }
    .featured, .grid, .incidents { gap: 6px; }
    .featured { margin-bottom: 12px; }
    .subhead { margin-bottom: 5px; }
    .subhead p { margin-top: 0; font-size: 9pt; }
    .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 10px 12px; align-items: center; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .incidents { grid-template-columns: repeat(3, 1fr); }
    .meta { font-size: 7.5pt; }
    .card h3 { margin-top: 3px; }
    .card__lead { margin-top: 3px; font-size: 9pt; line-height: 1.35; }
    .stats { gap: 6px 16px; margin: auto 0 7px; padding-top: 7px; }
    .stats b, .stats--two b, .feature .stats b { font-size: 12pt; }
    .stats span { margin-top: 0; font-size: 8pt; }
    .stack { padding-top: 5px; font-size: 7.5pt; }
    .chart { padding: 8px 10px; border-radius: 8px; }
    .chart figcaption { margin-bottom: 24px; font-size: 8.5pt; }
    .chart figcaption span { font-size: 8pt; }
    .chart__plot { height: 62px; }
    .chart__bar i { opacity: 1; }
    .chart__bar em { font-size: 8pt; }
    .chart__axis { margin-top: 3px; font-size: 7.5pt; }
    .incidents b { font-size: 10.5pt; }
    .incidents p { margin-top: 3px; font-size: 9pt; line-height: 1.35; }

    .job { grid-template-columns: 130px 1fr; gap: 14px; padding: 8px 0; break-inside: avoid; }
    .job__when { font-size: 8.5pt; padding-top: 2px; }
    .job__where { margin-top: 0; font-size: 9.5pt; }
    .job ul { gap: 2px; margin-top: 4px; }
    .job ul li { padding-left: 12px; font-size: 9.5pt; line-height: 1.35; }
    .job ul li::before { width: 5px; height: 1px; }

    .skills { gap: 4px; }
    .skills > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
    .skills dt { margin: 0; font-size: 9.5pt; }
    .skills dd { gap: 0 4px; }
    .skills dd span { padding: 0; border: none; background: none; font-size: 9.5pt; }
    .skills dd span:not(:last-child)::after { content: ','; }
    .extras { grid-template-columns: 3fr 2fr; gap: 24px; margin-top: 10px; padding-top: 8px; break-inside: avoid; }
    .extras h3 { margin-bottom: 4px; }
    .extras ul { gap: 4px; }
    .extras li b, .extras li span { font-size: 9.5pt; }

    #contact { display: none; }
}
