:root {
  --paper: #f3f5f2;
  --white: #fcfdfb;
  --ink: #162125;
  --ink-soft: #3f4b4e;
  --line: #cfd6d2;
  --blue: #20536d;
  --blue-deep: #163d52;
  --green: #3e6b58;
  --coral: #c35a41;
  --night: #17262a;
  --night-soft: #25363a;
  --text-on-dark: #eff4ef;
  --muted-on-dark: #b9c6c2;
  --max-width: 1180px;
  --header-height: 64px;
  --radius: 6px;
  --font-sans: -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-display: Georgia, "Songti SC", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  font: inherit;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
}

p,
h1,
h2,
h3,
ol,
ul,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--coral) 72%, white);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 158px;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: white;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.wordmark-name {
  font-size: 14px;
  font-weight: 700;
}

.primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  position: relative;
  padding: 22px 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--coral);
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.language-switch {
  display: flex;
  align-items: center;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.language-switch button {
  min-width: 38px;
  height: 100%;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: clamp(500px, calc(100svh - 144px), 570px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(22, 33, 37, 0.05);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: center;
  gap: 76px;
  padding: 56px 0 50px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.mini-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 20px;
}

.hero-name-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}

.hero-name-row h1 {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
}

.hero-name-row span {
  color: var(--ink-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
}

.hero h2 {
  max-width: 660px;
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 600;
  line-height: 1.24;
  text-wrap: balance;
}

.hero-summary {
  max-width: 660px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

[data-lang="en"] .hero-summary {
  line-height: 1.65;
}

.hero-status {
  margin-top: 20px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button span {
  margin-right: 8px;
  font-size: 17px;
  line-height: 1;
}

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

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

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

.button-secondary {
  background: color-mix(in srgb, var(--paper) 76%, transparent);
}

.button-secondary:hover {
  background: white;
}

.hero-evidence {
  align-self: end;
  margin-bottom: 6px;
  padding: 22px 0 0;
  border-top: 2px solid var(--ink);
}

.hero-evidence > p {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-evidence ol {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}

.hero-evidence li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.hero-evidence li span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 11px;
}

.hero-model-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-model-metrics > div {
  min-height: 88px;
  padding: 16px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.hero-model-metrics strong,
.score-item strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.hero-model-metrics span,
.score-item span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.section {
  padding: 100px 0;
  scroll-margin-top: var(--header-height);
}

.section#about {
  padding-top: 72px;
}

.section-shell,
.footer-shell,
.footer-bottom {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section-light {
  background: var(--paper);
}

.section-white {
  background: var(--white);
}

.section-heading h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.section-heading.compact {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  margin-bottom: 58px;
}

.section-heading.compact h2 {
  margin-top: 0;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 9%;
}

.long-copy {
  padding-top: 28px;
}

.long-copy p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.82;
}

.long-copy p + p {
  margin-top: 20px;
}

[data-lang="en"] .long-copy p {
  line-height: 1.7;
}

.path-block {
  margin-top: 76px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.path-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
}

.path-step {
  min-height: 150px;
  padding: 8px 24px 12px 0;
  border-right: 1px solid var(--line);
}

.path-step + .path-step {
  padding-left: 24px;
}

.path-step:last-child {
  border-right: 0;
}

.path-index,
.project-number {
  display: block;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 13px;
}

.path-step strong {
  display: block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 20px;
}

.path-step p {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.section-ink {
  background: var(--night);
  color: var(--text-on-dark);
}

.section-ink .section-kicker,
.section-ink .mini-label {
  color: #8cb4a3;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 70px;
}

.education-main {
  padding-top: 28px;
  border-top: 1px solid #526266;
}

.education-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.education-topline h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
}

.education-topline time {
  color: var(--muted-on-dark);
  font-size: 13px;
  white-space: nowrap;
}

.education-main > p {
  margin-top: 12px;
  color: var(--muted-on-dark);
  font-size: 15px;
  line-height: 1.6;
}

.course-block {
  margin-top: 42px;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.course-list li {
  padding: 8px 10px;
  border: 1px solid #526266;
  border-radius: 3px;
  color: #d9e2df;
  font-size: 12px;
}

.score-panel {
  padding: 28px;
  border: 1px solid #526266;
  border-radius: var(--radius);
  background: var(--night-soft);
}

.score-list {
  margin-top: 22px;
}

.score-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #526266;
}

.score-item strong {
  color: #e9c8b7;
}

.score-item span {
  margin-top: 0;
  color: var(--muted-on-dark);
}

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

.skill-group {
  min-height: 220px;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group h3 {
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 21px;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin-top: 24px;
}

.skill-group li {
  position: relative;
  padding-left: 13px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.skill-group li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--green);
}

.skills-note {
  max-width: 760px;
  margin: 38px 0 0 auto;
  padding-left: 22px;
  border-left: 2px solid var(--coral);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.section-projects {
  background: #e6ebe7;
}

.projects-list {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 30px;
  border: 1px solid #c5ceca;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #9caeaa;
}

.project-number {
  padding-top: 4px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta time {
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: none;
}

.project-body h3 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.3;
}

.project-body,
.project-details,
.evidence-gallery {
  min-width: 0;
}

.project-body > p {
  max-width: 810px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-metric {
  flex: 1 1 150px;
  min-height: 76px;
  padding: 14px 16px;
  background: var(--paper);
}

.project-metric strong {
  display: block;
  color: var(--blue-deep);
  font-family: Georgia, serif;
  font-size: 20px;
}

.project-metric span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.details-icon {
  color: var(--coral);
  font-size: 20px;
  font-weight: 400;
}

.project-details {
  padding: 2px 0 0;
}

.project-details ul {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: var(--paper);
}

.project-details li {
  position: relative;
  padding-left: 15px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.project-details li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--coral);
}

.evidence-gallery {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.evidence-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-gallery-heading span:last-child {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 13px;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin-top: 18px;
}

.evidence-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #bcc6c1;
  border-radius: 5px;
  background: #e8ece9;
  cursor: zoom-in;
}

.evidence-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 270 / 580;
  object-fit: cover;
}

.evidence-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(22, 33, 37, 0.82);
  color: white;
  font-size: 17px;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.evidence-preview:hover .evidence-zoom,
.evidence-preview:focus-visible .evidence-zoom {
  transform: scale(1.08);
  background: var(--coral);
}

.evidence-item figcaption {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.evidence-item {
  min-width: 0;
  margin: 0;
}

.evidence-item figcaption span {
  color: var(--coral);
  font-family: Georgia, serif;
}

.evidence-item figcaption strong {
  font-weight: 700;
}

.evidence-dialog {
  width: min(94vw, 560px);
  max-width: none;
  max-height: 94svh;
  padding: 18px 56px 18px 18px;
  overflow: hidden;
  border: 1px solid #455459;
  border-radius: 6px;
  background: var(--night);
  color: var(--text-on-dark);
}

.evidence-dialog::backdrop {
  background: rgba(8, 14, 16, 0.82);
  backdrop-filter: blur(5px);
}

.evidence-dialog figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}

.evidence-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94svh - 72px);
  border-radius: 5px;
}

.evidence-dialog figcaption {
  color: var(--muted-on-dark);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.evidence-dialog-close {
  position: absolute;
  top: 15px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #526266;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.evidence-dialog-close:hover {
  border-color: var(--coral);
  color: #e9c8b7;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 9%;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
}

.timeline-role {
  display: block;
  margin-top: 4px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 750;
}

.timeline-item p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.72;
}

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

.credential-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.credential-marker {
  width: 9px;
  height: 9px;
  background: var(--green);
  transform: rotate(45deg);
}

.credential-row h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
}

.credential-row p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.credential-status {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 750;
}

.site-footer {
  scroll-margin-top: var(--header-height);
  background: var(--night);
  color: var(--text-on-dark);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 10%;
  padding: 90px 0 76px;
}

.footer-lead .section-kicker {
  color: #8cb4a3;
}

.footer-lead h2 {
  max-width: 700px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.footer-lead > p:last-child {
  max-width: 660px;
  margin-top: 20px;
  color: var(--muted-on-dark);
  font-size: 14px;
  line-height: 1.7;
}

.contact-list {
  border-top: 1px solid #526266;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #526266;
}

.contact-list dt {
  color: var(--muted-on-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-list dd {
  min-width: 0;
  color: var(--text-on-dark);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-color: #62777b;
  text-underline-offset: 4px;
}

.contact-list a:hover {
  color: #e9c8b7;
  text-decoration-color: var(--coral);
}

.empty-value {
  color: #839491;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 28px;
  border-top: 1px solid #526266;
  color: #91a09d;
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    grid-column: 3;
  }

  .language-switch {
    grid-column: 4;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    width: 100%;
    justify-self: stretch;
    justify-items: start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 0 solid var(--line);
    transition: max-height 220ms ease, border-width 220ms ease;
  }

  .menu-open .primary-nav {
    max-height: calc(100svh - var(--header-height));
    border-bottom-width: 1px;
  }

  .primary-nav a {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .primary-nav a::after {
    display: none;
  }

  .menu-open .menu-toggle > span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .hero-name-row h1 {
    font-size: 52px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .section {
    padding: 84px 0;
  }

  .education-grid {
    gap: 38px;
  }

  .experience-layout {
    gap: 6%;
  }

  .timeline-item {
    grid-template-columns: 124px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  .nav-shell,
  .hero-shell,
  .section-shell,
  .footer-shell,
  .footer-bottom {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .wordmark {
    min-width: auto;
  }

  .wordmark-name {
    display: none;
  }

  .hero {
    min-height: auto;
    background: var(--paper);
  }

  .hero::before {
    display: none;
  }

  .hero-canvas {
    inset: auto 0 0;
    height: 42%;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 16px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero-name-row {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-name-row h1 {
    font-size: 42px;
  }

  .hero-name-row span {
    font-size: 14px;
  }

  .hero h2 {
    font-size: 29px;
    line-height: 1.3;
  }

  .hero-summary {
    margin-top: 14px;
    font-size: 15px;
  }

  .hero-status {
    margin-top: 12px;
  }

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

  .hero-evidence {
    width: 100%;
    margin-bottom: 0;
    padding-top: 14px;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
  }

  .hero-evidence ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .hero-evidence li {
    gap: 5px;
    font-size: 11px;
  }

  .hero-model-metrics {
    margin-top: 16px;
  }

  .hero-model-metrics > div {
    min-height: 72px;
    padding: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .section#about {
    padding-top: 40px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-heading.compact,
  .split-intro,
  .education-grid,
  .experience-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    gap: 14px;
    margin-bottom: 38px;
  }

  .long-copy {
    padding-top: 0;
  }

  .long-copy p {
    font-size: 15px;
  }

  .path-block {
    margin-top: 52px;
  }

  .path-list {
    grid-template-columns: 1fr 1fr;
  }

  .path-step,
  .path-step + .path-step {
    min-height: 150px;
    padding: 16px 18px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .path-step:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }

  .education-grid {
    gap: 36px;
  }

  .education-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .education-topline h3 {
    font-size: 24px;
  }

  .score-panel {
    padding: 22px;
  }

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

  .skill-group {
    min-height: auto;
    padding: 24px;
  }

  .skills-note {
    margin-top: 28px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 20px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .project-body h3 {
    font-size: 23px;
  }

  .project-metric {
    flex-basis: calc(50% - 1px);
  }

  .evidence-strip {
    grid-template-columns: repeat(3, 210px);
    width: calc(100% + 20px);
    max-width: none;
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .evidence-item {
    scroll-snap-align: start;
  }

  .experience-layout {
    gap: 40px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .credential-row {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .credential-status {
    grid-column: 2;
    justify-self: start;
  }

  .footer-shell {
    gap: 52px;
    padding: 72px 0 58px;
  }

  .footer-lead h2 {
    font-size: 31px;
  }
}

@media (max-width: 440px) {
  .nav-shell {
    gap: 8px;
  }

  .language-switch button {
    min-width: 34px;
    padding: 0 6px;
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .button {
    min-width: 0;
    white-space: nowrap;
  }

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

  .hero-model-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .path-list {
    grid-template-columns: 1fr;
  }

  .path-step,
  .path-step + .path-step,
  .path-step:nth-child(even) {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-left: 0;
  }

  .path-step strong {
    margin-top: 10px;
  }

  .score-item {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .project-metric {
    flex-basis: 100%;
  }

  .evidence-strip {
    grid-template-columns: repeat(3, min(72vw, 220px));
    gap: 16px;
  }

  .evidence-dialog {
    width: calc(100vw - 20px);
    padding: 48px 10px 12px;
  }

  .evidence-dialog-close {
    top: 9px;
    right: 9px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-canvas,
  .hero-actions,
  .details-toggle,
  .site-footer {
    display: none !important;
  }

  .section,
  .hero {
    padding: 32px 0;
    background: white !important;
    color: black !important;
  }

  .hero-shell {
    min-height: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
