:root {
    --cv-bg: #07070b;
    --cv-bg-soft: #101018;
    --cv-surface: rgba(255, 255, 255, 0.055);
    --cv-surface-strong: rgba(255, 255, 255, 0.09);
    --cv-border: rgba(240, 200, 80, 0.16);
    --cv-border-soft: rgba(255, 255, 255, 0.09);
    --cv-text: #ffffff;
    --cv-muted: rgba(255, 255, 255, 0.62);
    --cv-dim: rgba(255, 255, 255, 0.42);
    --cv-gold: #d4a853;
    --cv-gold-bright: #f0c850;
    --cv-ink: #141419;
    --cv-paper: #fbf7ef;
    --cv-heading: 'Space Grotesk', sans-serif;
    --cv-body: 'DM Sans', sans-serif;
    --cv-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    font-family: var(--cv-body);
    background:
        radial-gradient(circle at 18% 10%, rgba(240, 200, 80, 0.18), transparent 30%),
        radial-gradient(circle at 86% 4%, rgba(212, 168, 83, 0.12), transparent 34%),
        linear-gradient(135deg, #050507 0%, #0b0b12 46%, #15110a 100%);
    color: var(--cv-text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 70%);
    z-index: -3;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.cv-ambient {
    position: fixed;
    inset: auto -12% -28% -12%;
    height: 520px;
    background: radial-gradient(circle, rgba(240, 200, 80, 0.2), transparent 58%);
    filter: blur(50px);
    opacity: 0.78;
    pointer-events: none;
    z-index: -2;
}

.cv-noise {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cv-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.cv-brand {
    position: relative;
    font-family: var(--cv-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.cv-brand::after {
    content: '';
    position: absolute;
    right: -14px;
    bottom: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cv-gold-bright);
    box-shadow: 0 0 24px rgba(240, 200, 80, 0.75);
}

.cv-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cv-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--cv-border-soft);
    font-family: var(--cv-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.35s var(--cv-ease), border-color 0.35s var(--cv-ease), background 0.35s var(--cv-ease), box-shadow 0.35s var(--cv-ease);
}

.cv-action:hover {
    transform: translateY(-2px);
}

.cv-action-ghost {
    color: var(--cv-muted);
    background: rgba(255, 255, 255, 0.04);
}

.cv-action-ghost:hover {
    border-color: rgba(240, 200, 80, 0.3);
    color: var(--cv-text);
}

.cv-action-primary {
    color: #09090d;
    background: linear-gradient(135deg, var(--cv-gold-bright), var(--cv-gold));
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(212, 168, 83, 0.24);
}

.cv-action-primary:hover {
    box-shadow: 0 20px 60px rgba(212, 168, 83, 0.34);
}

.cv-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 28px auto 80px;
}

.cv-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: center;
    min-height: 520px;
    padding: clamp(34px, 6vw, 70px);
    border: 1px solid var(--cv-border);
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.105), rgba(255,255,255,0.025)),
        radial-gradient(circle at 82% 22%, rgba(240, 200, 80, 0.18), transparent 34%);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
}

.cv-hero::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.cv-hero::after {
    content: 'CV';
    position: absolute;
    right: clamp(18px, 5vw, 70px);
    bottom: -52px;
    font-family: var(--cv-heading);
    font-size: clamp(150px, 22vw, 290px);
    font-weight: 700;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.025);
    letter-spacing: -0.1em;
    pointer-events: none;
}

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

.cv-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 8px 14px;
    border: 1px solid rgba(240, 200, 80, 0.22);
    border-radius: 999px;
    background: rgba(212, 168, 83, 0.08);
    color: var(--cv-gold-bright);
    font-family: var(--cv-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cv-hero h1 {
    max-width: 760px;
    font-family: var(--cv-heading);
    font-size: clamp(52px, 8vw, 112px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.08em;
}

.cv-role {
    margin-top: 22px;
    font-family: var(--cv-heading);
    font-size: clamp(18px, 2.4vw, 30px);
    color: var(--cv-gold-bright);
    letter-spacing: -0.03em;
}

.cv-summary {
    max-width: 780px;
    margin-top: 22px;
    color: var(--cv-muted);
    font-size: 17px;
    line-height: 1.8;
}

.cv-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.cv-contact-strip a,
.cv-contact-strip span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--cv-border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--cv-muted);
    font-size: 13px;
    transition: all 0.3s var(--cv-ease);
}

.cv-contact-strip a:hover {
    border-color: rgba(240, 200, 80, 0.34);
    color: var(--cv-text);
    transform: translateY(-2px);
}

.cv-contact-strip i {
    color: var(--cv-gold-bright);
    font-size: 16px;
}

.cv-portrait-card {
    position: relative;
    z-index: 2;
    justify-self: center;
    width: min(100%, 340px);
}

.cv-portrait-ring {
    position: relative;
    aspect-ratio: 0.82;
    padding: 12px;
    border: 1px solid rgba(240, 200, 80, 0.28);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(240, 200, 80, 0.22), transparent 34%),
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 80px rgba(0,0,0,0.34), 0 0 70px rgba(212,168,83,0.12);
}

.cv-portrait-ring::before {
    content: '';
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(240, 200, 80, 0.22), rgba(255, 255, 255, 0.02), rgba(212, 168, 83, 0.16));
    filter: blur(18px);
    opacity: 0.75;
}

.cv-portrait-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    filter: saturate(1.04) contrast(1.04);
}

.cv-signature {
    position: absolute;
    left: -26px;
    bottom: 24px;
    width: 190px;
    padding: 18px;
    border: 1px solid rgba(240, 200, 80, 0.26);
    border-radius: 22px;
    background: rgba(9, 9, 13, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.cv-signature span {
    display: block;
    color: var(--cv-gold-bright);
    font-family: var(--cv-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.cv-signature strong {
    display: block;
    margin-top: 6px;
    color: var(--cv-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cv-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.cv-metrics div {
    min-height: 132px;
    padding: 24px;
    border: 1px solid var(--cv-border-soft);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.cv-metrics strong {
    display: block;
    font-family: var(--cv-heading);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    color: var(--cv-gold-bright);
    letter-spacing: -0.07em;
}

.cv-metrics span {
    display: block;
    margin-top: 10px;
    color: var(--cv-dim);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.cv-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cv-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
}

.cv-card,
.cv-section,
.cv-education-card,
.cv-project-card {
    border: 1px solid var(--cv-border-soft);
    background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.026));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 24px 80px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cv-card {
    padding: 28px;
    border-radius: 28px;
}

.cv-card h2,
.cv-section-heading h2 {
    font-family: var(--cv-heading);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.cv-card h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.cv-pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.cv-pill-cloud span,
.cv-mini-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 11px;
    border: 1px solid rgba(240, 200, 80, 0.16);
    border-radius: 999px;
    background: rgba(212, 168, 83, 0.07);
    color: rgba(255,255,255,0.74);
    font-size: 12px;
    font-weight: 700;
}

.cv-skill-group + .cv-skill-group {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--cv-border-soft);
}

.cv-skill-group h3 {
    margin-bottom: 12px;
    color: var(--cv-gold-bright);
    font-family: var(--cv-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cv-skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    color: var(--cv-muted);
    border-bottom: 1px solid rgba(255,255,255,0.045);
}

.cv-skill-row:last-child {
    border-bottom: 0;
}

.cv-skill-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cv-skill-row i {
    width: 19px;
    color: var(--cv-gold-bright);
    font-size: 17px;
    text-align: center;
}

.cv-skill-row em {
    color: var(--cv-dim);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.cv-link-list {
    display: grid;
    gap: 10px;
}

.cv-link-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--cv-border-soft);
    border-radius: 15px;
    color: var(--cv-muted);
    background: rgba(255,255,255,0.035);
    transition: all 0.3s var(--cv-ease);
}

.cv-link-list a:hover {
    color: var(--cv-text);
    border-color: rgba(240, 200, 80, 0.28);
    transform: translateX(4px);
}

.cv-link-list i {
    color: var(--cv-gold-bright);
    font-size: 18px;
}

.cv-main {
    display: grid;
    gap: 18px;
}

.cv-section {
    padding: clamp(28px, 4vw, 42px);
    border-radius: 32px;
}

.cv-section-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 30px;
}

.cv-section-heading span {
    color: var(--cv-gold-bright);
    font-family: var(--cv-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.cv-section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.cv-timeline {
    display: grid;
    gap: 22px;
}

.cv-timeline-item {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 22px;
}

.cv-time {
    color: var(--cv-gold-bright);
    font-family: var(--cv-heading);
    font-size: 13px;
    font-weight: 700;
}

.cv-entry {
    position: relative;
    padding: 0 0 28px 28px;
    border-left: 1px solid rgba(240, 200, 80, 0.18);
}

.cv-entry::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -7px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--cv-bg-soft);
    border-radius: 50%;
    background: var(--cv-gold-bright);
    box-shadow: 0 0 24px rgba(240, 200, 80, 0.55);
}

.cv-timeline-item:last-child .cv-entry {
    padding-bottom: 0;
}

.cv-entry h3,
.cv-project-card h3,
.cv-education-card h3 {
    margin-bottom: 6px;
    font-family: var(--cv-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.cv-company {
    margin-bottom: 12px;
    color: var(--cv-dim);
    font-size: 14px;
    font-weight: 700;
}

.cv-entry p,
.cv-project-card p,
.cv-education-card p {
    color: var(--cv-muted);
    line-height: 1.75;
}

.cv-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cv-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cv-project-card {
    position: relative;
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.35s var(--cv-ease), border-color 0.35s var(--cv-ease), box-shadow 0.35s var(--cv-ease);
}

.cv-project-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cv-gold-bright), rgba(212,168,83,0));
}

.cv-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 200, 80, 0.28);
    box-shadow: 0 28px 80px rgba(0,0,0,0.28), 0 0 42px rgba(212,168,83,0.08);
}

.cv-project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.cv-project-topline span {
    color: var(--cv-gold-bright);
    font-family: var(--cv-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.cv-project-index {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cv-gold-bright), var(--cv-gold));
    color: #09090d !important;
    font-size: 14px !important;
    letter-spacing: -0.04em !important;
    box-shadow: 0 14px 34px rgba(212,168,83,0.16);
}

.cv-project-topline a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 200, 80, 0.18);
    border-radius: 50%;
    color: var(--cv-gold-bright);
    transition: all 0.3s var(--cv-ease);
}

.cv-project-topline a:hover {
    color: #09090d;
    background: var(--cv-gold-bright);
}

.cv-project-category {
    margin-bottom: 10px;
    color: var(--cv-gold-bright) !important;
    font-family: var(--cv-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.cv-project-desc {
    font-size: 14px;
    line-height: 1.62 !important;
}

.cv-project-card .cv-mini-tags {
    gap: 6px;
    margin-top: 14px;
}

.cv-project-card .cv-mini-tags span {
    min-height: 27px;
    padding: 6px 9px;
    font-size: 11px;
}

.cv-education-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 20px;
    padding: 26px;
    border-radius: 26px;
}

.cv-edu-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--cv-gold-bright), var(--cv-gold));
    color: #09090d;
    font-size: 25px;
    box-shadow: 0 18px 44px rgba(212,168,83,0.18);
}

@media (max-width: 1040px) {
    .cv-hero,
    .cv-layout {
        grid-template-columns: 1fr;
    }

    .cv-hero {
        gap: 36px;
    }

    .cv-portrait-card {
        width: min(420px, 100%);
    }

    .cv-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cv-sidebar .cv-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .cv-topbar {
        position: relative;
        width: min(100% - 28px, 1240px);
        align-items: flex-start;
        flex-direction: column;
    }

    .cv-topbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cv-action {
        flex: 1;
    }

    .cv-shell {
        width: min(100% - 28px, 1240px);
        margin-top: 10px;
    }

    .cv-hero {
        min-height: auto;
        padding: 28px;
        border-radius: 30px;
    }

    .cv-hero::before {
        inset: 12px;
        border-radius: 23px;
    }

    .cv-contact-strip {
        flex-direction: column;
    }

    .cv-contact-strip a,
    .cv-contact-strip span {
        width: 100%;
    }

    .cv-signature {
        left: 14px;
        bottom: 14px;
    }

    .cv-metrics,
    .cv-sidebar,
    .cv-project-grid {
        grid-template-columns: 1fr;
    }

    .cv-timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cv-entry {
        padding-left: 22px;
    }

    .cv-section,
    .cv-card,
    .cv-education-card,
    .cv-project-card {
        border-radius: 22px;
    }

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

@media (max-width: 460px) {
    .cv-topbar-actions {
        flex-direction: column;
    }

    .cv-action {
        width: 100%;
    }

    .cv-hero h1 {
        font-size: 46px;
    }

    .cv-hero,
    .cv-section,
    .cv-card,
    .cv-project-card,
    .cv-education-card,
    .cv-metrics div {
        padding: 22px;
    }

    .cv-signature {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 14px;
    }
}

@page {
    size: A4;
    margin: 8mm;
}

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

    html,
    body {
        width: auto;
        min-height: 0;
        background: #ffffff !important;
        color: var(--cv-ink) !important;
        font-size: 8.2pt;
        line-height: 1.35;
    }

    body::before,
    .cv-ambient,
    .cv-noise,
    .cv-topbar,
    .cv-portrait-card {
        display: none !important;
    }

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

    .cv-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 4mm;
        border: 0;
        border-bottom: 1px solid rgba(20, 20, 25, 0.18);
        border-radius: 0;
        background: #ffffff !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cv-hero::before,
    .cv-hero::after {
        display: none;
    }

    .cv-kicker {
        display: none;
    }

    .cv-hero h1 {
        color: var(--cv-ink);
        font-size: 30pt;
        line-height: 0.92;
        letter-spacing: -0.06em;
    }

    .cv-role {
        margin-top: 2mm;
        font-size: 12pt;
    }

    .cv-summary {
        max-width: none;
        margin-top: 2mm;
        font-size: 8.6pt;
        line-height: 1.45;
    }

    .cv-contact-strip {
        gap: 2mm;
        margin-top: 3mm;
    }

    .cv-role,
    .cv-time,
    .cv-section-heading span,
    .cv-skill-group h3,
    .cv-project-topline span,
    .cv-contact-strip i,
    .cv-link-list i,
    .cv-skill-row i {
        color: #9a6d1f !important;
    }

    .cv-card,
    .cv-section,
    .cv-education-card,
    .cv-project-card,
    .cv-metrics div {
        background: #ffffff !important;
        border-color: rgba(20, 20, 25, 0.14) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .cv-summary,
    .cv-contact-strip a,
    .cv-contact-strip span,
    .cv-card,
    .cv-entry p,
    .cv-project-card p,
    .cv-education-card p,
    .cv-company,
    .cv-skill-row,
    .cv-link-list a {
        color: #41414c !important;
    }

    .cv-contact-strip a,
    .cv-contact-strip span {
        min-height: auto;
        padding: 1.5mm 2.2mm;
        font-size: 7.4pt;
        border-radius: 999px;
    }

    .cv-contact-strip a,
    .cv-contact-strip span,
    .cv-pill-cloud span,
    .cv-mini-tags span,
    .cv-link-list a {
        background: #fbf7ef !important;
        border-color: rgba(154, 109, 31, 0.24) !important;
    }

    .cv-metrics,
    .cv-layout {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3mm;
        margin: 4mm 0;
    }

    .cv-layout {
        grid-template-columns: 52mm 1fr;
        align-items: start;
    }

    .cv-sidebar {
        position: static;
        display: grid;
        gap: 3mm;
    }

    .cv-main {
        display: grid;
        gap: 3mm;
    }

    .cv-metrics div,
    .cv-card,
    .cv-section,
    .cv-education-card,
    .cv-project-card {
        padding: 3.2mm;
        border-radius: 3mm;
    }

    .cv-card,
    .cv-education-card,
    .cv-project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cv-metrics strong {
        color: #9a6d1f;
        font-size: 17pt;
        letter-spacing: -0.06em;
    }

    .cv-metrics span {
        color: #666672;
        margin-top: 1mm;
        font-size: 6.2pt;
        letter-spacing: 0.08em;
    }

    .cv-card h2,
    .cv-section-heading h2,
    .cv-entry h3,
    .cv-project-card h3,
    .cv-education-card h3 {
        color: var(--cv-ink);
    }

    .cv-card h2 {
        margin-bottom: 2.4mm;
        font-size: 11pt;
    }

    .cv-section-heading {
        gap: 2mm;
        margin-bottom: 3mm;
    }

    .cv-section-heading span {
        font-size: 6.8pt;
    }

    .cv-section-heading h2 {
        font-size: 14.5pt;
    }

    .cv-pill-cloud {
        gap: 1.5mm;
    }

    .cv-pill-cloud span,
    .cv-mini-tags span {
        min-height: auto;
        padding: 1mm 1.7mm;
        font-size: 6.7pt;
        line-height: 1.2;
    }

    .cv-skill-group + .cv-skill-group {
        margin-top: 2.4mm;
        padding-top: 2.4mm;
    }

    .cv-skill-group h3 {
        margin-bottom: 1.5mm;
        font-size: 6.8pt;
        letter-spacing: 0.08em;
    }

    .cv-skill-row {
        gap: 2mm;
        padding: 1mm 0;
        font-size: 7.2pt;
    }

    .cv-skill-row i {
        display: none;
    }

    .cv-skill-row em {
        font-size: 6.5pt;
    }

    .cv-link-list {
        gap: 1.5mm;
    }

    .cv-link-list a {
        min-height: auto;
        padding: 1.4mm 2mm;
        border-radius: 2mm;
        font-size: 7.2pt;
    }

    .cv-timeline-item {
        grid-template-columns: 20mm 1fr;
        gap: 3mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cv-timeline {
        gap: 2.8mm;
    }

    .cv-time {
        font-size: 7.2pt;
        line-height: 1.25;
    }

    .cv-entry {
        padding: 0 0 2.8mm 4mm;
        border-left-color: rgba(154, 109, 31, 0.28);
    }

    .cv-entry::before {
        border-color: #ffffff;
        background: #9a6d1f;
        box-shadow: none;
        top: 0.5mm;
        left: -1.2mm;
        width: 2.4mm;
        height: 2.4mm;
        border-width: 0.7mm;
    }

    .cv-entry h3,
    .cv-project-card h3,
    .cv-education-card h3 {
        margin-bottom: 1mm;
        font-size: 9.4pt;
        line-height: 1.12;
    }

    .cv-company {
        margin-bottom: 1.5mm;
        font-size: 7.4pt;
    }

    .cv-entry p,
    .cv-project-card p,
    .cv-education-card p {
        font-size: 7.4pt;
        line-height: 1.38 !important;
    }

    .cv-mini-tags {
        gap: 1.2mm;
        margin-top: 2mm;
    }

    .cv-project-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.2mm;
    }

    .cv-project-card {
        min-height: auto;
        padding-top: 3.8mm;
    }

    .cv-project-card::before {
        height: 0.8mm;
    }

    .cv-project-topline a {
        display: none;
    }

    .cv-project-topline {
        margin-bottom: 1.5mm;
    }

    .cv-project-index {
        width: 7mm;
        height: 7mm;
        border-radius: 2mm;
        box-shadow: none;
        font-size: 7pt !important;
    }

    .cv-project-category {
        margin-bottom: 1mm;
        font-size: 6.3pt;
        letter-spacing: 0.08em;
    }

    .cv-project-desc {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .cv-education-card {
        grid-template-columns: 8mm 1fr;
        gap: 2.5mm;
    }

    .cv-edu-icon {
        width: 7mm;
        height: 7mm;
        border-radius: 2mm;
        box-shadow: none;
        font-size: 9pt;
    }

    .cv-pill-cloud span,
    .cv-mini-tags span,
    .cv-skill-row em {
        color: #5b4a2f !important;
    }
}
