* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: url('/img/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #5a504a;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.14);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 40px;
    width: 100%;
    flex: 1;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #332d2a;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-links a {
    text-decoration: none;
    margin-left: 30px;
    color: #332d2a;
    transition: 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.hero {
    text-align: center;
    margin-bottom: 80px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #2e2926;
}

.hero p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    opacity: 1;
    color: #3a332f;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.right-column .card {
    flex: 1;
}

.card {
    background: #FAF3F1;
    border-radius: 28px;
    padding: 50px;
    backdrop-filter: blur(12px);
    box-shadow:
        0 14px 26px rgba(61, 41, 33, 0.10),
        0 28px 60px rgba(61, 41, 33, 0.14),
        0 2px 6px rgba(255,255,255,0.45);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 32px rgba(61, 41, 33, 0.12),
        0 34px 72px rgba(61, 41, 33, 0.18),
        0 2px 8px rgba(255,255,255,0.5);
}

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:link,
.card-link:visited,
.card-link:hover,
.card-link:active {
    text-decoration: none;
    color: inherit;
}

.js .card {
    opacity: 0;
    transform: translateY(55px) scale(0.96);
    filter: blur(8px);
}

.js .card.is-visible {
    animation: cardScreenIn 950ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardScreenIn {
    0% {
        opacity: 0;
        transform: translateY(55px) scale(0.96);
        filter: blur(8px);
    }

    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.01);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.left-card {
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 2fr 1fr;
    height: 100%;
}

.left-card h2 {
    padding: 30px 40px 36px;
}

.left-card h2 small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-top: 8px;
}

.image-placeholder {
    background-color: #cfcfcf;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.temp-image-placeholder {
    width: 110px;
    height: 110px;
    color: rgba(90, 80, 74, 0.38);
    user-select: none;
}

.temp-image-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.image-placeholder p {
    font-size: 16px;
    color: rgba(90, 80, 74, 0.65);
}

.site-footer {
    text-align: center;
    padding: 0 20px 20px;
    font-size: 14px;
}

.back-link-wrap {
    margin-top: 22px;
}

.back-link-wrap-centered {
    text-align: center;
}

.back-link {
    text-decoration: none;
    color: #332d2a;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.65;
}

.page-content {
    margin-top: 10px;
}

.page-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
}

.page-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    line-height: 1.5;
    opacity: 0.9;
}

.dummy-blocks {
    display: grid;
    gap: 22px;
}

.dummy-block {
    display: grid;
    gap: 6px;
}

.dummy-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    opacity: 0.8;
}

.learning-lab-page {
    display: grid;
    gap: 28px;
}

.learning-lab-grid {
    column-count: 2;
    column-gap: 24px;
}

.learning-lab-entry {
    display: inline-grid;
    width: 100%;
    align-content: start;
    gap: 14px;
    padding: 30px;
    margin: 0 0 24px;
    border-radius: 24px;
    background: rgba(255, 250, 248, 0.96);
    box-shadow:
        0 12px 22px rgba(61, 41, 33, 0.08),
        0 24px 48px rgba(61, 41, 33, 0.10);
    break-inside: avoid;
}

.learning-lab-meta,
.learning-lab-speaker,
.learning-lab-date {
    font-family: 'Inter', sans-serif;
    color: #332d2a;
}

.learning-lab-meta {
    font-size: 20px;
    font-weight: 500;
}

.learning-lab-speaker,
.learning-lab-date {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
}

.learning-lab-entry .page-text {
    font-size: 21px;
    line-height: 1.45;
}

.cv-content {
    display: grid;
    gap: 22px;
}

.cv-page {
    padding: 40px 36px;
}

.cv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
    gap: 48px;
    align-items: start;
}

.cv-main-column,
.cv-side-column {
    display: grid;
    gap: 42px;
}

.cv-side-column {
    padding-top: 250px;
}

.cv-identity {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
}

.cv-name {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 500;
    color: #2e2926;
}

.photo-placeholder {
    width: 180px;
    height: 220px;
    border: 1px dashed rgba(90, 80, 74, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255,255,255,0.45);
}

.cv-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    display: block;
    box-shadow:
        0 12px 22px rgba(61, 41, 33, 0.10),
        0 24px 48px rgba(61, 41, 33, 0.12);
}

.cv-section {
    display: grid;
    gap: 18px;
}

.cv-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #2e2926;
}

.cv-list {
    display: grid;
    gap: 14px;
}

.cv-list p,
.cv-job-copy p,
.cv-job-years,
.cv-skills-list li {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.35;
    color: #2e2926;
}

.cv-info-list {
    gap: 22px;
}

.cv-experience {
    gap: 28px;
}

.cv-job {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(40px, 105px) minmax(172px, 1fr);
    gap: 18px;
    align-items: center;
}

.cv-job-copy {
    display: grid;
    gap: 2px;
}

.cv-job-line {
    display: block;
    width: 100%;
    height: 0;
    border-top: 2px solid rgba(46, 41, 38, 0.7);
    box-sizing: border-box;
}

.cv-job-years {
    width: 100%;
}

.cv-skills-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 18px;
}

.cv-download-wrap {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.cv-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    background: rgba(90, 80, 74, 0.92);
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow:
        0 12px 22px rgba(61, 41, 33, 0.12),
        0 20px 42px rgba(61, 41, 33, 0.16);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cv-download-button:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    html,
    body {
        width: 297mm;
        height: 210mm;
        background: #efe5dc !important;
        color: #2e2926;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        overflow: hidden;
    }

    .js .card,
    .js .card.is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    body::before,
    .nav,
    .site-footer,
    .cv-download-wrap {
        display: none !important;
    }

    .container,
    .page-content {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        padding: 6mm;
    }

    .cv-page {
        width: 285mm;
        min-height: 198mm;
        padding: 9mm 10mm 8mm;
        background: #faf3f1 !important;
        border-radius: 28px;
        box-shadow:
            0 14px 26px rgba(61, 41, 33, 0.10),
            0 28px 60px rgba(61, 41, 33, 0.14),
            0 2px 6px rgba(255,255,255,0.45);
        break-inside: avoid;
        overflow: hidden;
    }

    .cv-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(225px, 0.85fr);
        gap: 18px;
    }

    .cv-side-column {
        padding-top: 60px;
        gap: 16px;
    }

    .cv-main-column {
        gap: 16px;
    }

    .cv-identity {
        grid-template-columns: 108px 1fr;
        gap: 14px;
    }

    .cv-name {
        font-size: 28px;
    }

    .cv-photo {
        width: 108px;
        height: 138px;
        border-radius: 14px;
        box-shadow:
            0 10px 18px rgba(61, 41, 33, 0.10),
            0 18px 32px rgba(61, 41, 33, 0.12);
    }

    .cv-section {
        gap: 6px;
    }

    .cv-section h2 {
        font-size: 16px;
    }

    .cv-list p,
    .cv-job-copy p,
    .cv-job-years,
    .cv-skills-list li {
        font-size: 10.6px;
        line-height: 1.12;
    }

    .cv-list {
        gap: 5px;
    }

    .cv-experience {
        gap: 9px;
    }

    .cv-job {
        grid-template-columns: minmax(0, 1fr) minmax(20px, 52px) minmax(70px, 96px);
        gap: 7px;
    }

    .cv-job-copy {
        gap: 0;
    }

    .cv-job-line {
        border-top-width: 1px;
    }

    .cv-info-list,
    .cv-skills-list {
        gap: 6px;
    }

    .cv-skills-list {
        padding-left: 14px;
    }
}

.contact-form {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.contact-form label {
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(90, 80, 74, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.75);
    color: #5a504a;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(90, 80, 74, 0.45);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: fit-content;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(90, 80, 74, 0.9);
    color: #fff;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }

    .card {
        padding: 35px;
    }

    .cv-page {
        padding: 32px 26px;
    }

    .cv-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cv-main-column,
    .cv-side-column {
        gap: 32px;
    }

    .cv-side-column {
        padding-top: 0;
    }

    .cv-identity {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: start;
    }

    .cv-name {
        font-size: 38px;
    }

    .cv-job {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cv-job-line {
        width: 100%;
    }

    .cv-job-years {
        width: auto;
    }

    .left-card {
        padding: 0;
        grid-template-rows: 2fr 1fr;
    }

    .left-card h2 {
        padding: 25px 30px 30px;
    }

    .image-placeholder {
        min-height: 260px;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .page-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .learning-lab-grid {
        column-count: 1;
    }

    .page-title {
        font-size: 34px;
    }

    .page-text {
        font-size: 22px;
    }
}

@media (max-width: 500px) {
    .cv-page {
        padding: 24px 20px;
    }

    .cv-name {
        font-size: 32px;
    }

    .cv-list p,
    .cv-job-copy p,
    .cv-job-years,
    .cv-skills-list li {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }
}
