.cv-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cv-section h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cv-subtitle {
    max-width: 60ch;
    color: var(--muted);
}

.cv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}

.cv-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    text-align: left;
    font-weight: 400;
}

.cv-card .ripple { display: none; }

.cv-card__label {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-card__title {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
}

.cv-card__desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cv-card__cta {
    margin-top: auto;
    padding-top: 6px;
    color: var(--sky);
    font-size: 0.85rem;
    font-weight: 700;
}

html.cv-open { overflow: hidden; }

.cv-modal {
    width: min(560px, 92vw);
    max-height: 90vh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}

.cv-modal[open] {
    display: flex;
    flex-direction: column;
}

.cv-modal::backdrop {
    background: rgba(5, 10, 18, 0.78);
    backdrop-filter: blur(3px);
}

.cv-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.cv-modal__count {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.cv-modal button .ripple { display: none; }

.cv-modal__close,
.cv-modal__prev,
.cv-modal__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface-2);
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
}

.cv-modal__close:hover,
.cv-modal__prev:hover,
.cv-modal__next:hover {
    transform: none;
    box-shadow: none;
}

.cv-modal__body {
    min-height: 0;
    padding: 20px 20px 8px;
    overflow-y: auto;
}

.cv-modal__title {
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.cv-modal__intro {
    color: var(--muted);
    line-height: 1.7;
}

.cv-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.cv-modal__nav {
    display: flex;
    gap: 8px;
}

.cv-modal__download {
    padding: 12px 22px;
    background: var(--accent);
    border-radius: 999px;
    color: var(--accent-ink, #2a1d00);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.cv-modal__download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.cv-modal__download.is-disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

.cv-modal__download.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.cv-modal {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease,
                overlay 0.3s ease allow-discrete,
                display 0.3s ease allow-discrete;
}

.cv-modal[open] { opacity: 1; transform: none; }

.cv-modal::backdrop {
    opacity: 0;
    transition: opacity 0.3s ease,
                overlay 0.3s ease allow-discrete,
                display 0.3s ease allow-discrete;
}

.cv-modal[open]::backdrop { opacity: 1; }

@starting-style {
    .cv-modal[open] { opacity: 0; transform: scale(0.7); }
    .cv-modal[open]::backdrop { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cv-modal, .cv-modal::backdrop { transition: none; }
}
