
:root {
  --primary: #5b2a86;
  --primary-dark: #2f1546;
  --accent: #c23a5b;
  --blue: #1f4e79;
  --ink: #20232a;
  --muted: #667085;
  --bg: #f7f4fb;
  --card: #ffffff;
  --line: #e5d8ef;
  --shadow: 0 18px 48px rgba(47, 21, 70, .12);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(91, 42, 134, .13), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(194, 58, 91, .10), transparent 22rem),
    var(--bg);
  line-height: 1.5;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }

a:hover { text-decoration: underline; }

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar { display:flex; align-items:center; justify-content:space-between; padding: 24px 0; gap: 18px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 34px;
  height: auto;
  display: block;
  opacity: 0.9;
}

.brand:hover {
  color: var(--primary);
}

.brand:hover .brand-logo {
  opacity: 1;
}

.nav {
  display:flex;
  flex-wrap:wrap;
  gap: 16px;
  font-size: .95rem;
}

.nav a {
  position: relative;
}

.nav a.active {
  color: var(--primary-dark);
  font-weight: 800;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.hero {
  min-height: auto;
  display: grid;
  place-items: center;
  padding: 48px 0 72px;
}

.hero-card {
  width: 100%;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(91,42,134,.13);
  box-shadow: var(--shadow);
  border-radius: 36px;
  padding: clamp(28px, 5vw, 64px);
  display:grid; grid-template-columns: 1.1fr .75fr;
  align-items:center;
  gap: clamp(28px, 5vw, 72px);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .78rem;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cv-actions {
  width: 210mm;
  max-width: calc(100% - 32px);
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-end;
}

.print-button {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: .94;
  margin: 0 0 18px;
  letter-spacing: -.05em;
  color: var(--primary-dark);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 18px; color: var(--primary-dark);
  letter-spacing: -.03em;
}

h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #34313a; max-width: 720px; }
.muted { color: var(--muted); }

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

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--primary);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn.primary { background: var(--primary); color: #fff; }
.btn.secondary { color: var(--primary-dark); background: #fff; }
.portrait-wrap { justify-self:center; position:relative; width: min(320px, 70vw); aspect-ratio: 1; }
.portrait { width:100%; height:100%; object-fit:cover; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 20px 50px rgba(47,21,70,.18); }
.orbit { position:absolute; padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: .84rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(47,21,70,.10); color: var(--primary-dark); }
.o1 { left:-24px; top: 18%; } .o2 { right:-28px; top: 25%; } .o3 { left:-10px; bottom: 14%; } .o4 { right:-16px; bottom: 12%; }
.section { padding: 54px 0; }
.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 28px rgba(47,21,70,.06); }
.kicker { font-weight: 800; color: var(--accent); font-size: .84rem; letter-spacing:.08em; text-transform: uppercase; }
.footer { padding: 36px 0 56px; color: var(--muted); font-size: .92rem; }

.bu-hero {
  padding-block: 36px 28px;
}

.split { display:grid; grid-template-columns: .72fr 1.28fr; gap: 34px; align-items:start; }
.side { position: sticky; top: 18px; }
.list-clean { padding-left: 1.1rem; margin: .5rem 0 0; }
.timeline { display:grid; gap: 14px; }
.item { border-left: 4px solid var(--line); padding-left: 14px; }
.item strong { color: var(--primary-dark); }
.small { font-size: .92rem; }
.doc-list { display:grid; gap: 12px; }
.doc { display:flex; justify-content:space-between; gap:16px; align-items:center; border:1px solid var(--line); background:#fff; padding:16px 18px; border-radius:18px; }
/* CV */
.cv-body { background: #eee; }
.cv-page { width: 210mm; min-height: 297mm; margin: 24px auto; background: white; box-shadow: 0 18px 60px rgba(0,0,0,.18); padding: 12mm; }
.cv-head { display:grid; grid-template-columns: 1fr 35mm 1fr; align-items:center; gap: 10mm; border-bottom: 2px solid var(--line); padding-bottom: 7mm; }
.cv-head h1 { font-size: 22pt; line-height: 1; margin: 0; letter-spacing: -.03em; }
.cv-title { font-size: 10.5pt; font-weight: 750; color: var(--blue); margin-top: 3mm; }
.cv-photo { width:35mm; height:35mm; object-fit:cover; border-radius:50%; border: 2mm solid #f4edf8; justify-self:center; }
.cv-contact { text-align:right; font-size: 8.7pt; color: var(--muted); }
.cv-summary { display:grid; grid-template-columns: .92fr 1.08fr; gap: 8mm; margin-top: 7mm; }
.cv-section { margin-top: 5mm; }
.cv-section h2 { font-size: 11pt; color: var(--primary-dark); margin: 0 0 2.5mm; text-transform: uppercase; letter-spacing:.08em; }
.cv-section p, .cv-section li { font-size: 8.7pt; line-height: 1.35; }
.cv-section ul { margin: 0; padding-left: 4mm; }
.cv-tags { display:flex; flex-wrap:wrap; gap: 2mm; }
.cv-tag { border: 1px solid var(--line); border-radius: 99px; padding: 1.2mm 2.4mm; font-size: 8pt; font-weight: 650; }
.cv-role { margin-bottom: 3.2mm; }
.cv-role .date { color: var(--accent); font-weight: 800; font-size: 8pt; }
.cv-role .role { font-weight: 800; font-size: 9pt; color: var(--primary-dark); }
.cv-note { margin-top: 4mm; padding-top: 3mm; border-top: 1px solid var(--line); font-size: 8.2pt; color: var(--muted); }

.cover-letter {
  max-width: 800px;
  margin: 32px auto;
  background:#fff;
  padding: 56px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.cover-letter {
  max-width: 800px;
  margin: 24px auto;
  background:#fff;
  padding: 42px 48px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.cover-letter .address {
  margin: 36px 0;
}

@media (max-width: 780px) {
  .hero-card, .split, .grid {
    grid-template-columns: 1fr;
  }

  .side { position: static; }
  .hero { min-height: auto; }
  .portrait-wrap { width: min(260px, 78vw); }
  .orbit { display:none; }
  .doc { align-items:flex-start; flex-direction:column; }
  .cv-page { width: 100%; min-height: auto; margin: 0; padding: 18px; box-shadow:none; }
  .cv-head, .cv-summary { grid-template-columns: 1fr; text-align:left; }
  .cv-contact { text-align:left; }
  .cv-photo { justify-self:start; }

}

@media screen and (max-width: 420px) {
  .hero-card, .split, .grid {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    letter-spacing: .04em;
    font-size: .72rem;
  }

  .side { position: static; }
  .hero { min-height: auto; }
  .portrait-wrap { width: min(260px, 78vw); }
  .orbit { display:none; }
  .doc { align-items:flex-start; flex-direction:column; }
  .cv-page { width: 100%; min-height: auto; margin: 0; padding: 18px; box-shadow:none; }
  .cv-head, .cv-summary { grid-template-columns: 1fr; text-align:left; }
  .cv-contact { text-align:left; }
  .cv-photo { justify-self:start; }
}

@page { size: A4; margin: 0; }

@media print {
  :root { --bg:#fff; --card:#fff; --ink:#000; --muted:#444; --line:#ddd; }

  body { background: #fff !important; }

  .no-print,
  .topbar,
  .footer {
    display:none !important;
  }

  .cv-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow:none;
    padding: 11mm;
  }

  .cv-head {
    display: grid;
    grid-template-columns: 1fr 35mm 1fr;
    text-align: left;
  }

  .cv-summary {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 8mm;
  }

  .cv-contact {
    text-align: right;
  }

  .cv-photo {
    justify-self: center;
  }

  .cv-section {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
  
  .cover-letter {
    margin:0;
    box-shadow:none;
    border-radius:0;
    min-height:297mm;
    padding: 16mm;
  }
}
