:root {
  color-scheme: light;
  --ink: #0b1220;
  --ink-soft: #202b3d;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --muted: #657084;
  --line: #dce2ec;
  --accent: #315efb;
  --accent-light: #dce5ff;
  --signal: #72e6be;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(17, 31, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.section-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(220, 226, 236, 0.9);
  background: rgba(245, 247, 251, 0.88);
  backdrop-filter: blur(18px);
}

.brand-word {
  justify-self: start;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand-word:hover,
.brand-word:focus-visible {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a,
.text-link,
.site-footer a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--ink);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.62fr);
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: 74px;
}

.eyebrow,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-light);
}

.hero h1 {
  margin: 24px 0 28px;
  font-size: clamp(70px, 9vw, 132px);
  font-weight: 360;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: 820;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 690px;
  margin: 52px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.portrait-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: #eef1f6;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.78) contrast(1.02);
}

.portrait-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 4px;
}

.portrait-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.portrait-note strong {
  color: var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #18a66a;
  box-shadow: 0 0 0 6px #d9f7ea;
}

.statement {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  padding-block: 120px;
  border-top: 1px solid var(--line);
}

.statement-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: end;
}

.statement h2,
.section-heading h2,
.credentials h2,
.contact-layout h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.statement-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.about-details {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  margin-top: 56px;
}

.about-story {
  align-self: center;
}

.about-story p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.about-story .about-lead {
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.5;
}

.about-story .about-proof {
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.about-proof a {
  color: var(--accent);
  font-weight: 850;
}

.math-profile {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.math-profile__label {
  margin: 0 0 18px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.math-profile h3 {
  margin: 0 0 28px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.math-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #2a3548;
  border-left: 1px solid #2a3548;
}

.math-profile__item {
  padding: 17px;
  border-right: 1px solid #2a3548;
  border-bottom: 1px solid #2a3548;
}

.math-profile__item strong,
.math-profile__item span {
  display: block;
}

.math-profile__item strong {
  font-size: 14px;
}

.math-profile__item span {
  margin-top: 5px;
  color: #aeb8c9;
  font-size: 12px;
}

.math-profile__tools {
  margin: 22px 0 0;
  color: #aeb8c9;
  font-size: 13px;
}

.math-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}

.math-profile__links a {
  color: var(--signal);
  font-size: 13px;
  font-weight: 850;
}

.section-block {
  padding-block: 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  margin-bottom: 72px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  padding: 36px 0 42px;
  border-bottom: 1px solid var(--line);
}

.timeline-meta p,
.timeline-meta span,
.company {
  margin: 0;
}

.timeline-meta p {
  font-size: 14px;
  font-weight: 800;
}

.timeline-meta span {
  color: var(--muted);
  font-size: 13px;
}

.company {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0 0 18px;
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.timeline-content li {
  position: relative;
  padding-left: 20px;
}

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

.skills-band {
  overflow: hidden;
  padding-block: 120px;
  background: var(--ink);
  color: white;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
}

.section-heading.light {
  display: block;
  margin: 0;
}

.section-heading.light .section-number {
  color: #8893a8;
}

.section-heading.light h2 {
  margin-top: 28px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #2a3548;
  border-left: 1px solid #2a3548;
}

.skill-groups article {
  min-height: 270px;
  padding: 32px;
  border-right: 1px solid #2a3548;
  border-bottom: 1px solid #2a3548;
  transition: background 180ms ease;
}

.skill-groups article:hover {
  background: #121d30;
}

.skill-groups .skill-math {
  grid-column: 1 / -1;
  min-height: 220px;
}

.skill-groups p {
  margin: 0 0 48px;
  color: var(--signal);
  font: 800 12px/1 Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
}

.skill-groups h3 {
  margin: 0 0 18px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.skill-groups span {
  color: #aeb8c9;
}

.projects-heading {
  align-items: end;
}

.projects-heading > div {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
}

.projects-heading .text-link {
  grid-column: 3;
  justify-self: end;
  font-size: 14px;
  font-weight: 800;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  min-height: 270px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  transition: background 180ms ease, transform 180ms ease;
}

.project-card:hover {
  z-index: 1;
  background: var(--surface);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 31, 62, 0.08);
}

.project-card > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.project-card h3 {
  margin: 58px 0 14px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.project-card h3 a:hover,
.project-card h3 a:focus-visible {
  color: var(--accent);
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1.65fr) minmax(220px, 0.75fr);
  gap: 28px;
  align-items: start;
  min-height: auto;
  background: var(--ink);
  color: white;
}

.project-card--featured:hover {
  background: #121d30;
}

.project-card--featured > span {
  color: var(--signal);
}

.project-card--featured h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
}

.project-card--featured p {
  color: #aeb8c9;
  font-size: 15px;
}

.project-card--featured h3 a:hover,
.project-card--featured h3 a:focus-visible {
  color: var(--signal);
}

.project-metrics {
  margin: 0;
  border-top: 1px solid #2a3548;
}

.project-metrics div {
  padding: 12px 0;
  border-bottom: 1px solid #2a3548;
}

.project-metrics dt {
  color: #8e9aaf;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-metrics dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 750;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.credential-main > p {
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 850;
}

.credential-main h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.credential-main > span {
  display: block;
  margin-top: 22px;
  color: var(--muted);
}

.credential-main > .credential-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.credential-list {
  display: grid;
  align-content: end;
  gap: 0;
}

.credential-list p {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.credential-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-band {
  padding-block: 120px;
  background: var(--accent);
  color: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-layout .section-number {
  color: #c8d4ff;
}

.contact-kicker {
  margin: 0 0 18px;
  color: #dce5ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-email {
  display: inline-block;
  margin-top: 38px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 800;
}

.contact-links {
  display: grid;
  align-self: end;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 800;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--signal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 40px;
  background: var(--ink);
  color: #8e9aaf;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    grid-column: 2;
  }

  .hero {
    grid-template-columns: 1fr minmax(240px, 0.55fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(64px, 10vw, 104px);
  }

  .statement-intro,
  .projects-heading > div {
    grid-template-columns: 1fr;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .project-card--featured {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-metrics {
    grid-column: 2;
  }

  .statement,
  .section-heading,
  .timeline-item,
  .skills-layout,
  .credentials,
  .contact-layout {
    grid-template-columns: 1fr 2fr;
  }

  .projects-heading .text-link {
    grid-column: 2;
  }

  .credential-list,
  .contact-links {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(100% - 32px, 1160px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .header-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 64px 80px;
  }

  .hero-copy {
    display: contents;
  }

  .eyebrow,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-facts {
    grid-column: 1;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(62px, 22vw, 94px);
  }

  .portrait-card {
    grid-row: 4;
    width: min(340px, 90%);
    margin: 10px auto 6px;
  }

  .hero-actions {
    margin-top: 8px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .statement,
  .statement-intro,
  .section-heading,
  .timeline-item,
  .skills-layout,
  .credentials,
  .contact-layout,
  .projects-heading > div {
    grid-template-columns: 1fr;
  }

  .statement,
  .section-block,
  .skills-band,
  .credentials,
  .contact-band {
    padding-block: 82px;
  }

  .statement-intro,
  .section-heading {
    gap: 24px;
  }

  .statement {
    gap: 28px;
  }

  .statement-intro {
    margin-top: 18px;
  }

  .about-details {
    grid-column: 1;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .math-profile__grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    gap: 20px;
  }

  .skill-groups,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skill-groups article,
  .project-card {
    min-height: 230px;
  }

  .skill-groups .skill-math {
    grid-column: 1;
  }

  .project-card--featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-metrics {
    grid-column: 1;
  }

  .projects-heading .text-link,
  .credential-list,
  .contact-links {
    grid-column: 1;
  }

  .projects-heading .text-link {
    justify-self: start;
  }

  .contact-links {
    margin-top: 30px;
  }

  .site-footer {
    padding-inline: 16px;
  }
}

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

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


.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 2px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  min-width: 26px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.language-switch a {
  color: var(--muted);
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--accent);
}

.language-switch .is-active {
  background: var(--ink);
  color: #fff;
}

.experience-summary {
  max-width: 760px;
  margin: -2px 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.timeline-item--current {
  background: linear-gradient(90deg, rgba(49,94,251,0.035), transparent 72%);
}

@media (max-width: 960px) {
  .header-actions {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .brand-word {
    font-size: 15px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch {
    gap: 3px;
    font-size: 11px;
  }

  .language-switch a,
  .language-switch span {
    min-width: 24px;
    height: 28px;
  }
}
