:root {
    --bg: #f4efe7;
    --bg-soft: rgba(255, 255, 255, 0.72);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #13212d;
    --muted: #52606d;
    --border: rgba(18, 52, 77, 0.14);
    --brand: #12344d;
    --brand-soft: #dce9f4;
    --accent: #b96538;
    --accent-soft: #f5ddd0;
    --shadow: 0 30px 80px rgba(18, 52, 77, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: min(1120px, calc(100% - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Source Sans 3", sans-serif;
}

body.home-page {
    background:
        radial-gradient(circle at top left, rgba(241, 199, 165, 0.5), transparent 28rem),
        radial-gradient(circle at top right, rgba(148, 190, 222, 0.35), transparent 24rem),
        linear-gradient(180deg, #f9f6f1 0%, #f4efe7 42%, #fbfaf7 100%);
}

body.cv-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(241, 199, 165, 0.55), transparent 24rem),
        radial-gradient(circle at bottom right, rgba(148, 190, 222, 0.35), transparent 20rem),
        linear-gradient(180deg, #f9f6f1 0%, #f4efe7 100%);
}

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

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

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
    color: var(--text);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 3px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(18, 52, 77, 0.08);
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon-svg {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
}

.menu-icon[hidden] {
    display: none;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.shell {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 0 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(18, 52, 77, 0.08);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #214e6e);
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.brand-role {
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-links,
.social-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(18, 52, 77, 0.08);
    color: var(--brand);
    transform: translateY(-1px);
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(18, 52, 77, 0.06);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
    background: var(--brand);
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
}

.mobile-menu {
    margin-top: 0.85rem;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(18, 52, 77, 0.08);
}

.mobile-menu nav,
.mobile-social {
    display: grid;
    gap: 0.65rem;
}

.mobile-social {
    margin-top: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section {
    padding: 4.5rem 0;
}

.hero {
    padding-top: 3rem;
}

.hero-grid,
.cv-grid,
.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: stretch;
}

.panel {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: auto auto -4rem -4rem;
    width: 11rem;
    height: 11rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(185, 101, 56, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.95;
    max-width: 10ch;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand);
}

.hero-body {
    margin-top: 1.3rem;
    display: grid;
    gap: 1rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.chip {
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(18, 52, 77, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--brand);
    font-weight: 600;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.9rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 10rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(18, 52, 77, 0.14);
}

.button-primary {
    background: var(--brand);
    color: #ffffff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand);
    border: 1px solid rgba(18, 52, 77, 0.12);
}

.profile-panel {
    display: grid;
    gap: 1.2rem;
    align-content: space-between;
    background:
        linear-gradient(180deg, rgba(18, 52, 77, 0.07), rgba(255, 255, 255, 0.8)),
        var(--surface-strong);
}

.portrait-frame {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18, 52, 77, 0.12), rgba(185, 101, 56, 0.18));
    padding: 0.8rem;
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.45rem;
    pointer-events: none;
}

.portrait {
    width: 100%;
    aspect-ratio: 11 / 12;
    object-fit: cover;
    border-radius: 1.45rem;
}

.profile-meta {
    display: grid;
    gap: 0.85rem;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(18, 52, 77, 0.09);
}

.profile-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.profile-label {
    color: var(--muted);
}

.profile-value {
    font-weight: 700;
    text-align: right;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.section-label {
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.section-copy {
    max-width: 44rem;
    font-size: 1.05rem;
}

.grid-3 {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 35px rgba(18, 52, 77, 0.08);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: var(--brand-soft);
    color: var(--brand);
}

.card-icon .icon-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.cv-grid,
.contact-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.column-panel {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 50px rgba(18, 52, 77, 0.08);
}

.column-panel h3 {
    margin-bottom: 1.1rem;
    font-size: 1.4rem;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 253, 249, 0.9);
    border: 1px solid rgba(18, 52, 77, 0.08);
}

.timeline-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(18, 52, 77, 0.06);
    overflow: hidden;
    color: var(--brand);
}

.timeline-media img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.timeline-media picture {
    width: 2rem;
    height: 2rem;
}

.timeline-media picture img {
    width: 100%;
    height: 100%;
}

.timeline-item h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.timeline-meta {
    margin-top: 0.2rem;
    color: var(--muted);
    font-weight: 600;
}

.publication-list {
    display: grid;
    gap: 1rem;
}

.publication {
    display: grid;
    gap: 0.8rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 35px rgba(18, 52, 77, 0.08);
}

.publication-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.publication p {
    font-size: 1rem;
}

.contact-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 35px rgba(18, 52, 77, 0.08);
}

.contact-card h3 {
    font-size: 1.25rem;
}

.contact-line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--muted);
}

.contact-line .icon-svg {
    color: var(--brand);
    margin-top: 0.2rem;
    flex: none;
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(18, 52, 77, 0.12);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--muted);
}

.fade-up {
    animation: fade-up 0.7s ease both;
}

.fade-delay-1 {
    animation-delay: 0.08s;
}

.fade-delay-2 {
    animation-delay: 0.16s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-page main {
    width: min(100%, 980px);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 1.5rem;
    align-items: stretch;
}

.info-panel,
.download-panel {
    padding: 2rem;
    border-radius: 2rem;
    background: var(--surface);
    border: 1px solid rgba(18, 52, 77, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.info-panel {
    display: grid;
    gap: 1.25rem;
    background:
        linear-gradient(180deg, rgba(18, 52, 77, 0.08), rgba(255, 255, 255, 0.84)),
        rgba(255, 255, 255, 0.84);
}

.info-panel h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.95;
    max-width: 9ch;
}

.subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand);
}

.notes {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.note {
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(18, 52, 77, 0.09);
}

.download-panel {
    display: grid;
    align-content: center;
    gap: 1rem;
    text-align: center;
}

.download-panel h2 {
    font-size: 1.75rem;
}

.captcha-wrap {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
}

.download-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.95rem 1.3rem;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    pointer-events: none;
    opacity: 0.5;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.download-btn:not([aria-disabled="true"]):hover,
.download-btn:not([aria-disabled="true"]):focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(18, 52, 77, 0.14);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    color: var(--brand);
    font-weight: 700;
}

@media (max-width: 980px) {
    .nav-links,
    .social-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-grid,
    .cv-grid,
    .contact-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 2rem;
    }

    .panel,
    .column-panel {
        padding: 1.5rem;
    }

    .footer-card {
        flex-direction: column;
    }
}

@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .info-panel,
    .download-panel {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 0.75rem;
    }

    .nav-bar {
        padding: 0.75rem 0.9rem;
        border-radius: 1.25rem;
    }

    .brand-role {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.65rem, 14vw, 4rem);
    }

    .button {
        width: 100%;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-media {
        width: 2.75rem;
        height: 2.75rem;
    }

    .mobile-social {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
