:root {
  --bg: #f7faf6;
  --bg-strong: #eef5ef;
  --ink: #13211d;
  --ink-soft: #4a5b55;
  --line: #d8e4dc;
  --teal: #0d8f7a;
  --teal-deep: #09695c;
  --mint: #dff5ec;
  --white: #ffffff;
  --graphite: #1f2a27;
  --shadow: 0 20px 60px rgba(16, 33, 29, 0.14);
  --radius: 8px;
  --max-width: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid rgba(13, 143, 122, 0.5);
  outline-offset: 3px;
}

.sr-only,
.skip-link {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  left: 1rem;
  padding: 0.7rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 250, 246, 0.94);
  border-bottom: 1px solid rgba(216, 228, 220, 0.9);
  box-shadow: 0 10px 30px rgba(16, 33, 29, 0.08);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 800;
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
  color: var(--ink);
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}

.site-header.is-scrolled .brand__mark,
.site-header.is-open .brand__mark {
  color: var(--white);
  border-color: transparent;
  background: var(--teal-deep);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled .nav__links a,
.site-header.is-open .nav__links a {
  color: var(--ink-soft);
}

.nav__links a:hover,
.nav__links a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.site-header.is-scrolled .nav__links a:hover,
.site-header.is-scrolled .nav__links a.is-active,
.site-header.is-open .nav__links a:hover,
.site-header.is-open .nav__links a.is-active {
  background: var(--mint);
  color: var(--teal-deep);
}

.nav__toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 20, 17, 0.9) 0%, rgba(9, 20, 17, 0.66) 45%, rgba(9, 20, 17, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 20, 17, 0.35), rgba(9, 20, 17, 0.08));
}

.hero__content {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 8.5rem 0 4.5rem;
}

.eyebrow,
.section__kicker {
  margin-bottom: 0.85rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #8cf0dc;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(3.1rem, 7.5vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 710px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 0.78rem 1.05rem;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

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

.button--primary:hover {
  background: var(--teal-deep);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.section--cta .button--secondary,
.button--ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button--ghost {
  background: transparent;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 860px;
  margin: 3.3rem 0 0;
}

.hero__stats--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1040px;
}

.hero__stats div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero__stats dt {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.15;
}

.hero__stats dd {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  line-height: 1.38;
}

.hero__stats dd span {
  display: block;
}

.section {
  padding: 6rem 0;
}

.section--muted {
  background: var(--bg-strong);
}

.section--intro {
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.results-layout,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy p {
  font-size: 1.07rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2.25rem;
}

.section-heading--wide {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: end;
}

.section-heading--wide p:last-child {
  margin-bottom: 0;
}

.stack-grid,
.projects-grid,
.differentials-grid {
  display: grid;
  gap: 1rem;
}

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

.stack-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 33, 29, 0.04);
}

.stack-card {
  padding: 1.35rem;
}

.stack-card h3,
.project-card h3,
.timeline__item h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1.18rem;
}

.stack-card h4,
.project-card h4,
.research-card h4,
.experience-card h4 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1rem;
}

.stack-card p,
.project-card p,
.timeline__item p {
  margin-bottom: 0;
}

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

.projects-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.differentials-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.4rem;
}

.project-card--hero {
  grid-column: 1 / -1;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.project-card--featured {
  grid-row: span 2;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow);
}

.project-card--featured h3,
.project-card--featured p,
.project-card--featured li {
  color: var(--white);
}

.project-card--featured p,
.project-card--featured li {
  color: rgba(255, 255, 255, 0.78);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.project-card__meta span,
.project-card__tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card__meta span {
  background: var(--mint);
  color: var(--teal-deep);
  padding: 0.28rem 0.62rem;
}

.project-card--featured .project-card__meta span {
  background: rgba(140, 240, 220, 0.14);
  color: #8cf0dc;
}

.project-card h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.project-card__list {
  display: grid;
  gap: 0.45rem;
  margin: 1.1rem 0 1.35rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.project-card__tags span {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.25rem 0.58rem;
}

.project-card--featured .project-card__tags span {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.experience-card,
.research-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(16, 33, 29, 0.04);
}

.experience-card {
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.experience-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.experience-card__header h3 {
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.experience-card__header p {
  margin: 0;
}

.experience-card__header span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-deep);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
}

.experience-card__body {
  display: grid;
  gap: 1rem;
  padding-top: 1.2rem;
}

.checked-list,
.evidence-grid ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.checked-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.evidence-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(223, 245, 236, 0.45);
  padding: 1rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  margin: 1.45rem 0;
}

.metric-strip div {
  border: 1px solid rgba(13, 143, 122, 0.22);
  border-radius: var(--radius);
  background: var(--mint);
  padding: 1rem;
}

.metric-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--teal-deep);
  font-size: 1.05rem;
  line-height: 1.2;
}

.metric-strip span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.metric-strip--light div {
  background: var(--white);
}

.research-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.research-card h3 {
  max-width: 980px;
  margin-bottom: 1.3rem;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.18;
}

.research-card__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.research-card__columns > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem;
}

.research-card__columns p {
  margin: 0;
}

.source-note {
  margin: 1rem 0 0;
  border-left: 3px solid var(--teal);
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-left: 0.85rem;
}

.career-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.career-timeline::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 7.75rem;
  width: 2px;
  background: var(--line);
  content: "";
}

.career-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.career-timeline__item::before {
  position: absolute;
  top: 1rem;
  left: 7.28rem;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--line);
  content: "";
  z-index: 1;
}

.career-timeline__date {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal-deep);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0.45rem 0.55rem;
  text-align: center;
}

.career-timeline__item > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.05rem;
  box-shadow: 0 1px 0 rgba(16, 33, 29, 0.04);
}

.career-timeline__item--accent > div {
  border-color: rgba(13, 143, 122, 0.3);
  background: linear-gradient(180deg, var(--white), rgba(223, 245, 236, 0.55));
}

.career-timeline__item h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.career-timeline__item p {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.timeline__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal-deep);
  font-weight: 900;
}

.section--cta {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.section--cta h2,
.section--cta p {
  color: var(--white);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.76);
}

.contact {
  align-items: center;
}

.contact__actions {
  justify-content: flex-end;
}

.footer {
  background: #0e1815;
  color: rgba(255, 255, 255, 0.72);
  padding: 1.4rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer a {
  color: #8cf0dc;
  font-weight: 800;
}

@media (max-width: 900px) {
  .brand {
    color: var(--ink);
  }

  .brand__mark {
    color: var(--white);
    border-color: transparent;
    background: var(--teal-deep);
  }

  .site-header {
    background: rgba(247, 250, 246, 0.94);
    border-bottom: 1px solid rgba(216, 228, 220, 0.9);
    backdrop-filter: blur(16px);
  }

  .nav__toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .nav__toggle-line,
  .nav__toggle-line::before,
  .nav__toggle-line::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    content: "";
    transition: transform 180ms ease;
  }

  .nav__toggle-line::before {
    transform: translateY(-6px);
  }

  .nav__toggle-line::after {
    transform: translateY(4px);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-line {
    transform: rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-line::before {
    transform: translateY(0) rotate(90deg);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-line::after {
    transform: translateY(-2px) rotate(90deg);
  }

  .nav__links {
    position: fixed;
    inset: 74px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a,
  .site-header.is-scrolled .nav__links a,
  .site-header.is-open .nav__links a {
    color: var(--ink);
    padding: 0.85rem;
  }

  .nav__links a:hover,
  .nav__links a.is-active,
  .site-header.is-scrolled .nav__links a:hover,
  .site-header.is-scrolled .nav__links a.is-active {
    background: var(--mint);
    color: var(--teal-deep);
  }

  .hero {
    min-height: 92svh;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(9, 20, 17, 0.84), rgba(9, 20, 17, 0.72)),
      linear-gradient(0deg, rgba(9, 20, 17, 0.32), rgba(9, 20, 17, 0.12));
  }

  .hero__content {
    padding-top: 7rem;
  }

  .hero__stats,
  .stack-grid,
  .projects-grid,
  .differentials-grid,
  .intro-grid,
  .results-layout,
  .contact,
  .section-heading--wide,
  .checked-list,
  .evidence-grid,
  .metric-strip,
  .research-card__columns {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-row: auto;
  }

  .contact__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .container,
  .nav,
  .hero__content {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .brand__text {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 18vw, 4.8rem);
  }

  .hero__stats {
    gap: 0.6rem;
  }

  .section {
    padding: 4.2rem 0;
  }

  .button {
    width: 100%;
  }

  .timeline__item {
    grid-template-columns: 1fr;
  }

  .career-timeline::before {
    left: 0.55rem;
  }

  .career-timeline__item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-left: 1.6rem;
  }

  .career-timeline__item::before {
    left: 0.06rem;
  }

  .career-timeline__date {
    justify-content: flex-start;
    width: fit-content;
  }
}

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