:root {
    --ink: #070b11;
    --panel: #101720;
    --paper: #edf0e9;
    --paper-2: #dfe4dc;
    --text: #11171d;
    --muted: #596360;
    --line: rgba(7, 11, 17, .18);
    --green: #b7ff62;
    --cyan: #65e7f1;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: #171d24;
}

body {
    margin: 0;
    color: var(--text);
    background: #171d24;
    font-family: var(--sans);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.cv-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    width: min(210mm, 100%);
    min-height: 62px;
    margin: 0 auto 24px;
    padding: 0 18px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: rgba(7,11,17,.94);
    color: #f4f6f1;
    backdrop-filter: blur(15px);
}

.cv-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.cv-brand span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--green);
    color: var(--green);
    letter-spacing: -.06em;
}

.cv-toolbar > div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cv-toolbar > div a {
    text-decoration: none;
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cv-download {
    padding: 10px 13px;
    background: var(--green);
    color: var(--ink);
}

.cv-document {
    width: 210mm;
    margin: 0 auto 40px;
}

.cv-page {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    margin: 0 0 22px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 22px 70px rgba(0,0,0,.3);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.cv-hero {
    position: relative;
    display: grid;
    height: 83mm;
    padding: 15mm;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
    color: #f7f8f3;
}

.cv-hero::before {
    position: absolute;
    top: 18mm;
    right: 18mm;
    width: 55mm;
    height: 55mm;
    border: .3mm solid rgba(183,255,98,.3);
    border-radius: 50%;
    content: "";
}

.cv-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .65;
    background:
        linear-gradient(rgba(255,255,255,.035) .25mm, transparent .25mm),
        linear-gradient(90deg, rgba(255,255,255,.035) .25mm, transparent .25mm);
    background-size: 10mm 10mm;
}

.cv-identity {
    position: relative;
    z-index: 2;
}

.cv-kicker,
.cv-section-label,
.cv-project-number {
    margin: 0 0 4mm;
    color: #5e6865;
    font-family: var(--mono);
    font-size: 7.5pt;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cv-hero .cv-kicker {
    color: var(--green);
}

.cv-identity h1 {
    margin: 0;
    font-size: 39pt;
    font-weight: 640;
    letter-spacing: -.065em;
    line-height: .83;
}

.cv-identity > p:last-child {
    margin: 6mm 0 0;
    color: #bfc7c8;
    font-size: 12pt;
}

.cv-hero img {
    position: absolute;
    z-index: 1;
    right: 10mm;
    bottom: -15mm;
    width: 67mm;
    height: 92mm;
    object-fit: contain;
    object-position: bottom;
    filter: saturate(.75) contrast(1.07);
}

.cv-coordinates {
    position: absolute;
    right: 7mm;
    bottom: 5mm;
    z-index: 3;
    margin: 0;
    color: var(--green);
    font-family: var(--mono);
    font-size: 6pt;
    font-weight: 800;
}

.cv-contact-row {
    display: flex;
    min-height: 13mm;
    padding: 0 15mm;
    align-items: center;
    justify-content: space-between;
    gap: 4mm;
    border-bottom: .25mm solid var(--line);
    background: var(--paper-2);
    font-family: var(--mono);
    font-size: 6.6pt;
    font-weight: 700;
}

.cv-contact-row a {
    text-decoration: none;
}

.cv-section {
    display: grid;
    grid-template-columns: 37mm 1fr;
    gap: 8mm;
    margin: 0 15mm;
    padding: 10mm 0;
    border-bottom: .25mm solid var(--line);
}

.cv-section-label {
    padding-top: 1mm;
}

.cv-section h2 {
    margin: 0;
    font-size: 21pt;
    letter-spacing: -.045em;
    line-height: 1;
}

.cv-summary > div > p {
    max-width: 125mm;
    margin: 5mm 0 0;
    color: var(--muted);
    font-size: 9.4pt;
}

.cv-role-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8mm;
}

.cv-role-heading h2 {
    font-size: 20pt;
}

.cv-role-heading p {
    margin: 1mm 0 0;
    color: var(--muted);
    font-size: 9pt;
    font-weight: 650;
}

.cv-role-heading span {
    padding: 2mm 3mm;
    border: .25mm solid var(--line);
    color: #3f4b46;
    font-family: var(--mono);
    font-size: 7pt;
    font-weight: 800;
    text-transform: uppercase;
}

.cv-bullets {
    margin: 6mm 0 0;
    padding: 0;
    list-style: none;
}

.cv-bullets li {
    position: relative;
    margin: 0;
    padding: 2.2mm 0 2.2mm 5mm;
    border-top: .25mm solid rgba(7,11,17,.1);
    color: #39433f;
    font-size: 8.1pt;
}

.cv-bullets li::before {
    position: absolute;
    top: 4mm;
    left: 0;
    width: 1.7mm;
    height: 1.7mm;
    background: #4b761d;
    content: "";
}

.cv-page-footer {
    position: absolute;
    right: 15mm;
    bottom: 7mm;
    left: 15mm;
    display: flex;
    justify-content: space-between;
    color: #69736f;
    font-family: var(--mono);
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cv-page-two {
    padding: 11mm 15mm 15mm;
}

.cv-page-header {
    display: flex;
    min-height: 36mm;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 0 6mm;
    border-bottom: .4mm solid var(--text);
}

.cv-page-header .cv-kicker {
    color: #4b761d;
}

.cv-page-header h2 {
    max-width: 135mm;
    margin: 0;
    font-size: 34pt;
    letter-spacing: -.06em;
    line-height: .9;
}

.cv-page-header > span {
    color: #64706c;
    font-family: var(--mono);
    font-size: 7pt;
    font-weight: 800;
}

.cv-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: .25mm solid var(--line);
}

.cv-projects article {
    padding: 6mm 8mm 6mm 0;
}

.cv-projects article + article {
    padding-right: 0;
    padding-left: 8mm;
    border-left: .25mm solid var(--line);
}

.cv-project-number {
    color: #4b761d;
}

.cv-projects h3 {
    margin: 0;
    font-size: 16pt;
    letter-spacing: -.04em;
    line-height: 1;
}

.cv-projects article > p:not(.cv-project-number) {
    min-height: 14mm;
    margin: 4mm 0;
    color: var(--muted);
    font-size: 8pt;
}

.cv-projects ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-projects li {
    padding: 1.5mm 0;
    border-top: .25mm solid rgba(7,11,17,.1);
    font-family: var(--mono);
    font-size: 6.7pt;
    font-weight: 700;
    text-transform: uppercase;
}

.cv-competencies {
    padding: 6mm 0;
    border-bottom: .25mm solid var(--line);
}

.cv-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: .25mm solid var(--line);
    border-left: .25mm solid var(--line);
}

.cv-capability-grid > div {
    min-height: 26mm;
    padding: 4mm;
    border-right: .25mm solid var(--line);
    border-bottom: .25mm solid var(--line);
}

.cv-capability-grid span {
    color: #4b761d;
    font-family: var(--mono);
    font-size: 6.3pt;
    font-weight: 800;
}

.cv-capability-grid h3 {
    margin: 3mm 0 1.5mm;
    font-size: 10pt;
}

.cv-capability-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 7pt;
}

.cv-facts {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 12mm;
    padding: 5mm 0;
}

.cv-facts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-facts li {
    display: grid;
    grid-template-columns: 22mm 1fr;
    gap: 3mm;
    padding: 1.7mm 0;
    border-top: .25mm solid rgba(7,11,17,.1);
    font-size: 7.5pt;
}

.cv-facts li strong {
    font-family: var(--mono);
}

.cv-facts li span,
.cv-facts > div > p:not(.cv-section-label) {
    color: var(--muted);
}

.cv-facts > div > p:not(.cv-section-label) {
    margin: 0;
    font-size: 8pt;
}

.cv-language-label {
    margin-top: 6mm;
}

.cv-ethics {
    display: grid;
    grid-template-columns: 35mm 1fr;
    gap: 6mm;
    padding: 4mm;
    border: .25mm solid rgba(183,255,98,.4);
    background: var(--ink);
    color: #d5dcda;
}

.cv-ethics span {
    color: var(--green);
    font-family: var(--mono);
    font-size: 6.5pt;
    font-weight: 800;
    text-transform: uppercase;
}

.cv-ethics p {
    margin: 0;
    font-size: 7pt;
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    html,
    body {
        background: white;
    }

    .cv-toolbar {
        display: none;
    }

    .cv-document {
        margin: 0;
    }

    .cv-page {
        margin: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }

    .cv-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}

@media screen and (max-width: 820px) {
    html,
    body {
        background: var(--paper);
    }

    .cv-toolbar {
        position: sticky;
        margin-bottom: 0;
    }

    .cv-toolbar > div a:first-child {
        display: none;
    }

    .cv-document {
        width: 100%;
        margin: 0;
    }

    .cv-page {
        width: 100%;
        min-height: 0;
        margin: 0;
        box-shadow: none;
    }

    .cv-page-one {
        padding-bottom: 26px;
    }

    .cv-hero {
        height: 370px;
        padding: 34px 22px;
        align-items: start;
    }

    .cv-identity h1 {
        font-size: clamp(2.9rem, 14vw, 4.6rem);
    }

    .cv-identity > p:last-child {
        max-width: 190px;
        margin-top: 20px;
        font-size: .92rem;
    }

    .cv-hero img {
        right: -12px;
        bottom: -50px;
        width: 230px;
        height: 345px;
    }

    .cv-hero::before {
        top: 95px;
        right: 6px;
        width: 220px;
        height: 220px;
    }

    .cv-coordinates {
        right: 14px;
        bottom: 12px;
    }

    .cv-contact-row {
        padding: 14px 22px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px 18px;
        font-size: .64rem;
    }

    .cv-section {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0 22px;
        padding: 34px 0;
    }

    .cv-section h2 {
        font-size: 2rem;
    }

    .cv-summary > div > p,
    .cv-role-heading p,
    .cv-bullets li {
        font-size: .85rem;
    }

    .cv-role-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cv-page-footer {
        position: static;
        margin: 24px 22px 0;
    }

    .cv-page-two {
        padding: 45px 22px 26px;
    }

    .cv-page-header {
        min-height: 0;
        padding-bottom: 30px;
    }

    .cv-page-header h2 {
        font-size: 2.7rem;
    }

    .cv-projects,
    .cv-facts {
        grid-template-columns: 1fr;
    }

    .cv-projects article {
        padding: 34px 0;
    }

    .cv-projects article + article {
        padding: 34px 0;
        border-top: .25mm solid var(--line);
        border-left: 0;
    }

    .cv-projects article > p:not(.cv-project-number) {
        min-height: 0;
        font-size: .82rem;
    }

    .cv-projects li {
        font-size: .66rem;
    }

    .cv-competencies {
        padding: 36px 0;
    }

    .cv-capability-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cv-capability-grid > div {
        min-height: 145px;
        padding: 14px;
    }

    .cv-capability-grid h3 {
        font-size: .95rem;
    }

    .cv-capability-grid p,
    .cv-facts li,
    .cv-facts > div > p:not(.cv-section-label) {
        font-size: .72rem;
    }

    .cv-ethics {
        grid-template-columns: 1fr;
        margin-top: 28px;
        padding: 17px;
    }

    .cv-ethics p {
        font-size: .72rem;
    }
}
