:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --ink: #11182f;
  --muted: #536078;
  --line: #cbd5ec;
  --blue: #145dff;
  --violet: #7047eb;
  --cyan: #007f99;
  --cyan-bright: #11b8d5;
  --blue-soft: #e8efff;
  --violet-soft: #eee9ff;
  --cyan-soft: #e1f6fa;
  --display: "Avenir Next", Avenir, "Century Gothic", Futura, sans-serif;
  --body: Optima, Candara, "Trebuchet MS", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1220px, calc(100vw - 56px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 93, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 93, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

::selection {
  color: white;
  background: var(--blue);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(244, 247, 255, 0.88);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan-bright)) 1;
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.wordmark-mark {
  margin-left: 3px;
  color: var(--blue);
}

.main-nav {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  text-decoration: none;
}

.main-nav a::before {
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.language-switch button {
  min-width: 31px;
  padding: 7px 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

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

.hero {
  position: relative;
  padding: 154px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(112, 71, 235, 0.13), transparent 27%),
    radial-gradient(circle at 92% 68%, rgba(17, 184, 213, 0.12), transparent 24%);
}

.hero::before {
  position: absolute;
  top: 105px;
  right: -180px;
  width: 490px;
  height: 490px;
  border: 1px solid rgba(112, 71, 235, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(20, 93, 255, 0.035), 0 0 0 140px rgba(112, 71, 235, 0.025);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  gap: clamp(62px, 8vw, 120px);
  align-items: center;
}

.system-label,
.section-kicker,
.section-code,
.career-status,
.expertise-top,
.degree-code,
.language-head,
.contact-code,
.hero-facts dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--blue);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(17, 184, 213, 0.13);
}

.hero h1,
.section-header h2,
.expertise-item h3,
.career-content h3,
.degrees h3,
.project-copy h2,
.contact h2 {
  font-family: var(--display);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4.3rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.87;
}

.degree {
  display: inline-block;
  margin-left: 18px;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.16em;
  letter-spacing: 0;
  vertical-align: top;
  transform: translateY(15px);
}

.hero-intro {
  max-width: 670px;
  margin: 35px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.65vw, 1.4rem);
}

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

.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  min-width: 160px;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary:hover {
  background: var(--violet);
  border-color: var(--violet);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
}

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

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  padding: 24px 0 0;
  margin: 52px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts::before {
  position: absolute;
  top: -4px;
  right: 0;
  width: 42%;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 13px);
  content: "";
  opacity: 0.85;
}

.hero-facts::after {
  position: absolute;
  top: -8px;
  right: 12%;
  width: 2px;
  height: 15px;
  background: var(--violet);
  box-shadow: -4px 5px 0 -1px var(--cyan-bright), 4px 5px 0 -1px var(--blue);
  content: "";
}

.hero-facts div {
  padding-right: 18px;
}

.hero-facts div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}

.research-visual {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.visual-grid,
.contact-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(20, 93, 255, 0.34) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.sequence-map {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sequence-map path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
  opacity: 0.45;
}

.sequence-map path:nth-child(2) {
  stroke: var(--cyan);
  opacity: 0.35;
}

.sequence-map circle {
  fill: var(--bg);
  stroke: var(--blue);
  stroke-width: 2;
}

.profile-card {
  position: absolute;
  top: 0;
  right: 22px;
  width: min(390px, calc(100% - 40px));
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 18px 18px 0 var(--blue-soft), 36px 36px 0 var(--violet-soft);
}

.profile-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan-bright));
  content: "";
}

.card-head,
.card-role,
.image-index,
.data-tags {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-head {
  display: flex;
  justify-content: space-between;
  padding: 17px 18px 13px;
  color: var(--muted);
}

.card-head span:last-child {
  color: var(--cyan);
  font-weight: 800;
}

.portrait-frame {
  position: relative;
  margin: 0 18px;
  overflow: hidden;
  background: #dfe7f7;
  aspect-ratio: 1 / 1.08;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.94) contrast(1.03);
  transform: scale(1.015);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(20, 93, 255, 0.05), transparent 45%, rgba(112, 71, 235, 0.09));
  content: "";
  pointer-events: none;
}

.image-index {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  color: white;
  background: rgba(17, 24, 47, 0.83);
}

.card-role {
  display: grid;
  gap: 5px;
  padding: 16px 18px 19px;
}

.card-role > span {
  color: var(--blue);
  font-weight: 800;
}

.card-role strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

.data-tags {
  position: absolute;
  right: 0;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
}

.data-tags span {
  padding: 8px 10px;
  color: white;
  background: var(--ink);
}

.data-tags span:nth-child(2) {
  background: var(--blue);
}

.data-tags span:nth-child(3) {
  background: var(--violet);
}

.data-tags span:nth-child(4) {
  color: var(--ink);
  background: var(--cyan-soft);
}

.hero-axis {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: var(--shell);
  padding-top: 22px;
  margin: 34px auto 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line);
}

.hero-axis span:nth-child(2) {
  color: var(--blue);
}

.hero-axis span:last-child {
  justify-self: end;
}

.section {
  padding-block: clamp(92px, 10vw, 140px);
}

.section-header {
  display: grid;
  grid-template-columns: 145px minmax(300px, 1fr) minmax(250px, 0.55fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  padding-bottom: 45px;
  border-bottom: 1px solid var(--ink);
}

.section-code {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
}

.section-kicker {
  margin: 0;
  color: var(--muted);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2.45rem, 4.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-header > p {
  margin: 0;
  color: var(--muted);
}

.career {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.career .shell {
  position: relative;
  z-index: 1;
}

.sequence-watermark {
  position: absolute;
  top: 70px;
  right: max(-55px, calc((100vw - var(--shell)) / 2 - 95px));
  width: 270px;
  height: calc(100% - 140px);
  opacity: 0.18;
  pointer-events: none;
}

.assay-lanes path,
.assay-bands path,
.assay-read,
.cut-site {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.assay-lanes path {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.assay-bands path {
  stroke: var(--blue);
  stroke-width: 3;
}

.assay-read {
  stroke: var(--violet);
  stroke-width: 1.5;
}

.cut-site {
  stroke: var(--cyan);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.assay-points circle {
  fill: var(--surface);
  stroke: var(--violet);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.career-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.career-item {
  display: grid;
  grid-template-columns: 145px minmax(230px, 0.68fr) minmax(300px, 1fr);
  gap: clamp(30px, 5vw, 80px);
  padding: 35px 0;
  border-bottom: 1px solid var(--line);
}

.career-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 6px;
  color: var(--muted);
}

.career-item:first-child .career-status {
  color: var(--cyan);
}

.career-place {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 12px;
  align-items: start;
}

.career-index {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.career-place strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.career-content h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.career-content p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
}

.expertise {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 90% 5%, rgba(112, 71, 235, 0.28), transparent 27%),
    #0d1530;
}

.expertise::before {
  position: absolute;
  right: -35px;
  bottom: 55px;
  width: 360px;
  height: 250px;
  background-image: radial-gradient(rgba(17, 184, 213, 0.48) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  content: "";
  mask-image: linear-gradient(135deg, transparent 8%, black 48%, transparent 94%);
  opacity: 0.4;
  pointer-events: none;
  transform: rotate(-6deg);
}

.expertise .shell {
  position: relative;
  z-index: 1;
}

.expertise .section-header {
  border-bottom-color: rgba(255, 255, 255, 0.38);
}

.expertise .section-code,
.expertise .section-kicker {
  color: #93b8ff;
}

.expertise .section-header > p {
  color: rgba(255, 255, 255, 0.68);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.expertise-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 315px;
  padding: 25px;
  overflow: hidden;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  isolation: isolate;
}

.expertise-item > * {
  position: relative;
  z-index: 1;
}

.expertise-item.blue::after,
.expertise-item.violet::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.item-wide {
  grid-column: span 7;
}

.item-narrow {
  grid-column: span 5;
}

.item-half {
  grid-column: span 6;
  min-height: 245px;
}

.expertise-item.blue {
  background: var(--blue-soft);
  border-top: 6px solid var(--blue);
}

.expertise-item.blue::after {
  right: -18px;
  bottom: 54px;
  width: 205px;
  height: 52px;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 25px / 100% 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 14px 17px / 28px 17px no-repeat,
    linear-gradient(var(--violet), var(--violet)) 68px 13px / 20px 25px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 112px 18px / 38px 15px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 174px 10px / 22px 31px no-repeat;
  opacity: 0.1;
  transform: rotate(-3deg);
}

.expertise-item.violet {
  background: var(--violet-soft);
  border-top: 6px solid var(--violet);
}

.expertise-item.violet::after {
  top: 55px;
  right: 18px;
  width: 145px;
  height: 105px;
  background-image: radial-gradient(var(--violet) 2px, transparent 2.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, transparent 4%, black 42%, transparent 96%);
  opacity: 0.12;
  transform: rotate(-4deg);
}

.expertise-item.cyan {
  background: var(--cyan-soft);
  border-top: 6px solid var(--cyan);
}

.expertise-item.dark {
  color: white;
  background: #182344;
  border-top: 6px solid var(--cyan-bright);
}

.expertise-item.neutral {
  background: #f8f9ff;
  border-top: 6px solid #8b9abd;
}

.expertise-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  opacity: 0.72;
}

.expertise-top::after {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 10px);
  content: "";
  opacity: 0.3;
  order: 1;
}

.expertise-top span:last-child {
  order: 2;
}

.expertise-item h3 {
  max-width: 560px;
  margin: 52px 0 14px;
  font-size: clamp(1.8rem, 3.1vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.expertise-item p {
  max-width: 610px;
  margin: 0 0 24px;
  color: var(--muted);
}

.expertise-item.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.skill-tags span {
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.2;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.education {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.education .shell {
  position: relative;
  z-index: 1;
}

.spectrum-trace {
  position: absolute;
  top: 76px;
  right: max(24px, calc((100vw - var(--shell)) / 2));
  display: flex;
  gap: 10px;
  align-items: flex-end;
  width: 310px;
  height: 125px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--violet);
  mask-image: linear-gradient(90deg, transparent, black 18%, black 80%, transparent);
  opacity: 0.16;
  pointer-events: none;
}

.spectrum-trace i {
  flex: 1;
  height: var(--peak, 18%);
  background: linear-gradient(to top, var(--blue), var(--violet));
}

.spectrum-trace i:nth-child(2) { --peak: 32%; }
.spectrum-trace i:nth-child(3) { --peak: 15%; }
.spectrum-trace i:nth-child(4) { --peak: 48%; }
.spectrum-trace i:nth-child(5) { --peak: 22%; }
.spectrum-trace i:nth-child(6) { --peak: 76%; }
.spectrum-trace i:nth-child(7) { --peak: 38%; }
.spectrum-trace i:nth-child(8) { --peak: 92%; }
.spectrum-trace i:nth-child(9) { --peak: 27%; }
.spectrum-trace i:nth-child(10) { --peak: 61%; }
.spectrum-trace i:nth-child(11) { --peak: 19%; }
.spectrum-trace i:nth-child(12) { --peak: 45%; }
.spectrum-trace i:nth-child(13) { --peak: 25%; }
.spectrum-trace i:nth-child(14) { --peak: 69%; }
.spectrum-trace i:nth-child(15) { --peak: 31%; }
.spectrum-trace i:nth-child(16) { --peak: 53%; }

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  margin-top: 42px;
}

.degrees,
.languages {
  background: var(--surface);
  border: 1px solid var(--line);
}

.degrees article {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding: 29px;
  border-bottom: 1px solid var(--line);
}

.degrees article:last-child {
  border-bottom: 0;
}

.degree-code {
  padding-top: 5px;
  color: var(--blue);
}

.degrees h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.degrees p {
  margin: 5px 0 0;
  color: var(--muted);
}

.languages {
  padding: 25px;
  background: var(--violet-soft);
  border-color: #c7b8ff;
}

.language-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  color: var(--violet);
  border-bottom: 1px solid rgba(112, 71, 235, 0.32);
}

.languages dl {
  padding: 0;
  margin: 0;
}

.languages dl > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(112, 71, 235, 0.2);
}

.languages dl > div:last-child {
  border-bottom: 0;
}

.languages dt {
  font-family: var(--display);
  font-weight: 700;
}

.languages dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.level-bar {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  background: rgba(112, 71, 235, 0.15);
}

.level-bar::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level, 100%);
  background: linear-gradient(90deg, var(--blue), var(--violet));
  content: "";
}

.level-4 {
  --level: 76%;
}

.side-project {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 93, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(20, 93, 255, 0.045) 1px, transparent 1px),
    var(--cyan-soft);
  background-size: 22px 22px;
  border-top: 1px solid #b8dfe8;
}

.side-project::before {
  position: absolute;
  top: -175px;
  right: 6vw;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(20, 93, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(112, 71, 235, 0.035), 0 0 0 116px rgba(20, 93, 255, 0.025);
  content: "";
}

.side-project-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 145px minmax(350px, 1fr) minmax(290px, 0.62fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: stretch;
}

.project-code,
.signal-head,
.signal-fields,
.project-link {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-code {
  display: grid;
  align-content: start;
  gap: 18px;
  color: var(--muted);
}

.project-code span:first-child {
  color: var(--blue);
}

.project-copy .section-kicker {
  color: var(--cyan);
}

.project-copy h2 {
  margin: 16px 0 22px;
  font-size: clamp(2.8rem, 5.5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.project-copy > p:last-of-type {
  max-width: 660px;
  margin: 0 0 29px;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-link {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  padding: 12px 15px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.project-link:hover {
  color: var(--ink);
  background: transparent;
}

.project-signal {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 22px;
  color: white;
  background: #14224a;
  border-top: 5px solid var(--violet);
}

.signal-head {
  display: flex;
  justify-content: space-between;
  color: #b9cdfd;
}

.signal-wave {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(120px, 1.2fr);
  gap: 20px;
  align-items: center;
  min-height: 135px;
  margin-block: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.audio-bars {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: 88px;
}

.audio-bars i {
  width: 4px;
  height: var(--signal-height, 25%);
  background: linear-gradient(to top, var(--blue), var(--cyan-bright));
}

.audio-bars i:nth-child(2),
.audio-bars i:nth-child(11) { --signal-height: 42%; }
.audio-bars i:nth-child(3),
.audio-bars i:nth-child(9) { --signal-height: 70%; }
.audio-bars i:nth-child(4),
.audio-bars i:nth-child(8) { --signal-height: 38%; }
.audio-bars i:nth-child(5),
.audio-bars i:nth-child(10) { --signal-height: 88%; }
.audio-bars i:nth-child(6) { --signal-height: 58%; }
.audio-bars i:nth-child(7) { --signal-height: 100%; }
.audio-bars i:nth-child(12) { --signal-height: 54%; }

.activity-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.activity-icons svg {
  width: 100%;
  padding: 5px;
  fill: none;
  stroke: #b9cdfd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.76;
}

.activity-icons svg:nth-child(2) {
  stroke: var(--cyan-bright);
}

.activity-icons svg:nth-child(3) {
  stroke: #a99aff;
}

.signal-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 18px;
}

.signal-fields span {
  padding: 4px 6px;
  color: #dce7ff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 30%, rgba(17, 184, 213, 0.28), transparent 24%),
    linear-gradient(118deg, #114ed4 0%, #5f3dd7 58%, #4828a4 100%);
}

.contact::after {
  position: absolute;
  top: 50%;
  right: 3vw;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.045), 0 0 0 120px rgba(255, 255, 255, 0.025);
  content: "";
  transform: translateY(-50%);
}

.contact-grid {
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
}

.contact-code {
  display: grid;
  gap: 18px;
  align-self: start;
}

.contact-code span:first-child {
  color: #b8d6ff;
}

.contact h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.contact-main > p {
  max-width: 610px;
  margin: 26px 0 30px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-email {
  display: flex;
  gap: 25px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.contact-linkedin {
  display: flex;
  gap: 25px;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.contact-linkedin:hover {
  color: var(--blue);
  background: white;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #090f24;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 100px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:nth-child(2) {
  text-align: center;
}

.footer-inner a {
  justify-self: end;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms ease;
  }

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

  .js .career-item:nth-child(2),
  .js .expertise-item:nth-child(2) {
    transition-delay: 70ms;
  }

  .js .career-item:nth-child(3),
  .js .expertise-item:nth-child(3) {
    transition-delay: 140ms;
  }
}

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

  .main-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(4rem, 8vw, 5.7rem);
  }

  .research-visual {
    min-height: 540px;
  }

  .profile-card {
    right: 0;
    width: min(330px, calc(100% - 20px));
  }

  .section-header,
  .career-item {
    grid-template-columns: 105px minmax(190px, 0.65fr) minmax(280px, 1fr);
    gap: 30px;
  }

  .education-layout {
    grid-template-columns: 1fr;
  }

  .side-project-layout {
    grid-template-columns: 105px minmax(0, 1fr);
  }

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

  .contact-layout {
    grid-template-columns: 105px 1fr;
  }

  .contact-linkedin {
    grid-column: 2;
    width: fit-content;
    margin-top: 25px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(620px, calc(100vw - 30px));
  }

  body {
    font-size: 16px;
    background-size: 24px 24px;
  }

  .site-header {
    position: absolute;
    backdrop-filter: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .hero {
    padding: 108px 0 40px;
  }

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

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.6rem, 17vw, 5.4rem);
  }

  .degree {
    margin-left: 10px;
    transform: translateY(8px);
  }

  .hero-intro {
    margin-top: 24px;
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 26px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 18px;
    margin-top: 26px;
  }

  .hero-facts div,
  .hero-facts div + div {
    display: block;
    padding: 0 9px;
    border-left: 1px solid var(--line);
  }

  .hero-facts div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .hero-facts dt {
    font-size: 0.56rem;
    line-height: 1.35;
  }

  .hero-facts dd {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .research-visual {
    min-height: 400px;
  }

  .profile-card {
    left: 0;
    right: auto;
    width: calc(100% - 34px);
  }

  .portrait-frame {
    aspect-ratio: 4 / 3;
  }

  .portrait-frame img {
    object-position: 50% 40%;
  }

  .data-tags {
    right: 0;
    bottom: 0;
  }

  .hero-axis {
    grid-template-columns: 1fr auto;
    padding-top: 15px;
    margin-top: 18px;
  }

  .hero-axis span:nth-child(2) {
    display: none;
  }

  .hero-facts::before {
    width: 48%;
  }

  .hero-facts::after {
    right: 14%;
  }

  .section {
    padding-block: 50px;
  }

  .section-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 25px;
  }

  .section-header > div {
    display: flex;
    grid-row: auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .section-code {
    margin: 0;
    writing-mode: horizontal-tb;
  }

  .section-kicker {
    writing-mode: horizontal-tb;
  }

  .section-header h2 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .section-header > p {
    grid-column: 1;
    margin-top: 2px;
  }

  .career-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 14px;
    padding: 19px 0;
  }

  .sequence-watermark {
    top: 120px;
    right: -22px;
    width: 125px;
    height: calc(100% - 165px);
    opacity: 0.27;
  }

  .career-status {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    align-items: center;
    color: var(--blue);
    writing-mode: horizontal-tb;
  }

  .career-status .status-dot {
    display: inline-block;
  }

  .career-place,
  .career-content {
    min-width: 0;
  }

  .career-place {
    grid-column: 2;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .career-content {
    grid-column: 1 / -1;
  }

  .career-content h3 {
    margin: 6px 0 7px;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .expertise::before {
    top: 120px;
    right: -20px;
    bottom: auto;
    width: 190px;
    height: 260px;
    opacity: 0.48;
  }

  .item-wide,
  .item-narrow,
  .item-half {
    grid-column: auto;
    min-height: 0;
    padding: 16px;
  }

  .expertise-item.blue::after {
    right: -42px;
    bottom: 46px;
    width: 175px;
    opacity: 0.15;
  }

  .expertise-item.violet::after {
    top: 42px;
    right: -8px;
    width: 112px;
    height: 92px;
    opacity: 0.17;
  }

  .expertise-item h3 {
    margin: 17px 0 8px;
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }

  .expertise-item p {
    margin-bottom: 13px;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .skill-tags {
    gap: 5px;
  }

  .skill-tags span {
    padding: 4px 6px;
    font-size: 0.58rem;
  }

  .education-layout {
    min-width: 0;
    gap: 10px;
    margin-top: 28px;
  }

  .spectrum-trace {
    top: 168px;
    right: -12px;
    gap: 6px;
    width: 155px;
    height: 78px;
    opacity: 0.25;
  }

  .degrees article {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px;
  }

  .degree-code {
    padding-top: 0;
  }

  .degrees h3 {
    font-size: 1.25rem;
  }

  .languages {
    padding: 18px;
  }

  .languages dl > div {
    padding: 16px 0;
  }

  .side-project-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .project-code {
    display: flex;
    grid-row: auto;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    writing-mode: horizontal-tb;
  }

  .project-copy,
  .project-signal {
    grid-column: 1;
  }

  .project-copy h2 {
    margin: 12px 0 16px;
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .project-copy > p:last-of-type {
    margin-bottom: 22px;
  }

  .project-signal {
    min-height: 190px;
    padding: 18px;
    margin-top: 24px;
  }

  .signal-wave {
    min-height: 88px;
  }

  .signal-fields {
    padding-top: 13px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .contact-code {
    grid-column: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    writing-mode: horizontal-tb;
  }

  .contact-main,
  .contact-linkedin {
    grid-column: 1;
  }

  .contact h2 {
    font-size: clamp(2.65rem, 12vw, 4.1rem);
  }

  .contact-main > p {
    margin: 18px 0 22px;
  }

  .contact-email {
    gap: 12px;
    font-size: clamp(1.08rem, 5.3vw, 1.7rem);
    overflow-wrap: anywhere;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding-block: 18px;
  }

  .footer-inner p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 400px) {
  .button {
    flex: 1;
    width: auto;
    min-width: 0;
    gap: 12px;
  }

  .hero-actions {
    flex-direction: row;
  }

  .research-visual {
    min-height: 390px;
  }

  .data-tags {
    font-size: 0.58rem;
  }
}

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

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