/* Editorial profile: primitive → semantic → component tokens. Compact is self-contained. */
:root {
  --navy-900: #172c3a;
  --navy-700: #25495e;
  --teal-700: #14645e;
  --sand-50: #f6f5f1;
  --sand-100: #eeede7;
  --slate-600: #51616b;
  --slate-200: #d9e0e1;
  --white: #fff;
  --ink: var(--navy-900);
  --accent: var(--teal-700);
  --muted: var(--slate-600);
  --line: var(--slate-200);
  --paper: var(--white);
  --background: var(--sand-50);
  --hero-bg: var(--navy-900);
  --hero-text: var(--white);
  --section-gap: 44px;
  --card-radius: 20px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; touch-action: manipulation; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #c18b26; outline-offset: 5px; border-radius: 2px; }
.skip-link { position: absolute; top: 12px; left: 12px; padding: 12px 18px; background: var(--paper); z-index: 2; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.cv { max-width: 1080px; margin: 40px auto; padding: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); }
.cv-header { margin: -48px -48px 0; padding: 44px 48px 32px; border-radius: 19px 19px 0 0; color: var(--hero-text); background: radial-gradient(ellipse at 100% 0%, #2b4e59 0%, transparent 65%), var(--hero-bg); }
.header-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.header-top > div { min-width: 0; }
.eyebrow { margin: 0 0 12px; color: #b6d6d0; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.1rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.role { margin: 16px 0 6px; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.45; }
.specialties { margin: 0; color: #c6e1dd; font-weight: 500; }
.career-line { margin: 8px 0 0; max-width: 55ch; color: #d2dce2; font-size: .9rem; }
.profile-photo { display: block; width: 190px; height: 190px; flex-shrink: 0; object-fit: contain; }
.contact { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 24px 0 0; font-size: .87rem; font-style: normal; overflow-wrap: anywhere; color: #d2dce2; }
.contact a { color: var(--hero-text); }
.document-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; font-size: .85rem; }
.document-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; border-radius: 6px; text-decoration: none; color: var(--hero-text); border: 1px solid #627682; transition: background-color 160ms ease, border-color 160ms ease; }
.document-nav a:hover { background: var(--navy-700); border-color: #9bb7bd; }
.document-nav a:first-child { background: #e3efeb; border-color: #e3efeb; color: var(--ink); font-weight: 650; }
.document-nav a:first-child:hover { background: var(--white); }
.impact-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 0; border-bottom: 1px solid var(--line); gap: 24px; }
.impact-strip p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.impact-strip strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.6rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
section { margin-top: var(--section-gap); scroll-margin-top: 24px; }
.full section { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 32px; }
.full section > :not(h2) { grid-column: 2; }
h2 { margin: 4px 0 16px; color: var(--accent); font-size: .8rem; line-height: 1.6; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-wrap: balance; }
h3 { margin: 0; font-size: 1.06rem; line-height: 1.45; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 12px; }
.experience-entry { margin-bottom: 24px; padding-left: 20px; border-left: 2px solid var(--line); }
.experience-entry:last-child { margin-bottom: 0; }
#experience .experience-entry:first-of-type { border-left-color: var(--accent); }
.period { margin: 5px 0 9px; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.scope { margin: 4px 0 10px; color: var(--muted); font-size: .88rem; }
ul { padding-left: 18px; margin: 8px 0 0; }
li { padding: 3px 0; }
li::marker { color: var(--accent); }
#products .experience-entry { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--sand-50); }
.skills-list { margin: 0; display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px 20px; font-size: .93rem; }
dt { font-weight: 650; }
dd { margin: 0; }
.secondary { color: var(--muted); font-size: .9rem; }
.education p, .languages p, .interests p { margin-bottom: 10px; }
.page-footer { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: .86rem; }
@media (max-width: 1100px) { .cv { margin: 24px; } }
@media (max-width: 800px) {
  .cv { margin: 16px; padding: 32px; }
  .cv-header { margin: -32px -32px 0; padding: 32px; }
  .profile-photo { width: 145px; height: 145px; }
  .full section { grid-template-columns: 125px minmax(0, 1fr); column-gap: 24px; }
  .skills-list { grid-template-columns: 1fr; gap: 4px; }
  dd { margin-bottom: 10px; }
}
@media (max-width: 600px) {
  .cv { margin: 0; padding: 26px 22px; border: 0; border-radius: 0; }
  .cv-header { margin: -26px -22px 0; padding: 30px 22px; border-radius: 0; }
  .header-top { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .profile-photo { width: 112px; height: 112px; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .contact { gap: 10px 18px; }
  .document-nav { gap: 8px; }
  .impact-strip { gap: 14px; }
  .impact-strip strong { font-size: 1.25rem; }
  .impact-strip p { font-size: .78rem; }
  .full section { display: block; margin-top: 32px; }
  h2 { margin-bottom: 16px; }
  .experience-entry { padding-left: 14px; }
  #products .experience-entry { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .document-nav a { transition: none; } }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-family: Inter, sans-serif; font-size: 10pt; line-height: 1.4; }
  .cv { max-width: none; margin: 0; padding: 0; border: 0; }
  .cv-header { margin: 0; padding: 0 0 12px; color: #172c3a; background: #fff; border-radius: 0; border-bottom: 1px solid #d9e0e1; }
  .header-top { display: block; }
  h1 { font-size: 26pt; }
  .role { font-size: 12pt; margin: 8px 0 4px; }
  .specialties, .career-line, .contact { color: #51616b; font-size: 9pt; }
  .contact { display: block; margin-top: 8px; }
  .contact a, a { color: #172c3a; text-decoration: none; }
  .contact > * { margin-right: 12px; }
  .profile-photo, .document-nav, .page-footer, .skip-link, .eyebrow, .impact-strip { display: none; }
  section, .full section { display: block; margin-top: 16px; }
  h2 { margin-bottom: 8px; font-size: 10pt; break-after: avoid; }
  h3 { font-size: 10pt; }
  .experience-entry, #products .experience-entry { padding: 0; border: 0; background: #fff; margin-bottom: 12px; break-inside: avoid; }
  .period, .scope { font-size: 9pt; margin: 4px 0; }
  .skills-list { display: block; font-size: 9pt; }
  dt { margin-top: 6px; }
  dd { margin: 0; }
  li { padding: 1px 0; }
}
