
:root {
    --background: #ffffff;
    --surface: #f5f6f7;
    --text: #20252b;
    --muted: #68717c;
    --accent: #315b72;
    --border: #e2e6e9;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.narrow {
    max-width: 780px;
    margin-left: max(20px, calc((100% - var(--max-width)) / 2));
    margin-right: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.hero {
    min-height: 590px;
    padding-top: 125px;
    padding-bottom: 100px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5.3rem);
    line-height: 1.08;
    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--accent);
}

.hero h2 {
    margin: 20px 0 12px;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 500;
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--text);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.button-dark {
    background: var(--text);
    color: white;
}

.button-dark:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.button-light {
    background: white;
}

.button-light:hover {
    background: var(--surface);
}

.location {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    padding-top: 95px;
    padding-bottom: 95px;
}

.section-soft {
    background: var(--surface);
}

.section h2,
.contact-panel h2 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section p {
    color: var(--muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.skill-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.card-number {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.skill-card h3,
.timeline-item h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
}

.skill-card p {
    margin-bottom: 0;
}

.timeline {
    margin-top: 38px;
    border-top: 1px solid #d8dde1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid #d8dde1;
}

.timeline-item .period {
    margin: 5px 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-item h3 {
    margin-top: 0;
}

.timeline-item .company {
    margin-top: 0;
    font-weight: 600;
    color: var(--text);
}

.timeline-item ul {
    padding-left: 20px;
    color: var(--muted);
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-panel h2 {
    margin-bottom: 12px;
}

.contact-panel p {
    margin-bottom: 0;
}

.contact-note {
    font-size: 0.85rem;
}

.footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner span {
    font-weight: 800;
}

.footer-inner p {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-links {
        gap: 10px 18px;
    }

    .hero {
        min-height: auto;
        padding-top: 85px;
        padding-bottom: 75px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-top: 15px;
        padding-bottom: 15px;
    }
}
