:root {
    --navy: #0f1b2d;
    --navy-2: #1f2a5c;
    --ink: #161b2e;
    --muted: #646b80;
    --line: #e2e4ec;
    --bg: #ffffff;
    --bg-alt: #f3f4f8;
    --accent: #e0475b;
    --accent-dark: #c93349;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(15, 27, 45, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent-dark); }
img, svg { max-width: 100%; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .xp-head :focus-visible, .download :focus-visible, .site-footer :focus-visible, .skip:focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
a[target="_blank"]::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .35em; vertical-align: -.05em; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: #cfd5e6; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a.lang { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* Typography & sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 88px 0 80px; }
.hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: #ff8d9c; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #cfd5e6; font-size: 1.1rem; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: #a82a3d; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat strong { display: block; font-size: 2.2rem; line-height: 1; color: #fff; }
.stat span { font-size: .9rem; color: #cfd5e6; }

/* Cards / pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.pillar, .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pillar .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(224, 71, 91, .12); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 14px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 10px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 5px 0 5px 22px; position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--bg-alt); border: 1px solid var(--line); color: var(--navy-2); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.alt .tag { background: #fff; }

/* Timeline (summary) */
.timeline { list-style: none; margin: 32px 0 0; padding: 0 0 0 28px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 8px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.timeline .date { display: block; font-size: .85rem; font-weight: 700; color: var(--accent-dark); letter-spacing: .04em; }
.timeline .role { font-weight: 700; color: var(--navy); }
.timeline .org { color: var(--muted); }

/* Experiences */
.xp { margin-top: 28px; display: grid; gap: 24px; }
.xp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.xp-head { background: var(--navy); color: #fff; padding: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; }
.xp-head h3 { color: #fff; margin: 0; }
.xp-head .org { color: #ff8d9c; }
.xp-head .dates { color: #cfd5e6; font-size: .95rem; font-weight: 600; }
.xp-body { padding: 24px 28px 28px; display: grid; gap: 20px 32px; grid-template-columns: repeat(3, 1fr); }
.xp-body .context { grid-column: 1 / -1; color: var(--muted); border-left: 4px solid var(--accent); padding-left: 16px; }
.xp-body h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.xp-body ul { margin: 0; padding-left: 18px; }
.xp-body li { padding: 2px 0; }
.xp-body .env { grid-column: 1 / -1; }

.timeline a.tl-link { display: block; color: inherit; text-decoration: none; border-radius: 10px; margin: -6px -8px; padding: 6px 8px; }
.timeline a.tl-link:hover, .timeline a.tl-link:focus-visible { background: var(--bg-alt); }
.timeline a.tl-link .role { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.xp-card:target { outline: 3px solid var(--accent); outline-offset: 3px; }
.xp-head .back { color: #ff8d9c; font-size: .85rem; margin-right: 12px; text-decoration: none; white-space: nowrap; }
.xp-head .back:hover { text-decoration: underline; }

/* Competences lists */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }

/* Download */
.download { background: var(--navy); color: #fff; text-align: center; }
.download h2 { color: #fff; }
.download p { color: #cfd5e6; max-width: 60ch; margin-inline: auto; }
.download .cta { justify-content: center; }
.download .eyebrow { color: #ff8d9c; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-list strong { display: inline-block; min-width: 80px; color: var(--navy); }

.site-footer { background: #0a1220; color: #9aa3bd; padding: 24px 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: #cfd5e6; }

@media (max-width: 860px) {
    section { padding: 52px 0; }
    .hero .container { grid-template-columns: 1fr; gap: 32px; }
    .xp-body { grid-template-columns: 1fr; padding: 20px; }
    .xp-head { padding: 18px 20px; }
    .menu-toggle { display: block; }
    .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 8px 16px 16px; flex-direction: column; align-items: stretch; }
    .nav.open { display: flex; }
}
@media print {
    .site-header, .menu-toggle, .cta, .download, .skip { display: none; }
    section { padding: 24px 0; }
    .hero { background: none; color: var(--ink); padding: 16px 0; }
    .hero h1, .hero p, .stat strong, .stat span { color: var(--ink); }
    .xp-card, .pillar, .card { box-shadow: none; break-inside: avoid; }
    .xp-head { background: #eee; color: var(--ink); } .xp-head h3, .xp-head .org, .xp-head .dates { color: var(--ink); }
}
