:root {
  --purple-900: #1c0838;
  --purple-800: #2b0d57;
  --purple-700: #3d1680;
  --purple-500: #6a3fd1;
  --purple-100: #efe9fb;
  --red: #e3263c;
  --red-soft: #ff5a6e;
  --white: #ffffff;
  --ink: #1d1530;
  --muted: #6b6380;
  --line: #e6e0f2;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(28, 8, 56, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--white);
}
.brand { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--red); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.menu { position: relative; }
.menu-btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--white);
  transition: background .2s, border-color .2s;
}
.menu-btn:hover, .menu-btn.open { background: rgba(255,255,255,.16); border-color: var(--red); }
.flag { width: 24px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open .burger i:nth-child(2) { opacity: 0; }
.menu-btn.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: var(--white); color: var(--ink); border-radius: 16px; padding: 10px;
  box-shadow: 0 24px 60px rgba(28, 8, 56, .35);
  animation: menuIn .18s ease;
}
.menu-panel[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.menu-nav { display: none; flex-direction: column; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-nav a { text-decoration: none; font-weight: 600; padding: 9px 12px; border-radius: 10px; }
.menu-nav a:hover { background: var(--purple-100); }
.menu-label { margin: 4px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-langs { list-style: none; margin: 0; padding: 0; }
.menu-langs button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink);
  background: none; border: 0; padding: 9px 12px; border-radius: 10px;
}
.menu-langs button:hover { background: var(--purple-100); }
.menu-langs button.active { background: var(--purple-100); color: var(--purple-800); }
.menu-langs button.active::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(227, 38, 60, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(106, 63, 209, .45), transparent 60%),
    linear-gradient(160deg, var(--purple-900), var(--purple-800) 55%, var(--purple-700));
  padding: 140px 16px 40px;
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-soft);
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em {
  font-style: normal; color: var(--red-soft);
  background: linear-gradient(90deg, var(--red-soft), #c9a7ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 34ch; opacity: .88; margin: 20px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 30px rgba(227, 38, 60, .35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.hero-photo { position: relative; justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--red), var(--purple-500), var(--white), var(--red));
  opacity: .9;
}
.hero-photo::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--purple-800);
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; background: var(--white); display: block;
}

.stats {
  max-width: var(--max); margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat { padding: 22px 0 6px; }
.stat b { display: block; font-size: 34px; font-weight: 800; }
.stat b span { color: var(--red-soft); }
.stat small { font-size: 13px; opacity: .75; }

/* Sections */
.section { padding: 96px 16px; }
.section.alt { background: var(--purple-100); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; }
.section-head .num { font-weight: 800; font-size: 14px; color: var(--red); letter-spacing: .1em; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.015em; color: var(--purple-800); }

/* Timeline */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 200px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--red), var(--purple-500));
  opacity: .35;
}
.item { display: grid; grid-template-columns: 200px 1fr; gap: 0 40px; position: relative; padding-bottom: 44px; }
.item:last-child { padding-bottom: 0; }
.item::before {
  content: ""; position: absolute; left: 194px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--red);
}
.item.current::before { background: var(--red); box-shadow: 0 0 0 6px rgba(227, 38, 60, .18); }
.when { font-size: 14px; font-weight: 700; color: var(--purple-700); padding-right: 30px; }
.when small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.what h3 { font-size: 21px; font-weight: 800; color: var(--ink); }
.what .org { margin: 4px 0 12px; font-weight: 600; color: var(--red); }
.what .org a { text-decoration: none; border-bottom: 1px solid rgba(227, 38, 60, .3); }
.what .org a:hover { border-color: var(--red); }
.what ul { margin: 0; padding-left: 18px; color: #3d3550; }
.what li { margin: 3px 0; }
.what li::marker { color: var(--purple-500); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--red); color: var(--white); padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 3px;
}

/* Documents */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.doc {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
  transition: box-shadow .25s, transform .25s;
}
.doc:hover { box-shadow: 0 18px 50px rgba(43, 13, 87, .12); transform: translateY(-3px); }
.doc img { width: 100%; height: 200px; object-fit: cover; object-position: top; background: var(--purple-100); border-bottom: 1px solid var(--line); }
.doc-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.doc-body b { font-size: 17px; color: var(--purple-800); }
.doc-body small { color: var(--muted); font-size: 13px; }
.doc-link { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--red); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--white); transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 18px 50px rgba(43, 13, 87, .1); transform: translateY(-3px); }
.card h3 { font-size: 18px; font-weight: 800; color: var(--purple-800); margin-bottom: 16px; }
.card h3::after { content: ""; display: block; width: 28px; height: 3px; background: var(--red); border-radius: 3px; margin-top: 10px; }
.muted { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.muted strong { color: var(--ink); }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.bars .row { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.bars .row span:last-child { color: var(--red); }
.bar { height: 8px; background: var(--purple-100); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-500), var(--red)); border-radius: 99px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: var(--purple-100); color: var(--purple-800);
}

/* Contact */
.contact {
  padding: 96px 16px; color: var(--white); text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(227, 38, 60, .35), transparent 70%),
    linear-gradient(160deg, var(--purple-800), var(--purple-900));
}
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.contact p { opacity: .85; margin: 14px auto 36px; max-width: 46ch; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-item {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; text-align: left;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  transition: background .2s, border-color .2s; overflow-wrap: anywhere;
}
a.contact-item:hover { background: rgba(255,255,255,.12); border-color: var(--red); }
.contact-item small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--red-soft); font-weight: 700; }
.contact-item span { font-weight: 600; }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px max(16px, calc((100% - var(--max)) / 2));
  background: var(--purple-900); color: rgba(255,255,255,.6); font-size: 13px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer-links { display: flex; gap: 18px; }

/* Cookie consent */
.consent {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 640px;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--white); color: var(--ink); box-shadow: 0 20px 60px rgba(28, 8, 56, .35);
  border-top: 3px solid var(--red);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.btn-sm {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 0; background: var(--red); color: var(--white);
}
.btn-sm.ghost { background: var(--purple-100); color: var(--purple-800); }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent-actions > * { flex: 1; } }
@media print { .consent { display: none !important; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { margin-left: auto; }
  .menu-nav { display: flex; }
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; width: 200px; justify-self: start; margin-left: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .skills-grid, .contact-links { grid-template-columns: 1fr; }
  .section, .contact { padding: 72px 16px; }
  .timeline::before { left: 6px; }
  .item { grid-template-columns: 1fr; padding-left: 32px; }
  .item::before { left: 0; }
  .when { padding: 0 0 6px; }
}

/* Print: clean one-column CV */
@media print {
  .topbar, .cta, .footer, .hero-photo::before, .hero-photo::after { display: none !important; }
  .hero, .contact { background: none !important; color: var(--ink); padding: 0 0 20px; }
  .hero h1 em { background: none; -webkit-text-fill-color: var(--purple-800); color: var(--purple-800); }
  .facts li { border-color: var(--line); }
  .contact-item { border-color: var(--line); }
  .section { padding: 24px 0; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
