:root {
  --ink: #101112;
  --muted: #6f7478;
  --line: #e6e8e7;
  --paper: #ffffff;
  --surface: #f7f8f7;
  --mint: #c9f3e5;
  --mint-strong: #58cfad;
  --purple: #d9cdfa;
  --purple-strong: #9372e9;
  --blue: #dcedfa;
  --yellow: #f7df9d;
  --peach: #f7d6c9;
  --red: #e34b5f;
  --header-height: 86px;
  --shadow: 0 18px 52px rgba(24, 31, 29, 0.08);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

button,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--purple-strong);
  outline-offset: 3px;
}

::selection {
  color: var(--white, #ffffff);
  background: var(--purple-strong);
}

.shell {
  width: min(1180px, calc(100% - 64px));
  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: 999;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(24, 31, 29, 0.05);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 800;
}

.brand-portrait {
  position: relative;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.brand-portrait img {
  position: absolute;
  right: 2px;
  bottom: -5px;
  left: 2px;
  width: 34px;
  height: 46px;
  object-fit: contain;
}

.view-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  color: #44494b;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.view-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.view-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--ink);
}

.site-main {
  min-height: calc(100svh - var(--header-height) - 88px);
}

.page-view {
  min-height: calc(100svh - var(--header-height) - 88px);
  padding: 54px 0 92px;
}

.page-view.is-entering {
  animation: view-enter 360ms ease both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-label,
.hero-kicker,
.card-type,
.summary-label {
  margin: 0;
  color: var(--purple-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-heading {
  margin-bottom: 40px;
  text-align: center;
}

.page-heading h2 {
  margin: 10px 0 8px;
  font-size: 46px;
  line-height: 1.2;
}

.page-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.about-view {
  padding-top: 42px;
}

.about-layout {
  position: relative;
  min-height: 475px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 80px;
}

.about-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.hero-kicker {
  color: var(--mint-strong);
}

.about-copy h1 {
  margin: 16px 0 4px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.08;
}

.about-copy h1 span {
  display: block;
  font-size: 34px;
}

.hero-role {
  margin: 0;
  color: var(--purple-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
}

.hero-summary {
  max-width: 620px;
  margin: 20px 0 0;
  color: #505659;
  font-size: 16px;
}

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

.email-contact {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 6px;
}

.email-contact a {
  min-width: 0;
  padding: 9px 12px 9px 15px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-contact button {
  width: 42px;
  min-width: 42px;
  align-self: stretch;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--ink);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.email-contact button:hover,
.email-contact button:focus-visible {
  background: var(--mint);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.detail-button:hover,
.honor-card:hover {
  transform: translateY(-2px);
}

.button-outline {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--ink);
}

.button-outline:hover {
  background: var(--surface);
}

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

.button-mint:hover {
  background: #aeead5;
}

.button-black {
  color: #ffffff;
  background: var(--ink);
}

.button-black:hover {
  background: #303335;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 32px;
  margin: 32px 0 0;
}

.hero-facts div {
  display: grid;
  gap: 2px;
}

.hero-facts dt {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.portrait-sticker {
  position: relative;
  width: 330px;
  height: 430px;
  justify-self: center;
  margin: 0;
}

.portrait-sticker::before {
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 268px;
  height: 294px;
  content: "";
  background: #f5f6f5;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 8px 8px;
}

.portrait-sticker img {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  width: 250px;
  height: auto;
  filter:
    drop-shadow(4px 0 0 var(--mint-strong))
    drop-shadow(-4px 0 0 var(--mint-strong))
    drop-shadow(0 4px 0 var(--mint-strong))
    drop-shadow(0 -4px 0 var(--mint-strong));
}

.sticker-block {
  position: absolute;
  z-index: 1;
  border: 2px solid var(--ink);
}

.sticker-block-purple {
  top: 8px;
  right: 0;
  width: 104px;
  height: 104px;
  background: var(--purple);
}

.sticker-block-mint {
  bottom: 4px;
  left: 0;
  width: 94px;
  height: 72px;
  background: var(--mint);
}

.portrait-sticker figcaption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.matcher {
  margin-top: 18px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.matcher-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.matcher-heading h2 {
  margin: 5px 0 0;
  font-size: 23px;
}

.matcher-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.matcher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.matcher-form textarea {
  min-height: 72px;
  max-height: 160px;
  resize: vertical;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d8dcda;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.matcher-form textarea::placeholder {
  color: #a1a6a4;
}

.matcher-form .button {
  min-width: 116px;
}

.matcher-form .button:disabled,
.matcher-form textarea:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-error {
  margin: 8px 0 0;
  color: #b23445;
  font-size: 12px;
}

.match-result {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.score-block {
  display: grid;
  gap: 2px;
}

.score-value {
  color: var(--purple-strong);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.score-block > span:last-child,
.match-note {
  color: var(--muted);
  font-size: 10px;
}

.score-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #e1e4e2;
  border-radius: 999px;
}

.score-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--mint-strong);
  border-radius: inherit;
  transition: width 400ms ease;
}

.score-track span[data-score-level="1"] { width: 10%; }
.score-track span[data-score-level="2"] { width: 20%; }
.score-track span[data-score-level="3"] { width: 30%; }
.score-track span[data-score-level="4"] { width: 40%; }
.score-track span[data-score-level="5"] { width: 50%; }
.score-track span[data-score-level="6"] { width: 60%; }
.score-track span[data-score-level="7"] { width: 70%; }
.score-track span[data-score-level="8"] { width: 80%; }
.score-track span[data-score-level="9"] { width: 90%; }
.score-track span[data-score-level="10"] { width: 100%; }

.score-detail h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.score-detail > p {
  margin: 0;
  color: #565c5f;
  font-size: 12px;
}

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

.match-evidence-grid section {
  padding-top: 11px;
  border-top: 3px solid var(--mint-strong);
}

.match-evidence-grid section:last-child {
  border-top-color: var(--purple-strong);
}

.match-evidence-grid h4 {
  margin: 0 0 8px;
  font-size: 12px;
}

.match-evidence-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.match-evidence-list li {
  display: grid;
  gap: 1px;
}

.match-evidence-list b {
  font-size: 11px;
}

.match-evidence-list span {
  color: var(--muted);
  font-size: 10px;
}

.match-tags,
.project-tags,
.research-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.match-tags li,
.project-tags li,
.research-summary li {
  padding: 4px 9px;
  color: #24322d;
  background: var(--mint);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.match-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 2px;
}

.education-view,
.skills-view {
  background: #fbfcfb;
}

.education-board {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 56px;
  padding: 40px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.education-school {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.education-date {
  margin: 0 0 7px;
  color: var(--purple-strong);
  font-size: 12px;
  font-weight: 900;
}

.education-school h3 {
  margin: 0;
  font-size: 28px;
}

.education-school p:last-child {
  margin: 3px 0 0;
  color: var(--muted);
}

.school-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  background: var(--peach);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.education-intro {
  margin: 24px 0;
  color: #545a5c;
}

.education-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--mint);
  border: 1px solid #aee2d1;
  border-radius: 6px;
}

.education-next > span {
  font-size: 12px;
  font-weight: 900;
}

.education-next b {
  font-size: 15px;
}

.education-next p {
  margin: 1px 0 0;
  color: #4f5a56;
  font-size: 11px;
}

.education-next small {
  color: #397b68;
  font-size: 9px;
  font-weight: 900;
}

.education-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-stats div {
  padding: 18px 9px;
  border-right: 1px solid var(--line);
}

.education-stats div:last-child {
  border-right: 0;
}

.education-stats dt {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.education-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.education-transcript-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.course-groups {
  border-top: 2px solid var(--ink);
}

.course-groups article {
  position: relative;
  min-height: 100px;
  padding: 20px 56px 18px 0;
  border-bottom: 1px solid var(--line);
}

.course-groups h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.course-groups p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.course-number {
  position: absolute;
  top: 16px;
  right: 2px;
  color: #e2e5e4;
  font-size: 35px;
  font-weight: 900;
}

.research-summary {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px 54px;
  margin-bottom: 32px;
  padding: 26px 30px;
  background: var(--blue);
  border-radius: 8px;
}

.research-summary h3 {
  margin: 6px 0 0;
  font-size: 21px;
}

.research-summary > p {
  margin: 0;
  color: #4f575a;
  font-size: 13px;
}

.research-summary ul {
  grid-column: 1 / -1;
  margin-top: 0;
}

.research-summary li {
  background: rgba(255, 255, 255, 0.76);
}

.research-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.research-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 31, 29, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-visual {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-visual b {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 10px;
  font-weight: 900;
}

.visual-experiment {
  background: #ecece8;
}

.visual-experiment img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.visual-experiment b {
  padding: 4px 6px;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.78);
}

.visual-review-figure {
  background: #ffffff;
}

.visual-review-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.visual-review-figure b {
  padding: 4px 6px;
  background: #ffffff;
}

@media (hover: hover) {
  .research-card:hover {
    border-color: #cfd4d1;
    box-shadow: 0 18px 42px rgba(24, 31, 29, 0.1);
    transform: translateY(-3px);
  }
}

.visual-ct {
  background: #050505;
}

.visual-ct img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.visual-ct b {
  padding: 4px 6px;
  color: #ffffff;
  background: #050505;
}

.visual-innovation {
  background: #edf2ef;
}

.visual-innovation img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}

.visual-innovation b {
  padding: 4px 6px;
  color: var(--ink);
  background: #ffffff;
}

.research-card-copy {
  padding: 18px;
}

.research-card-copy h3 {
  min-height: 78px;
  margin: 8px 0 9px;
  font-size: 17px;
  line-height: 1.5;
}

.research-card-copy > p:not(.card-type) {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 31, 29, 0.05);
}

.skill-card-head {
  position: relative;
  min-height: 116px;
  padding: 22px 18px;
}

.skill-blue .skill-card-head { background: var(--blue); }
.skill-mint .skill-card-head { background: var(--mint); }
.skill-yellow .skill-card-head { background: var(--yellow); }
.skill-purple .skill-card-head { background: var(--purple); }

.skill-card-head > span {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  font-weight: 900;
}

.skill-card-head h3 {
  margin: 25px 0 0;
  font-size: 20px;
}

.skill-card-head small {
  display: block;
  margin-top: 2px;
  color: #555c5e;
  font-size: 9px;
  font-weight: 800;
}

.skill-card ul {
  margin: 0;
  padding: 20px 18px 22px 34px;
  color: #52595b;
  font-size: 12px;
}

.skill-card li + li {
  margin-top: 8px;
}

.skill-card li::marker {
  color: var(--purple-strong);
}

.outcomes {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 38px;
  margin-top: 30px;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.outcomes-heading h3,
.honors-heading h3 {
  margin: 5px 0 0;
  font-size: 24px;
}

.outcomes dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.outcomes dl div {
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.outcomes dl div:last-child {
  border-right: 0;
}

.outcomes dt {
  font-size: 19px;
  font-weight: 900;
}

.outcomes dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.honors {
  margin-top: 40px;
}

.honors-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.honors-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

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

.honor-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 31, 29, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.honor-card:hover {
  box-shadow: var(--shadow);
}

.honor-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.honor-card--event img {
  object-position: 50% 48%;
}

.honor-copy {
  display: grid;
  gap: 3px;
  padding: 16px 120px 16px 18px;
}

.honor-copy b {
  font-size: 15px;
}

.honor-copy small {
  color: var(--muted);
  font-size: 10px;
}

.honor-action {
  position: absolute;
  right: 18px;
  bottom: 19px;
  font-size: 11px;
  font-weight: 900;
}

.explore-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
  gap: 30px;
}

.featured-project {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-preview {
  min-height: 340px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  background: #eef5f2;
  border-bottom: 1px solid var(--line);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 12px;
  color: #ffffff;
  background: var(--ink);
}

.preview-logo {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

.preview-sidebar i {
  width: 22px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 3px;
}

.preview-main {
  min-width: 0;
  padding: 24px;
}

.preview-top,
.preview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-top {
  padding-bottom: 18px;
  color: #6d7472;
  border-bottom: 1px solid #ced8d4;
  font-size: 9px;
  font-weight: 900;
}

.preview-top b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 4px;
  font-size: 16px;
}

.preview-title-row {
  margin: 22px 0 16px;
}

.preview-title-row strong {
  font-size: 22px;
}

.preview-title-row span {
  color: var(--muted);
  font-size: 10px;
}

.preview-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-columns > div {
  min-height: 180px;
  padding: 16px 13px;
  background: #ffffff;
  border: 1px solid #d8e1dd;
  border-radius: 6px;
}

.preview-columns small,
.preview-columns b,
.preview-columns span {
  display: block;
}

.preview-columns small {
  color: var(--purple-strong);
  font-size: 8px;
  font-weight: 900;
}

.preview-columns b {
  margin: 7px 0 18px;
  font-size: 12px;
}

.preview-columns span {
  height: 30px;
  margin-top: 9px;
  background: var(--surface);
  border-left: 3px solid var(--mint-strong);
}

.featured-copy {
  padding: 28px;
}

.featured-copy h3 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.featured-copy > p:not(.card-type) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-tags {
  margin: 18px 0;
}

.learning-notes {
  padding-left: 26px;
  border-left: 2px solid var(--ink);
}

.notes-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.notes-heading span {
  width: 8px;
  height: 28px;
  background: var(--peach);
  border-radius: 4px;
}

.notes-heading h3 {
  margin: 0;
  font-size: 24px;
}

.learning-notes ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-notes li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.learning-notes li > span {
  color: var(--purple-strong);
  font-size: 11px;
  font-weight: 900;
}

.learning-notes h4 {
  margin: 0 0 3px;
  font-size: 15px;
}

.learning-notes li p,
.notes-foot {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.notes-foot {
  margin-top: 24px;
}

.field-learning {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 2px solid var(--ink);
}

.field-learning-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.field-learning-head h3 {
  margin: 6px 0 0;
  font-size: 28px;
}

.field-learning-head > p {
  width: min(430px, 46%);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.exploration-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.55fr);
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #eef1ef;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 140ms ease;
}

.gallery-stage img.is-contain {
  object-fit: contain;
  background: #f6f0ee;
}

.gallery-stage img.is-switching {
  opacity: 0.42;
}

.gallery-stage-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(16, 17, 18, 0.82);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.gallery-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 0 0 26px;
  border-left: 1px solid var(--line);
}

.gallery-copy h4 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.gallery-copy > p:not(.mini-label) {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.gallery-controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  transition: color 150ms ease, background 150ms ease;
}

.gallery-arrow:hover {
  color: #ffffff;
  background: var(--ink);
}

.gallery-count {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}

.gallery-count b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  padding: 22px 0 0;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 4px;
}

.gallery-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(16, 17, 18, 0.16);
  transition: opacity 150ms ease;
}

.gallery-thumb:hover::after,
.gallery-thumb[aria-pressed="true"]::after {
  opacity: 0;
}

.gallery-thumb[aria-pressed="true"] {
  border-color: var(--purple-strong);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb--contain img {
  object-fit: contain;
  background: #f6f0ee;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  justify-self: end;
  color: var(--ink);
  font-weight: 700;
}

.project-dialog,
.certificate-dialog,
.transcript-dialog {
  width: min(880px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 34px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.project-dialog::backdrop,
.certificate-dialog::backdrop,
.transcript-dialog::backdrop {
  background: rgba(20, 22, 22, 0.72);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dialog-header {
  padding: 10px 58px 24px 0;
  border-bottom: 2px solid var(--ink);
}

.dialog-header h2,
.certificate-dialog-head h2,
.transcript-dialog-head h2 {
  margin: 8px 0;
  font-size: 30px;
  line-height: 1.35;
}

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

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.dialog-grid section {
  padding: 22px;
  background: var(--surface);
  border-radius: 6px;
}

.dialog-grid section:first-child {
  border-top: 6px solid var(--mint-strong);
}

.dialog-grid section:last-child {
  border-top: 6px solid var(--purple-strong);
}

.dialog-grid h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.dialog-grid ul {
  margin: 0;
  padding-left: 18px;
  color: #555c5e;
  font-size: 13px;
}

.dialog-grid li + li {
  margin-top: 8px;
}

.dialog-done {
  min-width: 88px;
}

.certificate-dialog {
  width: min(1080px, calc(100% - 40px));
  overflow: auto;
}

.certificate-dialog-head {
  padding-right: 58px;
}

.certificate-dialog img {
  width: 100%;
  max-height: calc(100svh - 190px);
  margin-top: 18px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
}

.transcript-dialog {
  width: min(1180px, calc(100% - 40px));
  overflow: auto;
}

.transcript-dialog-head {
  padding: 10px 58px 20px 0;
  border-bottom: 2px solid var(--ink);
}

.transcript-dialog-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.transcript-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 170px));
  margin: 22px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transcript-summary div {
  padding: 13px 18px 13px 0;
}

.transcript-summary div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.transcript-summary dt {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.transcript-summary dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.transcript-pdf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 18px;
  background: var(--surface);
  border-left: 5px solid var(--mint-strong);
}

.transcript-pdf-row > div {
  display: grid;
  gap: 2px;
}

.transcript-pdf-row p {
  margin: 0 0 2px;
}

.transcript-pdf-row strong {
  font-size: 14px;
}

.transcript-pdf-row > div > span {
  color: var(--muted);
  font-size: 10px;
}

.transcript-sheets {
  display: grid;
  gap: 28px;
}

.transcript-sheet {
  min-width: 0;
  margin: 0;
}

.transcript-sheet figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.transcript-sheet figcaption > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--ink);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.transcript-sheet figcaption div {
  display: grid;
  gap: 2px;
}

.transcript-sheet figcaption b {
  font-size: 14px;
}

.transcript-sheet figcaption small {
  color: var(--muted);
  font-size: 10px;
}

.transcript-image-frame {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  overscroll-behavior-inline: contain;
}

.transcript-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.noscript {
  margin: 0;
  padding: 12px 20px;
  color: #ffffff;
  background: var(--red);
  text-align: center;
}

.js [data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .view-nav {
    gap: 4px;
  }

  .view-nav a {
    padding-inline: 12px;
    font-size: 13px;
  }

  .about-layout {
    gap: 42px;
  }

  .about-copy h1 {
    font-size: 60px;
  }

  .portrait-sticker {
    width: 300px;
  }

  .research-cards,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-card-copy h3,
  .research-card-copy > p:not(.card-type) {
    min-height: 0;
  }

  .explore-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 114px;
  }

  .shell {
    width: min(100% - 40px, 680px);
  }

  .header-inner {
    min-height: var(--header-height);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .brand {
    align-self: center;
  }

  .view-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .view-nav::-webkit-scrollbar {
    display: none;
  }

  .view-nav a {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 12px;
  }

  .page-view {
    padding-top: 42px;
  }

  .about-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-copy h1 {
    font-size: 56px;
  }

  .portrait-sticker {
    width: 270px;
    height: 350px;
    order: 2;
  }

  .portrait-sticker::before {
    width: 220px;
    height: 244px;
  }

  .portrait-sticker img {
    width: 205px;
  }

  .matcher {
    margin-top: 32px;
  }

  .education-board,
  .research-summary,
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .research-summary ul {
    grid-column: auto;
  }

  .outcomes {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .outcomes dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .outcomes dl div {
    padding: 12px;
  }

  .outcomes dl div:nth-child(2) {
    border-right: 0;
  }

  .outcomes dl div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .learning-notes {
    padding: 26px 0 0;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .field-learning-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .field-learning-head > p {
    width: min(100%, 520px);
  }

  .exploration-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    margin-top: 0;
    padding-bottom: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

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

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 30px);
  }

  .page-view {
    padding: 34px 0 64px;
  }

  .page-heading {
    margin-bottom: 28px;
  }

  .page-heading h2 {
    font-size: 36px;
  }

  .about-copy h1 {
    font-size: 48px;
  }

  .about-copy h1 span {
    font-size: 25px;
  }

  .hero-role {
    font-size: 17px;
  }

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

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-facts dt {
    font-size: 19px;
  }

  .portrait-sticker {
    width: 235px;
    height: 310px;
  }

  .portrait-sticker::before {
    right: 10px;
    width: 196px;
    height: 210px;
  }

  .portrait-sticker img {
    right: 21px;
    width: 180px;
  }

  .matcher {
    padding: 20px;
  }

  .matcher-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .matcher-form {
    grid-template-columns: 1fr;
  }

  .match-result {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .match-evidence-grid {
    grid-template-columns: 1fr;
  }

  .match-note {
    grid-column: auto;
  }

  .score-value {
    font-size: 38px;
  }

  .education-board {
    gap: 34px;
    padding: 24px 20px;
  }

  .education-school {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .education-school h3 {
    font-size: 22px;
  }

  .education-next {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 13px 14px;
  }

  .education-next small {
    display: none;
  }

  .education-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-stats div:nth-child(2) {
    border-right: 0;
  }

  .education-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .research-summary {
    padding: 22px;
  }

  .research-cards,
  .skills-grid,
  .honors-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    height: 210px;
  }

  .honors-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .honor-card img {
    height: 190px;
  }

  .honor-copy {
    padding-right: 18px;
    padding-bottom: 48px;
  }

  .honor-action {
    left: 18px;
    right: auto;
    bottom: 16px;
  }

  .project-preview {
    min-height: 290px;
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .preview-main {
    padding: 16px;
  }

  .preview-title-row strong {
    font-size: 18px;
  }

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

  .preview-columns > div {
    min-height: 74px;
  }

  .preview-columns > div:nth-child(n + 2) {
    display: none;
  }

  .preview-columns span {
    display: inline-block;
    width: 45%;
    height: 22px;
    margin-right: 5px;
  }

  .featured-copy {
    padding: 22px;
  }

  .featured-copy h3 {
    font-size: 23px;
  }

  .field-learning {
    margin-top: 44px;
    padding-top: 30px;
  }

  .field-learning-head h3 {
    font-size: 24px;
  }

  .exploration-gallery {
    margin-top: 20px;
  }

  .gallery-stage-label {
    top: 12px;
    left: 12px;
  }

  .gallery-panel {
    padding-top: 18px;
  }

  .gallery-copy h4 {
    font-size: 20px;
  }

  .gallery-copy > p:not(.mini-label) {
    min-height: 0;
  }

  .gallery-controls {
    margin-top: 16px;
  }

  .gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-right: -15px;
    padding: 18px 15px 20px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .gallery-thumb {
    flex: 0 0 82px;
    scroll-snap-align: start;
  }

  .project-dialog,
  .certificate-dialog,
  .transcript-dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    padding: 24px 18px;
  }

  .dialog-header h2,
  .certificate-dialog-head h2,
  .transcript-dialog-head h2 {
    font-size: 23px;
  }

  .transcript-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transcript-pdf-row {
    align-items: stretch;
    flex-direction: column;
  }

  .transcript-image-frame img {
    width: 760px;
    max-width: none;
  }

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

  .footer-inner {
    min-height: 72px;
    font-size: 9px;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}
