:root {
  --blue: #0077b5;
  --blue-dark: #005c8d;
  --ink: #252a2e;
  --muted: #667078;
  --line: #e5e9ec;
  --paper: #ffffff;
  --canvas: #f0f2f5;
  --soft: #f8fafb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 60px;
  margin-bottom: 16px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(28, 37, 44, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 11px 14px;
  border-radius: 999px;
  color: #515b62;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #eef6fa;
  color: var(--blue-dark);
  outline: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
}

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.profile-container {
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(28, 37, 44, 0.1);
}

.profile-header {
  position: relative;
  min-height: 390px;
  padding: 72px 56px 54px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 119, 181, 0.14), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f7fbfd 100%);
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--ink) 0 32%, var(--blue) 32% 100%);
}

.profile-photo {
  width: 156px;
  height: 156px;
  object-fit: cover;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(28, 37, 44, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-info h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.profile-info h2 {
  max-width: 690px;
  margin: 18px 0 8px;
  color: #3c444a;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.35;
}

.headline,
.location {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.location {
  font-size: 0.84rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: white;
}

.button.secondary:hover {
  background: #eef7fb;
}

.button svg,
.credential-link svg,
.contact-links svg {
  width: 16px;
  height: 16px;
}

.crest-link {
  justify-self: end;
  transition: transform 180ms ease;
}

.crest-link:hover {
  transform: translateY(-3px);
}

.crest-link img {
  width: 84px;
  height: 112px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.section {
  padding: 58px 56px;
  scroll-margin-top: 90px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin-bottom: 34px;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.section-title > span,
.section-title > div > span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.section-title.compact {
  margin-bottom: 24px;
}

.section-title.compact h2 {
  font-size: 1.55rem;
}

.about-copy {
  max-width: 800px;
}

.about-copy p {
  margin: 0 0 18px;
  color: #444d53;
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-copy small {
  display: block;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  background: var(--soft);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-list span {
  padding: 10px 13px;
  border: 1px solid #d8e0e5;
  border-radius: 999px;
  background: white;
  color: #374047;
  font-size: 0.83rem;
  font-weight: 700;
}

.skill-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.language-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list li {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.language-list li:last-child {
  border-bottom: 0;
}

.language-list span {
  color: var(--muted);
  text-align: right;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 0;
  left: 156px;
  width: 1px;
  background: #dce3e7;
}

.timeline-item {
  position: relative;
  min-height: 82px;
  padding: 0 0 38px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 50px;
}

.timeline-marker {
  position: absolute;
  top: 4px;
  left: 151px;
  width: 11px;
  height: 11px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.timeline-period {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.timeline-content h3,
.education-card h3,
.certification-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.company {
  margin: 6px 0 2px;
  color: var(--blue-dark);
  font-size: 0.89rem;
  font-weight: 700;
}

.muted,
.credential-id {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.timeline-content ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #515b62;
  font-size: 0.88rem;
  line-height: 1.65;
}

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

.education-card {
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.education-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 37, 44, 0.08);
}

.education-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.education-card .education-year {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.certifications-heading {
  justify-content: space-between;
  align-items: end;
}

.certifications-heading > div {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.certifications-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.certification-search {
  height: 50px;
  margin-bottom: 24px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #d8e0e5;
  border-radius: 9px;
  background: var(--soft);
}

.certification-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.certification-search svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.certification-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.certification-search input::placeholder {
  color: #8b969d;
}

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

.certification-card {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.issuer-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
}

.cert-skills {
  margin: 9px 0 0;
  color: #59646b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.credential-link {
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.credential-link:hover {
  text-decoration: underline;
}

.show-all {
  width: 100%;
  min-height: 47px;
  margin-top: 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease;
}

.show-all:hover {
  background: #eef7fb;
}

.empty-state {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.contact-section {
  padding: 70px 56px;
  scroll-margin-top: 90px;
  background: var(--ink);
  color: white;
}

.contact-section .eyebrow {
  color: #7ed1ff;
}

.contact-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.contact-section > p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px 0 30px;
  color: #c2c9cd;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-links a {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #667179;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.07);
}

footer {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161a1d;
  color: #aeb7bc;
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

footer a {
  color: white;
  text-decoration: none;
}

@media (max-width: 860px) {
  .profile-header {
    grid-template-columns: 126px minmax(0, 1fr);
    padding: 54px 38px 44px;
    gap: 28px;
  }

  .profile-photo {
    width: 126px;
    height: 126px;
  }

  .crest-link {
    display: none;
  }

  .section {
    padding: 48px 38px;
  }

  .two-column {
    gap: 40px;
  }

  .contact-section {
    padding: 60px 38px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 12px;
  }

  .site-nav {
    top: 7px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    padding: 10px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 30px rgba(28, 37, 44, 0.14);
  }

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

  .nav-links a {
    padding: 13px 16px;
  }

  .profile-header {
    grid-template-columns: 1fr;
    padding: 46px 24px 40px;
    justify-items: center;
    text-align: center;
  }

  .profile-photo {
    width: 132px;
    height: 132px;
  }

  .hero-actions {
    justify-content: center;
  }

  .section,
  .contact-section {
    padding: 42px 24px;
  }

  .two-column,
  .education-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-item {
    padding-left: 28px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .timeline-marker {
    left: 0;
  }

  .timeline-period {
    text-align: left;
  }

  .certifications-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-links a {
    justify-content: space-between;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: 100%;
    padding: 0;
  }

  .site-nav {
    top: 0;
    margin: 0;
    border-radius: 0;
  }

  .profile-container {
    border-radius: 0;
  }

  .profile-info h1 {
    font-size: 2.2rem;
  }

  .section-title {
    margin-bottom: 26px;
  }

  .section-title h2 {
    font-size: 1.65rem;
  }

  .language-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .language-list span {
    text-align: left;
  }

  .certification-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }

  .issuer-mark {
    width: 36px;
    height: 36px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
