:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f2efe8;
  --ink: #202526;
  --muted: #626f72;
  --line: #ded8cc;
  --accent: #2f746f;
  --accent-dark: #194f4d;
  --accent-soft: #dceeea;
  --gold: #b38738;
  --plum: #6e425d;
  --blue: #294f66;
  --shadow: 0 20px 56px rgba(32, 37, 38, 0.1);
  --radius: 8px;
  --container: 1160px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

p,
h1,
h2,
h3,
h4,
li,
a,
strong,
span,
dd {
  overflow-wrap: break-word;
}

ul {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin-inline: auto;
}

.section-pad {
  padding: 96px 0;
}

.muted-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    var(--surface-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(222, 216, 204, 0.72);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 1260px;
  min-height: 78px;
  margin-inline: auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border: 1px solid #c9c0b3;
  border-radius: var(--radius);
  background: var(--surface);
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  flex: 0 0 2px;
  width: 22px;
  height: 2px;
  margin: 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.9) 54%, rgba(220, 238, 234, 0.7) 100%),
    url("../images/thembekaOperations.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 42px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(179, 135, 56, 0.38);
  transform: rotate(8deg);
  pointer-events: none;
}

.hero-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 64px;
}

.hero-copy,
.hero-grid,
.section-heading,
.about-copy,
.portrait-card,
.role-feature-grid > *,
.employment-card,
.skill-panel,
.education-card,
.milestone-card,
.portfolio-card,
.contact-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 720px;
  font-size: 72px;
}

h2 {
  font-size: 46px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 17px;
}

.hero-title {
  max-width: 710px;
  margin: 18px 0 0;
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.32;
}

.hero-summary {
  max-width: 660px;
  margin: 22px 0 0;
  color: #465154;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 900;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(47, 116, 111, 0.24);
}

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent-dark);
}

.button-secondary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.career-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 30px 0 0;
}

.career-snapshot div {
  border: 1px solid rgba(47, 116, 111, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 14px;
}

.career-snapshot dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.career-snapshot dd {
  margin: 3px 0 0;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 0 0 auto;
  border: 1px solid rgba(222, 216, 204, 0.86);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
}

.portrait-card figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  border-radius: var(--radius);
  background: rgba(32, 37, 38, 0.86);
  color: #fff;
  padding: 16px;
  backdrop-filter: blur(10px);
}

.portrait-card strong,
.portrait-card span {
  display: block;
}

.portrait-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.about-copy p {
  margin: 0 0 18px;
  color: #465154;
  font-size: 17px;
}

.inline-cv-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 900;
}

.inline-cv-link:hover {
  color: var(--plum);
}

.highlight-grid,
.strength-grid,
.skills-grid,
.education-grid,
.milestone-grid,
.portfolio-grid,
.employment-card-grid {
  display: grid;
  gap: 18px;
}

.highlight-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

.highlight-grid article,
.strength-card,
.skill-panel,
.education-card,
.milestone-card,
.portfolio-card,
.placeholder-panel,
.contact-card,
.employment-card,
.earlier-experience,
.role-feature,
.training-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(32, 37, 38, 0.06);
}

.highlight-grid article {
  padding: 24px;
}

.highlight-grid span,
.milestone-card strong {
  color: var(--gold);
  font-weight: 900;
}

.highlight-grid h3,
.strength-card h3,
.skill-panel h3,
.education-card h3,
.milestone-card h3,
.portfolio-card h3 {
  margin-top: 10px;
}

.highlight-grid p,
.strength-card p,
.milestone-card p,
.portfolio-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.strength-grid {
  grid-template-columns: repeat(3, 1fr);
}

.strength-card {
  padding: 28px;
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.role-meta {
  margin: 8px 0 12px;
  color: var(--plum);
  font-weight: 900;
}

.experience-layout {
  display: grid;
  gap: 22px;
}

.role-feature {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(220, 238, 234, 0.88)),
    url("../images/thembekaWork1.jpg") center / cover;
  padding: 36px;
}

.role-header,
.employment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.role-header {
  margin-bottom: 26px;
}

.role-header > span:last-child {
  color: var(--accent-dark);
  font-weight: 900;
}

.role-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: 34px;
  align-items: start;
}

.role-feature h3 {
  max-width: 580px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.role-feature p {
  margin: 14px 0 0;
  color: #3f4b4d;
  font-size: 17px;
}

.role-points {
  border-left: 3px solid rgba(47, 116, 111, 0.32);
  padding-left: 24px;
}

.role-points h4,
.employment-detail h4 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-points ul,
.employment-detail ul {
  margin: 0;
  padding-left: 18px;
  color: #465154;
}

.role-points li,
.employment-detail li {
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.card-tags span {
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.employment-card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.employment-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
}

.employment-card h3 {
  margin-top: 14px;
}

.employment-detail {
  margin-top: 18px;
}

.employment-detail p {
  margin: 0;
  color: var(--muted);
}

.employment-card .card-tags {
  margin-top: auto;
  padding-top: 20px;
}

.employment-card .card-tags span {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.earlier-experience {
  padding: 28px;
}

.earlier-experience > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.earlier-experience article {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.earlier-experience h4 {
  margin-top: 12px;
}

.earlier-experience p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.skills-grid {
  grid-template-columns: repeat(2, 1fr);
}

.skill-panel {
  padding: 28px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-list span {
  border: 1px solid rgba(47, 116, 111, 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 900;
}

.education-grid {
  grid-template-columns: repeat(5, 1fr);
}

.education-card,
.milestone-card {
  padding: 26px;
}

.education-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.training-block {
  margin-top: 22px;
  padding: 28px;
}

.training-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.training-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.training-list strong,
.training-list span {
  display: block;
}

.training-list span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.milestone-grid,
.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  padding: 28px;
}

.portfolio-card span {
  color: var(--plum);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.placeholder-card {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(47, 116, 111, 0.14), rgba(179, 135, 56, 0.12));
}

.placeholder-panel {
  max-width: 920px;
  margin-inline: auto;
  padding: 42px;
  text-align: center;
}

.placeholder-panel p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px auto 10px;
  color: #465154;
  font-size: 18px;
}

.placeholder-panel span {
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  background: linear-gradient(135deg, var(--ink), var(--blue) 48%, #244845);
  color: #fff;
}

.contact-section .contact-grid {
  display: flex;
  justify-content: center;
}

.contact-section .eyebrow,
.contact-section h2 {
  color: #fff;
}

.contact-section .section-heading p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink);
}

.contact-copy h3 {
  margin: 0 0 10px;
  color: var(--accent-dark);
}

.contact-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-note {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: var(--accent-dark);
  font-weight: 800;
  line-height: 1.4;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

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

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  border-color: var(--accent);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-card .button {
  width: fit-content;
}

.site-footer {
  background: #151a1b;
  color: rgba(255, 255, 255, 0.78);
  padding: 24px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
    min-height: 46px;
    padding: 12px;
    font-size: 15px;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait-card {
    margin-inline: 0;
  }

  .highlight-grid,
  .strength-grid,
  .education-grid,
  .milestone-grid,
  .portfolio-grid,
  .employment-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-feature-grid,
  .training-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  .section-pad {
    padding: 68px 0;
  }

  .nav-shell {
    width: calc(100% - 24px);
    min-height: 72px;
    gap: 12px;
  }

  .brand span {
    max-width: 170px;
    line-height: 1.2;
  }

  .nav-links {
    top: 72px;
    right: 12px;
    left: 12px;
    max-height: calc(100dvh - 84px);
  }

  .hero {
    min-height: auto;
    padding: 20px 0 8px;
  }

  .hero::after {
    width: 180px;
    height: 180px;
  }

  .hero-grid,
  .two-column,
  .contact-grid {
    gap: 32px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .hero-actions,
  .contact-actions,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .contact-card .button {
    width: 100%;
  }

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

  .career-snapshot,
  .highlight-grid,
  .strength-grid,
  .skills-grid,
  .education-grid,
  .milestone-grid,
  .portfolio-grid,
  .employment-card-grid,
  .earlier-experience > div {
    grid-template-columns: 1fr;
  }

  .portrait-card figcaption {
    position: static;
    margin-top: 12px;
  }

  .role-feature,
  .employment-card,
  .skill-panel,
  .education-card,
  .milestone-card,
  .portfolio-card,
  .placeholder-panel,
  .contact-card,
  .training-block,
  .earlier-experience {
    padding: 24px;
  }

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

  .role-header,
  .employment-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .role-feature h3 {
    font-size: 34px;
  }

  .role-feature-grid {
    gap: 24px;
  }

  .role-points {
    border-left: 0;
    border-top: 3px solid rgba(47, 116, 111, 0.32);
    padding-top: 20px;
    padding-left: 0;
  }
}

@media (max-width: 420px) {
  html {
    scroll-padding-top: 76px;
  }

  .container,
  .nav-shell {
    width: calc(100% - 24px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
    max-height: calc(100dvh - 80px);
  }

  .section-pad {
    padding: 56px 0;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-summary {
    font-size: 16px;
  }
}
