.cv {
    --cv-bg: #111717;
    --cv-panel: #182121;
    --cv-text: #eff5f2;
    --cv-muted: #b1c6bd;
    --cv-edge: #344841;
    --cv-accent: #8bf0be;
    --cv-on-accent: #112218;
    --cv-heading: ui-monospace, Consolas, monospace;
    --cv-radius: 10px;
    color-scheme: dark;
    background: var(--cv-bg);
    color: var(--cv-text);
    font: 1rem/1.6 system-ui, sans-serif;
    min-height: 100vh;
    overflow-wrap: anywhere;
}
.cv--editorial {
    --cv-bg: #f5f0e7;
    --cv-panel: #fffaf1;
    --cv-text: #2b2823;
    --cv-muted: #625b50;
    --cv-edge: #d7cbb8;
    --cv-accent: #7b3c29;
    --cv-on-accent: #fffaf1;
    --cv-heading: Georgia, serif;
    --cv-radius: 4px;
    color-scheme: light;
}
.cv--minimal {
    --cv-bg: #fff;
    --cv-panel: #f5f7fb;
    --cv-text: #182235;
    --cv-muted: #515c70;
    --cv-edge: #d2d9e5;
    --cv-accent: #244eb2;
    --cv-on-accent: #fff;
    --cv-heading: system-ui, sans-serif;
    --cv-radius: 12px;
    color-scheme: light;
}
.cv--alex-kent {
    --cv-bg: #eef1f5;
    --cv-panel: #fff;
    --cv-text: #14273a;
    --cv-muted: #46586c;
    --cv-edge: #d5dce4;
    --cv-accent: #1a3a5c;
    --cv-on-accent: #fff;
    --cv-heading: Archivo, "Helvetica Neue", Arial, sans-serif;
    --cv-radius: 14px;
    color-scheme: light;
    font-family: var(--cv-heading);
}
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
.cv [hidden] { display: none !important; }
.cv-wrap { width: min(100% - 2rem, 69rem); margin-inline: auto; padding-block: clamp(2.5rem, 7vw, 6rem); }
.cv h1, .cv h2, .cv h3, .cv p { margin: 0; }
.cv h1, .cv h2, .cv h3 { color: var(--cv-text); font-family: var(--cv-heading); line-height: 1.16; overflow-wrap: anywhere; }
.cv h1 { font-size: clamp(2.7rem, 9vw, 6rem); letter-spacing: -.055em; }
.cv h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -.025em; }
.cv h3 { font-size: 1.12rem; }
.cv a, .cv summary { color: var(--cv-accent); text-underline-offset: .2em; }
.cv button {
    color: var(--cv-accent);
    background: var(--cv-panel);
    font: inherit;
    border: 1px solid var(--cv-edge);
    border-radius: var(--cv-radius);
    padding: .35rem .75rem;
    cursor: pointer;
}
.cv button:hover, .cv summary:hover { border-color: var(--cv-accent); }
.cv :focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 4px; }
.cv .cv-headline { color: var(--cv-accent); font: 600 clamp(1rem, 2.6vw, 1.35rem)/1.35 var(--cv-heading); margin-top: .85rem; }
.cv .cv-intro { max-width: 66ch; white-space: pre-line; margin-top: 1rem; color: var(--cv-muted); font-size: 1.08rem; }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.cv .cv-primary { background: var(--cv-accent); color: var(--cv-on-accent); border-radius: var(--cv-radius); padding: .55rem .95rem; text-decoration: none; font-weight: 650; }
.cv-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.45rem 0 0; padding-top: 1rem; border-top: 1px solid var(--cv-edge); }
.cv-facts dt, .cv-meta { color: var(--cv-muted); font-size: .82rem; }
.cv-facts dd { margin: 0; }
.cv-wrap > section { margin-top: clamp(2rem, 5vw, 4rem); }
.cv-skill-section > p { margin-top: .5rem; color: var(--cv-muted); }
.cv-skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.2rem 1.5rem; margin-top: 1.15rem; }
.cv-skill-group h3 { margin-bottom: .5rem; }
.cv-tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.cv .cv-tag { display: inline-block; border: 1px solid var(--cv-edge); border-radius: 1.5rem; padding: .22rem .62rem; color: var(--cv-text); font-size: .86rem; text-align: left; }
.cv .cv-tag[aria-pressed="true"] { background: var(--cv-accent); border-color: var(--cv-accent); color: var(--cv-on-accent); }
.cv [data-cv-clear] { margin-top: 1rem; }
.cv-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; }
.cv [data-cv-count] { margin-top: .5rem; color: var(--cv-muted); }
.cv-project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: .9rem; margin-top: 1rem; }
.cv-project { border: 1px solid var(--cv-edge); border-radius: var(--cv-radius); overflow: hidden; background: var(--cv-panel); }
.cv-project-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--cv-bg); }
.cv-project-body { padding: 1.15rem; }
.cv-project-body h3 { margin-top: .35rem; }
.cv .cv-project-summary { margin-top: .5rem; }
.cv-project details { margin-top: .7rem; }
.cv-project summary { width: fit-content; cursor: pointer; }
.cv [data-cv-detail-content] { margin-top: .7rem; }
.cv .cv-detail-text { margin-block: .75rem; white-space: pre-line; }
.cv-detail-image { display: block; max-width: 100%; height: auto; margin-block: .75rem; border: 1px solid var(--cv-edge); }
.cv-dialog { width: min(90vw, 48rem); max-height: 88vh; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--cv-edge); border-radius: var(--cv-radius); background: var(--cv-panel); color: var(--cv-text); }
.cv-dialog::backdrop { background: #000b; }
.cv-dialog form { display: flex; justify-content: end; margin: 0 0 .75rem; }
.cv-dialog .cv-meta { margin-top: .5rem; }
.cv-dialog .cv-tags, .cv [data-cv-detail-content] .cv-tags { margin-top: .75rem; }
.cv-history > div { margin-top: .9rem; padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--cv-edge); }
.cv-history p { color: var(--cv-muted); margin-top: .3rem; white-space: pre-line; }
.cv-banner { overflow: hidden; border: 1px solid var(--cv-edge); border-radius: var(--cv-radius); }
.cv-banner-stage { position: relative; isolation: isolate; height: clamp(12rem, 44vw, 29rem); overflow: hidden; touch-action: pan-y; }
.cv-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.cv-slide-active { opacity: 1; pointer-events: auto; z-index: 1; }
.cv-slide-backdrop, .cv-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-slide-backdrop { object-fit: cover; filter: blur(28px) brightness(.55); transform: scale(1.12); }
.cv-slide-image { object-fit: contain; }
.cv-slide figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: .7rem 1rem; background: #111d; }
.cv-slide figcaption a { color: #fff; }
.cv-banner-controls { display: flex; align-items: center; justify-content: end; gap: .5rem; padding: .5rem; background: var(--cv-panel); }
.cv-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cv--alex-kent .cv-wrap { max-width: 1060px; padding-block: clamp(16px, 3vw, 40px); }
.cv--alex-kent .cv-header {
    padding: clamp(24px, 5vw, 56px);
    border: 1px solid var(--cv-edge);
    border-top: 3px solid #e35205;
    border-radius: var(--cv-radius);
    box-shadow: 0 18px 40px -28px #14273a59;
    background: var(--cv-panel);
}
.cv--alex-kent h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
.cv--alex-kent h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; }
.cv--alex-kent .cv-headline, .cv--alex-kent .cv-facts dt, .cv--alex-kent .cv-meta {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.cv--alex-kent .cv-headline { color: #a63c00; font-size: .88rem; }
.cv--alex-kent .cv-primary { border-radius: 8px; }
.cv--alex-kent .cv-tag { border-radius: 4px; }
.cv--alex-kent .cv-tag:not([aria-pressed="true"]) { background: #e8eef5; }
.cv--alex-kent :focus-visible { outline-color: #be4707; }
@media (prefers-reduced-motion: reduce) { .cv-slide { transition: none; } }
@media print {
    .cv { --cv-bg: #fff; --cv-panel: #fff; --cv-text: #111; --cv-muted: #333; --cv-accent: #111; --cv-edge: #999; color-scheme: light; }
    .cv-wrap { width: auto; padding: 0; }
    .cv-banner, .cv-actions, .cv summary, .cv [data-cv-filter-help], .cv [data-cv-clear] { display: none; }
    .cv-project, .cv-history > div { break-inside: avoid; }
}
