:root {
    --bg-body: #ffffff;
    --bg-alt: #f1f4f8;
    --text-main: #1f2a37;
    --text-muted: #55606e;
    --heading: #0f1f33;
    --accent: #1e3a5f;
    --accent-text: #1e3a5f;
    --accent-hover: #2b5285;
    --accent-soft: #e3eaf3;
    --border: #e2e8f0;
    --white: #ffffff;
    --gutter: min(6vw, 72px);
    --side: 10%;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background-color: #ffffff; }

body {
    overflow-x: hidden;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--heading); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text-main); color: var(--white); padding: 0.75rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Navigation */
.site-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.5rem var(--side);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid #d9dde3;
}

.logo { font-size: 1rem; font-weight: 600; letter-spacing: 4px; color: var(--accent); text-decoration: none; }
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-text); }

/* Hero */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(3rem, 5vw, 6rem);
    padding: 140px var(--side) 80px;
}

.hero-content { flex: 1 1 0; min-width: 0; }
.hero-portrait { flex: 0 1 38%; max-width: 460px; }
.hero-portrait img {
    display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
    object-fit: cover; object-position: center top;
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(15,31,51,0.12);
    outline: 1px solid #c3d1e3; outline-offset: 12px;
}
.hero-eyebrow { color: var(--accent-text); text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 1rem; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; line-height: 1.15; }
.hero-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-content .hero-subtitle { font-size: 1rem; font-weight: 600; color: var(--text-main); margin-bottom: 1.5rem; letter-spacing: 0.3px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn.btn-outline:hover { background: var(--accent); color: var(--white); }
.section-intro { max-width: 720px; color: var(--text-muted); margin: -1.5rem 0 3rem; }

/* Experience stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--accent-soft); }
.stat strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; line-height: 1.2; color: var(--accent-text); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Focus */
.focus-section { padding-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.focus-section .section-title { margin-bottom: 1.5rem; }
.focus-detail { padding-top: 3.5rem; color: var(--text-muted); }
.text-link, .text-link:visited { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent-hover); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.chip { background: var(--white); border: 1px solid #c3d1e3; padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--text-main); }

/* General */
section { padding: 120px var(--side); }
.section-tag { color: var(--accent-text); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 3rem; line-height: 1.2; }

/* Competencies */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 1280px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border-color: var(--accent);
    transform: translateY(-5px);
}
.card h3 { margin-bottom: 1rem; font-size: 1.4rem; font-style: italic; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Perspective */
.legacy-section { background-color: var(--bg-alt); display: flex; gap: 4rem; align-items: center; }
.legacy-content { flex: 1; }
.legacy-content p + p { margin-top: 1.5rem; }
.legacy-image {
    flex: 1; height: 600px; width: 100%;
    background: url('images/hero-office.jpg') center center;
    background-size: cover; border-radius: 2px;
}

.development-note {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border-left: 3px solid var(--accent);
    font-size: 0.95rem;
    color: var(--text-muted);
}
.development-note strong { color: var(--text-main); }

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}
.btn:hover { background: var(--accent-hover); }

.contact-footer { text-align: center; background: var(--accent-soft); padding: 100px var(--side); }
.contact-footer .section-title { margin-bottom: 1rem; }
.contact-footer p { margin: 0 auto 2.5rem; color: var(--text-muted); max-width: 600px; }

footer { padding: 4rem var(--side); text-align: center; font-size: 0.8rem; color: var(--text-muted); }
.footer-roles { margin-top: 5px; letter-spacing: 1px; }
.footer-copy { margin-top: 20px; font-size: 0.7rem; }

@media (max-width: 968px) {
    .legacy-section { flex-direction: column; gap: 3rem; }
    .legacy-image { height: 320px; flex: none; }
    .hero { flex-direction: column; gap: 3rem; padding: 120px var(--gutter) 80px; text-align: center; }
    .hero-portrait { order: -1; flex: none; width: 70%; max-width: 340px; }
    .hero-content { margin: 0 auto; flex: none; }
    .hero-actions { justify-content: center; }
    .focus-section { grid-template-columns: 1fr; gap: 1rem; }
    .focus-detail { padding-top: 0; }
    section { padding: 90px var(--gutter); }
}

@media (max-width: 640px) {
    .site-nav { padding: 1rem var(--gutter); }
    .logo { font-size: 0.8rem; letter-spacing: 2px; white-space: nowrap; }
    .nav-links a { margin-left: 1rem; font-size: 0.65rem; letter-spacing: 1px; }
    .card { padding: 2rem; }
    .stat strong { font-size: 1.6rem; }
    .btn { padding: 1rem 1.75rem; }
}

.nav-links { white-space: nowrap; }

@media (max-width: 480px) {
    .nav-links a:nth-child(2), .nav-links a:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
