:root {
  color-scheme: dark;
  --bg: #07110d;
  --bg-deep: #040a07;
  --surface: #0b1913;
  --surface-2: #10231a;
  --surface-3: #142b20;
  --text: #f1f7f2;
  --text-soft: #c4d1c8;
  --muted: #84988c;
  --accent: #8cff9f;
  --accent-strong: #5cff7a;
  --accent-soft: rgba(140, 255, 159, 0.12);
  --line: rgba(204, 255, 218, 0.11);
  --line-strong: rgba(204, 255, 218, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: min(1240px, calc(100vw - 64px));
  --header-height: 76px;
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #31583e var(--bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 6%, rgba(52, 134, 77, 0.12), transparent 28rem),
    linear-gradient(180deg, #08120e 0%, var(--bg) 42%, #050c09 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(171, 255, 193, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 255, 193, 0.027) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.6) 55%, transparent 95%);
  pointer-events: none;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

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

p,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #051008;
}

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

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

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #061009;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(92, 255, 122, 0.65);
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.09;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255,255,255,.08) 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient--one {
  top: 8%;
  right: -22rem;
  background: #4dff7b;
}

.ambient--two {
  bottom: 12%;
  left: -28rem;
  background: #2cae7a;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 13, 9, 0.76);
  backdrop-filter: blur(18px) saturate(130%);
}

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

.brand,
.header-actions,
.main-nav,
.brand-status {
  display: flex;
  align-items: center;
}

.brand {
  gap: 20px;
}

.brand-mark {
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.brand-mark span,
.dialog-brand span {
  color: var(--accent);
}

.brand-status {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.brand-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(140, 255, 159, 0.7);
}

.main-nav {
  gap: 30px;
  margin-left: auto;
  margin-right: 34px;
}

.main-nav a {
  position: relative;
  color: var(--text-soft);
  font-size: 13px;
  transition: color 160ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  gap: 10px;
}

.language-switch,
.resume-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.language-switch {
  min-width: 48px;
  cursor: pointer;
}

.resume-link {
  gap: 10px;
  padding: 0 16px;
}

.language-switch:hover,
.resume-link:hover {
  border-color: rgba(140, 255, 159, 0.44);
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.58fr);
  gap: 52px 76px;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 92px);
  padding-bottom: 70px;
}

.hero-copy {
  align-self: center;
  padding-bottom: 12px;
}

.eyebrow,
.hero-meta,
.hero-meta span {
  display: flex;
  align-items: center;
}

.eyebrow {
  gap: 10px;
  margin-bottom: 25px;
  color: #a5baa9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--bg), 0 0 10px rgba(140, 255, 159, 0.54);
}

.hero-name {
  margin-bottom: 17px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 560;
  letter-spacing: 0.02em;
}

.hero-name span {
  margin-inline: 7px;
  color: #476052;
  font-weight: 400;
}

.hero h1 {
  max-width: 840px;
  font-size: clamp(54px, 6.25vw, 94px);
  font-weight: 610;
  letter-spacing: -0.072em;
  line-height: 0.99;
}

.hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 42px rgba(92, 255, 122, 0.08);
}

.hero-lede {
  max-width: 720px;
  margin-top: 30px;
  color: #9fb0a5;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.hero-socials-label {
  margin-right: 3px;
  color: #53695c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(179, 255, 198, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: #9fb0a5;
  font-size: 11px;
  font-weight: 620;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hero-social-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero-social-arrow {
  margin-left: 5px;
  color: #587063;
  font-size: 13px;
}

.hero-social-link:hover {
  border-color: rgba(140, 255, 159, 0.36);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 174px;
  height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 620;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button--primary {
  background: var(--accent);
  color: #061009;
}

.button--primary:hover {
  background: #a3ffb2;
  transform: translateY(-2px);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.button--ghost:hover {
  border-color: rgba(140, 255, 159, 0.38);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.button-arrow {
  font-size: 17px;
  font-weight: 400;
}

.hero-meta {
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 22px;
  color: #73897c;
  font-size: 12px;
}

.hero-meta span:first-child {
  gap: 8px;
  color: #aabaae;
}

.hero-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  width: min(100%, 430px);
  justify-self: end;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(205, 255, 217, 0.2);
  border-radius: var(--radius-lg);
  background: #101913;
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: saturate(0.8) contrast(1.04) brightness(0.88);
}

.portrait-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(178, 255, 197, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 255, 197, 0.07) 1px, transparent 1px);
  background-size: 25% 25%;
  mask-image: linear-gradient(to bottom, black, transparent 35%, transparent 75%, black);
  pointer-events: none;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 7, 0.35), transparent 30%, transparent 64%, rgba(4, 11, 7, 0.78)),
    radial-gradient(circle at 50% 45%, transparent 35%, rgba(2, 8, 5, 0.18) 85%);
  pointer-events: none;
}

.portrait-label {
  position: absolute;
  z-index: 4;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(238, 248, 240, 0.94);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portrait-label small {
  color: #9eafa4;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.portrait-label--top {
  top: 21px;
}

.portrait-label--bottom {
  bottom: 20px;
}

.portrait-corner {
  position: absolute;
  z-index: 5;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.portrait-corner--tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.portrait-corner--br {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.portrait-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 15px;
  padding-inline: 4px;
  color: #819488;
  font-size: 11px;
  line-height: 1.55;
}

.portrait-note .mono {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 10px;
}

.portrait-note p {
  max-width: 245px;
  text-align: right;
}

.hero-education {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.27fr) minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.hero-education-header {
  padding: 8px 0;
}

.hero-education-kicker {
  color: var(--accent);
  font-size: 9px;
}

.hero-education-header h2 {
  margin-top: 8px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.hero-education-content {
  min-width: 0;
}

.hero-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(140, 255, 159, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(140, 255, 159, 0.075), transparent 56%),
    rgba(9, 22, 15, 0.72);
}

.hero-language-label {
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.hero-language-label > span {
  color: #667c6f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-language-label > strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 580;
}

.hero-language-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  width: min(100%, 430px);
}

.hero-language-results > span {
  display: grid;
  gap: 3px;
  padding: 2px 20px;
  border-left: 1px solid var(--line);
}

.hero-language-results small {
  color: #71877a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero-language-results strong {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 20px;
  font-weight: 600;
}

html[lang="en"] .hero-language {
  display: none;
}

.hero-education-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.section {
  padding-top: 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.31fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 54px;
}

.section-heading--compact {
  margin-bottom: 42px;
}

.section-index {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.section-kicker {
  color: #71877a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.section-title-wrap h2,
.capability-heading h2 {
  max-width: 890px;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.section-title-wrap > p {
  max-width: 690px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.2, 0.72, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  max-width: 360px;
  padding: 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--bg);
}

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

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(10, 24, 17, 0.84);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.project-card::after {
  position: absolute;
  right: -150px;
  bottom: -180px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(77, 255, 117, 0.055);
  filter: blur(15px);
  content: "";
  transition: transform 400ms ease, opacity 300ms ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(140, 255, 159, 0.3);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.project-card.is-expanded,
.research-card-wrap.is-expanded {
  border-color: rgba(140, 255, 159, 0.32);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.project-card.is-expanded:hover {
  transform: none;
}

.project-card:hover::after {
  opacity: 1.4;
  transform: translate(-28px, -24px);
}

.project-card-button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "top visual"
    "title visual"
    "summary metrics"
    "footer metrics";
  gap: 0 52px;
  width: 100%;
  height: auto;
  min-height: inherit;
  padding: 34px 36px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card-report {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(3, 13, 8, 0.5);
  color: #9fb1a5;
  transition: background-color 160ms ease, color 160ms ease;
}

.project-card-report-main {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.project-card-report-badge {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid rgba(140, 255, 159, 0.24);
  border-radius: 5px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.project-card-report strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-report small {
  flex: 0 0 auto;
  color: #667c6f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.project-card-report:hover {
  background: rgba(140, 255, 159, 0.075);
  color: var(--accent);
}

.project-card-top,
.project-card-footer,
.paper-top,
.timeline-heading,
.capability-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-card-top {
  grid-area: top;
}

.project-index {
  color: #53695b;
  font-size: 10px;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #91a699;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-category::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.project-card h3 {
  grid-area: title;
  max-width: 660px;
  margin-top: 29px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.project-card--narrow h3 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.project-summary {
  grid-area: summary;
  max-width: 690px;
  margin-top: 18px;
  color: #92a49a;
  font-size: 14px;
  line-height: 1.75;
}

.project-card-visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  align-self: start;
  min-height: 96px;
  margin-top: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(202, 255, 216, 0.08);
  border-radius: 12px;
  background: rgba(2, 10, 6, 0.36);
}

.mini-flow {
  display: flex;
  align-items: center;
  width: 100%;
}

.mini-flow span {
  position: relative;
  flex: 1;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8da094;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}

.mini-flow span:not(:last-child) {
  margin-right: 20px;
}

.mini-flow span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 5px);
  width: 10px;
  height: 1px;
  background: rgba(140, 255, 159, 0.42);
  content: "";
}

.mini-flow span:last-child {
  border-color: rgba(140, 255, 159, 0.28);
  background: rgba(140, 255, 159, 0.06);
  color: #c5d7ca;
}

.project-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: end;
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  background: transparent;
}

.project-metric {
  min-width: 0;
  padding: 14px 12px 0 0;
  background: transparent;
}

.project-metric:not(:last-child) {
  border-right: 1px solid var(--line);
}

.project-metric strong {
  display: block;
  color: var(--accent);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 570;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.project-metric small {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #708478;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-footer {
  grid-area: footer;
  align-items: flex-end;
  margin-top: 34px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid rgba(202, 255, 216, 0.1);
  border-radius: 999px;
  color: #788c80;
  font-size: 9px;
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-open > span {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.project-open i,
.text-button-toggle {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.project-open i::before,
.project-open i::after,
.text-button-toggle::before,
.text-button-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 220ms ease;
  transform: translate(-50%, -50%);
}

.project-open i::after,
.text-button-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.project-card:hover .project-open {
  background: var(--accent);
  color: #071009;
}

.project-card.is-expanded .project-open {
  background: rgba(140, 255, 159, 0.12);
  color: var(--accent);
}

.project-card.is-expanded .project-open i::after,
.project-detail-host.is-expanded .text-button-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.project-inline-detail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  border-top: 1px solid transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 460ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    opacity 260ms ease,
    visibility 0s linear 460ms;
}

.project-inline-inner {
  min-height: 0;
  padding: 0 36px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(140, 255, 159, 0.025), transparent 22%),
    rgba(4, 13, 8, 0.28);
  transition: padding 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-expanded > .project-inline-detail {
  grid-template-rows: 1fr;
  border-top-color: var(--line);
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows 520ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    opacity 320ms ease 80ms,
    visibility 0s linear;
}

.is-expanded > .project-inline-detail > .project-inline-inner {
  padding: 36px 30px 42px;
}

.project-inline-intro {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-inline-intro h4 {
  margin-top: 16px;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.project-inline-detail .case-body {
  margin-top: 30px;
}

.experience-section,
.capabilities-section {
  position: relative;
  margin-top: 150px;
  padding-bottom: 150px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 22, 15, 0.54);
}

.hero + .experience-section {
  margin-top: 0;
}

.experience-section::before,
.capabilities-section::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.9%, rgba(179, 255, 198, 0.025) 50%, transparent 50.1%);
  content: "";
  pointer-events: none;
}

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

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

.timeline-meta {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.8;
}

.timeline-date {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
}

.timeline-location {
  display: block;
  margin-top: 8px;
}

.timeline-heading {
  align-items: flex-start;
}

.timeline-company-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.timeline-logo-shell {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border: 1px solid rgba(179, 255, 198, 0.2);
  border-radius: 15px;
  background: linear-gradient(145deg, #e6ece8, #c7d2ca);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 12px 30px rgba(0, 0, 0, 0.16);
}

.timeline-logo-shell--sf {
  padding: 10px;
}

.timeline-logo-shell--bondex {
  padding: 4px;
}

.timeline-logo-shell--sf .timeline-logo {
  filter: contrast(1.05) saturate(0.96);
}

.timeline-logo-shell--bondex .timeline-logo {
  filter: contrast(1.04) saturate(0.92);
  mix-blend-mode: multiply;
}

.timeline-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-company-copy {
  min-width: 0;
}

.timeline-company {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 580;
  letter-spacing: -0.035em;
}

.timeline-role {
  margin-top: 6px;
  color: #98aa9f;
  font-size: 13px;
}

.timeline-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(140, 255, 159, 0.22);
  border-radius: 999px;
  background: rgba(140, 255, 159, 0.055);
  color: #a9d9b3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-achievements {
  display: grid;
  gap: 13px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-achievements li {
  position: relative;
  max-width: 880px;
  padding-left: 21px;
  color: #91a298;
  font-size: 14px;
  line-height: 1.78;
}

.timeline-achievements li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.research-card-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(140, 255, 159, 0.06), transparent 28%),
    rgba(10, 24, 17, 0.85);
}

.research-card-wrap::before {
  position: absolute;
  top: -45%;
  right: -10%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(140, 255, 159, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(140, 255, 159, 0.018), 0 0 0 140px rgba(140, 255, 159, 0.012);
  content: "";
}

.paper-card {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 54px);
}

.paper-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b8c7bd;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd785;
  box-shadow: 0 0 11px rgba(255, 215, 133, 0.4);
}

.paper-citation {
  color: #61766a;
  font-size: 10px;
}

.paper-card h3 {
  max-width: 970px;
  margin-top: 40px;
  font-size: clamp(31px, 4.25vw, 59px);
  font-weight: 530;
  letter-spacing: -0.052em;
  line-height: 1.12;
}

.paper-authors {
  margin-top: 20px;
  color: #a9b8ae;
  font-size: 13px;
}

.paper-authors span {
  color: var(--accent);
}

.paper-abstract {
  max-width: 780px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.research-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.research-dimension {
  min-height: 122px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 11, 7, 0.28);
}

.research-dimension span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.research-dimension strong {
  display: block;
  margin-top: 17px;
  font-size: 15px;
  font-weight: 560;
}

.research-dimension b {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 520;
  letter-spacing: -0.025em;
}

.research-dimension p {
  margin-top: 8px;
  color: #81958a;
  font-size: 10px;
  line-height: 1.55;
}

.paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.paper-venue {
  color: #768b7e;
  font-size: 11px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.text-button-toggle {
  color: var(--accent);
}

.text-button:hover .text-button-toggle {
  transform: scale(1.12);
}

.capability-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.31fr) minmax(0, 1fr);
  gap: 54px;
  margin-bottom: 54px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  min-height: 285px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 14, 9, 0.14);
  transition: background-color 180ms ease;
}

.capability-card:hover {
  background: rgba(140, 255, 159, 0.035);
}

.capability-number {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.capability-icon {
  display: grid;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #769082;
  font-size: 12px;
  place-items: center;
}

.capability-card h3 {
  margin-top: 32px;
  font-size: 21px;
  font-weight: 570;
  letter-spacing: -0.025em;
}

.capability-card p {
  margin-top: 10px;
  color: #879b8f;
  font-size: 12px;
  line-height: 1.65;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.capability-tags span {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #8b9d92;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.about-layout {
  display: block;
}

.education-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 174px;
  padding: 27px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(140, 255, 159, 0.035), transparent 44%),
    rgba(9, 22, 15, 0.68);
  transition: border-color 180ms ease, transform 180ms ease;
}

.education-item:hover {
  border-color: rgba(140, 255, 159, 0.27);
  transform: translateY(-2px);
}

.education-mark-shell {
  display: grid;
  width: 92px;
  height: 92px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  place-items: center;
}

.education-mark-shell--cmu {
  border-color: rgba(242, 169, 0, 0.42);
  background: #f5f1e8;
  box-shadow:
    0 12px 32px rgba(242, 169, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.education-mark-shell--swjtu {
  border-color: rgba(0, 103, 160, 0.34);
  background: #f7fbfd;
  box-shadow:
    0 12px 32px rgba(0, 103, 160, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.education-mark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.education-mark-shell--cmu .education-mark {
  filter: saturate(0.96) contrast(1.02);
}

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

.education-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.education-school {
  font-size: 20px;
  font-weight: 570;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.education-score {
  padding-top: 4px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 520;
  white-space: nowrap;
}

.education-degree {
  margin-top: 8px;
  color: #91a399;
  font-size: 13px;
  line-height: 1.6;
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 15px;
  color: #667c6f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.photo-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 480px 300px;
  gap: 14px;
  min-height: 0;
}

.story-photo {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03) brightness(0.79);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

.story-photo--cmu img {
  object-position: 50% 44%;
}

.story-photo--swjtu img {
  object-position: 50% 43%;
}

.story-photo--cambridge img {
  object-position: 50% 54%;
}

.story-photo--xiamen img {
  object-position: 50% 54%;
}

.story-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(3, 9, 6, 0.86));
  content: "";
  pointer-events: none;
}

.story-photo:hover img {
  filter: saturate(0.95) contrast(1.02) brightness(0.9);
  transform: scale(1.025);
}

.story-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  color: var(--text);
  font-size: 12px;
}

.story-photo figcaption small {
  color: #82968a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.contact-section {
  padding-top: 160px;
  padding-bottom: 72px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 78px);
  border: 1px solid rgba(140, 255, 159, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 10%, rgba(92, 255, 122, 0.14), transparent 27rem),
    linear-gradient(135deg, #0d2117 0%, #08140e 72%);
  box-shadow: var(--shadow);
}

.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(171, 255, 193, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 255, 193, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 82% 20%, black, transparent 56%);
  pointer-events: none;
}

.contact-card > *:not(.contact-grid) {
  position: relative;
  z-index: 1;
}

.contact-card h2 {
  max-width: 900px;
  margin-top: 30px;
  font-size: clamp(37px, 5.2vw, 72px);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.contact-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 340px;
  gap: 24px;
  min-width: 0;
  min-height: 54px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #061008;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.contact-email:hover {
  background: #a3ffb2;
  transform: translateY(-2px);
}

.contact-email--secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
}

.contact-email--secondary:hover {
  border-color: rgba(140, 255, 159, 0.38);
  background: var(--accent-soft);
}

.contact-email-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-email-copy small {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.62;
}

.contact-email-copy strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 27px;
  color: #789084;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.contact-meta a:hover {
  color: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  border-top: 1px solid var(--line);
  color: #5f7367;
  font-size: 10px;
}

.site-footer a {
  color: #8ea096;
}

.project-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--bg);
  color: var(--text);
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  min-height: 100%;
  background:
    radial-gradient(circle at 86% 2%, rgba(69, 217, 99, 0.11), transparent 28rem),
    linear-gradient(180deg, #08140e, #050c09);
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1280px, calc(100% - 64px));
  height: 72px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 15, 10, 0.78);
  backdrop-filter: blur(18px);
}

.dialog-brand {
  justify-self: start;
  font-size: 18px;
  font-weight: 700;
}

.dialog-counter {
  color: #61766a;
  font-size: 9px;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  padding: 9px 0 9px 14px;
  border: 0;
  background: transparent;
  color: #94a79b;
  font-size: 11px;
  cursor: pointer;
}

.dialog-close i {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.dialog-close i::before,
.dialog-close i::after {
  position: absolute;
  top: 14px;
  left: 8px;
  width: 13px;
  height: 1px;
  background: currentColor;
  content: "";
}

.dialog-close i::before {
  transform: rotate(45deg);
}

.dialog-close i::after {
  transform: rotate(-45deg);
}

.dialog-close:focus-visible {
  outline: none;
}

.dialog-close:focus-visible i {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dialog-content {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
  padding: 82px 0 110px;
}

.case-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #8da094;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-eyebrow span:first-child {
  color: var(--accent);
}

.case-hero h2 {
  max-width: 940px;
  margin-top: 28px;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 540;
  letter-spacing: -0.066em;
  line-height: 1.01;
}

.case-lede {
  max-width: 780px;
  margin-top: 28px;
  color: #96a99d;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.78;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 55px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-metric {
  min-height: 128px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.case-metric:last-child {
  border-right: 0;
}

.case-metric strong {
  display: block;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 540;
  letter-spacing: -0.05em;
  line-height: 1;
}

.case-metric span {
  display: block;
  margin-top: 13px;
  color: #75897d;
  font-size: 11px;
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 52px;
  margin-top: 58px;
}

.case-main {
  min-width: 0;
}

.case-section + .case-section {
  margin-top: 48px;
}

.case-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-section-label::before {
  width: 14px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.case-section-label span {
  color: #5d7466;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.case-section h5 {
  max-width: 720px;
  font-size: clamp(26px, 2.7vw, 34px);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.case-section > p {
  margin-top: 12px;
  color: #8fa197;
  font-size: 14px;
  line-height: 1.7;
}

.numbered-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #95a69c;
  font-size: 13px;
  line-height: 1.62;
}

.numbered-list span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.case-architecture-figure {
  margin: 18px 0 0;
}

.case-architecture-frame {
  overflow-x: auto;
  border: 1px solid rgba(159, 179, 166, 0.28);
  border-radius: 14px;
  background: #f7f8f6;
  scrollbar-color: rgba(91, 119, 101, 0.7) rgba(5, 14, 9, 0.24);
  scrollbar-width: thin;
}

.case-architecture-frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.case-architecture-link {
  display: block;
  width: 100%;
}

.case-architecture-link img {
  display: block;
  width: 100%;
  height: auto;
}

.case-architecture-figure figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-top: 10px;
  color: #7f9287;
  font-size: 11px;
  line-height: 1.55;
}

.case-architecture-figure figcaption > span {
  max-width: 610px;
}

.case-architecture-figure figcaption a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture {
  margin-top: 14px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(171, 255, 193, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 255, 193, 0.025) 1px, transparent 1px),
    rgba(2, 9, 5, 0.3);
  background-size: 26px 26px;
}

.architecture-flow {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-width: max-content;
}

.arch-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 128px;
  min-height: 88px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(10, 26, 17, 0.9);
}

.arch-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 7px);
  width: 10px;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0.55;
}

.arch-node:not(:last-child)::before {
  position: absolute;
  top: calc(50% - 3px);
  left: calc(100% + 15px);
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  content: "";
  opacity: 0.55;
  transform: rotate(45deg);
}

.arch-node small {
  color: #5e7467;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.arch-node strong {
  margin-top: 14px;
  color: #b2c2b8;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
}

.arch-node:last-child {
  border-color: rgba(140, 255, 159, 0.34);
  background: rgba(84, 222, 111, 0.075);
}

.result-table {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

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

.result-row span {
  color: #889b90;
  font-size: 12px;
}

.result-row strong {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 520;
}

.case-result-note {
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(140, 255, 159, 0.15);
  border-radius: 10px;
  background: rgba(140, 255, 159, 0.045);
  color: #9dafA3;
  line-height: 1.75;
}

.demo-stage {
  position: relative;
  min-height: 220px;
  margin-top: 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #07120c;
}

.case-section--compact-demo .demo-stage {
  margin-top: 0;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #6d8275;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-caption span:last-child {
  color: var(--accent);
}

.demo-query {
  margin-top: 20px;
  padding: 13px 15px;
  border-left: 2px solid var(--accent);
  background: rgba(140, 255, 159, 0.045);
  color: #a9b9af;
  font-size: 12px;
}

.demo-video {
  margin: 18px 0 0;
}

.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #020705;
  object-fit: contain;
}

.demo-video figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-top: 10px;
}

.demo-video figcaption div {
  display: grid;
  gap: 7px;
}

.demo-video figcaption strong {
  color: #b8c8be;
  font-size: 12px;
  font-weight: 550;
}

.demo-video figcaption span {
  max-width: 560px;
  color: #758a7d;
  font-size: 10px;
  line-height: 1.65;
}

.demo-video figcaption small {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.demo-video + .demo-score-grid {
  margin-top: 16px;
}

.demo-timeline {
  position: relative;
  height: 70px;
  margin-top: 42px;
}

.demo-track {
  position: absolute;
  top: 28px;
  right: 0;
  left: 0;
  height: 3px;
  background: #1a2e21;
}

.demo-track::before,
.demo-track::after {
  position: absolute;
  top: -5px;
  color: #53675b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.demo-track::before {
  left: 0;
  content: "00:00";
  transform: translateY(16px);
}

.demo-track::after {
  right: 0;
  content: "03:00+";
  transform: translateY(16px);
}

.demo-window {
  position: absolute;
  top: 22px;
  left: 58%;
  width: 18%;
  height: 15px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: rgba(140, 255, 159, 0.16);
  box-shadow: 0 0 18px rgba(140, 255, 159, 0.12);
}

.demo-window::after {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  color: var(--accent);
  content: "<start> · <end>";
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.demo-terminal {
  margin-top: 28px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #030805;
  color: #81968a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.8;
}

.demo-terminal p::before {
  margin-right: 9px;
  color: var(--accent);
  content: ">";
}

.demo-terminal strong {
  color: #c0d0c6;
  font-weight: 500;
}

.demo-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.demo-score {
  padding: 17px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.demo-score span {
  display: block;
  color: #687d70;
  font-size: 8px;
}

.demo-score strong {
  display: block;
  margin-top: 15px;
  color: #b5c5bb;
  font-size: 12px;
  font-weight: 520;
}

.research-evidence {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.research-evidence-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(170px, 1fr) minmax(210px, 1.45fr);
  gap: 18px;
  align-items: center;
  min-height: 106px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(140, 255, 159, 0.035), transparent 36%),
    rgba(255, 255, 255, 0.014);
}

.research-evidence-title span,
.research-evidence-primary span,
.research-evidence-comparisons span {
  color: #677c6f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.research-evidence-title strong {
  display: block;
  margin-top: 10px;
  color: #b8c9bf;
  font-size: 14px;
  font-weight: 550;
}

.research-evidence-primary {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.research-evidence-primary strong {
  display: block;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 520;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.research-evidence-primary span {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
  text-transform: none;
}

.research-evidence-comparisons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.research-evidence-comparisons div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.research-evidence-comparisons span,
.research-evidence-comparisons strong {
  display: block;
}

.research-evidence-comparisons span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-evidence-comparisons strong {
  margin-top: 8px;
  color: #aebfb5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.research-conclusion {
  margin-top: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(140, 255, 159, 0.15);
  border-radius: 9px;
  background: rgba(140, 255, 159, 0.04);
  color: #98aba0;
  font-size: 11px;
  line-height: 1.75;
}

.translation-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 29px;
}

.translation-pane {
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.translation-pane span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.translation-pane p {
  margin-top: 19px;
  color: #9aaca1;
  font-size: 12px;
  line-height: 1.7;
}

.case-aside {
  align-self: start;
  position: sticky;
  top: 104px;
}

.aside-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 27, 19, 0.72);
}

.aside-card + .aside-card {
  margin-top: 12px;
}

.aside-label {
  color: #61766a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aside-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.aside-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-row span {
  display: block;
  color: #60756a;
  font-size: 9px;
}

.aside-row strong {
  display: block;
  margin-top: 5px;
  color: #aabbb0;
  font-size: 11px;
  font-weight: 530;
  line-height: 1.55;
}

.aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.aside-tags span {
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #82968a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.project-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #061008;
  font-size: 11px;
  font-weight: 650;
}

.project-report-request {
  border: 1px solid rgba(140, 255, 159, 0.22);
  background: rgba(140, 255, 159, 0.075);
  color: var(--accent);
}

.project-report-request + .project-request {
  margin-top: 9px;
}

/* Slightly larger reading scale across the site. */
body {
  font-size: 17px;
}

.brand-status,
.language-switch,
.resume-link {
  font-size: 13px;
}

.main-nav a {
  font-size: 14px;
}

.eyebrow {
  font-size: 12px;
}

.hero-name {
  font-size: clamp(16px, 1.45vw, 21px);
}

.hero-lede {
  font-size: clamp(17px, 1.42vw, 20px);
}

.button {
  font-size: 15px;
}

.hero-meta {
  font-size: 13px;
}

.portrait-label,
.portrait-note {
  font-size: 12px;
}

.portrait-label small {
  font-size: 10px;
}

.portrait-note .mono,
.hero-education-kicker,
.hero-language-label > span {
  font-size: 10px;
}

.hero-language-label > strong {
  font-size: 18px;
}

.hero-language-results small {
  font-size: 10px;
}

.hero-language-results strong {
  font-size: 21px;
}

.section-index {
  font-size: 13px;
}

.section-kicker {
  font-size: 11px;
}

.section-title-wrap > p {
  font-size: 16px;
}

.project-index,
.project-category,
.project-metric small,
.tag {
  font-size: 10px;
}

.project-summary {
  font-size: 15px;
}

.mini-flow span {
  font-size: 9px;
}

.timeline-meta,
.paper-citation,
.capability-number {
  font-size: 11px;
}

.timeline-date,
.paper-status,
.paper-venue {
  font-size: 12px;
}

.timeline-role,
.paper-authors,
.text-button {
  font-size: 14px;
}

.timeline-badge,
.research-dimension span {
  font-size: 10px;
}

.timeline-achievements li,
.paper-abstract {
  font-size: 16px;
}

.research-dimension strong {
  font-size: 16px;
}

.research-dimension p,
.capability-card p {
  font-size: 13px;
}

.capability-tags span {
  font-size: 10px;
}

.story-photo figcaption {
  font-size: 13px;
}

.story-photo figcaption small {
  font-size: 9px;
}

.contact-email {
  font-size: 15px;
}

.contact-meta,
.site-footer {
  font-size: 11px;
}

.dialog-close {
  font-size: 12px;
}

.dialog-counter,
.case-eyebrow,
.case-section-label {
  font-size: 10px;
}

.case-metric span,
.arch-node strong,
.result-row,
.demo-query,
.translation-pane p,
.aside-row strong,
.project-request {
  font-size: 13px;
}

.case-section > p {
  font-size: 15px;
}

.numbered-list {
  font-size: 14px;
}

.numbered-list span,
.arch-node small,
.demo-caption,
.demo-track,
.demo-score span,
.translation-pane span,
.aside-label,
.aside-tags span {
  font-size: 9px;
}

.result-row span,
.result-row strong,
.demo-score strong,
.aside-row span {
  font-size: 13px;
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 42px, 960px);
  }

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

  .hero h1 {
    font-size: clamp(48px, 7vw, 72px);
  }

  .hero-education {
    grid-template-columns: minmax(140px, 0.24fr) minmax(0, 1fr);
    gap: 26px;
  }

  .project-card-button {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 0 34px;
    padding: 30px;
  }

  .project-card-report {
    padding-inline: 30px;
  }

  .project-card h3,
  .project-card--narrow h3 {
    font-size: clamp(29px, 3.6vw, 40px);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-story {
    grid-template-rows: 420px 250px;
  }

  .case-body {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }

  .architecture {
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 32px);
    --header-height: 68px;
  }

  .main-nav,
  .brand-status {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 82px);
  }

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

  .hero h1 {
    font-size: clamp(48px, 12vw, 72px);
  }

  .hero-lede {
    max-width: 630px;
  }

  .hero-visual {
    width: min(80vw, 430px);
    justify-self: center;
    margin-top: 12px;
  }

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

  .hero-language {
    align-items: flex-start;
  }

  .section,
  .contact-section {
    padding-top: 110px;
  }

  .experience-section,
  .capabilities-section {
    margin-top: 110px;
    padding-bottom: 110px;
  }

  .section-heading,
  .capability-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 38px;
  }

  .section-index {
    display: inline-block;
    margin: 0 12px 0 0;
  }

  .section-heading > div:first-child {
    display: flex;
    align-items: center;
  }

  .project-card {
    min-height: 0;
  }

  .project-card-button {
    display: flex;
    flex-direction: column;
    padding: 28px;
  }

  .project-card-report {
    padding-inline: 28px;
  }

  .is-expanded > .project-inline-detail > .project-inline-inner {
    padding: 32px 26px 38px;
  }

  .project-card-visual {
    display: flex;
    margin-top: 28px;
  }

  .project-metrics {
    width: 100%;
    margin-top: 30px;
  }

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

  .timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
  }

  .timeline-location {
    margin-top: 0;
  }

  .research-dimensions {
    grid-template-columns: 1fr;
  }

  .research-dimension {
    min-height: 0;
  }

  .photo-story {
    grid-template-rows: 390px 220px;
    min-height: 0;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-email {
    width: 100%;
    flex-basis: auto;
  }

  .dialog-toolbar,
  .dialog-content {
    width: calc(100% - 32px);
  }

  .dialog-content {
    padding-top: 60px;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .case-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .header-actions {
    gap: 7px;
  }

  .resume-link {
    width: 39px;
    padding: 0;
    border-radius: 50%;
  }

  .resume-link span:first-child {
    display: none;
  }

  .language-switch {
    min-width: 42px;
  }

  .hero {
    gap: 36px;
    padding-top: 128px;
    padding-bottom: 42px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .hero-name {
    font-size: 16px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 52px);
    letter-spacing: -0.068em;
  }

  .hero-lede {
    margin-top: 23px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 29px;
  }

  .hero-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .hero-socials-label {
    grid-column: 1 / -1;
    margin: 0 0 1px;
  }

  .hero-social-link {
    min-width: 0;
  }

  .hero-social-arrow {
    margin-left: auto;
  }

  .button {
    gap: 8px;
    min-width: 0;
    height: 49px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero-meta {
    gap: 8px 14px;
    margin-top: 23px;
    font-size: 11px;
  }

  .hero-visual {
    width: min(90vw, 390px);
  }

  .portrait-note {
    gap: 14px;
  }

  .hero-language {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
  }

  .hero-language-results {
    width: 100%;
  }

  .hero-language-results > span {
    padding: 2px 12px;
  }

  .hero-language-results > span:first-child {
    padding-left: 0;
    border-left: 0;
  }

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

  .education-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 17px;
    min-height: 0;
    padding: 20px;
  }

  .education-mark-shell {
    width: 68px;
    height: 68px;
    padding: 4px;
  }

  .education-mark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .education-title-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .education-score {
    padding-top: 0;
  }

  .section-title-wrap h2,
  .capability-heading h2 {
    font-size: 38px;
  }

  .project-grid {
    gap: 12px;
  }

  .project-card {
    min-height: 0;
  }

  .project-card-button {
    padding: 21px;
  }

  .project-card-report {
    gap: 12px;
    padding-inline: 21px;
  }

  .project-card-report small {
    font-size: 8px;
  }

  .project-card-footer {
    gap: 12px;
  }

  .project-open {
    gap: 7px;
    min-height: 36px;
    padding: 0 10px;
  }

  .project-open > span {
    font-size: 8px;
  }

  .is-expanded > .project-inline-detail > .project-inline-inner {
    padding: 28px 18px 34px;
  }

  .project-inline-intro {
    padding-bottom: 16px;
  }

  .project-inline-intro h4 {
    font-size: 28px;
  }

  .project-inline-detail .case-body {
    gap: 34px;
    margin-top: 26px;
  }

  .project-card h3,
  .project-card--narrow h3 {
    margin-top: 28px;
    font-size: 31px;
  }

  .project-summary {
    font-size: 13px;
  }

  .project-card-visual {
    display: none !important;
  }

  .project-metrics {
    column-gap: 6px;
    padding-top: 24px;
  }

  .project-metric {
    padding: 14px 6px 0;
  }

  .project-metric:first-child {
    padding-left: 0;
  }

  .project-metric:last-child {
    padding-right: 0;
  }

  .project-metric strong {
    font-size: clamp(15px, 4.25vw, 17px);
    white-space: nowrap;
  }

  .project-metric small {
    font-size: 8px;
  }

  .project-card-footer .tag-list .tag:nth-child(n + 4) {
    display: none;
  }

  .timeline-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-company-lockup {
    align-items: flex-start;
    gap: 13px;
  }

  .timeline-logo-shell {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 12px;
  }

  .timeline-logo-shell--sf {
    padding: 8px;
  }

  .timeline-logo-shell--bondex {
    padding: 3px;
  }

  .timeline-company-copy {
    padding-top: 2px;
  }

  .timeline-company {
    font-size: 27px;
  }

  .timeline-achievements li {
    font-size: 13px;
  }

  .paper-card {
    padding: 24px;
  }

  .paper-top,
  .paper-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .paper-card h3 {
    margin-top: 30px;
    font-size: 34px;
  }

  .paper-abstract {
    font-size: 14px;
  }

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

  .capability-card {
    min-height: 250px;
  }

  .photo-story {
    grid-template-columns: 1fr;
    grid-template-rows: 460px 460px 220px 220px;
    min-height: 0;
  }

  .story-photo--cmu,
  .story-photo--swjtu,
  .story-photo--cambridge,
  .story-photo--xiamen {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-card {
    padding: 28px 21px;
  }

  .contact-card h2 {
    font-size: 38px;
  }

  .contact-email {
    gap: 12px;
    min-width: 0;
    padding-inline: 14px;
    font-size: 12px;
  }

  .contact-email-copy strong {
    font-size: 12px;
  }

  .contact-meta {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }

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

  .dialog-toolbar {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
  }

  .dialog-counter {
    display: none;
  }

  .dialog-content {
    width: calc(100% - 24px);
    padding-top: 44px;
  }

  .case-hero h2 {
    font-size: 46px;
  }

  .case-lede {
    font-size: 15px;
  }

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

  .case-metric {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-metric:last-child {
    border-bottom: 0;
  }

  .case-body {
    margin-top: 58px;
  }

  .case-section + .case-section {
    margin-top: 40px;
  }

  .case-section h5 {
    font-size: 26px;
  }

  .architecture,
  .demo-stage {
    padding: 14px;
  }

  .case-architecture-link {
    min-width: 700px;
  }

  .case-architecture-figure figcaption {
    flex-direction: column;
    gap: 10px;
  }

  .demo-video figcaption {
    flex-direction: column;
    gap: 9px;
  }

  .demo-score-grid,
  .translation-compare {
    grid-template-columns: 1fr;
  }

  .research-evidence-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .research-evidence-primary {
    padding: 13px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-row {
    gap: 15px;
  }
}


.about-life-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 76px);
  margin-bottom: 74px;
  padding: clamp(30px, 4.8vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(140, 255, 159, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 10%, rgba(140, 255, 159, 0.1), transparent 26rem),
    linear-gradient(135deg, rgba(13, 34, 23, 0.9), rgba(6, 17, 11, 0.88));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18);
}

.about-life-panel::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 255, 159, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 255, 159, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(105deg, #000, transparent 68%);
  pointer-events: none;
}

.about-life-copy,
.about-interest-grid {
  position: relative;
  z-index: 1;
}

.about-life-copy h3 {
  max-width: 560px;
  margin-top: 21px;
  font-size: clamp(29px, 3.25vw, 45px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.about-life-copy > p:last-child {
  max-width: 590px;
  margin-top: 23px;
  color: #94a69b;
  font-size: 15px;
  line-height: 1.82;
}

.about-interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-self: stretch;
}

.about-interest {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 23px 20px;
  border: 1px solid rgba(184, 255, 202, 0.11);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(140, 255, 159, 0.045), transparent 58%),
    rgba(2, 11, 7, 0.42);
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.about-interest:hover {
  border-color: rgba(140, 255, 159, 0.3);
  background-color: rgba(140, 255, 159, 0.035);
  transform: translateY(-4px);
}

.about-interest > span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.about-interest h4 {
  margin-top: auto;
  padding-top: 54px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.about-interest p {
  margin-top: 12px;
  color: #809388;
  font-size: 11px;
  line-height: 1.68;
}

.about-layout {
  display: grid;
  gap: 24px;
}

.about-subheading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.about-subheading h3 {
  max-width: 620px;
  font-size: clamp(27px, 3vw, 41px);
  font-weight: 540;
  letter-spacing: -0.04em;
  line-height: 1.16;
  text-align: right;
}

.photo-wall-block {
  margin-top: 112px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.photo-wall-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: end;
  margin-bottom: 30px;
}

.photo-wall-heading h3 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.photo-wall-heading > p {
  color: #879a8f;
  font-size: 14px;
  line-height: 1.8;
}

.photo-wall {
  display: grid;
  grid-template-areas:
    "a a a a a a b b b b b b"
    "a a a a a a b b b b b b"
    "a a a a a a b b b b b b"
    "c c c d d d e e e g g g"
    "c c c d d d e e e g g g"
    "f f f f h h h h i i i i"
    "f f f f h h h h i i i i"
    "f f f f h h h h i i i i"
    "f f f f h h h h i i i i"
    "f f f f h h h h i i i i";
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 88px;
  gap: 12px;
}

.photo-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 202, 0.13);
  border-radius: 16px;
  background: #0a160f;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.16);
}

.photo-frame::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 7, 4, 0.02) 38%, rgba(1, 7, 4, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 16, 9, 0.12), transparent 42%);
  content: "";
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
  transition: filter 360ms ease, transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.photo-frame:hover img {
  filter: saturate(1) contrast(1.02) brightness(0.93);
  transform: scale(1.035);
}

.photo-frame figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.photo-frame figcaption small {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.photo-frame figcaption strong {
  color: #eff7f1;
  font-size: 12px;
  font-weight: 540;
  letter-spacing: 0.01em;
}

.photo-frame--01 { grid-area: a; }
.photo-frame--02 { grid-area: b; }
.photo-frame--03 { grid-area: c; }
.photo-frame--04 { grid-area: d; }
.photo-frame--05 { grid-area: e; }
.photo-frame--06 { grid-area: f; }
.photo-frame--07 { grid-area: g; }
.photo-frame--08 { grid-area: h; }
.photo-frame--09 { grid-area: i; }

.photo-frame--01 img { object-position: 50% 52%; }
.photo-frame--02 img { object-position: 50% 51%; }
.photo-frame--03 img { object-position: 50% 52%; }
.photo-frame--04 img { object-position: 50% 48%; }
.photo-frame--05 img { object-position: 50% 52%; }
.photo-frame--06 img { object-position: 50% 68%; }
.photo-frame--07 img { object-position: 50% 48%; }
.photo-frame--08 img { object-position: 50% 85%; }
.photo-frame--09 img { object-position: 50% 72%; }

.case-report-figures {
  margin-top: 28px;
}

.case-report-figures-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 13px;
  padding-top: 4px;
}

.case-report-figures-heading span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.case-report-figures-heading p {
  color: #71867a;
  font-size: 10px;
}

.case-report-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.case-report-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 20, 13, 0.82);
}

.case-report-figure.is-featured {
  grid-column: 1 / -1;
}

.case-report-figure > a {
  display: block;
  overflow: hidden;
  background: #f7f7f5;
}

.case-report-figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 420ms ease;
}

.case-report-figure:hover img {
  transform: scale(1.012);
}

.case-report-figure figcaption {
  display: grid;
  gap: 7px;
  padding: 15px 16px 17px;
}

.case-report-figure figcaption > span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.case-report-figure figcaption strong {
  color: #c0cec5;
  font-size: 13px;
  font-weight: 560;
}

.case-report-figure figcaption p {
  color: #7f9287;
  font-size: 10px;
  line-height: 1.62;
}

@media (max-width: 1020px) {
  .about-life-panel {
    grid-template-columns: 1fr;
  }

  .about-interest {
    min-height: 195px;
  }

  .photo-wall {
    grid-auto-rows: 74px;
  }
}

@media (max-width: 820px) {
  .about-life-panel {
    margin-bottom: 58px;
    padding: 30px 26px;
  }

  .about-interest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-interest {
    min-height: 182px;
    padding: 19px 16px;
  }

  .about-interest h4 {
    padding-top: 34px;
  }

  .about-subheading {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-subheading h3 {
    text-align: left;
  }

  .photo-wall-block {
    margin-top: 82px;
  }

  .photo-wall-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .photo-wall {
    grid-template-areas:
      "a a"
      "a a"
      "b c"
      "b c"
      "d d"
      "e f"
      "e f"
      "e f"
      "g g"
      "g g"
      "h i"
      "h i"
      "h i";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 108px;
  }

  .case-report-figure-grid {
    grid-template-columns: 1fr;
  }

  .case-report-figure.is-featured {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .about-life-panel {
    gap: 26px;
    padding: 25px 20px;
    border-radius: 18px;
  }

  .about-life-copy > p:last-child {
    font-size: 13px;
  }

  .about-interest-grid {
    grid-template-columns: 1fr;
  }

  .about-interest {
    min-height: 0;
  }

  .about-interest h4 {
    margin-top: 28px;
    padding-top: 0;
  }

  .photo-wall {
    grid-template-areas:
      "a a"
      "a a"
      "b c"
      "b c"
      "d d"
      "e f"
      "e f"
      "e f"
      "g g"
      "g g"
      "h i"
      "h i"
      "h i";
    grid-auto-rows: 82px;
    gap: 8px;
  }

  .photo-frame {
    border-radius: 12px;
  }

  .photo-frame figcaption {
    right: 11px;
    bottom: 10px;
    left: 11px;
  }

  .photo-frame figcaption strong {
    font-size: 10px;
  }

  .case-report-figures-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
