:root {
  --paper: #f2f3ee;
  --paper-deep: #e4e7df;
  --white: #fbfcf8;
  --ink: #17211f;
  --forest: #132522;
  --forest-deep: #0d1a18;
  --sage: #596a62;
  --sage-light: #aeb9b2;
  --line: rgba(23, 33, 31, 0.2);
  --line-light: rgba(242, 243, 238, 0.24);
  --gold: #b49a68;
  --gold-light: #d2bd93;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong",
    "SimSun", serif;
  --sans: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei",
    "PingFang SC", sans-serif;
  --content: min(1440px, calc(100vw - 9vw));
  --section-space: clamp(6.5rem, 11vw, 11rem);
  --header-height: 5.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: radial-gradient(rgba(23, 33, 31, 0.24) 0.45px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--paper);
  background: var(--forest);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  border-bottom: 1px solid transparent;
  transition:
    background-color 240ms ease,
    border-color 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(242, 243, 238, 0.93);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-detail {
  color: var(--sage);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.7rem);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--sage);
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

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

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

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle-line {
  display: block;
  width: 1.6rem;
  height: 1px;
  margin: 0.38rem auto;
  background: var(--ink);
  transition: transform 200ms ease;
}

.section-inner {
  width: var(--content);
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-label {
  margin-bottom: clamp(1.3rem, 2.8vw, 2.4rem);
  color: var(--sage);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(2.5rem, 5vw, 5.5rem)) 0
    clamp(2rem, 4vw, 4rem);
}

.hero::before {
  position: absolute;
  top: 0;
  right: 34%;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(23, 33, 31, 0.12) 14%,
    rgba(23, 33, 31, 0.12) 86%,
    transparent
  );
}

.hero::after {
  position: absolute;
  top: 18%;
  right: -14vw;
  width: 52vw;
  height: 52vw;
  content: "";
  border: 1px solid rgba(180, 154, 104, 0.18);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--content);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.hero-copy {
  padding-block: clamp(1.5rem, 3vw, 3.5rem);
  animation: copy-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-context {
  display: flex;
  max-width: 37rem;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: clamp(2.3rem, 5vw, 4.5rem);
  color: var(--sage);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.project-context strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 9.5em;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 6.4vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 37rem;
  margin-top: clamp(2.1rem, 4vw, 3.6rem);
  color: #3f4c48;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

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

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

.text-link {
  position: relative;
  color: var(--ink);
  background: none;
}

.text-link {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.84rem;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-facts {
  display: grid;
  max-width: 42rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  padding: 1.2rem 1.2rem 0 0;
}

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

.hero-facts dt {
  color: var(--sage);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hero-facts dd {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
}

.portrait-stage {
  position: relative;
  display: flex;
  min-height: 38rem;
  align-items: center;
  justify-content: center;
  animation: portrait-in 1.2s 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contour-map {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 125%;
  max-width: none;
  height: auto;
  overflow: visible;
  transform: translate(-54%, -50%) rotate(-4deg);
}

.contour-map path,
.contour-map circle {
  stroke: var(--ink);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  opacity: 0.17;
}

.contour-map .dimension-line {
  stroke: var(--gold);
  opacity: 0.7;
}

.portrait-frame {
  position: relative;
  width: min(100%, 28rem);
  margin-left: auto;
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  content: "";
  border-color: var(--gold);
}

.portrait-frame::before {
  top: -0.55rem;
  left: -0.55rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.portrait-frame::after {
  right: -0.55rem;
  bottom: 2.8rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.portrait-media {
  position: relative;
  height: clamp(30rem, 62vh, 43rem);
  overflow: hidden;
  background: var(--paper-deep);
}

.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 21%;
  filter: saturate(0.82) contrast(1.04);
  mix-blend-mode: multiply;
}

.scan-line {
  position: absolute;
  z-index: 3;
  top: -8%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    rgba(180, 154, 104, 1) 22%,
    rgba(255, 248, 224, 1) 50%,
    rgba(180, 154, 104, 1) 78%,
    transparent 96%
  );
  box-shadow: 0 0 16px rgba(180, 154, 104, 0.45);
  animation: scan 2.7s 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portrait-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  color: var(--sage);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.portrait-frame figcaption span:first-child {
  color: var(--ink);
}

.measurement-note {
  position: absolute;
  z-index: 4;
  color: var(--sage);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  line-height: 1.65;
}

.measurement-note::before {
  display: block;
  width: 2.4rem;
  height: 1px;
  margin-bottom: 0.55rem;
  content: "";
  background: var(--gold);
}

.measurement-note-top {
  top: 5%;
  left: -3rem;
}

.measurement-note-bottom {
  right: -2.2rem;
  bottom: 12%;
}

.scroll-cue {
  display: flex;
  width: var(--content);
  align-items: center;
  gap: 1rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  color: var(--sage);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.scroll-cue-line {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  animation: cue 2.2s 1.5s ease-in-out infinite;
}

.diagnosis {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.8rem, 9vw, 9rem);
  color: var(--paper);
  background: var(--forest);
}

.diagnosis::before {
  position: absolute;
  top: -20rem;
  right: -15rem;
  width: 44rem;
  height: 44rem;
  content: "";
  border: 1px solid rgba(180, 154, 104, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(180, 154, 104, 0.025),
    0 0 0 10rem rgba(180, 154, 104, 0.018);
}

.diagnosis-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.diagnosis .section-label {
  color: var(--gold-light);
}

.engineering h2,
.systems h2,
.achievements h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.diagnosis h2 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
  font-size: clamp(3.4rem, 5vw, 5.4rem);
}

.diagnosis-copy {
  max-width: 39rem;
  color: rgba(242, 243, 238, 0.72);
  font-size: clamp(0.96rem, 1.1vw, 1.05rem);
}

.diagnosis-copy > p {
  max-width: 37rem;
}

.diagnosis-clues {
  margin-top: clamp(1.8rem, 3vw, 2.8rem);
  border-top: 1px solid var(--line-light);
}

.diagnosis-clues li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-light);
}

.diagnosis-clues span {
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.diagnosis-clues p {
  color: rgba(242, 243, 238, 0.72);
  font-size: 0.84rem;
  line-height: 1.75;
}

.diagnosis-evidence {
  display: grid;
  margin-top: clamp(3.4rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.65fr);
  gap: clamp(1.4rem, 2.4vw, 2.5rem);
  align-items: start;
}

.diagnosis-main-figure {
  min-width: 0;
  padding: clamp(0.55rem, 1.2vw, 0.9rem);
  background: var(--white);
}

.diagnosis-main-figure figcaption,
.diagnosis-secondary figcaption {
  color: rgba(242, 243, 238, 0.58);
  font-size: 0.72rem;
}

.diagnosis-main-figure figcaption {
  padding: 0.6rem 0.35rem 0;
}

.diagnosis-secondary {
  min-width: 0;
}

.diagnosis-secondary figure {
  padding: 0.55rem;
  background: var(--white);
}

.diagnosis-secondary figcaption {
  padding-top: 0.6rem;
}

.diagnosis-link {
  margin-top: clamp(1.8rem, 3.4vw, 3rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-light);
  color: rgba(242, 243, 238, 0.65);
  font-size: 0.78rem;
  line-height: 1.75;
}

.evidence-figure {
  position: relative;
}

.evidence-figure figcaption {
  max-width: 46rem;
  margin-top: 1rem;
  color: var(--sage);
  font-size: 0.76rem;
  line-height: 1.65;
}

.evidence-figure-dark figcaption {
  color: rgba(242, 243, 238, 0.56);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--white);
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  height: auto;
  transition:
    filter 220ms ease,
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.image-button:hover img {
  filter: contrast(1.025);
  transform: scale(1.012);
}

.zoom-hint {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.4rem 0.6rem;
  color: var(--paper);
  background: rgba(19, 37, 34, 0.84);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(0.3rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.image-button:hover .zoom-hint,
.image-button:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

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

.engineering h2,
.systems h2,
.achievements h2 {
  font-size: clamp(3.1rem, 5.4vw, 5.8rem);
}

.engineering {
  padding-block: var(--section-space);
  background: var(--paper-deep);
}

.engineering-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.engineering-gallery {
  min-width: 0;
}

.cad-figure {
  min-width: 0;
}

.cad-image-button {
  padding: clamp(0.6rem, 1.6vw, 1.2rem);
  background: var(--forest-deep);
}

.cad-image-button img {
  filter: saturate(0.78) contrast(1.04);
}

.engineering-subgallery {
  display: grid;
  margin-top: 0.9rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(8rem, 0.55fr);
  gap: 0.9rem;
  align-items: stretch;
}

.engineering-subgallery figure {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.engineering-subgallery .image-button {
  height: clamp(16rem, 23vw, 21rem);
}

.engineering-subgallery .image-button img {
  height: 100%;
  object-fit: cover;
}

.model-figure .image-button img {
  object-position: center;
}

.certificate-figure .image-button {
  background: #deddd5;
}

.certificate-figure .image-button img {
  object-fit: contain;
}

.engineering-subgallery figcaption {
  margin-top: 0.55rem;
  color: var(--sage);
  font-size: 0.7rem;
}

.engineering-copy {
  max-width: 36rem;
}

.engineering-lede {
  margin-top: 2rem;
  color: #43504c;
}

.capability-list {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.capability-list li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.capability-list span {
  color: var(--sage);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.capability-list p {
  font-size: 0.88rem;
}

.engineering-award {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: #43504c;
  font-size: 0.84rem;
}

.systems {
  padding-block: var(--section-space);
}

.systems-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.6fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
}

.systems-header > p {
  max-width: 32rem;
  color: #43504c;
}

.ai-project-list {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--ink);
}

.ai-project {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.ai-project-diet {
  grid-template-columns: minmax(13rem, 0.42fr) minmax(0, 1.58fr);
}

.project-year {
  color: var(--sage);
  font-family: var(--serif);
  font-size: 0.76rem;
}

.ai-project-copy h3 {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.ai-project-copy > p:not(.project-year) {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: #4d5a56;
  font-size: 0.92rem;
}

.ai-project-copy a {
  display: inline-block;
  margin-top: 1.6rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.75rem;
  white-space: nowrap;
  transition: border-color 180ms ease;
}

.ai-project-copy a:hover {
  border-color: var(--gold);
}

.ai-project-figure {
  min-width: 0;
}

.ai-job-figure .image-button {
  padding: clamp(0.55rem, 1.2vw, 0.9rem);
}

.ai-project-figure figcaption {
  margin-top: 0.6rem;
  color: var(--sage);
  font-size: 0.72rem;
}

.ai-diet-figure {
  justify-self: center;
  width: min(100%, 22rem);
}

.ai-diet-figure .image-button {
  padding: 0.65rem;
  background: var(--paper-deep);
}

.ai-diet-figure img {
  max-height: 42rem;
  object-fit: contain;
}

.achievements {
  padding-block: var(--section-space);
  background: #d9d5ca;
}

.achievement-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: end;
}

.achievement-heading > p {
  max-width: 30rem;
  color: #43504c;
}

.achievement-metrics {
  display: grid;
  margin-top: clamp(3.8rem, 7vw, 6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid rgba(23, 33, 31, 0.24);
}

.metric {
  display: flex;
  min-width: 0;
  min-height: clamp(24rem, 35vw, 35rem);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 4rem);
}

.metric + .metric {
  border-left: 1px solid rgba(23, 33, 31, 0.24);
}

.metric > p:first-child {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.metric > p:last-child {
  max-width: 22rem;
  font-size: 0.82rem;
}

.metric-rank {
  color: var(--paper);
  background: var(--forest);
}

.metric-rank > p:first-child {
  color: var(--gold-light);
}

.metric-rank > p:last-child {
  color: rgba(242, 243, 238, 0.64);
}

.metric-gpa {
  color: var(--ink);
  background: var(--paper);
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 2vw, 1.8rem);
}

.metric-value strong {
  font-family: var(--serif);
  font-size: clamp(7rem, 13rem, 13.5rem);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.metric-value span {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  letter-spacing: -0.04em;
}

.honor-ledger {
  display: grid;
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(23, 33, 31, 0.24);
}

.honor-ledger article {
  padding: 1.7rem clamp(1rem, 3vw, 3rem) 0 0;
}

.honor-ledger article + article {
  padding-left: clamp(1rem, 3vw, 3rem);
  border-left: 1px solid rgba(23, 33, 31, 0.24);
}

.honor-ledger p:first-child {
  color: var(--sage);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.honor-ledger h3 {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.25;
}

.honor-ledger p:last-child {
  margin-top: 0.8rem;
  color: #4d5a56;
  font-size: 0.82rem;
}

.contact {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-space);
  color: var(--paper);
  background: var(--forest-deep);
}

.contact::before {
  position: absolute;
  right: -13rem;
  bottom: -20rem;
  width: 45rem;
  height: 45rem;
  content: "";
  border: 1px solid rgba(180, 154, 104, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(242, 243, 238, 0.015),
    0 0 0 10rem rgba(242, 243, 238, 0.01);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.6fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: start;
}

.contact .section-label {
  color: var(--gold-light);
}

.contact h2 {
  font-size: clamp(3.5rem, 6.5vw, 7rem);
}

.contact-lede {
  max-width: 34rem;
  margin-top: 2rem;
  color: rgba(242, 243, 238, 0.68);
}

.button-inverse {
  margin-top: 2.4rem;
  color: var(--forest-deep);
  background: var(--paper);
  border-color: var(--paper);
}

.button-inverse:hover {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.contact-details {
  padding-top: 2.65rem;
  border-top: 1px solid var(--line-light);
}

.contact-details dl > div {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-details dt {
  color: rgba(242, 243, 238, 0.62);
}

.contact-details dd {
  margin-top: 0.35rem;
  color: rgba(242, 243, 238, 0.8);
  font-size: 0.88rem;
}

.contact-details a {
  border-bottom: 1px solid rgba(242, 243, 238, 0.38);
}

.contact-details a:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.footer-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(5rem, 10vw, 10rem);
  padding: 1.3rem 0;
  border-top: 1px solid var(--line-light);
  color: rgba(242, 243, 238, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.footer-line a:hover {
  color: var(--paper);
}

.image-dialog {
  width: min(94vw, 92rem);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--paper);
  background: #0c1211;
}

.image-dialog::backdrop {
  background: rgba(8, 14, 13, 0.86);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  position: relative;
  display: flex;
  max-height: 94vh;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.dialog-shell img {
  width: 100%;
  max-height: calc(94vh - 7rem);
  object-fit: contain;
  background: var(--white);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: -0.7rem;
  right: -0.7rem;
  display: flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(242, 243, 238, 0.32);
  color: var(--paper);
  background: var(--forest-deep);
  font-size: 1.45rem;
  cursor: pointer;
}

.dialog-shell p {
  max-width: 70rem;
  margin-top: 0.9rem;
  color: rgba(242, 243, 238, 0.65);
  font-size: 0.76rem;
}

[data-reveal] {
  position: relative;
}

[data-reveal-delay="70"] {
  --reveal-delay: 70ms;
}

[data-reveal-delay="80"] {
  --reveal-delay: 80ms;
}

[data-reveal-delay="130"] {
  --reveal-delay: 130ms;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, -1.1rem, 0);
  will-change: opacity, transform;
}

.motion-ready [data-reveal]::after {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold-light) 18%,
    var(--gold-light) 72%,
    transparent
  );
  opacity: 0;
}

.motion-ready [data-reveal].is-revealed {
  animation: reveal-content 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.motion-ready [data-reveal].is-revealed::after {
  animation: reveal-trace 580ms 40ms ease-out both;
  animation-delay: calc(var(--reveal-delay, 0ms) + 40ms);
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-content {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(0, -1.1rem, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes reveal-trace {
  0% {
    height: 0;
    opacity: 0;
  }
  16% {
    opacity: 0.85;
  }
  100% {
    height: 100%;
    opacity: 0;
  }
}

@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scan {
  0% {
    top: -8%;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  82% {
    opacity: 0.8;
  }
  100% {
    top: 104%;
    opacity: 0;
  }
}

@keyframes cue {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  :root {
    --content: min(1440px, calc(100vw - 7vw));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.72fr);
    gap: 4rem;
  }

  .measurement-note-top {
    left: -1rem;
  }

  .measurement-note-bottom {
    right: -1rem;
  }

  .diagnosis-intro-grid,
  .engineering-grid {
    gap: 4.5rem;
  }

  .diagnosis-evidence {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 4.8rem;
    --content: calc(100vw - 3.4rem);
  }

  .site-header {
    padding-inline: 1.7rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand-detail {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 3;
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 6rem 2.5rem 2.5rem;
    background: var(--paper);
    opacity: 0;
    transition:
      opacity 220ms ease,
      visibility 0s linear 220ms;
  }

  .site-nav a {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2rem, 7vw, 3.2rem);
    letter-spacing: -0.04em;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .nav-open .nav-toggle-line:first-child {
    transform: translateY(0.38rem) rotate(45deg);
  }

  .nav-open .nav-toggle-line:nth-child(2) {
    transform: rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero::before {
    right: 50%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-copy {
    padding-block: 0;
  }

  .hero h1 {
    max-width: 8em;
  }

  .hero-facts {
    max-width: none;
  }

  .portrait-stage {
    min-height: auto;
    justify-content: flex-end;
  }

  .portrait-frame {
    width: min(72vw, 30rem);
  }

  .portrait-media {
    height: clamp(32rem, 78vw, 43rem);
  }

  .measurement-note {
    display: none;
  }

  .scroll-cue {
    margin-top: 4rem;
  }

  .diagnosis-intro-grid,
  .engineering-grid,
  .systems-header,
  .achievement-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-intro-grid,
  .engineering-grid,
  .contact-grid {
    gap: 4rem;
  }

  .diagnosis-copy {
    max-width: 42rem;
  }

  .diagnosis-evidence {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .diagnosis-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
    gap: 2rem;
    align-items: start;
  }

  .diagnosis-link {
    margin-top: 0;
  }

  .engineering-copy {
    order: -1;
    max-width: none;
  }

  .systems-header > p {
    max-width: 39rem;
  }

  .ai-project {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ai-project-diet {
    grid-template-columns: minmax(13rem, 0.48fr) minmax(0, 1.52fr);
  }

  .achievement-heading > p {
    max-width: 38rem;
  }

  .honor-ledger {
    gap: 0;
  }

  .honor-ledger article {
    padding-right: 1.4rem;
  }

  .honor-ledger article + article {
    padding-left: 1.4rem;
  }

  .contact-details {
    max-width: 40rem;
  }
}

@media (max-width: 560px) {
  :root {
    --content: calc(100vw - 2.2rem);
    --section-space: 5.7rem;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    padding-inline: 1.1rem;
  }

  .brand-name {
    font-size: 1.22rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 3rem);
  }

  .project-context {
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.2rem);
    line-height: 1.02;
  }

  .hero-lede {
    margin-top: 1.7rem;
    line-height: 1.78;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }

  .hero-facts {
    margin-top: 2.8rem;
  }

  .hero-facts > div {
    padding-top: 0.9rem;
  }

  .hero-facts > div + div {
    padding-left: 0.7rem;
  }

  .hero-facts dd {
    font-size: 0.83rem;
    line-height: 1.45;
  }

  .portrait-stage {
    justify-content: center;
  }

  .portrait-frame {
    width: min(88vw, 24rem);
  }

  .portrait-media {
    height: min(120vw, 35rem);
  }

  .portrait-frame figcaption {
    font-size: 0.64rem;
  }

  .scroll-cue {
    display: none;
  }

  .diagnosis h2,
  .engineering h2,
  .systems h2,
  .achievements h2 {
    font-size: clamp(2.9rem, 13vw, 4.2rem);
  }

  .contact h2 {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  .evidence-figure figcaption {
    font-size: 0.7rem;
  }

  .diagnosis-clues li,
  .capability-list li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .diagnosis-secondary {
    display: block;
  }

  .diagnosis-link {
    margin-top: 1.8rem;
  }

  .engineering-subgallery {
    grid-template-columns: 1fr;
  }

  .engineering-subgallery .image-button {
    height: auto;
  }

  .model-figure .image-button img {
    aspect-ratio: 1.87;
  }

  .certificate-figure {
    width: min(18rem, 80%);
    margin-inline: auto;
  }

  .certificate-figure .image-button img {
    aspect-ratio: 0.7;
  }

  .ai-project-diet {
    grid-template-columns: 1fr;
  }

  .ai-diet-figure {
    width: min(100%, 19rem);
  }

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

  .metric {
    min-height: 22rem;
  }

  .metric + .metric {
    border-top: 1px solid rgba(23, 33, 31, 0.24);
    border-left: 0;
  }

  .metric-value strong {
    font-size: clamp(6.8rem, 31vw, 10rem);
  }

  .honor-ledger {
    grid-template-columns: 1fr;
  }

  .honor-ledger article,
  .honor-ledger article + article {
    padding: 1.4rem 0;
    border-left: 0;
    border-bottom: 1px solid rgba(23, 33, 31, 0.24);
  }

  .footer-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .image-dialog {
    width: 96vw;
  }

  .dialog-close {
    top: 0.25rem;
    right: 0.25rem;
  }

  .dialog-shell img {
    max-height: calc(90vh - 7rem);
  }
}

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

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

  .scan-line {
    display: none;
  }

  .motion-ready [data-reveal],
  .motion-ready [data-reveal].is-revealed {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }

  .motion-ready [data-reveal]::after {
    display: none;
  }
}
