:root {
  --paper: #ebe8df;
  --ink: #11110f;
  --signal: #e32b23;
  --rule: rgba(17, 17, 15, 0.28);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--paper);
  background: var(--signal);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  color: var(--paper);
  background: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.wordmark {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  display: inline-block;
  width: fit-content;
  justify-self: start;
  font: italic 700 clamp(1.4rem, 3.2vw, 3rem) / 0.84 var(--serif);
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  display: block;
}

.sidebar-socials {
  position: relative;
  z-index: 2;
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: calc(clamp(1.4rem, 3.2vw, 3rem) * 1.75 + 14px);
}

.sidebar-socials a {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--paper);
  border: 1px solid rgba(235, 232, 223, 0.46);
  text-decoration: none;
  transition: color 120ms linear, background-color 120ms linear, border-color 120ms linear, transform 120ms linear;
}

.sidebar-socials a:hover,
.sidebar-socials a:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
  outline: 0;
  transform: translateY(-2px);
}

.sidebar-socials svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-socials .social-icon--fill {
  fill: currentColor;
  stroke: none;
}

.sidebar-socials .sidebar-cv {
  font: 700 0.75rem/1 var(--mono);
  letter-spacing: 0.02em;
}

.primary-nav {
  position: relative;
  z-index: 1;
  grid-row: 2;
  align-self: center;
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 60px 0 40px;
}

.primary-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(235, 232, 223, 0.35);
}

.primary-nav li {
  border-bottom: 1px solid rgba(235, 232, 223, 0.35);
}

.primary-nav a {
  display: grid;
  grid-template-columns: clamp(3rem, 8vw, 7rem) 1fr;
  align-items: baseline;
  padding: 8px 0 7px;
  font: 400 clamp(2rem, 5.4vw, 5.5rem) / 0.92 var(--serif);
  letter-spacing: -0.055em;
  text-decoration: none;
  transition: padding-left 160ms ease, color 160ms ease, background-color 160ms ease;
}

.primary-nav a span {
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0;
}

.primary-nav a .nav-label {
  min-width: 0;
  font: inherit;
  letter-spacing: inherit;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  padding-left: 12px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.primary-nav a.is-current {
  color: var(--signal);
}

.primary-nav a.is-current:hover,
.primary-nav a.is-current:focus-visible {
  color: var(--paper);
  background: var(--signal);
}

.primary-nav li:nth-child(n + 3) a {
  font-size: clamp(1.55rem, 4vw, 3.6rem);
}

.header-note {
  position: relative;
  z-index: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zone-trigger {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #30302d;
  background: transparent;
  font: 400 1.15rem/1 var(--serif);
  cursor: pointer;
}

.zone-trigger:hover {
  color: #4b4b47;
}

.zone-trigger:focus-visible {
  color: var(--paper);
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.zone-trigger svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zone-dialog {
  width: min(520px, calc(100% - 40px));
  max-height: calc(100dvh - 48px);
  padding: 48px clamp(22px, 5vw, 38px) clamp(22px, 5vw, 38px);
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--signal);
}

.zone-dialog--moving {
  position: fixed;
  inset: auto;
  margin: 0;
}

.zone-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font: 400 1.5rem/1 var(--sans);
  cursor: pointer;
}

.zone-dialog-close:hover {
  color: var(--paper);
  background: var(--signal);
}

.zone-dialog-close:focus-visible,
.zone-answer input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.zone-answer label {
  display: block;
  margin-bottom: 8px;
  font: 700 0.8rem/1.3 var(--mono);
}

.zone-answer input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.3 var(--mono);
}

#zone-answer-error {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #b51d17;
  font: 700 0.8rem/1.4 var(--mono);
}

.zone-dialog::backdrop {
  background: rgba(17, 17, 15, 0.78);
}

.zone-dialog h2 {
  margin: 0 0 18px;
  font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.05 var(--serif);
  letter-spacing: -0.04em;
}

#zone-description {
  font: 400 0.85rem/1.5 var(--mono);
}

.zone-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.zone-dialog-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font: 700 0.8rem/1.2 var(--mono);
  cursor: pointer;
}

.zone-dialog-actions [data-zone-yes] {
  color: var(--paper);
  background: var(--ink);
}

.zone-dialog-actions button:hover {
  color: var(--paper);
  background: var(--signal);
}

.zone-dialog-actions button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

main {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  background: rgba(235, 232, 223, 0.9);
}

.section-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.62fr);
  gap: 24px;
  align-items: start;
  padding-top: 30px;
}

.portrait-eye-link {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.portrait-eye-link.is-ready {
  opacity: 1;
}

.portrait-eye-link path,
.portrait-eye-link rect {
  vector-effect: non-scaling-stroke;
}

.portrait-eye-link__halo,
.portrait-eye-link__flow {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.portrait-eye-link__halo {
  stroke: var(--paper);
  stroke-width: 8;
  opacity: 0.92;
}

.portrait-eye-link__flow {
  stroke: #000;
  stroke-width: 4;
  stroke-dasharray: 9 8;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  animation: unified-flow 1.15s linear infinite;
}

.portrait-eye-link__person-box {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
}

.portrait-eye-link__target {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}

.title-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  max-width: none;
  margin: 0 0 0.45rem;
  font: 700 clamp(0.88rem, 1.35vw, 1.18rem) / 1.15 var(--mono);
  white-space: nowrap;
  text-transform: uppercase;
}

.research-field {
  grid-column: 1 / -1;
  min-width: 0;
}

.research-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  font: 700 clamp(1.4rem, 2.55vw, 2.75rem) / 1 var(--serif);
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.research-title span {
  display: block;
}

.research-visual {
  position: relative;
  min-height: clamp(250px, 32vw, 440px);
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.eye-window {
  position: absolute;
  inset: 22px 27% 52px 0;
  overflow: hidden;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 7%, 92% 100%, 4% 91%);
}

.eye-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal);
  mix-blend-mode: multiply;
  opacity: 0.42;
}

.eye-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35);
  animation: eye-drift 12s ease-in-out infinite alternate;
}

.eye-reticle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 51%;
  width: clamp(36px, 6vw, 82px);
  aspect-ratio: 1;
  border: 1px solid var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.eye-reticle::before,
.eye-reticle::after {
  content: "";
  position: absolute;
  background: var(--paper);
}

.eye-reticle::before {
  top: 50%;
  left: -18px;
  width: calc(100% + 36px);
  height: 1px;
}

.eye-reticle::after {
  top: -18px;
  left: 50%;
  width: 1px;
  height: calc(100% + 36px);
}

.network-map {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: -6%;
  width: 67%;
  overflow: visible;
  transform: rotate(4deg);
}

.network-links path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
  animation: network-flow 5s linear infinite;
}

.network-nodes circle {
  fill: var(--paper);
  stroke: var(--signal);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 2.8s ease-in-out infinite;
}

.network-nodes circle:nth-child(3n + 2) {
  animation-delay: -0.9s;
}

.network-nodes circle:nth-child(3n) {
  animation-delay: -1.8s;
}

.attention-equation {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 28px;
  max-width: 83%;
  padding: 8px 10px 6px;
  color: var(--paper);
  background: var(--ink);
  font: 700 clamp(0.58rem, 1vw, 0.82rem) / 1.25 var(--mono);
  box-shadow: -7px 7px 0 var(--signal);
  white-space: nowrap;
  transform: rotate(-1deg);
}

.loss-landscape {
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: -5px;
  width: 82%;
  height: 47%;
  overflow: visible;
  opacity: 0.45;
}

.loss-landscape path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
}

.loss-landscape circle {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 2;
  animation: minimum-pulse 1.8s steps(2, end) infinite;
}

@keyframes eye-drift {
  from { transform: scale(1.02) translateX(-1%); }
  to { transform: scale(1.1) translateX(2%); }
}

@keyframes network-flow {
  to { stroke-dashoffset: -40; }
}

@keyframes node-pulse {
  0%, 100% { transform: scale(0.78); }
  50% { transform: scale(1.16); }
}

@keyframes minimum-pulse {
  50% { fill: var(--signal); }
}

.portrait {
  position: relative;
  margin: 44px 0 0;
}

.portrait-frame {
  position: relative;
  background: var(--signal);
}

.portrait-frame::before,
.portrait-frame::after {
  content: "+";
  position: absolute;
  z-index: 2;
  color: var(--signal);
  font: 700 1.3rem/1 var(--mono);
}

.portrait-frame::before {
  top: -18px;
  left: -8px;
}

.portrait-frame::after {
  right: -8px;
  bottom: -18px;
}

.portrait img {
  display: block;
  width: 100%;
  height: min(68vh, 700px);
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
}

.portrait figcaption {
  margin-top: 8px;
  font: 400 0.68rem/1.2 var(--mono);
  text-transform: uppercase;
}

.biography {
  max-width: 48rem;
  margin-top: 44px;
  padding: 0 clamp(0px, 4vw, 54px) 70px;
}

.biography p {
  margin: 0 0 1.5em;
  font: 400 clamp(1.08rem, 1.65vw, 1.52rem) / 1.38 var(--serif);
  letter-spacing: -0.02em;
}

.biography a {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.biography a:hover,
.biography a:focus-visible {
  color: var(--paper);
  background: var(--signal);
  outline: 3px solid var(--signal);
}

.biography .cv-line {
  width: fit-content;
  margin-top: 2.5em;
  padding: 13px 16px 11px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 7px 7px 0 var(--signal);
}

.recent-publications {
  width: 100%;
  margin: 24px 0 0;
  padding: 28px 0 52px;
  border-top: 1px solid var(--ink);
}

.recent-publications h2 {
  margin: 0 0 20px;
  color: var(--signal);
  font: 700 clamp(2.1rem, 3.4vw, 3.25rem) / 1 var(--serif);
  letter-spacing: -0.04em;
}

.publications-list {
  margin: 0;
  padding-left: 1.5rem;
}

.publications-list li {
  padding: 18px 0 19px 6px;
  border-top: 1px solid var(--rule);
  font: 400 clamp(0.94rem, 1.25vw, 1.12rem) / 1.52 var(--mono);
}

.publications-list strong {
  font-size: 1.08em;
  font-weight: 700;
}

.publications-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.publications-list p {
  display: inline;
  margin: 0;
}

.publications-list a {
  margin-left: 7px;
  color: var(--signal);
  font-weight: 700;
  text-decoration: none;
}

.publications-list a:hover,
.publications-list a:focus-visible {
  color: #fff;
  background: var(--signal);
  outline: 2px solid var(--signal);
}

.publication-award {
  display: inline;
  padding: 2px 5px;
  color: #fff;
  background: var(--signal);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  color: var(--paper);
  background: var(--signal);
  font: 700 0.7rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 1100px) {
  body {
    display: grid;
    grid-template-columns: minmax(330px, 29vw) 1fr;
    align-items: start;
  }

  .site-header {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .primary-nav a {
    grid-template-columns: 3.5rem 1fr;
    font-size: clamp(2rem, 3.2vw, 3.6rem);
  }

  .primary-nav li:nth-child(n + 3) a {
    font-size: clamp(1.45rem, 2.35vw, 2.65rem);
  }

  main {
    min-height: calc(100vh - 48px);
  }

  footer {
    grid-column: 2;
  }

  .intro {
    grid-template-columns: minmax(260px, 0.74fr) minmax(360px, 1.26fr);
  }

  .title-block {
    grid-template-columns: 0.74fr 1.26fr;
  }

  .research-title {
    font-size: clamp(1.35rem, 2.4vw, 2.6rem);
  }
}

@media (max-width: 720px) {
  .portrait-eye-link {
    display: none;
  }

  .site-header,
  main {
    padding: 16px;
  }

  .site-header {
    min-height: 100svh;
  }

  .primary-nav {
    margin: 50px 0 30px;
  }

  .primary-nav a {
    grid-template-columns: 2.25rem 1fr;
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .primary-nav li:nth-child(n + 3) a {
    font-size: clamp(1.35rem, 6.4vw, 2rem);
  }

  .header-note {
    gap: 4px;
  }

  .intro,
  .title-block {
    grid-template-columns: 1fr;
  }

  .title-block {
    gap: 38px;
  }

  .research-title {
    gap: 8px;
    font-size: clamp(0.68rem, 2.8vw, 0.95rem);
    letter-spacing: -0.055em;
  }

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

  .eye-window {
    inset: 28px 12% 62px 0;
  }

  .network-map {
    top: 6px;
    right: -25%;
    width: 100%;
  }

  .attention-equation {
    right: 5px;
    bottom: 29px;
    max-width: none;
    font-size: 0.48rem;
  }

  .portrait {
    margin-top: 25px;
  }

  .portrait img {
    height: min(70vh, 640px);
  }

  .biography {
    margin-top: 30px;
    padding: 0 0 65px;
  }

  .biography p {
    font-size: clamp(1.05rem, 4.7vw, 1.35rem);
  }

  footer {
    padding: 16px;
  }
}

/* Research triptych: image processing → circuit discovery → alignment. */
.research-title {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  font: 700 clamp(1.2rem, 2.25vw, 2.4rem) / 1 var(--serif);
  letter-spacing: -0.04em;
}

.research-title span {
  padding: 0 12px 10px;
  border-left: 0;
}

.research-title span:first-child {
  padding-left: 0;
  border-left: 0;
}

.research-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 300px;
  margin-top: 0;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  isolation: auto;
}

.global-flow {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.global-flow > path {
  fill: none;
  stroke: #000;
  stroke-width: 4;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: circuit-flow 1.4s linear infinite;
}

.global-flow marker path {
  fill: #000;
}

.research-panel {
  position: relative;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border-left: 0;
}

.research-panel:first-child {
  border-left: 0;
}

.vision-panel {
  display: grid;
  align-items: center;
}

.vision-pipeline {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 7px;
  align-items: center;
  width: 78%;
}

.panel-index {
  display: block;
  margin-bottom: 15px;
  padding-bottom: 7px;
  border-bottom: 1px solid #000;
  font: 700 0.62rem/1 var(--mono);
  letter-spacing: 0.04em;
}

.pixel-eye {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.pixel-eye::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 37.5%;
  height: 60%;
  border: 3px solid #fff;
  outline: 2px solid #000;
  mix-blend-mode: difference;
  animation: kernel-scan 4.2s steps(5, end) infinite alternate;
}

.pixel-eye span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: rgb(var(--fg), var(--fg), var(--fg));
  background: rgb(var(--g), var(--g), var(--g));
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  font: 700 clamp(0.3rem, 0.47vw, 0.48rem)/1 var(--mono);
}

.pixel-eye span:nth-child(8n + 4) {
  animation: pixel-read 2.4s steps(2, end) infinite;
}

.kernel-step {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin: 0;
  font: 700 0.85rem/1 var(--mono);
}

.kernel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.kernel-grid span {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  font: 700 0.43rem/1 var(--mono);
}

.pixel-edge {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 8 / 5;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}

.pixel-edge i {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

.pixel-edge .on {
  background: #000;
}

.circuit-map,
.embedding-map {
  display: block;
  width: 100%;
  height: 276px;
}

.circuit-background path {
  fill: none;
  stroke: #000;
  stroke-width: 1;
  stroke-opacity: 0.2;
}

.circuit-active path {
  fill: none;
  stroke: #000;
  stroke-width: 4;
  stroke-dasharray: none;
  animation: none;
}

.circuit-nodes rect {
  fill: #fff;
  stroke: #000;
  stroke-width: 2;
}

.circuit-nodes .active-node {
  fill: #000;
}

.circuit-labels,
.embedding-map text {
  fill: #000;
  font: 700 9px/1 var(--mono);
}

.circuit-note {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 5px 7px;
  color: #fff;
  background: #000;
  font: 700 0.58rem/1 var(--mono);
}

.embedding-map path,
.embedding-map rect {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.embedding-map .solid-dot,
.embedding-map .vision-point {
  fill: #000;
}

.embedding-map .text-point {
  fill: #fff;
}

.embedding-map .embedding-vector rect {
  stroke: #000;
  stroke-width: 1;
}

.embedding-map .word-to-vector {
  stroke-width: 2;
}

.embedding-map .eye-word {
  font: 700 16px/1 var(--mono);
}

.embedding-map .projection-line {
  stroke-width: 4;
  stroke-dasharray: none;
  animation: none;
}

.embedding-map .projection-line.delayed {
  animation-delay: -0.7s;
}

.embedding-map .latent-ring {
  stroke-dasharray: 3 3;
}

.embedding-map .latent-point,
.embedding-map .alignment-mark {
  transform-box: fill-box;
  transform-origin: center;
  animation: latent-align 2.5s ease-in-out infinite alternate;
}

@keyframes pixel-read {
  50% { filter: invert(1); }
}

@keyframes kernel-scan {
  to { transform: translate(166.666%, 66.666%); }
}

@keyframes circuit-flow {
  to { stroke-dashoffset: -26; }
}

@keyframes latent-align {
  to { transform: translate(-4px, -3px); }
}

@media (max-width: 720px) {
  .research-field {
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-color: var(--ink) transparent;
  }

  .research-title,
  .research-visual {
    width: 780px;
  }

  .research-title {
    font-size: 1.45rem;
  }

  .eyebrow {
    font-size: clamp(0.58rem, 2.6vw, 0.72rem);
    letter-spacing: -0.03em;
  }
}

/* One coordinate system keeps the complete research flow aligned. */
.research-visual--legacy {
  display: none;
}

.research-visual--unified {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.research-visual--unified .research-title {
  width: 100%;
  color: #fff;
  background: #f05a24;
}

.research-visual--unified .research-title span {
  padding: 10px 12px 9px;
  color: #fff;
  background: #f05a24;
}

.research-visual svg * {
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.unified-map {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.unified-pixel-eye {
  width: 184px;
  height: 115px;
}

.unified-pixel-eye span {
  font-size: 10px;
}

.kernel-matrix rect,
.kernel-matrix path {
  fill: #fff;
  stroke: #000;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.kernel-values {
  fill: #000;
  font: 700 12px/1 var(--mono);
  text-anchor: middle;
}

.background-circuit path {
  fill: none;
  stroke: #000;
  stroke-width: 1;
  stroke-opacity: 0.18;
  vector-effect: non-scaling-stroke;
}

.ablation-edge,
.ablation-cut {
  fill: none;
  stroke: #000;
  vector-effect: non-scaling-stroke;
}

.ablation-edge {
  stroke-width: 3;
  stroke-dasharray: 5 5;
  animation: ablation-edge 3.6s steps(1, end) infinite;
}

.ablation-cut {
  stroke-width: 4;
  animation: ablation-cut 3.6s steps(1, end) infinite;
}

.ablation-mark--delayed .ablation-edge,
.ablation-mark--delayed .ablation-cut {
  animation-delay: -1.8s;
}

.signal-flow path {
  fill: none;
  stroke: #000;
  stroke-width: 4;
  stroke-dasharray: 9 8;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  animation: unified-flow 1.15s linear infinite;
}

.circuit-dots rect {
  fill: #fff;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.circuit-dots .selected {
  fill: #000;
}

.activation-spike rect,
.activation-spike path {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  animation: activation-burst 3.1s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.activation-spike path {
  animation-name: activation-rays;
  animation-timing-function: steps(2, end);
}

.unified-map .embedding-vector rect {
  stroke: #000;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.eye-box {
  fill: #fff;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.eye-label {
  fill: #000;
  font: 700 16px/1 var(--mono);
  text-anchor: middle;
}

.unified-map .latent-ring {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.latent-points rect {
  fill: #fff;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.latent-points .paired-point:first-child {
  fill: #000;
}

.latent-points .paired-point {
  transform-box: fill-box;
  transform-origin: center;
  animation: latent-align 2.5s ease-in-out infinite alternate;
}

.latent-points .latent-drifter {
  transform-box: fill-box;
  transform-origin: center;
}

.latent-points .drift-a {
  animation: latent-drift-a 3.7s ease-in-out infinite alternate;
}

.latent-points .drift-b {
  animation: latent-drift-b 2.9s steps(5, end) infinite alternate;
}

.latent-points .drift-c {
  animation: latent-drift-c 4.3s ease-in-out infinite alternate;
}

.latent-points .drift-d {
  animation: latent-drift-d 3.2s steps(4, end) infinite alternate;
}

.latent-glitch {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  animation: latent-glitch 2.6s steps(2, end) infinite;
}

.modality-gap path {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
  animation: gap-flash 2.8s steps(2, end) infinite;
}

.modality-gap rect {
  fill: #000;
  animation: gap-pulse 1.4s steps(2, end) infinite;
}

@keyframes ablation-edge {
  0%, 29%, 49%, 100% { opacity: 0.18; }
  30%, 39% { opacity: 1; }
  40%, 48% { opacity: 0; }
}

@keyframes ablation-cut {
  0%, 29%, 49%, 100% { opacity: 0; }
  30%, 48% { opacity: 1; }
}

@keyframes gap-flash {
  0%, 100% { opacity: 0.18; stroke-dashoffset: 0; }
  45%, 62% { opacity: 1; }
  80% { opacity: 0.35; stroke-dashoffset: -18; }
}

@keyframes gap-pulse {
  50% { opacity: 0; }
}

@keyframes activation-burst {
  0%, 68%, 100% { opacity: 0; stroke-width: 1; }
  72% { opacity: 1; stroke-width: 5; }
  84% { opacity: 0; stroke-width: 2; }
}

@keyframes activation-rays {
  0%, 70%, 86%, 100% { opacity: 0; }
  72%, 84% { opacity: 1; }
}

@keyframes latent-drift-a {
  to { transform: translate(-7px, 5px); }
}

@keyframes latent-drift-b {
  to { transform: translate(6px, -8px) scale(1.35); fill: #000; }
}

@keyframes latent-drift-c {
  to { transform: translate(8px, -4px); }
}

@keyframes latent-drift-d {
  to { transform: translate(-5px, -7px) scale(0.7); }
}

@keyframes latent-glitch {
  0%, 22%, 62%, 100% { opacity: 0; }
  24%, 34%, 64%, 72% { opacity: 0.75; }
  35%, 63%, 73% { opacity: 0.12; }
}

@keyframes unified-flow {
  to { stroke-dashoffset: -34; }
}

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

  .primary-nav a {
    transition: none;
  }

  .pixel-eye span,
  .pixel-eye::after,
  .global-flow > path,
  .circuit-active path,
  .embedding-map .projection-line,
  .embedding-map .latent-point,
  .embedding-map .alignment-mark {
    animation: none;
  }

  .signal-flow path,
  .latent-points .paired-point,
  .activation-spike rect,
  .activation-spike path,
  .latent-points .latent-drifter,
  .latent-glitch,
  .ablation-edge,
  .ablation-cut,
  .modality-gap path,
  .modality-gap rect,
  .portrait-eye-link__flow {
    animation: none;
  }
}

/* Art & Other */

.art-page {
  padding-bottom: clamp(60px, 8vw, 115px);
}

.art-intro {
  position: relative;
  min-height: clamp(300px, 42vw, 540px);
  padding: clamp(42px, 7vw, 92px) 0 40px;
  overflow: hidden;
}

.art-intro p {
  position: relative;
  z-index: 2;
  width: min(31ch, 52%);
  margin: 0 0 28px auto;
  font: 700 clamp(0.78rem, 1.15vw, 1rem) / 1.45 var(--mono);
  text-transform: uppercase;
}

.art-intro h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--signal);
  font: 400 clamp(5rem, 12vw, 12rem) / 0.62 var(--serif);
  letter-spacing: -0.085em;
}

.art-intro h1 i {
  color: var(--ink);
  font-weight: 400;
}

.art-intro-mark {
  position: absolute;
  right: 2%;
  bottom: 12%;
  width: min(38vw, 430px);
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.art-intro-mark span {
  position: absolute;
  width: 48%;
  height: 48%;
  border: 1px solid var(--ink);
}

.art-intro-mark span:nth-child(1) { top: -8%; left: 25%; border-radius: 50%; }
.art-intro-mark span:nth-child(2) { top: 26%; right: -8%; transform: rotate(18deg); }
.art-intro-mark span:nth-child(3) { bottom: -8%; left: 25%; border-radius: 50%; }
.art-intro-mark span:nth-child(4) { top: 26%; left: -8%; transform: rotate(-18deg); background: var(--signal); mix-blend-mode: multiply; }

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

.art-card {
  position: relative;
  display: grid;
  min-height: clamp(310px, 35vw, 470px);
  grid-template-rows: auto auto 1fr;
  padding: clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  text-decoration: none;
  overflow: hidden;
  transition: color 140ms linear, background-color 140ms linear;
}

.art-card:hover,
.art-card:focus-visible {
  color: #fff;
  background: var(--signal);
  outline: 0;
}

.art-card-number {
  font: 700 0.72rem/1 var(--mono);
}

.art-card h2 {
  position: relative;
  z-index: 2;
  max-width: 8ch;
  margin: clamp(24px, 4vw, 48px) 0 0;
  font: 400 clamp(2.8rem, 5.6vw, 6.2rem) / 0.78 var(--serif);
  letter-spacing: -0.065em;
}

.art-card-arrow {
  position: absolute;
  top: 17px;
  right: 19px;
  font: 700 1.35rem/1 var(--mono);
}

.art-card svg {
  align-self: end;
  display: block;
  width: 100%;
  max-height: 190px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.art-card svg * {
  vector-effect: non-scaling-stroke;
}

.art-drawing-line,
.music-wave {
  stroke-width: 4;
  stroke-dasharray: 8 6;
  animation: art-line-flow 1.2s linear infinite;
}

.graphic-composition {
  position: relative;
  align-self: end;
  height: 180px;
  font: 700 clamp(5.5rem, 10vw, 10rem) / 1 var(--sans);
}

.graphic-composition span {
  position: absolute;
  bottom: -0.16em;
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}

.graphic-composition span:nth-child(1) { left: 0; transform: rotate(-8deg); }
.graphic-composition span:nth-child(2) { left: 31%; bottom: -0.04em; color: currentColor; transform: rotate(6deg); }
.graphic-composition span:nth-child(3) { right: 0; transform: rotate(-3deg); }

@keyframes art-line-flow {
  to { stroke-dashoffset: -28; }
}

@media (max-width: 720px) {
  .art-intro p {
    width: 75%;
  }

  .art-intro-mark {
    width: 62vw;
    opacity: 0.62;
  }

  .art-hub {
    grid-template-columns: 1fr;
  }

  .art-card {
    min-height: 300px;
  }
}

/* Education */

.education-page {
  padding-bottom: clamp(24px, 3vw, 40px);
}

.education-title {
  margin: clamp(48px, 8vw, 116px) 0 clamp(30px, 5vw, 72px);
  color: var(--signal);
  font: 400 clamp(4.4rem, 10vw, 10rem) / 0.72 var(--serif);
  letter-spacing: -0.075em;
}

.education-list {
  border-top: 1px solid var(--ink);
}

.education-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.34fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.education-entry:hover .education-copy h3,
.education-entry:focus-visible .education-copy h3 {
  color: var(--signal);
}

.education-entry:hover .education-diagram,
.education-entry:focus-visible .education-diagram {
  box-shadow: 8px 8px 0 var(--signal);
}

.education-entry:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 8px;
}

.education-copy {
  min-width: 0;
}

.education-copy h3 {
  max-width: 30ch;
  margin: 0 0 0.4em;
  font: 400 clamp(1.5rem, 2.5vw, 2.6rem) / 1.05 var(--serif);
  letter-spacing: -0.055em;
}

.education-copy ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 clamp(0.9rem, 1.25vw, 1.1rem) / 1.4 var(--mono);
}

.education-copy li {
  position: relative;
  padding-left: 1.35rem;
}

.education-copy li::before {
  content: "";
  position: absolute;
  top: 0.47em;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--signal);
}

.education-copy strong {
  font-weight: 700;
}

.achievement-highlight {
  display: inline-block;
  margin: -0.14em 0;
  padding: 0.16em 0.42em 0.12em;
  color: #fff;
  background: var(--signal);
  font-weight: 700;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-0.6deg);
}

.education-diagram {
  position: relative;
  display: block;
  min-width: 0;
  padding-top: 17px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #fff;
  overflow: hidden;
}

.education-diagram::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 17px;
  background: var(--signal);
}

.education-diagram::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 2px;
  color: #fff;
  font: 700 0.7rem/1 var(--mono);
}

.education-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-grid path {
  fill: none;
  stroke: rgba(17, 17, 15, 0.12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.diagram-flow path,
.learning-fit,
.travel-orbit {
  fill: none;
  stroke: #000;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 8;
  vector-effect: non-scaling-stroke;
  animation: unified-flow 1.15s linear infinite;
}

.learning-axes path {
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.data-samples circle {
  fill: #fff;
  stroke: #000;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.data-samples circle:nth-child(4n + 2) {
  fill: var(--signal);
  stroke: var(--signal);
}

.diagram-flow path:last-child {
  stroke-width: 1.5;
  opacity: 0.28;
  animation-direction: reverse;
}

.diagram-nodes circle,
.route-origin,
.route-destination {
  fill: #fff;
  stroke: #000;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.diagram-nodes circle:nth-child(4),
.route-destination {
  fill: var(--signal);
  stroke: var(--signal);
  transform-box: fill-box;
  transform-origin: center;
  animation: education-pulse 1.8s steps(2, end) infinite;
}

.diagram-scan {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3;
  stroke-dasharray: 28 267;
  vector-effect: non-scaling-stroke;
  animation: education-scan 2.4s linear infinite;
}

.aircraft-outline {
  fill: #fff;
  stroke: #000;
  stroke-width: 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.route-lines,
.route-globe {
  fill: none;
  stroke: #000;
  stroke-width: 1.2;
  opacity: 0.35;
  vector-effect: non-scaling-stroke;
}

.route-lines {
  opacity: 0.55;
}

.travel-orbit {
  stroke-width: 3;
}

.education-rule {
  margin: clamp(45px, 7vw, 90px) 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.education-project-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}

.education-project-links a {
  position: relative;
  display: flex;
  min-height: 145px;
  align-items: flex-end;
  padding: 22px 22px 20px;
  border-right: 1px solid var(--ink);
  font: 400 clamp(1.35rem, 2.25vw, 2.5rem) / 0.98 var(--serif);
  letter-spacing: -0.045em;
  text-decoration: none;
}

.education-project-links a:last-child {
  border-right: 0;
}

.education-project-links a::before {
  content: "↗";
  position: absolute;
  top: 15px;
  right: 17px;
  color: var(--signal);
  font: 400 1.2rem/1 var(--mono);
}

.education-project-links a:hover,
.education-project-links a:focus-visible {
  color: #fff;
  background: var(--signal);
  outline: none;
}

.education-project-links a:hover::before,
.education-project-links a:focus-visible::before {
  color: #fff;
}

.education-footer {
  justify-content: flex-start;
}

@keyframes education-scan {
  to { stroke-dashoffset: -295; }
}

@keyframes education-pulse {
  50% { transform: scale(1.45); }
}

@media (max-width: 820px) {
  .education-title {
    margin-top: 58px;
    font-size: clamp(4rem, 19vw, 7rem);
  }

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

  .education-copy h3 {
    max-width: none;
  }

  .education-diagram {
    max-width: 240px;
  }

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

  .education-project-links a {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .education-project-links a:last-child {
    border-bottom: 0;
  }
}

/* Experience */

.experience-page {
  padding-bottom: clamp(55px, 7vw, 100px);
}

.experience-group + .experience-group {
  margin-top: clamp(70px, 10vw, 145px);
}

.experience-group-title {
  margin: 0 0 clamp(25px, 4vw, 48px);
  color: var(--signal);
  font: 400 clamp(3.2rem, 6vw, 6.6rem) / 0.82 var(--serif);
  letter-spacing: -0.065em;
}

.experience-list {
  border-top: 1px solid var(--ink);
}

.experience-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.48fr);
  gap: clamp(25px, 5vw, 72px);
  align-items: center;
  min-height: 235px;
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}

.experience-copy h3 {
  max-width: 16ch;
  margin: 0 0 0.35em;
  font: 400 clamp(2.1rem, 4vw, 4.5rem) / 0.92 var(--serif);
  letter-spacing: -0.055em;
}

.experience-copy p {
  width: fit-content;
  margin: 0;
  padding: 7px 9px 6px;
  color: #fff;
  background: var(--signal);
  font: 700 clamp(0.74rem, 1.05vw, 0.92rem) / 1.2 var(--mono);
}

.experience-logo {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 165px;
  margin: 0;
  padding: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: #fff;
  overflow: hidden;
}

.experience-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 17px;
  background: var(--signal);
}

.experience-logo::after {
  content: "+";
  position: absolute;
  top: 2px;
  right: 6px;
  color: #fff;
  font: 700 0.7rem/1 var(--mono);
}

.experience-logo img {
  display: block;
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.experience-logo--wide img {
  width: 100%;
}

.experience-entry:hover .experience-copy h3,
.experience-entry:focus-visible .experience-copy h3 {
  color: var(--signal);
}

.experience-entry:hover .experience-logo,
.experience-entry:focus-visible .experience-logo {
  box-shadow: 8px 8px 0 var(--signal);
}

.experience-entry:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 8px;
}

.experience-detail-page .education-detail-header h1 {
  max-width: 11ch;
}

.experience-detail-page .education-detail-copy hr {
  margin: clamp(32px, 5vw, 58px) 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.education-detail-hero.education-detail-hero--logo {
  display: grid;
  min-height: clamp(230px, 32vw, 430px);
  place-items: center;
  background: #fff;
}

.education-detail-hero.education-detail-hero--logo img {
  width: min(72%, 700px);
  height: auto;
  max-height: 170px;
  padding: 20px;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
}

.detail-inline-figure {
  margin: clamp(34px, 6vw, 70px) 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--ink);
  background: #fff;
}

.detail-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-caption {
  margin: -0.8em 0 3em;
  padding: clamp(20px, 3vw, 34px);
  border-left: 8px solid var(--signal);
  background: rgba(255, 255, 255, 0.58);
  font: 400 clamp(1rem, 1.4vw, 1.22rem) / 1.52 var(--mono);
}

@media (max-width: 820px) {
  .experience-entry {
    grid-template-columns: 1fr;
  }

  .experience-copy h3 {
    max-width: none;
  }

  .experience-logo {
    width: min(100%, 500px);
  }
}

/* Compact Education, Experience, and Hackathons overview pages. */

.education-page > .education-title,
#experience > .education-title,
#hackathons > .education-title {
  margin: clamp(22px, 3vw, 40px) 0 clamp(20px, 2.5vw, 32px);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
}

#experience,
#hackathons {
  padding-bottom: clamp(24px, 3vw, 40px);
}

#experience .experience-group + .experience-group,
#hackathons .experience-group + .experience-group {
  margin-top: clamp(28px, 3vw, 40px);
}

#experience .experience-group-title,
#hackathons .experience-group-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

#experience .experience-entry,
#hackathons .experience-entry {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.25fr);
  gap: clamp(16px, 2.5vw, 32px);
  min-height: 0;
  padding: 16px 0;
}

#experience .experience-copy h3,
#hackathons .experience-copy h3 {
  max-width: none;
  font-size: clamp(1.4rem, 2.4vw, 2.5rem);
  line-height: 1.05;
}

#experience .experience-logo {
  min-height: 96px;
  padding: 25px 16px 12px;
}

#experience .experience-logo img {
  max-height: 64px;
}

@media (max-width: 540px) {
  #experience .experience-entry,
  #hackathons .experience-entry {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }

  #experience .experience-logo {
    min-height: 76px;
    padding: 22px 8px 8px;
  }

  #experience .experience-logo img {
    max-height: 46px;
  }
}

/* Hackathons */

.hackathon-page .experience-copy p {
  max-width: 58ch;
  line-height: 1.38;
}

.hackathon-result {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 5px 9px;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  background: #fff;
  font: 700 clamp(0.74rem, 1vw, 0.9rem) / 1.15 var(--mono);
  box-shadow: 4px 4px 0 var(--ink);
}

.hackathon-result span {
  font-size: 1.18em;
  line-height: 1;
}

.hackathon-preview {
  min-height: 129px;
  padding: 17px 0 0;
}

.hackathon-preview img {
  width: 100%;
  height: 112px;
  max-height: none;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 140ms linear;
}

.experience-entry:hover .hackathon-preview img,
.experience-entry:focus-visible .hackathon-preview img {
  filter: grayscale(0) contrast(1.04);
}

.hackathon-detail-page .education-detail-header h1 {
  max-width: 12ch;
}

.hackathon-detail-page .education-detail-header p {
  line-height: 1.45;
}

.hackathon-medals {
  display: inline-block;
  margin: 0 0.22em 0.12em 0;
  font-size: 0.34em;
  letter-spacing: -0.18em;
  vertical-align: top;
  transform: translateY(0.18em);
}

.education-detail-hero.hackathon-hero--wide img {
  height: auto;
  min-height: 230px;
  object-fit: cover;
}

@media (max-width: 820px) {
  .hackathon-preview {
    width: min(100%, 520px);
  }

  .hackathon-detail-page .education-detail-header h1 {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .hackathon-preview {
    min-height: 97px;
  }

  .hackathon-preview img {
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diagram-flow path,
  .diagram-nodes circle,
  .diagram-scan,
  .learning-fit,
  .travel-orbit,
  .route-destination {
    animation: none;
  }
}

/* Education details */

.education-detail-page {
  padding-bottom: clamp(55px, 7vw, 100px);
}

.education-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 28px;
  align-items: end;
  margin: clamp(52px, 8vw, 115px) 0 clamp(30px, 5vw, 65px);
}

.education-detail-header h1 {
  margin: 0;
  color: var(--signal);
  font: 400 clamp(4rem, 8vw, 8.8rem) / 0.78 var(--serif);
  letter-spacing: -0.075em;
}

.education-detail-header p {
  margin: 0;
  padding: 12px 0 9px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 700 clamp(0.76rem, 1.15vw, 1rem) / 1.3 var(--mono);
  text-transform: uppercase;
}

.education-detail-hero {
  position: relative;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--signal);
  overflow: hidden;
}

.education-detail-hero::before,
.education-detail-hero::after {
  content: "+";
  position: absolute;
  z-index: 2;
  color: #fff;
  font: 700 1rem/1 var(--mono);
}

.education-detail-hero::before {
  top: 10px;
  left: 12px;
}

.education-detail-hero::after {
  right: 12px;
  bottom: 10px;
}

.education-detail-hero img {
  display: block;
  width: 100%;
  height: clamp(230px, 32vw, 430px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
}

.education-detail-copy {
  max-width: 920px;
  margin: clamp(40px, 6vw, 80px) 0 0 auto;
  padding-left: clamp(0px, 5vw, 80px);
}

.education-detail-copy h2,
.education-detail-copy h3 {
  margin: 1.35em 0 0.55em;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.education-detail-copy h2 {
  margin-top: 0;
  color: var(--signal);
  font-size: clamp(3.1rem, 6vw, 6.2rem);
}

.education-detail-copy h3 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.education-detail-copy p,
.education-detail-copy li {
  font: 400 clamp(1rem, 1.45vw, 1.28rem) / 1.52 var(--mono);
}

.education-detail-copy p {
  margin: 0 0 2em;
}

.education-detail-copy ul {
  margin: 0 0 clamp(40px, 6vw, 72px);
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.education-detail-copy li {
  position: relative;
  padding: 13px 18px 12px 30px;
  border-bottom: 1px solid var(--ink);
}

.education-detail-copy li::before {
  content: "";
  position: absolute;
  top: 1.08em;
  left: 5px;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.education-detail-copy a {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.education-detail-copy a:hover,
.education-detail-copy a:focus-visible {
  color: #fff;
  background: var(--signal);
  outline: 3px solid var(--signal);
}

/* Music */

/* Graphic design */

.graphic-design-page {
  padding-bottom: clamp(70px, 9vw, 130px);
}

.graphic-design-hero {
  position: relative;
  display: grid;
  min-height: clamp(300px, 38vw, 500px);
  padding: clamp(55px, 8vw, 105px) 0 clamp(50px, 7vw, 90px);
  align-content: center;
  border-bottom: 1px solid var(--ink);
}

.graphic-design-hero p {
  margin: 0 0 12px;
  font: 700 clamp(0.74rem, 1vw, 0.9rem) / 1.2 var(--mono);
  text-transform: uppercase;
}

.graphic-design-hero h1 {
  margin: 0;
  color: var(--signal);
  font: 400 clamp(5.2rem, 12vw, 12rem) / 0.63 var(--serif);
  letter-spacing: -0.085em;
}

.graphic-design-hero h1 i {
  margin-left: 0.52em;
  color: var(--ink);
  font-weight: 400;
}

.graphic-design-stamp {
  position: absolute;
  right: 2px;
  bottom: clamp(52px, 7vw, 92px);
  display: grid;
  width: clamp(105px, 13vw, 170px);
  aspect-ratio: 1;
  place-content: center;
  color: #fff;
  background: var(--signal);
  text-align: center;
  transform: rotate(5deg);
}

.graphic-design-stamp span:first-child {
  font: 400 clamp(3.5rem, 6vw, 6rem) / 0.72 var(--serif);
}

.graphic-design-stamp span:last-child {
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.poster-grid {
  column-count: 3;
  column-gap: clamp(18px, 2vw, 26px);
  padding: clamp(24px, 3vw, 36px) 8px 0 0;
}

.poster-item {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin-bottom: 28px;
  break-inside: avoid;
  vertical-align: top;
  color: var(--ink);
  text-decoration: none;
}

.poster-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  object-fit: cover;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 140ms linear, box-shadow 120ms linear;
}

.poster-item--portrait img {
  aspect-ratio: auto;
  object-fit: contain;
}

.poster-item > span {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  padding: 11px 0 0 7px;
  font: 700 0.66rem/1 var(--mono);
}

.poster-item time {
  font-style: normal;
}

.poster-item i {
  font-size: 1rem;
  font-style: normal;
}

.poster-item:hover img,
.poster-item:focus-visible img {
  box-shadow: 8px 8px 0 var(--signal);
  transform: translate(-2px, -2px);
}

.poster-item:hover > span,
.poster-item:focus-visible > span {
  color: var(--signal);
}

.poster-item:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 7px;
}

@media (max-width: 900px) {
  .poster-grid {
    column-count: 2;
  }
}

@media (max-width: 540px) {
  .graphic-design-hero h1 i {
    margin-left: 0;
  }

  .graphic-design-stamp {
    right: 8px;
    bottom: 34px;
    width: 88px;
  }

  .poster-grid {
    column-count: 1;
  }
}

.music-page {
  padding-bottom: clamp(70px, 9vw, 130px);
}

.music-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  min-height: clamp(300px, 38vw, 510px);
  padding: clamp(45px, 7vw, 90px) 0 62px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.music-hero p {
  margin: 0 0 10px;
  font: 700 clamp(0.74rem, 1vw, 0.9rem) / 1.2 var(--mono);
  text-transform: uppercase;
}

.music-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--signal);
  font: 400 clamp(6rem, 14vw, 14rem) / 0.66 var(--serif);
  letter-spacing: -0.085em;
}

.music-artist-link {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 180px;
  padding: 14px 16px 13px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--signal);
}

.music-artist-link span {
  font: 700 0.68rem/1.2 var(--mono);
  text-transform: uppercase;
}

.music-artist-link strong {
  margin: 4px 0;
  font: 400 2.9rem/0.9 var(--serif);
}

.music-artist-link:hover,
.music-artist-link:focus-visible {
  background: var(--signal);
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.music-hero-wave {
  position: absolute;
  right: 0;
  bottom: 19px;
  width: min(78%, 760px);
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 7 6;
  animation: musicSignal 2.8s linear infinite;
}

@keyframes musicSignal {
  to { stroke-dashoffset: -52; }
}

.music-projects,
.music-releases {
  margin-top: clamp(70px, 10vw, 135px);
}

.music-section-heading {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) minmax(180px, 0.34fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.music-section-heading > span,
.music-section-heading > p {
  margin: 0;
  font: 700 0.7rem/1.35 var(--mono);
  text-transform: uppercase;
}

.music-section-heading h2 {
  margin: 0;
  color: var(--signal);
  font: 400 clamp(3.3rem, 7vw, 7.2rem) / 0.78 var(--serif);
  letter-spacing: -0.065em;
}

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

.music-project-list > a {
  position: relative;
  min-height: 280px;
  padding: clamp(25px, 4vw, 48px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.music-project-index {
  font: 700 0.7rem/1 var(--mono);
}

.music-project-list h3 {
  margin: 0.85em 0 0.35em;
  font: 400 clamp(2.6rem, 5vw, 5rem) / 0.86 var(--serif);
  letter-spacing: -0.055em;
}

.music-project-list p {
  max-width: 47ch;
  margin: 0;
  font: 400 clamp(0.92rem, 1.2vw, 1.08rem) / 1.45 var(--mono);
}

.music-project-arrow {
  position: absolute;
  top: 18px;
  right: 20px;
  font: 700 1.4rem/1 var(--mono);
}

.music-project-list > a:hover,
.music-project-list > a:focus-visible {
  color: #fff;
  background: var(--signal);
  outline: 0;
}

.release-list {
  border-top: 1px solid var(--ink);
}

.release {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(34px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--ink);
}

.release-cover {
  align-self: start;
  display: block;
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}

.release-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 140ms linear;
}

.release-cover:hover,
.release-cover:focus-visible {
  box-shadow: 8px 8px 0 var(--signal);
  outline: 2px solid var(--signal);
}

.release-cover:hover img,
.release-cover:focus-visible img {
  filter: grayscale(0);
}

.release-copy header > span {
  display: inline-block;
  padding: 6px 8px 5px;
  color: #fff;
  background: var(--signal);
  font: 700 0.68rem/1 var(--mono);
  text-transform: uppercase;
}

.release-copy h3 {
  max-width: 18ch;
  margin: 0.25em 0 0.7em;
  font: 400 clamp(2.5rem, 5vw, 5.1rem) / 0.87 var(--serif);
  letter-spacing: -0.055em;
}

.release-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.release-copy h3 a:hover,
.release-copy h3 a:focus-visible {
  color: var(--signal);
  outline: 0;
}

.release-note {
  min-height: 2.2em;
  margin: -0.15em 0 1.4em;
  padding: 0 0 8px;
  color: rgba(17, 17, 16, 0.68);
  border-bottom: 1px dashed rgba(17, 17, 16, 0.48);
  font: 400 clamp(0.8rem, 1.05vw, 0.94rem) / 1.35 var(--mono);
}

.track-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: music-track;
}

.track-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 13px 0 12px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.28);
  counter-increment: music-track;
}

.track-list li::before {
  content: counter(music-track, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 0;
  color: var(--signal);
  font: 700 0.62rem/1 var(--mono);
}

.track-list strong {
  padding-right: 34px;
  font: 700 clamp(0.82rem, 1.08vw, 0.98rem) / 1.3 var(--mono);
}

.track-note {
  display: block;
  min-height: 1.25em;
  padding-bottom: 7px;
  color: rgba(17, 17, 16, 0.78);
  border-bottom: 1px dashed rgba(17, 17, 16, 0.48);
  font: 400 clamp(0.76rem, 1vw, 0.9rem) / 1.3 var(--mono);
}

@media (max-width: 820px) {
  .music-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .music-artist-link {
    width: min(100%, 260px);
  }

  .music-project-list,
  .release {
    grid-template-columns: 1fr;
  }

  .music-section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .music-section-heading > p {
    grid-column: 2;
  }

  .release-cover {
    width: min(72vw, 360px);
  }

  .track-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-hero-wave {
    animation: none;
  }
}

@media (max-width: 820px) {
  .education-detail-header {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 58px;
  }

  .education-detail-header h1 {
    font-size: clamp(3.8rem, 19vw, 7rem);
  }

  .education-detail-header p {
    max-width: 36rem;
  }

  .education-detail-copy {
    margin-left: 0;
    padding-left: 0;
  }
}
