:root {
  --ink: #151a22;
  --heading: #080c12;
  --muted: #4f5b68;
  --soft: #687482;
  --accent: #1e6b7a;
  --accent-2: #3b82f6;
  --accent-wash: #eef7f8;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --line: #e6eaf0;
  --line-strong: #cfd7e2;
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::selection {
  color: #fff;
  background: var(--accent);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 253, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 44px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.project-topline,
.timeline-heading,
.credential-grid,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links {
  gap: 21px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 540;
}

.nav-links a,
.footer a {
  text-decoration: none;
  text-underline-offset: 5px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"],
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.nav-links a[aria-current="page"] {
  font-weight: 680;
}

.section-pad {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 86px 0;
}

.home-shell {
  width: min(var(--max), calc(100% - 44px));
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 76px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 107, 122, 0.12), rgba(59, 130, 246, 0) 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(900px, 100%);
}

.intro-meta,
.eyebrow,
.status {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

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

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: 0;
}

h1 {
  position: relative;
  width: fit-content;
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 4.65rem;
  font-weight: 610;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 104px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

h1 span {
  color: inherit;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.32rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.intro-role {
  max-width: 780px;
  margin-bottom: 14px;
  color: #26313d;
  font-size: 1.25rem;
  line-height: 1.45;
}

.intro-summary {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-contact,
.contact-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 20px;
}

.contact-minimal.featured {
  max-width: 100%;
  gap: 12px;
}

.hero-contact a,
.contact-minimal a {
  position: relative;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 620;
  text-decoration: none;
}

.contact-minimal.featured a {
  min-width: 118px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #fff, #f7fafb);
  box-shadow: 0 12px 26px rgba(15, 23, 32, 0.045);
  font-size: 1.02rem;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-minimal.featured a::before {
  content: none;
}

.contact-minimal.featured a:hover,
.contact-minimal.featured a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(30, 107, 122, 0.12);
}

.hero-contact a + a::before,
.contact-minimal a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  transform: translateY(-50%);
}

.contact-minimal:not(.featured) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.26;
}

.intro-note,
.contact-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.98rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

.short-section {
  border-top: 0;
  padding-top: 72px;
  padding-bottom: 58px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 30px;
}

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

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading.compact h2 {
  font-size: 2rem;
}

.section-heading p:last-child,
.copy-block p,
.project-card p,
.timeline-card p,
.stacked-list p,
.page-hero p,
.contact-copy p {
  color: var(--muted);
}

.copy-block strong {
  color: var(--heading);
  font-weight: 680;
}

.copy-block {
  max-width: 760px;
  font-size: 1.04rem;
}

.copy-block.narrow p {
  max-width: 720px;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.contact-home {
  padding-top: 20px;
  padding-bottom: 88px;
}

.contact-minimal.large a {
  font-size: 1.08rem;
}

.page-main {
  min-height: calc(100vh - 66px);
}

.page-hero {
  padding-top: 92px;
  padding-bottom: 48px;
}

.page-hero h1 {
  width: auto;
  max-width: 850px;
  font-size: 3.25rem;
}

.page-hero h1::after {
  display: none;
}

.page-hero p {
  max-width: 720px;
  font-size: 1.05rem;
}

.compact-pad {
  padding-top: 28px;
}

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

.project-card,
.timeline-card,
.stacked-list article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-card {
  padding: 25px;
  box-shadow: 0 10px 24px rgba(15, 23, 32, 0.035);
}

.project-card h2,
.timeline-card h2 {
  font-size: 1.24rem;
  line-height: 1.18;
}

.project-card p {
  margin-bottom: 18px;
}

.project-topline {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.status,
.tools {
  margin: 0;
  font-size: 0.78rem;
}

.status {
  color: var(--accent);
  letter-spacing: 0;
}

.tools {
  color: var(--soft);
  font-weight: 540;
  text-align: right;
}

.focus-list ul,
.impact-list,
.project-card ul,
.contact-card ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.focus-list li,
.impact-list li,
.project-card li,
.contact-card li {
  position: relative;
  padding-left: 16px;
  color: #465360;
  line-height: 1.52;
}

.focus-list li::before,
.impact-list li::before,
.project-card li::before,
.contact-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-card {
  padding: 28px;
}

.experience-section {
  padding-top: 26px;
}

.experience-profile {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.experience-profile::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 118px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 18px;
}

.experience-header h2 {
  margin-bottom: 7px;
  font-size: 2.15rem;
}

.experience-company {
  margin-bottom: 3px;
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 660;
}

.experience-meta {
  margin-bottom: 0;
  color: var(--muted);
}

.experience-summary {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero strong,
.experience-summary strong,
.experience-bridge strong,
.impact-list strong {
  color: var(--heading);
  font-weight: 680;
}

.experience-summary strong {
  color: #24313d;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 32px;
}

.experience-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f7fafb);
}

.experience-stats span {
  position: relative;
  display: block;
  margin-bottom: 10px;
  padding-left: 14px;
  color: var(--accent);
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 720;
}

.experience-stats span::before {
  content: "";
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.experience-stats strong {
  display: block;
  color: #465360;
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 520;
}

.experience-stats em {
  color: var(--heading);
  font-style: normal;
  font-weight: 680;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 42px;
  align-items: start;
}

.experience-grid h3 {
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 1rem;
}

.experience-bridge {
  max-width: 820px;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.timeline-heading {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline-heading h2,
.timeline-heading p {
  margin-bottom: 4px;
}

.timeline-heading span {
  align-self: start;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 620;
  white-space: nowrap;
}

.education-timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 26px;
}

.education-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(30, 107, 122, 0.12));
}

.education-item {
  position: relative;
}

.education-item::before {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: -29px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.education-item h3 {
  margin-bottom: 14px;
  font-size: 1.22rem;
}

.education-item dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.education-item div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 16px;
}

.education-item dt,
.education-item dd {
  margin: 0;
}

.education-item dt {
  color: var(--soft);
  font-size: 0.86rem;
}

.education-item dd {
  color: var(--ink);
  font-weight: 560;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 48px;
  align-items: start;
}

.stacked-list {
  display: grid;
  gap: 13px;
}

.stacked-list article {
  padding: 20px;
}

.stacked-list h3,
.stacked-list p {
  margin-bottom: 5px;
}

.credential-grid {
  flex-wrap: wrap;
  gap: 8px;
}

.credential-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.credential-list li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 560;
}

.credential-list li::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.credential-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #51606d;
  background: var(--surface);
  font-size: 0.88rem;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 17px;
  color: #fff;
  background: var(--accent);
  font-size: 0.94rem;
  font-weight: 640;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: #245866;
  background: #245866;
}

.footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 26px 0 38px;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 620;
}

@media (max-width: 920px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 62px;
  }

  h1 {
    max-width: 680px;
    font-size: 3.55rem;
  }

  h1::after {
    left: 0;
    right: auto;
    width: 82px;
  }

  h2,
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .project-grid,
  .split-section,
  .experience-stats,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-header {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav,
  .section-pad,
  .short-section,
  .footer {
    width: min(100% - 30px, var(--max));
  }

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

  .hero {
    padding-top: 40px;
    padding-bottom: 70px;
  }

  .hero::before {
    top: 18%;
    left: -90px;
    width: 280px;
    height: 280px;
  }

  h1 {
    font-size: 2.78rem;
  }

  h1::after {
    left: 0;
    right: auto;
    bottom: -8px;
    width: 54px;
  }

  h2 {
    font-size: 1.86rem;
  }

  .intro-role {
    font-size: 1.12rem;
  }

  .intro-summary,
  .page-hero p,
  .contact-note {
    font-size: 1rem;
  }

  .hero-contact,
  .contact-minimal {
    gap: 10px 18px;
  }

  .project-topline,
  .timeline-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools {
    text-align: left;
  }

  .project-card,
  .timeline-card,
  .contact-card {
    padding: 21px;
  }

  .experience-header h2 {
    font-size: 1.72rem;
  }

}
