* { box-sizing: border-box; }

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #667085;
  --line: #e6e8ec;
  --accent: #0f172a;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --radius: 18px;
  --shell: 1120px;
  --pointer-x: 50vw;
  --pointer-y: 20vh;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(37, 99, 235, .055), transparent 46%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #94a3b8; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 10px; }

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
  padding-block: 64px;
}
.not-found .brand { margin-bottom: 52px; }
.not-found h1 { font-size: clamp(44px, 8vw, 76px); }
.not-found > p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - var(--shell)) / 2));
  background: rgba(247, 248, 250, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 232, 236, 0.85);
}

.brand {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav nav { display: flex; gap: 26px; }
.nav nav a {
  position: relative;
  padding: 24px 0 22px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.nav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.nav nav a:hover,
.nav nav a.is-active { color: var(--text); }
.nav nav a.is-active::after { transform: scaleX(1); }

.hero { padding: 112px 0 72px; max-width: 920px; }

.hero-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 14px;
}
.hero-labels .eyebrow { margin: 0; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.availability span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
  animation: availabilityPulse 2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.065em;
}

.hero-copy {
  max-width: 790px;
  margin: 30px 0 22px;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.45;
  letter-spacing: -.025em;
  color: #344054;
}

.accent-text {
  color: var(--text);
  background: linear-gradient(120deg, rgba(37, 99, 235, .17), rgba(124, 58, 237, .12));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 32%;
}

.meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--accent); color: #fff; }
.secondary { background: var(--surface); border: 1px solid var(--line); }
.secondary:hover { border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); }
.download-profile span { margin-left: 8px; transition: transform 180ms ease; }
.download-profile:hover span { transform: translateY(2px); }

.direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.direct-contact a:hover { color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.stats div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid var(--line);
}
.stats div:last-child { border-right: 0; }
.stats strong { font-size: 26px; letter-spacing: -.04em; }
.stats span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.section { padding: 116px 0 0; }

.section-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading h2, .contact h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.project-grid, .domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card, .role, .skill-groups > div, .education article, .domain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card { min-height: 250px; padding: 30px; }
.card-kicker, .year {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}

.card h3, .role h3, .skill-groups h3, .education h3, .domain-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  letter-spacing: -.03em;
}

.card p:last-child, .skill-groups p, .education p, .domain-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.role {
  margin-top: 16px;
  padding: 34px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
}
.role ul { margin: 0; padding-left: 20px; color: #344054; }
.role li + li { margin-top: 8px; }

.domain-card {
  position: relative;
  padding: 30px;
  min-height: 220px;
}
.domain-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transform: scale(.4);
  transition: opacity 180ms ease, transform 180ms ease;
}
.domain-card:hover::after { opacity: 1; transform: scale(1); }
.domain-index {
  display: inline-block;
  margin-bottom: 34px;
  font-size: 12px;
  font-weight: 700;
  color: #98a2b3;
  letter-spacing: .08em;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-groups > div { padding: 28px; }

.education {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.education article { padding: 30px; }

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

.credential-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.credential-list article:hover {
  transform: translateX(4px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.credential-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.credential-list p { margin: 0; font-weight: 600; line-height: 1.4; }
.credential-list small { color: var(--muted); }
.credential-list img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 220ms ease;
}
.credential-details { min-width: 0; }
.credential-details p { transition: color 180ms ease; }
.credential-details small {
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}
.credential-list a {
  color: inherit;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.credential-list a:hover,
.credential-list a:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}
.credential-list .featured-credential {
  border-color: rgba(37, 99, 235, .25);
  background: linear-gradient(135deg, rgba(37, 99, 235, .055), var(--surface) 62%);
}
.credential-group-heading {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.credential-group-heading--additional { margin-top: 36px; }
.credential-list .credential-card-link {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.credential-list .credential-card-link:hover,
.credential-list .credential-card-link:focus-visible {
  border-color: rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .06);
  text-decoration: none;
}
.credential-list--badges article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), border-color 220ms ease, box-shadow 220ms ease;
}
.credential-list--badges article::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--blue), #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}
.credential-list--badges .credential-card-link { position: static; }
.credential-list--badges .credential-card-link::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
}
.credential-list--badges .credential-card-link span {
  display: inline-block;
  transition: transform 180ms ease;
}
.credential-list--badges article:hover,
.credential-list--badges article:focus-within {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .34);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
}
.credential-list--badges article:hover::before,
.credential-list--badges article:focus-within::before { transform: scaleX(1); }
.credential-list--badges article:hover img,
.credential-list--badges article:focus-within img { transform: scale(1.07); }
.credential-list--badges article:hover .credential-details p,
.credential-list--badges article:focus-within .credential-details p { color: var(--blue); }
.credential-list--badges article:hover .credential-card-link span,
.credential-list--badges article:focus-within .credential-card-link span { transform: translate(2px, -2px); }
.credential-list--badges article:active { transform: translateY(-1px); }
.credential-list--additional article { grid-template-columns: 40px minmax(0, 1fr) auto; }
.credential-profile-link { margin: 20px 0 0; }
.credential-profile-link a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.credential-profile-link a:hover,
.credential-profile-link a:focus-visible { text-decoration: underline; }

.contact {
  margin-top: 116px;
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact h2 { max-width: 940px; }
.contact > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  margin: 22px 0 0;
}

.footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }
.privacy-note {
  display: block;
  margin-top: 3px;
  color: #98a2b3;
  font-size: 10px;
}
.owner-counter {
  display: block;
  margin-top: 3px;
  color: #98a2b3;
  font-size: 10px;
  letter-spacing: .02em;
}
.owner-counter[hidden] { display: none; }

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

@media (max-width: 800px) {
  .nav nav { display: none; }
  .hero { padding-top: 82px; }
  .stats, .project-grid, .domain-grid, .skill-groups, .education, .role, .section-heading { grid-template-columns: 1fr; }
  .stats div { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .section { padding-top: 88px; }
  .section-heading { gap: 4px; }
  .role { gap: 16px; }
  .contact { margin-top: 88px; }
  .footer { padding: 24px 0; gap: 16px; flex-direction: column; align-items: flex-start; }
  .credential-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .card, .role, .skill-groups > div, .education article, .domain-card { padding: 22px; }
  .credential-list--badges article { grid-template-columns: 64px minmax(0, 1fr); }
  .credential-list--badges .credential-card-link { grid-column: 2; justify-self: start; }
  .credential-list--additional article { grid-template-columns: 32px minmax(0, 1fr); }
  .credential-list--additional small { grid-column: 2; }
}


.timeline { display: grid; gap: 16px; }
.experience-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.experience-meta span { color: var(--muted); font-size: 13px; }
.experience-card h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.experience-card .company { margin: 3px 0 14px; font-weight: 600; }
.experience-card > div:last-child > p:not(.company) { color: var(--muted); }
.experience-card ul { margin: 18px 0 0; padding-left: 20px; color: #344054; }
.experience-card li + li { margin-top: 7px; }
.client-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.client-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 800px) {
  .experience-card { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
}


/* Subtle production animations */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(.2,.7,.2,1);
}

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

.reveal-item:nth-child(2) { transition-delay: 60ms; }
.reveal-item:nth-child(3) { transition-delay: 120ms; }
.reveal-item:nth-child(4) { transition-delay: 180ms; }
.reveal-item:nth-child(5) { transition-delay: 240ms; }
.reveal-item:nth-child(6) { transition-delay: 300ms; }

.experience-card,
.domain-card,
.skill-groups > div,
.education article,
.stats div {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.experience-card:hover,
.domain-card:hover,
.skill-groups > div:hover,
.education article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  border-color: #d7dce2;
}

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

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.10);
  transform: translateX(-105%);
  transition: transform 220ms ease;
  pointer-events: none;
}

.button:hover::after {
  transform: translateX(0);
}

.nav a {
  transition: color 160ms ease, opacity 160ms ease;
}

.brand {
  transition: transform 180ms ease;
}

.brand:hover {
  transform: rotate(-3deg) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .experience-card,
  .domain-card,
  .skill-groups > div,
  .education article,
  .stats div,
  .button,
  .button::after,
  .brand {
    transition: none !important;
  }

  .experience-card:hover,
  .domain-card:hover,
  .skill-groups > div:hover,
  .education article:hover,
  .stats div:hover,
  .brand:hover {
    transform: none !important;
  }
}


/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.about-copy,
.about-highlights {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

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

.about-copy p + p {
  margin-top: 18px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-highlights div {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
}

.about-highlights strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.about-highlights span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* More visible but still professional motion */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(4px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(.2,.75,.2,1),
    filter 720ms ease;
  will-change: opacity, transform, filter;
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-item:nth-child(2) { transition-delay: 90ms; }
.reveal-item:nth-child(3) { transition-delay: 180ms; }
.reveal-item:nth-child(4) { transition-delay: 270ms; }
.reveal-item:nth-child(5) { transition-delay: 360ms; }
.reveal-item:nth-child(6) { transition-delay: 450ms; }

.experience-card:hover,
.domain-card:hover,
.skill-groups > div:hover,
.education article:hover,
.about-copy:hover,
.about-highlights:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
  border-color: #cfd5dd;
}

.stats div:hover {
  transform: translateY(-4px) scale(1.015);
}

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

.hero h1 {
  animation: heroEnter 850ms cubic-bezier(.2,.75,.2,1) both;
}

.hero-copy {
  animation: heroEnter 850ms 100ms cubic-bezier(.2,.75,.2,1) both;
}

.hero .actions,
.hero .meta,
.hero .direct-contact {
  animation: heroEnter 850ms 180ms cubic-bezier(.2,.75,.2,1) both;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes availabilityPulse {
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

@media (max-width: 800px) {
  .about-grid,
  .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero-copy,
  .hero .actions,
  .hero .meta,
  .hero .direct-contact {
    animation: none !important;
  }

  .availability span { animation: none !important; }

  .about-copy:hover,
  .about-highlights:hover {
    transform: none !important;
  }
}
