/* =============================================================
   about.css — About / CV page specific styles
   ============================================================= */

/* ── Page wrapper ─────────────────────────────────────────── */
.cv-page {
    padding: 90px 0 80px;
    position: relative;
    background-image: radial-gradient(
        circle,
        color-mix(in srgb, var(--ink) 8%, transparent) 1px,
        transparent 1px
    );
    background-size: 26px 26px;
}
.cv-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse 60% 32% at 50% 0%,
        color-mix(in srgb, var(--accent) 7%, transparent),
        transparent
    );
}
.cv-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── Header card ──────────────────────────────────────────── */
.cv-hero {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 40px 44px 36px;
    margin-bottom: 20px;
    overflow: hidden;
}
.cv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 55% 90% at 100% 50%,
        color-mix(in srgb, var(--accent) 9%, transparent),
        transparent
    );
    pointer-events: none;
}
.cv-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}
.cv-hero-left {
    flex: 1;
    min-width: 260px;
}
.cv-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cv-kicker {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cv-kicker::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}
.cv-name {
    font-family: "DM Serif Display", serif;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -1px;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 8px;
}
.cv-role-line {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 20px;
}
.cv-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}
.cv-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--muted);
    text-decoration: none;
    transition:
        color 0.15s,
        border-color 0.15s,
        background 0.15s;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.cv-contact:hover {
    color: var(--ink);
    border-color: var(--muted);
}
.cv-contact svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ── Hero stat chips ──────────────────────────────────────── */
.cv-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.cv-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent) 5%, var(--card));
}
.cv-hero-chip svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--accent);
}
.cv-hero-chip-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cv-hero-chip-title {
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
}
.cv-hero-chip-text > :last-child {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    color: var(--ink);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ── Inline stat badges ───────────────────────────────────── */
.cv-inline-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--muted);
    padding: 5px 13px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent) 4%, transparent);
    white-space: nowrap;
}
.cv-inline-stat svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ── Social row ───────────────────────────────────────────── */
.cv-social-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
}
.cv-social-divider::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.cv-social-divider-lbl {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.cv-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cv-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--muted);
    text-decoration: none;
    transition:
        color 0.2s,
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
}
.cv-social-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--card));
    transform: translateY(-2px);
}
.cv-social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Orbital ring animation ───────────────────────────────── */
.cv-orbit-wrap {
    position: relative;
    width: 224px;
    height: 224px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.cv-orb-1 {
    width: 118px;
    height: 118px;
    animation: cvOrbitCW 12s linear infinite;
}
.cv-orb-2 {
    width: 162px;
    height: 162px;
    animation: cvOrbitCCW 20s linear infinite;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
.cv-orb-3 {
    width: 210px;
    height: 210px;
    animation: cvOrbitCW 32s linear infinite;
    border-color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.cv-orb-dp {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.cv-orb-ico {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--card));
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 10px color-mix(in srgb, var(--accent) 35%, transparent),
        0 0 22px color-mix(in srgb, var(--accent) 14%, transparent);
}
.cv-orb-ico svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.cv-orb-1 .cv-orb-ico {
    animation: cvIconCCW12 12s linear infinite;
}
.cv-orb-2 .cv-orb-ico {
    animation: cvIconCW20 20s linear infinite;
}
.cv-orb-3 .cv-orb-ico {
    animation: cvIconCCW32 32s linear infinite;
}
@keyframes cvIconCCW12 {
    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}
@keyframes cvIconCW20 {
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}
@keyframes cvIconCCW32 {
    to {
        transform: translateX(-50%) rotate(-360deg);
    }
}
.cv-orb-dp.d180 {
    transform: rotate(180deg);
}
.cv-orb-dp.d120 {
    transform: rotate(120deg);
}
.cv-orb-dp.d240 {
    transform: rotate(240deg);
}
@keyframes cvOrbitCW {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
@keyframes cvOrbitCCW {
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .cv-orb {
        animation: none !important;
    }
    .cv-orb-ico {
        animation: none !important;
    }
}
.cv-av-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.cv-avatar-wrap {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--border));
    overflow: hidden;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--bg) 60%, var(--card) 40%);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.cv-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cv-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Serif Display", serif;
    font-size: 32px;
    color: var(--muted);
}
.cv-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--bg);
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid var(--ink);
    white-space: nowrap;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}
.cv-dl-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cv-dl-btn svg {
    width: 13px;
    height: 13px;
}
.cv-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #22c55e;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid color-mix(in srgb, #22c55e 40%, transparent);
    background: color-mix(in srgb, #22c55e 8%, transparent);
}
.cv-open-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: cvblink 1.8s ease-in-out infinite;
}
.cv-open-badge--closed {
    color: #ef4444;
    border-color: color-mix(in srgb, #ef4444 40%, transparent);
    background: color-mix(in srgb, #ef4444 8%, transparent);
}
.cv-open-dot--closed {
    background: #ef4444;
    animation: none;
}
@keyframes cvblink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ── 2-col layout ──────────────────────────────────────────── */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 860px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Section card ──────────────────────────────────────────── */
.cv-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.cv-card:last-child {
    margin-bottom: 0;
}
.cv-card-head {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--bg) 60%, var(--card) 40%);
}
.cv-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-card-icon svg {
    width: 13px;
    height: 13px;
    color: var(--accent);
}
.cv-card-title {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
}
.cv-card-body {
    padding: 20px;
}

/* ── Summary ───────────────────────────────────────────────── */
.cv-summary-p {
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink);
    opacity: 0.88;
    margin-bottom: 12px;
}
.cv-summary-p:last-child {
    margin-bottom: 0;
}
.cv-rich-summary {
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink);
    opacity: 0.88;
}
.cv-rich-summary p {
    margin-bottom: 10px;
}
.cv-rich-summary p:last-child {
    margin-bottom: 0;
}
.cv-rich-summary ul,
.cv-rich-summary ol {
    padding-left: 22px;
    margin-bottom: 10px;
}
.cv-rich-summary li {
    margin-bottom: 4px;
}
.cv-rich-summary strong {
    font-weight: 600;
}
.cv-rich-summary em {
    font-style: italic;
}
.cv-rich-summary h1,
.cv-rich-summary h2,
.cv-rich-summary h3 {
    font-family: "DM Serif Display", serif;
    color: var(--ink);
    margin-bottom: 8px;
    margin-top: 4px;
}
.cv-rich-summary a {
    color: var(--accent);
    text-decoration: underline;
}

/* ── Timeline entry ────────────────────────────────────────── */
.cv-entry {
    padding-left: 20px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--border);
    position: relative;
}
.cv-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.cv-entry::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.cv-entry-date {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cv-entry-title {
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cv-entry-current {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    background: color-mix(in srgb, #22c55e 12%, transparent);
    border: 1px solid color-mix(in srgb, #22c55e 40%, transparent);
    color: #22c55e;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
.cv-entry-sub {
    font-family: "Outfit", sans-serif;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 3px;
}
.cv-entry-grade {
    display: inline-block;
    margin-top: 5px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.cv-entry-desc {
    font-family: "Outfit", sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ink);
    opacity: 0.8;
    margin-top: 8px;
}
.cv-entry-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}
.cv-entry-link:hover {
    text-decoration: underline;
}
.cv-entry-link svg {
    width: 10px;
    height: 10px;
}

/* ── Experience duration badges ──────────────────────────── */
.cv-total-exp {
    margin-left: auto;
    white-space: nowrap;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 4px;
    padding: 3px 9px;
}
.cv-exp-duration {
    margin-left: auto;
    white-space: nowrap;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--muted);
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
}

/* ── Skills chips ──────────────────────────────────────────── */
.cv-skill-cat {
    margin-bottom: 16px;
}
.cv-skill-cat:last-child {
    margin-bottom: 0;
}
.cv-skill-cat-name {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.cv-skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cv-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    color: var(--ink);
}
.cv-chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Work style values ─────────────────────────────────────── */
.cv-value {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.cv-value:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.cv-value-ico {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-value-ico svg {
    width: 13px;
    height: 13px;
    color: var(--accent);
}
.cv-value-title {
    font-family: "Outfit", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.cv-value-desc {
    font-family: "Outfit", sans-serif;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.5;
}

/* ── Empty state ───────────────────────────────────────────── */
.cv-empty {
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 0;
}

/* ── Projects grid ─────────────────────────────────────────── */
.cv-card-full {
    margin-top: 20px;
}
.cv-proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 680px) {
    .cv-proj-grid {
        grid-template-columns: 1fr;
    }
}
.cv-proj {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.cv-proj:last-child {
    margin-bottom: 0;
}
.cv-proj-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.cv-proj-emoji {
    font-size: 20px;
    line-height: 1;
}
.cv-proj-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.cv-proj-name {
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.cv-proj-type {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.cv-proj-desc {
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    opacity: 0.78;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cv-proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.cv-proj-tag {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.cv-proj-links {
    display: flex;
    gap: 10px;
}
.cv-proj-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.cv-proj-link:hover {
    color: var(--accent);
}
.cv-proj-link svg {
    width: 11px;
    height: 11px;
}
.cv-proj-clickable {
    cursor: pointer;
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        transform 0.18s;
    position: relative;
}
.cv-proj-clickable:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 12%, transparent);
    transform: translateY(-2px);
}
.cv-proj-view-hint {
    margin-left: auto;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.8px;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.18s;
}
.cv-proj-clickable:hover .cv-proj-view-hint {
    opacity: 1;
}
.cv-proj-desc-preview {
    -webkit-line-clamp: 2;
}

/* ── Project modal ─────────────────────────────────────────── */
.cv-proj-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cv-proj-modal-overlay.open {
    display: flex;
}
.cv-proj-modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.cv-proj-modal-close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px 16px 0 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border: none;
    cursor: pointer;
    color: var(--ink);
    z-index: 1;
}
.cv-proj-modal-close:hover {
    background: color-mix(in srgb, var(--accent) 18%, var(--border));
}
.cv-proj-modal-close svg {
    width: 14px;
    height: 14px;
}
.cv-proj-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 16px;
    clear: both;
}
.cv-proj-modal-head img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.cv-proj-modal-title {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}
.cv-proj-modal-body {
    padding: 0 24px 24px;
}
.cv-proj-modal-desc {
    font-family: "Outfit", sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink);
    opacity: 0.85;
    margin-bottom: 16px;
    padding: 0 !important;
    min-height: unset !important;
    border: none !important;
}
.cv-proj-modal-desc p {
    margin: 0 0 8px;
}
.cv-proj-modal-desc ul,
.cv-proj-modal-desc ol {
    padding-left: 20px;
    margin: 0 0 8px;
}
.cv-proj-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.cv-proj-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── Languages ─────────────────────────────────────────────── */
.cv-lang {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.cv-lang:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.cv-lang-flag {
    font-size: 20px;
    line-height: 1;
}
.cv-lang-name {
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.cv-lang-level {
    font-family: "DM Mono", monospace;
    font-size: 8.5px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
}
.cv-lang-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-left: auto;
}
.cv-lang-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--accent);
}

/* ── CTA strip ─────────────────────────────────────────────── */
.cv-cta {
    margin-top: 24px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    padding: 36px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.cv-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 120% at 0% 50%,
        color-mix(in srgb, var(--accent) 7%, transparent),
        transparent
    );
    pointer-events: none;
}
.cv-cta-left {
    position: relative;
    z-index: 1;
}
.cv-cta-label {
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.cv-cta-heading {
    font-family: "DM Serif Display", serif;
    font-size: clamp(26px, 2.8vw, 36px);
    letter-spacing: -0.5px;
    color: var(--ink);
    line-height: 1.15;
}
.cv-cta-heading em {
    font-style: italic;
    color: var(--accent);
}
.cv-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.cv-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 4px;
    font-family: "DM Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s;
    border: 1.5px solid transparent;
}
.cv-cta-btn.solid {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.cv-cta-btn.solid:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cv-cta-btn.outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.cv-cta-btn.outline:hover {
    border-color: var(--ink);
}
.cv-cta-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
    #msidebar,
    .page-main > nav,
    footer,
    .cv-dl-btn,
    .cv-cta,
    .cv-open-badge {
        display: none !important;
    }
    .cv-page {
        padding: 0;
    }
    .cv-hero::before,
    .cv-cta::before {
        display: none;
    }
    .cv-card,
    .cv-hero {
        border: 1px solid #ddd !important;
        box-shadow: none;
        border-radius: 4px;
    }
    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ── Small screen overrides ───────────────────────────────── */
@media (max-width: 640px) {
    .cv-page {
        padding: 60px 0 48px;
    }
    .cv-wrap {
        padding: 0 16px;
    }
    .cv-hero {
        padding: 28px 20px 24px;
    }
    .cv-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
    /* Move avatar/orbit block to top on mobile */
    .cv-hero-right {
        order: -1;
        width: 100%;
        align-items: center;
        gap: 14px;
    }
    .cv-orbit-wrap {
        width: 178px;
        height: 178px;
    }
    .cv-orb-1 {
        width: 94px;
        height: 94px;
    }
    .cv-orb-2 {
        width: 130px;
        height: 130px;
    }
    .cv-orb-3 {
        width: 168px;
        height: 168px;
    }
    .cv-avatar-wrap {
        width: 82px;
        height: 82px;
    }
    .cv-avatar-initials {
        font-size: 24px;
    }
    /* Full-width download button */
    .cv-dl-btn {
        width: 100%;
        justify-content: center;
    }
    .cv-hero-left {
        min-width: 0;
        width: 100%;
    }
    /* Center kicker line — add right line to balance */
    .cv-kicker {
        justify-content: center;
    }
    .cv-kicker::after {
        content: "";
        display: inline-block;
        width: 20px;
        height: 1px;
        background: var(--accent);
    }
    .cv-contacts {
        justify-content: center;
    }
    /* Stack social icons + stats, both centered */
    .cv-social-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        justify-content: center !important;
    }
    .cv-hero-chips {
        justify-content: center;
    }
    .cv-cta {
        padding: 24px 20px;
    }
}
@media (max-width: 480px) {
    .cv-orbit-wrap {
        width: 148px;
        height: 148px;
    }
    .cv-orb-1 {
        width: 78px;
        height: 78px;
    }
    .cv-orb-2 {
        width: 108px;
        height: 108px;
    }
    .cv-orb-3 {
        width: 138px;
        height: 138px;
    }
    .cv-avatar-wrap {
        width: 68px;
        height: 68px;
    }
}
