/* AfRA site palette: white paper, charcoal text, orange-red brand accents, warm neutral dividers.
   Native HTML/CSS/JS, offline-ready and responsive. */
:root {
  --white: #fff;
  --navy: #202124;
  --slate: #525252;
  --ink: #263038;
  --teal: #fc4000;
  --teal-dark: #c33200;
  --line: #d7d1cd;
  --light-line: #eee9e6;
  --paper-soft: #fbf8f6;
  --base: Inter, Aptos, 'Segoe UI', Arial, Helvetica, sans-serif;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--base); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 88px), var(--wrap)); margin: 0 auto; }
.skip-link { position: absolute; z-index: 1000; left: 12px; top: -100px; background: #fff; color: var(--navy); padding: 12px 18px; outline: 2px solid var(--teal); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.site-header { background: #fff; border-bottom: 1px solid var(--light-line); position: sticky; top: 0; z-index: 30; }
.nav-shell { display: flex; gap: 24px; align-items: center; min-height: 78px; }
.brand { font-size: 18px; font-weight: 820; white-space: nowrap; letter-spacing: -.025em; color: var(--navy); }
.nav-links { display: flex; gap: 21px; justify-content: center; flex: 1; }
.nav-links a { color: var(--slate); font-size: 12px; font-weight: 670; white-space: nowrap; border-bottom: 2px solid transparent; padding: 9px 0; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--teal); border-color: var(--teal); }
.lang-switch { display: flex; align-items: center; white-space: nowrap; border: 1px solid var(--line); padding: 3px; }
.lang-btn { background: transparent; color: var(--slate); font-size: 12px; font-weight: 760; padding: 7px 10px; border: 0; cursor: pointer; }
.lang-btn.is-active { background: var(--teal); color: white; }
.lang-btn:not(.is-active):hover { color: var(--teal); }
.lang-divider { color: #9b918d; padding: 0 2px; font-size: 10px; }

.hero { padding-top: 81px; }
.hero-layout { display: grid; grid-template-columns: 1fr 244px; align-items: start; column-gap: 72px; }
.eyebrow { color: var(--teal); letter-spacing: .09em; font-weight: 800; font-size: 12px; margin: 4px 0 13px; }
h1 { font-size: clamp(40px, 5.7vw, 59px); color: var(--navy); font-weight: 820; letter-spacing: -.036em; line-height: 1.1; margin: 0 0 12px; }
.role-line { color: var(--teal); font-size: clamp(13px, 1.42vw, 16px); line-height: 1.6; font-weight: 790; margin: 0 0 13px; }
.hero-contact-meta { color: var(--slate); display: flex; flex-wrap: wrap; gap: 0 10px; line-height: 1.9; font-size: 14px; }
.hero-contact-meta a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.point { color: #a99a94; }
.hero-intro { border-top: 1px solid var(--line); padding-top: 22px; margin: 25px 0 26px; color: var(--ink); font-size: 16px; max-width: 740px; line-height: 1.75; }
.portrait-frame { width: 244px; height: 312px; overflow: hidden; background: #eee; border: 1px solid #e4e8ea; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; font-size: 13px; font-weight: 760; padding: 11px 17px; border: 1px solid var(--teal); transition: background-color .15s, color .15s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { color: var(--teal); background: white; }
.btn-outline:hover { background: var(--paper-soft); }
.hero-rule { border-bottom: 1px solid var(--line); margin-top: 72px; }

.content-section { padding: 37px 0 14px; }
.section-rule { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.section-rule h2 { color: var(--teal); font-size: 15px; font-weight: 830; margin: 0 0 8px; line-height: 1.5; letter-spacing: .012em; }
.profile-content { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.profile-content p { margin: 0; line-height: 1.75; color: var(--ink); font-size: 15px; }
.competencies-section { padding-top: 44px; }
.competencies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.competency { padding: 7px 25px 8px 0; margin-right: 25px; border-right: 1px solid var(--light-line); }
.competency:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.competency-number { color: var(--teal); font-size: 12px; font-weight: 760; margin-bottom: 6px; }
.competency h3 { font-size: 17px; color: var(--navy); font-weight: 790; margin: 0 0 6px; }
.competency p { font-size: 14px; color: var(--slate); line-height: 1.65; margin: 0; }
.experience-section { padding-top: 54px; }
.experience-list { display: grid; }
.job { padding: 17px 0 19px; border-bottom: 1px solid var(--light-line); }
.job:last-child { border-bottom: 0; padding-bottom: 0; }
.job-head { display: flex; gap: 9px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.job-head h3 { margin: 0; color: var(--navy); font-size: 17px; font-weight: 810; line-height: 1.45; }
.job-company { font-size: 14px; color: var(--navy); font-weight: 730; }
.job-company::before { content: '|'; color: var(--slate); font-weight: 450; margin-right: 9px; }
.job-date { color: var(--slate); font-size: 13px; white-space: nowrap; }
.job-date::before { content: '|'; color: var(--slate); margin-right: 9px; }
.job p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.65; padding-left: 17px; position: relative; }
.job p::before { content: '•'; color: var(--teal); position: absolute; left: 3px; font-weight: 820; }
.education-section { padding-top: 54px; }
.education-foundations { margin-bottom: 19px; }
.education-foundations p { margin: 7px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 11px; font-size: 14px; }
.education-foundations strong { color: var(--navy); font-weight: 780; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; row-gap: 28px; }
.education-group { border-top: 2px solid #eee9e6; padding-top: 13px; }
.education-group h3 { color: var(--navy); margin: 0 0 9px; font-size: 15px; font-weight: 830; }
.education-group ul { list-style: none; padding: 0; margin: 0; }
.education-group li { position: relative; padding: 3px 0 3px 16px; line-height: 1.5; color: var(--ink); font-size: 13.8px; }
.education-group li::before { content: '•'; color: var(--teal); position: absolute; left: 2px; }
.training-status { color: var(--slate); font-style: normal; }
.profile-tools { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 15px; }
.profile-tools p { margin: 0 0 7px; font-size: 14px; }
.profile-tools strong { color: var(--navy); font-weight: 800; margin-right: 12px; }
.cv-section { padding-top: 55px; }
.section-description { color: var(--slate); margin: 0 0 20px; font-size: 14px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cv-card { background: #fff; border: 1px solid var(--line); padding: 24px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; transition: border-color .15s, background-color .15s; }
.cv-card:hover { border-color: var(--teal); background: var(--paper-soft); }
.cv-index { color: var(--teal); font-size: 14px; font-weight: 850; padding-top: 1px; }
.cv-card h3 { color: var(--navy); font-size: 19px; font-weight: 810; line-height: 1.38; margin: 0 0 10px; }
.break-dot { color: var(--line); font-weight: 380; margin: 0 3px; }
.cv-card p { color: var(--slate); font-size: 14px; margin: 0 0 23px; min-height: 44px; }
.cv-card strong { color: var(--teal); display: inline-block; font-size: 13px; font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.cv-language { font-weight: 700; color: var(--slate); font-size: 11px; padding-left: 5px; }
.contact-section { padding-top: 60px; padding-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 70px; }
.contact-grid h3 { color: var(--navy); font-size: 27px; line-height: 1.28; margin: 0 0 12px; font-weight: 790; }
.contact-grid p { color: var(--ink); font-size: 15px; line-height: 1.7; margin: 0 0 22px; max-width: 680px; }
.contact-grid address { border-left: 1px solid var(--line); padding-left: 28px; font-style: normal; display: flex; flex-direction: column; }
.contact-grid address > span { color: var(--teal); font-weight: 820; font-size: 11px; letter-spacing: .06em; margin-bottom: 2px; }
.contact-grid address > a, .contact-grid address > p { color: var(--navy); margin: 0 0 16px; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.contact-grid address a:hover { color: var(--teal); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); color: var(--slate); }
.footer-layout { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; }
.site-footer a:hover { color: var(--teal); }
.footer-actions { display: inline-flex; align-items: center; gap: 22px; }
.footer-linkedin { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 3px; color: var(--teal); transition: border-color .2s ease, background-color .2s ease; }
.footer-linkedin:hover { border-color: var(--teal); background-color: #fff0eb; }
.footer-linkedin:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.footer-linkedin svg { display: block; }

@media (max-width: 1050px) {
  .container { width: min(calc(100% - 60px), var(--wrap)); }
  .nav-shell { gap: 16px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 11px; }
  .brand { font-size: 15px; }
  .hero-layout { gap: 40px; }
}
@media (max-width: 850px) {
  html { scroll-padding-top: 123px; }
  .nav-shell { flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .nav-links { flex: 0 0 100%; order: 3; justify-content: flex-start; overflow-x: auto; gap: 22px; padding-bottom: 8px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .brand { margin-right: auto; }
  .hero { padding-top: 55px; }
  .hero-layout { grid-template-columns: 1fr 190px; gap: 24px; }
  .portrait-frame { width: 190px; height: 242px; }
  h1 { font-size: clamp(36px, 6vw, 48px); }
  .hero-intro { font-size: 15px; }
  .hero-rule { margin-top: 52px; }
  .profile-content { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { gap: 34px; }
}
@media (max-width: 610px) {
  .container { width: min(calc(100% - 34px), 500px); }
  .nav-links { flex-wrap: wrap; overflow-x: visible; column-gap: 19px; row-gap: 0; padding-bottom: 9px; }
  .nav-links a { padding: 5px 0; }
  .hero { padding-top: 34px; }
  .hero-layout { grid-template-columns: 1fr; column-gap: 0; row-gap: 0; }
  .hero-copy { display: block; }
  .eyebrow { grid-column: 1; grid-row: 1; }
  h1 { grid-column: 1; grid-row: 2; }
  .role-line { grid-column: 1; grid-row: 3; }
  .hero-contact-meta { grid-column: 1; grid-row: 4; }
  .hero-intro { grid-column: 1 / -1; grid-row: 5; }
  .hero-actions { grid-column: 1 / -1; grid-row: 6; }
  .portrait-frame { grid-column: 2; grid-row: 1 / 5; width: 112px; height: 150px; }
  .eyebrow { font-size: 11px; margin: 0 0 9px; }
  h1 { font-size: clamp(28px, 7.3vw, 41px); margin: 0 0 8px; }
  .role-line { font-size: 13px; line-height: 1.55; }
  .hero-contact-meta { font-size: 13px; gap: 0 6px; }
  .hero-intro { margin: 20px 0 20px; font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 8px; }
  .btn { padding: 9px 13px; min-height: 42px; font-size: 12px; }
  .hero-rule { margin-top: 39px; }
  .content-section { padding-top: 28px; }
  .section-rule h2 { font-size: 13.8px; }
  .profile-content p { font-size: 14px; }
  .competencies-grid { grid-template-columns: 1fr; }
  .competency { border-right: 0; border-bottom: 1px solid var(--light-line); margin: 0; padding: 12px 0 17px; }
  .competency:last-child { border-bottom: 0; }
  .experience-section { padding-top: 37px; }
  .job-head { gap: 4px 8px; }
  .job-head h3 { font-size: 15px; flex: 0 0 100%; }
  .job-company { font-size: 13px; }
  .job-company::before { display: none; }
  .job-date { font-size: 12px; }
  .job p { font-size: 13.5px; }
  .education-grid, .cv-grid, .contact-grid { grid-template-columns: 1fr; }
  .education-grid { gap: 20px; }
  .education-group li { font-size: 13.5px; }
  .education-foundations p { display: block; }
  .education-foundations strong { margin-right: 9px; }
  .cv-card { grid-template-columns: 28px 1fr; padding: 20px; }
  .cv-card p { min-height: 0; }
  .contact-grid { gap: 32px; }
  .contact-grid h3 { font-size: 23px; }
  .contact-grid address { padding-left: 16px; }
  .footer-layout { align-items: flex-start; padding: 20px 0; flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none!important; animation: none!important; }
}
