:root {
  --blue: rgb(28,69,135);
  --navy: rgb(7,55,99);
  --ink: #162230;
  --muted: #647184;
  --line: #dfe6ee;
  --soft: #f5f8fb;
  --white: #fff;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: var(--navy); }
.brand img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { color: var(--blue); }
.nav-cta { padding: 9px 14px; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue); }
.hero { padding: 92px 0 76px; background: linear-gradient(135deg, #fff 0%, #f7f9fc 62%, #eef4f9 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.65fr); gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 6vw, 70px); line-height: 1.03; letter-spacing: -.035em; }
.headline { margin: 16px 0 24px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; font-weight: 650; color: var(--blue); }
.intro { max-width: 760px; font-size: 18px; color: #3f4d5d; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 750; font-size: 14px; }
.button.primary { background: var(--navy); color: white; }
.button.primary:hover { background: var(--blue); }
.button.secondary { border: 1px solid #aab7c5; color: var(--navy); background: white; }
.button.secondary:hover,
.button.secondary:focus-visible {
  background: #e8f0fa;
  border-color: #7f9fc5;
  color: var(--navy);
}
.location { margin-top: 22px; color: var(--muted); font-size: 14px; }
.focus-card { padding: 28px; border-radius: 16px; background: var(--navy); color: white; box-shadow: 0 20px 50px rgba(7,55,99,.16); }
.focus-card h2 { margin: 0 0 16px; font-size: 20px; }
.focus-card ul { margin: 0; padding-left: 20px; }
.focus-card li { margin: 8px 0; }
.section { padding: 82px 0; }
.section.alt { background: var(--soft); }
.section-heading { margin-bottom: 38px; }
.section h2 { margin: 0; color: var(--navy); font-size: clamp(30px,4vw,42px); line-height: 1.15; letter-spacing: -.02em; }
.timeline { display: grid; gap: 22px; }
.company { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: white; }
.company.featured { border-top: 4px solid var(--blue); }
.company-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.company-heading h3 { margin: 0; color: var(--navy); font-size: 23px; }
.company-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.company-years { white-space: nowrap; color: var(--blue); font-weight: 800; font-size: 14px; }
.roles { display: grid; }
.role { padding: 22px 0 4px; }
.role + .role { border-top: 1px solid var(--line); margin-top: 18px; }
.role-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.role h4, .early-role h4 { margin: 0; color: #203a59; font-size: 17px; }
.role-head span { white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 650; }
.role p, .early-role p { margin: 8px 0 0; color: #465568; }
.early-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.early-role { padding: 20px 0; border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li { padding: 14px 0; border-bottom: 1px solid #d9e2eb; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; }
.info-card h2 { font-size: 27px; }
.muted { color: var(--muted); }
.language-list { margin: 18px 0 0; }
.language-list div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.language-list dt { font-weight: 750; }
.language-list dd { margin: 0; color: var(--muted); }
.contact-section { padding: 64px 0; background: var(--navy); color: white; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.contact-section .eyebrow { color: #a9c7ef; }
.contact-section h2 { margin: 0; font-size: 36px; }
.contact-section p { margin-bottom: 0; color: #d9e4ef; }
.button.secondary.light { color: white; border-color: #8aa6c4; background: transparent; }
footer { padding: 28px 0; background: #052c50; color: #cbd8e5; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner a { text-decoration: none; }

@media (max-width: 800px) {
  .wrap { width: min(100% - 30px, var(--max)); }
  .site-header { position: static; }
  .nav-wrap { min-height: 62px; }
  nav { gap: 12px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding: 58px 0 48px; }
  .hero-grid, .two-col, .cards-grid { grid-template-columns: 1fr; gap: 34px; }
  .focus-card { padding: 22px; }
  .section { padding: 58px 0; }
  .company { padding: 22px 18px; }
  .company-heading, .role-head { display: block; }
  .company-years, .role-head span { display: block; margin-top: 5px; }
  .early-grid { grid-template-columns: 1fr; }
  .contact-inner { display: block; }
}

@media (max-width: 480px) {
  h1 { font-size: 42px; }
  .headline { font-size: 24px; }
  .intro { font-size: 16px; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .brand span { display: none; }
  .nav-cta { padding: 8px 12px; }
  .company-heading h3 { font-size: 21px; }
  .role h4, .early-role h4 { font-size: 16px; }
  .footer-inner { display: block; }
  .footer-inner a { display: inline-block; margin-top: 8px; }
  .footer-links { display: flex; align-items: center; gap: 18px; }
}

@media print {
  .site-header, .hero-actions, .contact-section, footer { display: none; }
  .hero, .section, .section.alt { padding: 28px 0; background: white; }
  .company, .info-card, .focus-card { box-shadow: none; break-inside: avoid; }
}

/* Full CV additions */
.hero-focus { display: flex; flex-wrap: wrap; margin: -10px 0 18px; color: var(--blue); font-size: 15px; font-weight: 750; letter-spacing: .015em; }
.hero-focus span { display: inline-flex; align-items: center; }
.hero-focus span:not(:last-child)::after { content: "•"; margin: 0 12px; }
.profile-copy { max-width: 1000px; margin: 0; font-size: 18px; color: #3f4d5d; line-height: 1.75; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.impact-card { position: relative; min-height: 180px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.impact-card span { display: block; margin-bottom: 16px; color: var(--blue); font-weight: 850; font-size: 13px; letter-spacing: .12em; }
.impact-card p { margin: 0; color: #465568; }
.role-summary { margin: 10px 0 0; padding-left: 21px; color: #465568; }
.role-summary li { margin: 7px 0; padding-left: 3px; }
.detailed-list li { display: grid; grid-template-columns: 185px 1fr; gap: 20px; align-items: start; }
.detailed-list strong { color: var(--navy); font-size: 14px; }
.detailed-list span { color: #465568; }
.certs { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.certs h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.certs p { margin: 0; color: #465568; }
.contact-actions { min-width: 310px; }
.contact-button { flex: 1 1 140px; min-height: 52px; border: 2px solid #fff; background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.16); transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.contact-button:hover, .contact-button:focus-visible { background: rgb(28,69,135); color: #fff; border-color: #9fc4ef; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
@media (max-width: 800px) { .impact-grid { grid-template-columns: 1fr; } .detailed-list li { grid-template-columns: 1fr; gap: 4px; } .contact-actions { min-width: 0; } }

/* Requested layout refinements */
.language-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.language-list div { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; text-align: center; background: var(--soft); }
.language-list dt { font-size: 14px; }
.language-list dd { margin-top: 2px; font-size: 13px; }
.company-heading { justify-content: flex-start; }
@media (max-width: 800px) {
  .language-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .language-list div { padding: 8px 4px; }
  .language-list dt { font-size: 12px; }
  .language-list dd { font-size: 12px; }
}
@media (max-width: 480px) {
  nav { gap: 8px; font-size: 11px; }
  .nav-wrap { align-items: center; }
  .language-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Languages - compact inline section */
.education-card { max-width: 100%; }
.languages-section { padding: 46px 0; background: var(--white); }
.language-inline-wrap { display: flex; align-items: baseline; gap: 30px; }
.language-inline-wrap .eyebrow { margin: 0; flex: 0 0 auto; }
.language-inline { margin: 0; color: #465568; font-size: 16px; letter-spacing: .005em; }
.language-inline strong { color: var(--navy); font-weight: 800; }
.language-inline span { margin: 0 12px; color: #a7b3c0; font-weight: 400; }
@media (max-width: 800px) {
  .language-inline-wrap { display: block; }
  .language-inline-wrap .eyebrow { margin-bottom: 10px; }
  .language-inline { line-height: 2; }
}
@media (max-width: 480px) {
  .language-inline span { margin: 0 6px; }
  .language-inline { font-size: 14px; }
}


/* Education and languages refinements */
.education-full {
  display: block;
}
#education .info-card {
  width: 100%;
  background: var(--white);
}

.languages-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.languages-heading {
  margin-bottom: 24px;
}
.languages-heading .eyebrow {
  margin-bottom: 8px;
}
.languages-heading h2 {
  margin: 0;
}
.languages-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 17px;
  color: #465568;
}
.languages-inline strong {
  color: var(--navy);
  font-weight: 750;
}
.lang-sep {
  color: #aab7c5;
}

@media (max-width: 600px) {
  .languages-inline {
    gap: 8px 10px;
    font-size: 16px;
  }
  .lang-sep {
    display: none;
  }
  .languages-inline span:not(.lang-sep) {
    flex: 0 1 auto;
  }
}


/* Knowledge sharing - full-width event list */
#speaking .knowledge-heading {
  width: 100%;
  margin-bottom: 28px;
}

#speaking .knowledge-heading h2 {
  font-size: clamp(24px, 3vw, 32px);
}

#speaking .speaking-list {
  width: 100%;
}

#speaking .speaking-list li {
  width: 100%;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
}

@media (max-width: 800px) {
  #speaking .speaking-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Leadership & Community */
.leadership-community { background: var(--white); }
.community-heading { margin-bottom: 30px; }
.community-heading h2 { font-size: clamp(24px,3vw,32px); }
.community-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px; }
.community-item { min-width:0; padding-right:28px; }
.community-item:not(:last-child) { border-right:1px solid var(--line); }
.community-item h3 { margin:0 0 7px; color:var(--navy); font-size:18px; }
.community-item p { margin:8px 0 0; color:#465568; }
.community-org { font-weight:700; }
.community-org a { color:var(--blue); text-decoration-thickness:1px; text-underline-offset:3px; }
.community-org a:hover,.community-org a:focus-visible { color:var(--navy); }
.language-tag { display:inline-block; margin-left:5px; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.08em; vertical-align:1px; }
#languages.section.alt { background:var(--soft); }
@media (max-width:800px) {
 .community-grid { grid-template-columns:1fr; gap:0; }
 .community-item { padding:22px 0; }
 .community-item:first-child { padding-top:0; }
 .community-item:not(:last-child) { border-right:0; border-bottom:1px solid var(--line); }
}


/* Leadership & Community - aligned rows and role status */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 0 34px;
}

.community-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: 0;
  min-width: 0;
  padding-right: 28px;
}

.community-item h3,
.community-item .community-org,
.community-item > p:last-child {
  align-self: start;
}

.role-status {
  display: inline-block;
  margin-left: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.role-status.former {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .community-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }

  .community-item {
    display: block;
    grid-row: auto;
    padding: 22px 0;
  }

  .community-item:first-child {
    padding-top: 0;
  }

  .community-item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}


/* Language selector */
.language-switcher { display:flex; align-items:center; gap:8px; margin-left:4px; font-size:12px; font-weight:750; }
.language-switcher a { color:var(--muted); text-decoration:none; padding:4px 5px; border-radius:5px; }
.language-switcher a:hover, .language-switcher a:focus-visible { color:var(--blue); }
.language-switcher a.active {
  color: var(--navy);
  background: #dceaf8;
  box-shadow: inset 0 0 0 1px #83add6;
  font-weight: 800;
}
@media (max-width:800px) { .nav-wrap { flex-wrap:wrap; } .language-switcher { margin-left:auto; } }
@media (max-width:480px) { .language-switcher { width:100%; justify-content:flex-end; padding-bottom:8px; } }


/* Collapsible detail for pre-2016 roles */
.role-details { margin-top: 10px; }
.role-details summary { display: inline-block; cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 750; list-style: none; user-select: none; }
.role-details summary::-webkit-details-marker { display: none; }
.role-details summary:hover, .role-details summary:focus-visible { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.role-details > summary .hide-label { display: none; }
.role-details[open] > summary .show-label { display: none; }
.role-details[open] > summary .hide-label { display: inline; }
.role-details[open] .role-summary { margin-top: 10px; }



/* Mobile: keep compact lists readable without awkward multi-column wrapping */
@media (max-width: 800px) {
  .languages-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .languages-inline .lang-sep { display: none; }
}


/* Hero focus - stack cleanly on mobile */
@media (max-width: 600px) {
  .hero-focus { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .hero-focus span::after { content: none !important; }
}


/* Certifications - inline on desktop, clean one-column list on mobile */
.cert-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.cert-list span:not(:last-child)::after { content: "·"; margin: 0 10px; color: #aab7c5; font-weight: 400; }
@media (max-width: 600px) {
  .cert-list { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .cert-list span::after { content: none !important; }
}


/* Executive leadership development */
.leadership-development { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.leadership-development h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.leadership-development p { margin: 0; color: #465568; }


/* Contact modal */
body.modal-open { overflow: hidden; }

button.contact-button {
  font-family: inherit;
  cursor: pointer;
}

.contact-modal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(7,55,99,.22);
}

.contact-modal::backdrop {
  background: rgba(7,55,99,.38);
  backdrop-filter: blur(4px);
}

.modal-shell {
  position: relative;
  padding: 34px;
}

.modal-shell h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px,4vw,36px);
  line-height: 1.15;
}

.modal-intro {
  margin: 12px 0 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 300 2rem/1 system-ui;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--navy);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9c6d3;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(28,69,135,.22);
  border-color: var(--blue);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-form .button.primary {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.contact-form .button:disabled {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 600px) {
  .contact-modal {
    width: min(100% - 20px, 680px);
    max-height: calc(100dvh - 20px);
  }

  .modal-shell {
    padding: 28px 20px 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .contact-form .button.primary {
    width: 100%;
  }
}


/* Footer navigation links */
.footer-links { display: flex; align-items: center; gap: 24px; }

/* Collapsible previous experience: retain original company cards and nested controls */
.previous-details { margin-top: 18px; }
.previous-cards { display: grid; gap: 18px; margin-top: 18px; }
.previous-cards > .company { background: var(--soft); }
.previous-experience > .company-heading { justify-content: space-between; }
@media (max-width: 800px) { .previous-cards { gap: 12px; } }

/* Contact message: vertical resizing on desktop only. */
.contact-form textarea { resize: none; }
@media (min-width: 801px) and (pointer: fine) {
  .contact-form textarea { resize: vertical; }
}

/* Place copyright below on mobile */
@media (max-width: 800px) {
    .footer-inner {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 16px;
    }

    .footer-links {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
    }
}
