*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:       #1b2f4e;
    --blue:       #1e5fa8;
    --mid-blue:   #3a7fc1;
    --light-blue: #7ab3d9;
    --pale-blue:  #ddeaf5;
    --accent:     #a8d4f0;
    --grey-bg:    #edf1f5;
    --grey-line:  #dde3ea;
    --grey-text:  #3c4a59;
    --grey-sub:   #556070;   /* darkened from #6b7a8d for WCAG AA contrast on white */
    --white:      #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--grey-text);
    background: var(--grey-bg);
    -webkit-font-smoothing: antialiased;
}

/* ─── SKIP LINK ─────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--navy);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: top 0.15s;
}

.skip-link:focus {
    top: 8px;
}

/* ─── FOCUS STYLES ──────────────────────────────────────── */
/* Use :focus-visible only — browsers suppress it for mouse/touch automatically */

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.tab-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.imp-col a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── HERO ─────────────────────────────────────────────── */

.hero {
    background: linear-gradient(155deg, #0d1d31 0%, #1b2f4e 55%, #1a4a80 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* Decorative diagonal band */
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -80px;
    width: 420px;
    height: 520px;
    background: rgba(255,255,255,0.025);
    transform: rotate(18deg);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: stretch;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

/* Photo placeholder — replace contents with <img src="..."> */
.hero-photo {
    flex-shrink: 0;
    width: 50%;
    background: transparent;
    position: relative;
    overflow: hidden;
}


.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    position: absolute;
    inset: 0;
}

.placeholder-icon { opacity: 0.28; }

.placeholder-label {
    font-size: 10px;
    color: rgba(255,255,255,0.38);
    margin-top: 10px;
    text-align: center;
    line-height: 1.6;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 72px 60px 64px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(168,212,240,0.75);
    margin-bottom: 20px;
}

.hero-name {
    font-size: 3.4rem;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.hero-name strong { font-weight: 700; }

.hero-slogan {
    font-size: 1.05rem;
    color: var(--accent);
    font-style: italic;
    line-height: 1.75;
    max-width: 480px;
    padding-left: 20px;
    border-left: 3px solid rgba(168,212,240,0.45);
}

/* ─── STICKY NAV ────────────────────────────────────────── */

.nav-bar {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 16px rgba(0,0,0,0.25);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 52px;
    display: flex;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.52);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 17px 28px;
    min-height: 44px;           /* WCAG touch target */
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    position: relative;
}

/* Animated underline indicator */
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.28s ease, left 0.28s ease;
}

.tab-btn:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
}

.tab-btn[aria-selected="true"] { color: var(--white); }

.tab-btn[aria-selected="true"]::after {
    width: 100%;
    left: 0;
}

/* ─── CONTENT CARD ──────────────────────────────────────── */

.content-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 52px 80px;
}

.content-card {
    background: var(--white);
    box-shadow: 0 2px 28px rgba(27,47,78,0.09);
    padding: 56px 60px;
}

/* ─── SECTIONS ──────────────────────────────────────────── */

.section { display: none; }

.section.active {
    display: block;
    animation: fadeIn 0.32s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-heading {
    font-size: 1.45rem;
    font-weight: 300;
    color: var(--navy);
    letter-spacing: 0.3px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    position: relative;
}

/* Full-width hairline + short blue accent bar */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grey-line);
}

.section-heading::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52px;
    height: 2px;
    background: var(--blue);
    z-index: 1;
}

/* ─── PROSE (Expertise) ─────────────────────────────────── */

.prose {
    max-width: 740px;
    line-height: 1.88;
    color: var(--grey-text);
}

.prose p { margin-bottom: 20px; }

.prose ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 28px;
    border-top: 1px solid var(--grey-line);
}

.prose ul li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--grey-line);
    line-height: 1.62;
}

.prose ul li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mid-blue);
    margin-top: 8px;
}

/* ─── TIMELINE (Career) ─────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 38px;
    max-width: 740px;
}

/* Vertical connecting line */
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue) 0%, var(--light-blue) 100%);
}

.tl-item {
    position: relative;
    margin-bottom: 52px;
}

.tl-item:last-child { margin-bottom: 0; }

/* Circle marker on the line */
.tl-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--blue);
    box-shadow: 0 0 0 4px rgba(30,95,168,0.12);
}

.tl-period {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid-blue);
    margin-bottom: 4px;
}

.tl-company {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}

.tl-role {
    font-size: 0.82rem;
    color: var(--grey-sub);
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 400;
}

.tl-body {
    font-size: 0.95rem;
    line-height: 1.88;
    color: var(--grey-text);
}

.tl-body p { margin-bottom: 14px; }
.tl-body p:last-child { margin-bottom: 0; }

/* ─── REFERENCES ────────────────────────────────────────── */

.ref-intro {
    max-width: 680px;
    line-height: 1.85;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.ref-group { margin-bottom: 44px; }
.ref-group:last-child { margin-bottom: 0; }

.ref-region-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--mid-blue);
    margin-bottom: 10px;
}

/* Two-column grid for Europe list */
.ref-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 52px;
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--grey-line);
}

.ref-list.single-col { grid-template-columns: 1fr; }

.ref-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 6px;
    border-bottom: 1px solid var(--grey-line);
    transition: background 0.15s;
}

.ref-list li:hover { background: var(--pale-blue); }

.ref-country {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.875rem;
    min-width: 128px;
    flex-shrink: 0;
}

.ref-client {
    color: var(--grey-sub);
    font-size: 0.875rem;
}

/* ─── FOOTER / IMPRESSUM ────────────────────────────────── */

footer {
    background: var(--navy);
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    letter-spacing: 0.2px;
    padding: 48px 0 40px;
}

.impressum-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 52px;
}

.impressum-title {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.impressum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 48px;
    line-height: 1.75;
}

.imp-col p { margin-bottom: 10px; }
.imp-col p:last-child { margin-bottom: 0; }

.imp-col-heading {
    display: block;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.imp-col a {
    color: var(--accent);
    text-decoration: none;
}

.imp-col a:hover { text-decoration: underline; }

/* ─── REDUCED MOTION ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .section.active { animation: none; }
    .tab-btn::after { transition: none; }
    html { scroll-behavior: auto; }
}

/* ─── TABLET (≤ 980px) ───────────────────────────────────── */

@media (max-width: 980px) {
    .hero-inner {
        min-height: 460px;
    }

    .hero-text {
        padding: 44px 48px 44px 44px;
    }

    .hero-name {
        font-size: 2.6rem;
    }

    .nav-inner { padding: 0 32px; }

    .content-wrap { padding: 32px 32px 64px; }
    .content-card { padding: 40px 44px; }

    .impressum-wrap { padding: 0 32px; }
    .impressum-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── MOBILE (≤ 640px) ───────────────────────────────────── */

@media (max-width: 640px) {
    .hero-inner {
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
    }

    .hero-photo {
        width: 100%;
        height: 300px;
    }

    .hero-text {
        text-align: center;
        padding: 36px 24px 40px;
    }

    .hero-name { font-size: 1.8rem; }

    .hero-slogan {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(168,212,240,0.35);
        padding-top: 14px;
        margin: 0 auto;
        max-width: 340px;
    }

    .nav-inner {
        padding: 0;
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 0.78rem;
        padding: 14px 16px;
        flex: 1;
        text-align: center;
        min-height: 48px;
    }

    .content-wrap { padding: 16px 12px 48px; }
    .content-card { padding: 24px 20px; }

    .section-heading { font-size: 1.25rem; margin-bottom: 28px; }

    .ref-list { grid-template-columns: 1fr; }
    .ref-country { min-width: 110px; }

    .timeline { padding-left: 28px; }
    .tl-item::before { left: -25px; }

    .impressum-wrap { padding: 0 20px; }
    .impressum-grid { grid-template-columns: 1fr; gap: 20px; }
}
