:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f5f8f8;
  --ink: #151c1d;
  --muted: #5f6b6d;
  --line: #d9e2e1;
  --blue: #315f72;
  --red: #a00000;
  --green: #286357;
  --gold: #a37a30;
  --max: 1180px;
}

/* Product Design adopted homepage refresh, 2026-06-10 */
.pd-home {
  background: #fbfdfd;
  color: var(--ink);
}

.pd-home .topbar {
  min-height: 58px;
  border-bottom: 1px solid rgba(37, 41, 44, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.pd-home .topbar nav {
  gap: 22px;
}

.pd-home .topbar nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.pd-home .brand strong {
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.pd-home .brand span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.pd-home .hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 20, 22, 0.88) 0%, rgba(11, 20, 22, 0.62) 42%, rgba(11, 20, 22, 0.18) 72%),
    url("../assets/yang-yuan-headshot-hero.webp") center 16% / cover no-repeat;
}

.pd-home .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  pointer-events: none;
}

.pd-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.46fr);
  gap: 56px;
  align-items: end;
  padding: 112px 0 64px;
}

.pd-home .hero-copy {
  max-width: 760px;
  color: #fff;
}

.pd-home .hero .kicker {
  color: rgba(255, 255, 255, 0.74);
}

.pd-home .hero h1,
.pd-home .section h2,
.pd-home .join h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.pd-home .hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.96;
}

.pd-home .hero h1 span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
}

.pd-home .lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  font-weight: 720;
  line-height: 1.72;
}

.pd-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pd-home .button,
.pd-home .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(49, 95, 114, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.pd-home .button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.pd-home .evidence-rail {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.pd-home .evidence-rail p {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-home .evidence-rail dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pd-home .evidence-rail div {
  padding: 16px;
  background: #fff;
}

.pd-home .evidence-rail dt {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.pd-home .evidence-rail dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.48;
}

.pd-home .pathway {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.pd-home .pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.pd-home .pathway-grid a {
  min-height: 132px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
}

.pd-home .pathway-grid span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pd-home .pathway-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
}

.pd-home .pathway-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pd-home .section {
  padding: clamp(70px, 8vw, 112px) 0;
  background: #fff;
}

.pd-home .section.muted {
  background: #eef5f5;
}

.pd-home .split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.44fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 30px;
}

.pd-home .section h2,
.pd-home .join h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: 1.02;
}

.pd-home .split-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.76;
}

.pd-home .track-list {
  display: grid;
  gap: 14px;
}

.pd-home .track-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pd-home .track-row figure {
  margin: 0;
  background: #eef4f5;
}

.pd-home .track-row img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.pd-home .track-row div {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
}

.pd-home .track-row span,
.pd-home .paper-card span,
.pd-home .feature-update span,
.pd-home .side-updates span {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-home .track-row h3,
.pd-home .paper-card h3,
.pd-home .feature-update h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
}

.pd-home .track-row p,
.pd-home .paper-card p,
.pd-home .feature-update p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.74;
}

.pd-home .paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pd-home .paper-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pd-home .paper-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #eef4f5;
}

.pd-home .paper-card div {
  padding: 20px;
}

.pd-home .paper-card h3 {
  font-size: 1.55rem;
}

.pd-home .update-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.52fr);
  gap: 16px;
}

.pd-home .feature-update {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pd-home .feature-update img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.pd-home .feature-update div {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(24px, 4vw, 44px);
}

.pd-home .side-updates {
  display: grid;
  gap: 12px;
}

.pd-home .side-updates a {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.pd-home .side-updates img {
  width: 108px;
  height: 108px;
  border-radius: 6px;
  object-fit: cover;
}

.pd-home .side-updates strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.22;
}

.pd-home .join {
  padding: clamp(72px, 8vw, 110px) 0;
  background: #111b1d;
  color: #fff;
}

.pd-home .join .kicker {
  color: rgba(255, 255, 255, 0.62);
}

.pd-home .join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 42px;
  align-items: center;
}

.pd-home .join-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.pd-home .join-panel strong {
  font-size: 1.2rem;
}

.pd-home .join-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .pd-home .topbar {
    padding: 0 18px;
  }

  .pd-home .brand span,
  .pd-home .topbar nav a:last-child {
    display: none;
  }

  .pd-home .topbar nav {
    gap: 14px;
  }

  .pd-home .hero {
    min-height: 620px;
    background-position: 52% 12%;
  }

  .pd-home .hero-grid,
  .pd-home .split-head,
  .pd-home .track-row,
  .pd-home .update-grid,
  .pd-home .feature-update,
  .pd-home .join-grid {
    grid-template-columns: 1fr;
  }

  .pd-home .hero-grid {
    gap: 22px;
    padding: 86px 0 38px;
  }

  .pd-home .evidence-rail {
    display: none;
  }

  .pd-home .pathway-grid,
  .pd-home .paper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-home .feature-update img {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .pd-home .wrap {
    width: min(100% - 28px, 1180px);
  }

  .pd-home .topbar nav a:nth-child(3) {
    display: none;
  }

  .pd-home .hero {
    min-height: 590px;
  }

  .pd-home .hero h1 {
    font-size: clamp(3.2rem, 18vw, 4.8rem);
  }

  .pd-home .lead {
    font-size: 1rem;
  }

  .pd-home .hero-actions .button {
    flex: 1 1 100%;
  }

  .pd-home .pathway-grid,
  .pd-home .paper-grid {
    grid-template-columns: 1fr;
  }

  .pd-home .pathway-grid a {
    min-height: 108px;
  }

  .pd-home .track-row img {
    min-height: 210px;
  }

  .pd-home .side-updates a {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .pd-home .side-updates img {
    width: 92px;
    height: 92px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.zh,
.en {
  display: block;
}

.en {
  color: var(--muted);
  font-size: 0.86em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 226, 225, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span,
.topbar nav {
  color: var(--muted);
  font-size: 0.76rem;
}

.topbar nav {
  display: flex;
  gap: clamp(10px, 1.45vw, 18px);
  font-weight: 750;
}

.button,
.paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.external::after {
  margin-left: 7px;
  content: "↗";
}

.fold-toggle {
  display: none;
}

.paper-link::after {
  margin-left: 7px;
  content: "↗";
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.24;
}

.sub-en {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: 0;
  text-transform: none;
}

h2 .sub-en {
  margin-top: 10px;
  max-width: 720px;
  font-size: clamp(0.78rem, 1.15vw, 0.95rem);
}

h3 .sub-en {
  font-size: 0.76rem;
}

.paper-meta .sub-en,
strong .sub-en {
  margin-top: 5px;
  font-size: 0.72rem;
}

.paragraph-en {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.45;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.metric {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.metric strong {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.metric span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 780;
  line-height: 1.35;
}

.metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.32;
}

.portrait,
.video-thumb {
  position: relative;
  overflow: hidden;
  background: #dfe5e4;
}

.portrait img,
.video-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.paper-meta {
  margin: 0;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.diagram {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(49, 95, 114, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 114, 0.045) 1px, transparent 1px),
    #f8fbfa;
  background-size: 22px 22px;
}

.node {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(49, 95, 114, 0.35);
  border-radius: 50%;
  background: #fff;
}

.node.a {
  top: 28%;
  left: 18%;
}

.node.b {
  top: 45%;
  left: 44%;
}

.node.c {
  right: 18%;
  top: 25%;
}

.line {
  position: absolute;
  height: 2px;
  background: rgba(160, 0, 0, 0.45);
  transform-origin: left;
}

.line.one {
  left: 25%;
  top: 42%;
  width: 28%;
  transform: rotate(12deg);
}

.line.two {
  left: 52%;
  top: 49%;
  width: 26%;
  transform: rotate(-20deg);
}

.footer {
  padding: 36px 0;
  background: #121d1e;
  color: #dfe8e6;
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.82rem;
}

.footer a {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-note {
  max-width: 360px;
  color: rgba(223, 232, 230, 0.72);
  line-height: 1.6;
}

.seo-page {
  background: #f5f8f8;
  color: var(--ink);
}

.seo-main {
  padding-top: 0;
}

.seo-hero {
  padding: 112px 0 46px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.seo-hero h1 {
  max-width: 940px;
  margin: 8px 0 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.seo-hero .lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.seo-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  max-width: 1040px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.seo-metric {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  background: #fff;
}

.seo-metric strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
}

.seo-metric span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.seo-metric small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.seo-section {
  padding: 54px 0;
}

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

.seo-card,
.seo-panel {
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.seo-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.seo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.en-page .seo-card:first-child img {
  object-position: 50% 18%;
}

.seo-card h2,
.seo-card h3 {
  margin: 0;
  color: var(--blue);
}

.seo-card p,
.seo-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.75;
}

.seo-card .paper-link {
  width: fit-content;
}

.seo-group {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.seo-group + .seo-group {
  margin-top: 16px;
}

.seo-group h2 {
  margin: -6px 0 0;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.seo-group-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  list-style: none;
}

.seo-group-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: #fbfdfd;
}

.seo-group-list strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.seo-item-meta,
.seo-item-authors,
.seo-item-citation,
.seo-source-note {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.45;
}

.seo-item-authors {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.seo-item-citation {
  color: #37596c;
  font-weight: 850;
  line-height: 1.55;
}

.seo-group-list p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.7;
}

.seo-source-note {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
}

.key-page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.key-page-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.75;
}

.key-page-list {
  display: grid;
  gap: 16px;
}

.key-page-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.07);
}

.key-page-figure {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #f7fbfb;
}

.key-page-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
  padding: 16px;
}

.key-page-copy {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.key-page-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 500;
  line-height: 1.16;
}

.key-page-citation {
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.55;
}

.key-page-insights {
  display: grid;
  gap: 10px;
}

.key-page-insights section {
  padding: 12px;
  border: 1px solid rgba(49, 95, 114, 0.12);
  border-radius: 7px;
  background: #fbfdfd;
}

.key-page-insights h3 {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

.key-page-insights p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.7;
}

.key-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-page-intro,
.join-page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.research-page-intro p,
.join-page-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.75;
}

.research-page-actions,
.research-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-track-list {
  display: grid;
  gap: 18px;
}

.research-track-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.07);
}

.research-track-figure {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #f7fbfb;
}

.research-track-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.research-track-card:nth-child(1) .research-track-figure img {
  object-position: 50% 48%;
}

.research-track-card:nth-child(2) .research-track-figure img {
  object-position: 50% 52%;
}

.research-track-copy {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
}

.research-track-copy h2,
.join-page-card h2,
.join-faq h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 500;
  line-height: 1.18;
}

.research-track-copy p,
.join-page-card p,
.join-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.75;
}

.research-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.research-detail-grid section {
  padding: 14px;
  background: #fbfdfd;
}

.research-detail-grid h3,
.join-faq h3 {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.research-detail-grid p {
  font-size: 0.86rem;
  line-height: 1.65;
}

.research-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-tag-list li {
  padding: 7px 9px;
  border: 1px solid rgba(49, 95, 114, 0.16);
  border-radius: 6px;
  color: var(--blue);
  background: #f7fbfb;
  font-size: 0.78rem;
  font-weight: 850;
}

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

.join-page-card,
.join-faq {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.join-page-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.join-page-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-page-card li {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.55;
}

.join-faq {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.join-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.join-faq-grid section {
  padding: 16px;
  background: #fbfdfd;
}

.join-contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.join-contact-panel strong {
  color: var(--ink);
}

.join-contact-panel a {
  color: var(--red);
  font-weight: 900;
}

.join-contact-panel span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.updates-intro,
.media-page-intro,
.en-profile-panel,
.join-projects {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.updates-intro,
.media-page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.updates-intro p,
.media-page-intro p,
.en-profile-copy p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.75;
}

.updates-list {
  display: grid;
  gap: 14px;
}

.update-card {
  display: grid;
  grid-template-columns: minmax(142px, 0.18fr) minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.update-date,
.update-figure,
.update-copy {
  background: #fff;
}

.update-date {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.update-date strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}

.update-date span,
.media-page-meta span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.update-figure {
  margin: 0;
  overflow: hidden;
  background: #eef4f5;
}

.update-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 176px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.update-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.update-copy h2,
.media-page-copy h2,
.en-section-card h2,
.join-projects h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 500;
  line-height: 1.18;
}

.update-copy p,
.media-page-copy p,
.en-section-card li,
.join-project-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.72;
}

.update-copy .paper-link,
.media-page-copy .paper-link {
  width: fit-content;
}

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

.media-page-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.media-page-figure {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef4f5;
}

.media-page-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-page-card:nth-child(2) .media-page-figure img {
  object-position: 50% 22%;
}

.media-page-card:nth-child(4) .media-page-figure img {
  object-position: 50% 16%;
}

.media-page-copy {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 20px;
}

.media-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-page-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 6px;
  background: #f7fbfb;
  letter-spacing: 0;
  text-transform: none;
}

.media-page-context {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.media-video-entry {
  align-items: center;
}

.media-video-entry-copy {
  display: grid;
  gap: 5px;
  min-width: min(100%, 280px);
}

.media-video-entry-copy strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.media-video-entry-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.media-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.seo-next-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #f7fbfb;
}

.seo-next-strip strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.seo-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.en-profile-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.en-profile-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f5;
}

.en-profile-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 16%;
}

.en-profile-copy {
  display: grid;
  gap: 16px;
}

.en-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.en-section-card {
  padding: 22px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 54, 60, 0.06);
}

.en-section-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.en-section-card li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.join-projects {
  display: grid;
  gap: 16px;
}

.join-project-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdfd;
}

.join-project-grid h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.98rem;
  line-height: 1.34;
}

.seo-panel {
  padding: 24px;
}

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

.seo-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.seo-list li:last-child {
  border-bottom: 0;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 700px) {
  .footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .seo-hero {
    padding: 104px 0 36px;
  }

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

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

  .seo-group-list li {
    grid-template-columns: 1fr;
  }

  .key-page-card {
    grid-template-columns: 1fr;
  }

  .research-track-card,
  .join-page-grid,
  .join-project-grid,
  .research-detail-grid,
  .join-faq-grid,
  .media-page-grid,
  .en-profile-panel,
  .en-section-grid,
  .update-card {
    grid-template-columns: 1fr;
  }

  .key-page-figure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-track-figure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .research-track-figure img {
    min-height: 220px;
    max-height: 320px;
  }

  .key-page-figure img {
    min-height: 220px;
    max-height: 320px;
  }

  .update-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .update-figure img {
    height: auto;
    min-height: 0;
  }

  .media-video-links {
    width: 100%;
    justify-content: flex-start;
  }

  .seo-next-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .media-video-links .button,
  .seo-next-actions .button {
    flex: 1 1 190px;
  }
}

@media (max-width: 520px) {
  .seo-metrics {
    grid-template-columns: 1fr;
  }
}

/* A: Nature Faculty Profile */
.nature {
  background: #fbfcfc;
}

.nature .hero {
  padding: clamp(44px, 6vw, 78px) 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.nature .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.44fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.nature .title {
  max-width: 760px;
}

.nature .lead {
  max-width: 720px;
  margin-bottom: 24px;
  color: #263638;
  font-size: 1rem;
  font-weight: 650;
}

.nature .side {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.nature .portrait {
  aspect-ratio: 4 / 5;
  width: 190px;
}

.nature .portrait img {
  object-position: 50% 16%;
  transform: scale(1.18);
}

.nature .metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.nature .section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.nature .selected-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
  gap: 34px;
}

.nature .paper-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

/* B: UCSF Gallery */
.gallery {
  background: #eef4f5;
}

.gallery .hero {
  min-height: 700px;
  display: grid;
  align-items: end;
  padding: 58px 0;
  background:
    linear-gradient(180deg, rgba(14, 25, 27, 0.04), rgba(14, 25, 27, 0.74)),
    image-set(
      url("../assets/yang-yuan-headshot-hero.webp") type("image/webp"),
      url("../assets/yang-yuan-headshot.jpg") type("image/jpeg")
    ) center 16% / cover no-repeat;
}

.gallery .hero-card {
  max-width: 680px;
  color: #fff;
}

.gallery .hero-card .kicker,
.gallery .hero-card .en {
  color: rgba(255, 255, 255, 0.78);
}

.gallery .hero-card .lead {
  max-width: 640px;
  font-size: 1.02rem;
  font-weight: 700;
}

.gallery .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery .hero-actions .button {
  background: rgba(255, 255, 255, 0.92);
}

.gallery .hero-actions .primary {
  background: #fff;
  color: #111;
}

.gallery .section {
  padding: 54px 0;
}

.gallery .gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.gallery .video-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(49, 95, 114, 0.16);
  border-radius: 8px;
  background: #111;
}

.gallery .feature-paper {
  display: grid;
  gap: 16px;
}

.gallery .feature-paper .paper-card,
.gallery .media-card,
.gallery .metric {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery .media-card {
  padding: 20px;
  background: #fff;
}

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

.gallery .paper-mosaic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* C: Stanford BCI Systems */
.systems {
  background:
    linear-gradient(90deg, rgba(49, 95, 114, 0.045) 1px, transparent 1px),
    #f6f8f8;
  background-size: 54px 54px;
}

.systems .hero {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.systems .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 38px;
  align-items: center;
}

.systems .pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.systems .pipeline-card {
  min-height: 190px;
  padding: 18px;
  background: #fff;
}

.systems .pipeline-card strong {
  display: block;
  margin-bottom: 44px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.systems .systems-map {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(49, 95, 114, 0.065) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 114, 0.055) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
}

.systems .map-label {
  position: absolute;
  max-width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.systems .map-label.one {
  top: 32px;
  left: 32px;
}

.systems .map-label.two {
  top: 150px;
  right: 36px;
}

.systems .map-label.three {
  bottom: 32px;
  left: 42%;
}

.systems .map-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(49, 95, 114, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 0, 0, 0.16), rgba(49, 95, 114, 0.06) 62%, transparent 64%);
}

.systems .section {
  padding: 48px 0;
}

.systems .evidence-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.systems .paper-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

@media (max-width: 900px) {
  .topbar nav {
    display: none;
  }

  .nature .hero-grid,
  .nature .selected-layout,
  .gallery .gallery-grid,
  .systems .hero-grid,
  .systems .evidence-grid {
    grid-template-columns: 1fr;
  }

  .nature .metrics,
  .gallery .metrics,
  .gallery .paper-mosaic,
  .systems .pipeline,
  .systems .paper-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nature .side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    padding-left: 0;
  }

  .gallery .hero {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.36rem, 7.4vw, 2rem);
  }

  .nature .metrics,
  .gallery .metrics,
  .gallery .paper-mosaic,
  .systems .pipeline,
  .systems .paper-stack {
    grid-template-columns: 1fr;
  }

  .gallery .hero {
    min-height: 560px;
    background-position: 48% 15%;
  }

  .systems .systems-map {
    min-height: 500px;
  }

  .systems .map-label {
    max-width: 150px;
  }
}

/* B final preview: full UCSF-style academic gallery */
.gallery-final {
  background: #eef4f5;
}

.gallery-final .topbar {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(31, 54, 62, 0.08);
}

.gallery-final .rail-nav {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 45;
  display: grid;
  gap: 6px;
  width: 58px;
  padding: 9px 7px;
  border: 1px solid rgba(49, 95, 114, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(20, 37, 42, 0.13);
  transform: translateY(-50%);
  backdrop-filter: blur(16px);
}

.gallery-final .rail-nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.gallery-final .rail-nav a::before {
  position: absolute;
  left: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(49, 95, 114, 0.34);
  content: "";
}

.gallery-final .rail-nav span {
  padding-left: 4px;
}

.gallery-final .rail-nav em {
  position: absolute;
  right: calc(100% + 10px);
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(20, 37, 42, 0.12);
  color: var(--blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-final .rail-nav a:hover,
.gallery-final .rail-nav a:focus-visible,
.gallery-final .rail-nav a.is-active {
  border-color: rgba(160, 0, 0, 0.16);
  background: rgba(160, 0, 0, 0.075);
  color: var(--red);
  transform: translateX(-2px);
}

.gallery-final .rail-nav a:hover::before,
.gallery-final .rail-nav a:focus-visible::before,
.gallery-final .rail-nav a.is-active::before {
  background: var(--red);
}

.gallery-final .rail-nav a:hover em,
.gallery-final .rail-nav a:focus-visible em {
  opacity: 1;
  transform: translateX(0);
}

.gallery-final .mobile-scroll-nav {
  display: none;
}

.gallery-final .homepage-mobile-hidden {
  display: none;
}

.gallery-final .hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  padding: 72px 0 60px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 22, 24, 0.04) 0%, rgba(11, 22, 24, 0.18) 36%, rgba(11, 22, 24, 0.84) 100%),
    image-set(
      url("../assets/yang-yuan-headshot-hero.webp") type("image/webp"),
      url("../assets/yang-yuan-headshot.jpg") type("image/jpeg")
    ) center 14% / cover no-repeat;
}

.gallery-final .hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.gallery-final .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.58fr);
  gap: 36px;
  align-items: end;
}

.gallery-final .hero-copy {
  max-width: 740px;
  color: #fff;
}

.gallery-final .hero-copy .kicker,
.gallery-final .hero-copy .en {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-final .hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
}

.gallery-final .hero-copy h1 small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 760;
  letter-spacing: 0;
}

.gallery-final .hero-copy p {
  color: rgba(255, 255, 255, 0.9);
}

.gallery-final .hero-copy .lead {
  max-width: 680px;
  font-size: 1.08rem;
  font-weight: 720;
}

.gallery-final .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gallery-final .hero-actions .button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: #152123;
}

.gallery-final .hero-actions .primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.gallery-final .hero-panel {
  display: grid;
  gap: 12px;
}

.gallery-final .hero-panel .metric {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(10, 20, 23, 0.16);
}

.gallery-final .portal-band {
  padding: 16px 0;
  border-top: 1px solid rgba(49, 95, 114, 0.08);
  border-bottom: 1px solid rgba(49, 95, 114, 0.1);
  background: #fff;
}

.gallery-final .portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-final .portal-grid a {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}

.gallery-final .portal-grid strong {
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 900;
}

.gallery-final .portal-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.42;
}

.gallery-final .portal-grid a:hover,
.gallery-final .portal-grid a:focus-visible {
  border-color: rgba(160, 0, 0, 0.2);
  box-shadow: 0 12px 24px rgba(20, 37, 42, 0.08);
}

.gallery-final .section {
  padding: 58px 0;
}

.gallery-final .section.soft {
  background: #fff;
}

.gallery-final .section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(260px, 0.42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.gallery-final .section-head h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.45vw, 2.28rem);
  line-height: 1.12;
}

.gallery-final .section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.gallery-final .media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 16px;
}

.gallery-final .video-feature,
.gallery-final .side-stack article,
.gallery-final .gallery-card,
.gallery-final .portfolio-preview,
.gallery-final .contact-card,
.gallery-final .join-card,
.gallery-final .evidence-grid article,
.gallery-final .press-grid article,
.gallery-final .recruit-grid article {
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery-final .video-feature {
  overflow: hidden;
}

.gallery-final .video-frame,
.gallery-final .lecture-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.gallery-final .video-frame::before,
.gallery-final .lecture-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.gallery-final .video-frame video,
.gallery-final .lecture-frame video,
.gallery-final .video-feature video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  object-fit: contain;
}

.gallery-final .video-frame video,
.gallery-final .lecture-frame video {
  position: absolute;
  inset: 0;
}

.gallery-final .video-feature .caption {
  padding: 18px;
}

.gallery-final .caption p,
.gallery-final .side-stack p,
.gallery-final .gallery-card p,
.gallery-final .portfolio-preview p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-final .side-stack {
  display: grid;
  gap: 12px;
}

.gallery-final .side-stack article {
  padding: 18px;
}

.gallery-final .profile-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery-final .profile-bio,
.gallery-final .profile-facts article {
  background: #fff;
}

.gallery-final .profile-bio {
  padding: 22px;
}

.gallery-final .profile-bio h3 {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2.3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.18;
}

.gallery-final .profile-bio p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.gallery-final h2 .sub-en {
  margin-top: 7px;
  color: #607174;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.gallery-final .hero-copy .lead .en {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 650;
}

.gallery-final .hero-panel .metric small {
  color: #617175;
}

.gallery-final .profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.gallery-final .profile-facts article {
  min-height: 128px;
  padding: 16px;
}

.gallery-final .profile-facts strong {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-final .profile-facts span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.34;
}

.gallery-final .profile-facts small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.32;
}

.gallery-final .directions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-final .evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-final .thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-final .thesis-grid article,
.gallery-final .evidence-grid article,
.gallery-final .directions article {
  min-height: 164px;
  padding: 18px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery-final .thesis-grid strong {
  display: block;
  min-height: 34px;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-final .evidence-grid strong {
  display: block;
  margin-bottom: 30px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-final .evidence-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-final .directions strong {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

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

.gallery-final .gallery-card {
  overflow: hidden;
}

.gallery-final .gallery-card .diagram {
  min-height: 146px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.gallery-final .paper-figure {
  position: relative;
  min-height: 146px;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(18, 29, 30, 0.05)),
    #f8fbfa;
}

.gallery-final .paper-figure img {
  display: block;
  width: 100%;
  height: 182px;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
}

.gallery-final .paper-figure-tall img {
  object-position: 50% 24%;
}

.gallery-final .paper-figure-wide img {
  object-fit: contain;
  padding: 18px 16px 28px;
  background: #fff;
}

.gallery-final .paper-figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(217, 226, 225, 0.86);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.gallery-final .gallery-card .copy {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.gallery-final .research-clusters {
  display: grid;
  gap: 14px;
}

.gallery-final .cluster-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(39, 61, 64, 0.07);
}

.gallery-final .cluster-media {
  display: grid;
  min-height: 100%;
  background: #f8fbfa;
}

.gallery-final .cluster-media.figure-panel {
  grid-template-rows: minmax(220px, 1fr) 88px;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #eef5f5;
}

.gallery-final .cluster-media.figure-panel.single-figure {
  align-content: center;
  grid-template-rows: auto;
}

.gallery-final .cluster-media figure {
  position: relative;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  background: #f8fbfa;
}

.gallery-final .cluster-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.gallery-final .cluster-media figure.image-contain img {
  object-fit: contain;
  object-position: 50% 22%;
  padding: 18px;
  background: #fff;
}

.gallery-final .cluster-media figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(217, 226, 225, 0.9);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.gallery-final .cluster-media .paper-shot {
  min-height: 0;
  border: 1px solid rgba(217, 226, 225, 0.95);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(39, 61, 64, 0.08);
}

.gallery-final .cluster-media .paper-shot-main {
  min-height: 220px;
}

.gallery-final .paper-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  background: #fff;
  filter: saturate(0.95) contrast(1.02);
}

.gallery-final .paper-shot-contain img {
  object-fit: contain;
  padding: 18px;
}

.gallery-final .paper-shot-top img {
  object-position: 50% 18%;
}

.gallery-final .single-figure .paper-shot {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
  min-height: 0;
}

.gallery-final .single-figure .paper-shot img {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  padding: 0;
  background: #fff;
}

.gallery-final .single-figure .paper-shot figcaption {
  position: static;
  display: flex;
  align-items: center;
  max-width: none;
  min-height: 28px;
  padding: 5px 10px;
  overflow: visible;
  border-width: 1px 0 0;
  border-radius: 0;
  background: #fbfdfd;
  white-space: normal;
  text-overflow: clip;
}

.gallery-final .cluster-media.figure-panel.single-figure .paper-shot-main {
  height: auto;
  min-height: 0;
}

.gallery-final .paper-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.gallery-final .paper-thumbs .paper-shot {
  min-height: 0;
}

.gallery-final .paper-thumbs .paper-shot img {
  object-fit: cover;
}

.gallery-final .paper-shot figcaption {
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  min-height: 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.94);
}

.gallery-final .translation-plate {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(49, 95, 114, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 114, 0.045) 1px, transparent 1px),
    #f8fbfa;
  background-size: 22px 22px;
}

.gallery-final .translation-plate strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.gallery-final .translation-plate span {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.gallery-final .research-atlas {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(49, 95, 114, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 114, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, #ffffff 0%, #f5f9f8 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.gallery-final .research-atlas::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(49, 95, 114, 0.13);
  border-radius: 8px;
  pointer-events: none;
}

.gallery-final .atlas-label {
  position: relative;
  z-index: 2;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-final .atlas-brain,
.gallery-final .thalamic-map,
.gallery-final .omics-network,
.gallery-final .implant-panel {
  position: relative;
  z-index: 1;
  width: min(230px, 74%);
  aspect-ratio: 1.2;
  justify-self: center;
  align-self: center;
}

.gallery-final .atlas-brain {
  border: 1px solid rgba(49, 95, 114, 0.18);
  border-radius: 54% 46% 48% 52% / 42% 45% 55% 58%;
  background:
    radial-gradient(circle at 63% 48%, rgba(245, 166, 35, 0.28), transparent 20%),
    radial-gradient(circle at 44% 44%, rgba(91, 95, 214, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(233, 241, 240, 0.9));
}

.gallery-final .atlas-region,
.gallery-final .atlas-grid,
.gallery-final .atlas-probe,
.gallery-final .deep-axis,
.gallery-final .target-ring,
.gallery-final .target-core,
.gallery-final .corridor,
.gallery-final .omics-node,
.gallery-final .omics-line,
.gallery-final .implant-cavity,
.gallery-final .implant-release,
.gallery-final .implant-grid {
  position: absolute;
  display: block;
}

.gallery-final .atlas-region.tumor {
  left: 28%;
  top: 34%;
  width: 30%;
  height: 33%;
  border-radius: 58% 42% 45% 55%;
  background: rgba(160, 0, 0, 0.16);
  border: 1px solid rgba(160, 0, 0, 0.28);
}

.gallery-final .atlas-region.motor {
  right: 19%;
  top: 25%;
  width: 16%;
  height: 46%;
  border-radius: 999px;
  background: rgba(91, 95, 214, 0.18);
}

.gallery-final .atlas-grid {
  right: 16%;
  top: 24%;
  width: 33%;
  height: 42%;
  border: 1px solid rgba(49, 95, 114, 0.42);
  background:
    linear-gradient(90deg, rgba(49, 95, 114, 0.26) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 95, 114, 0.26) 1px, transparent 1px);
  background-size: 13px 13px;
  transform: rotate(-11deg);
}

.gallery-final .atlas-probe {
  left: 45%;
  top: 10%;
  width: 2px;
  height: 42%;
  background: var(--red);
  transform: rotate(25deg);
  transform-origin: top;
}

.gallery-final .thalamic-map {
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(160, 0, 0, 0.16) 0 11%, transparent 12%),
    radial-gradient(circle, rgba(91, 95, 214, 0.12) 0 32%, transparent 33%),
    radial-gradient(circle, rgba(49, 95, 114, 0.08) 0 56%, transparent 57%);
}

.gallery-final .deep-axis {
  left: 50%;
  top: 3%;
  width: 1px;
  height: 94%;
  background: rgba(49, 95, 114, 0.24);
}

.gallery-final .target-ring {
  inset: 24%;
  border: 1px solid rgba(160, 0, 0, 0.28);
  border-radius: 50%;
}

.gallery-final .target-ring.ring-two {
  inset: 36%;
  border-color: rgba(245, 166, 35, 0.5);
}

.gallery-final .target-core {
  left: 44%;
  top: 43%;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 10px rgba(160, 0, 0, 0.08);
}

.gallery-final .corridor {
  left: 50%;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(49, 95, 114, 0.38);
  transform-origin: left center;
}

.gallery-final .corridor-a {
  transform: rotate(-32deg);
}

.gallery-final .corridor-b {
  transform: rotate(38deg);
}

.gallery-final .omics-network {
  border-left: 1px solid rgba(49, 95, 114, 0.22);
  border-bottom: 1px solid rgba(49, 95, 114, 0.22);
}

.gallery-final .omics-node {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
}

.gallery-final .omics-node.primary {
  left: 43%;
  top: 39%;
  width: 34px;
  height: 34px;
  border-color: var(--red);
  background: rgba(160, 0, 0, 0.08);
}

.gallery-final .omics-node.n2 { left: 17%; top: 18%; }
.gallery-final .omics-node.n3 { right: 16%; top: 22%; border-color: var(--orange); }
.gallery-final .omics-node.n4 { left: 21%; bottom: 18%; border-color: var(--orange); }
.gallery-final .omics-node.n5 { right: 21%; bottom: 18%; }

.gallery-final .omics-line {
  left: 50%;
  top: 50%;
  width: 34%;
  height: 1px;
  background: rgba(49, 95, 114, 0.28);
  transform-origin: left center;
}

.gallery-final .omics-line.l1 { transform: rotate(-142deg); }
.gallery-final .omics-line.l2 { transform: rotate(-39deg); }
.gallery-final .omics-line.l3 { transform: rotate(143deg); }
.gallery-final .omics-line.l4 { transform: rotate(42deg); }

.gallery-final .translation-flow {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0 4px;
}

.gallery-final .translation-flow span {
  padding: 7px 4px;
  border: 1px solid rgba(49, 95, 114, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.gallery-final .implant-panel {
  width: min(220px, 72%);
  border: 1px solid rgba(49, 95, 114, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.gallery-final .implant-cavity {
  left: 16%;
  top: 24%;
  width: 39%;
  height: 52%;
  border: 1px solid rgba(160, 0, 0, 0.32);
  border-radius: 48% 52% 60% 40%;
  background: rgba(160, 0, 0, 0.08);
}

.gallery-final .implant-release {
  right: 22%;
  top: 35%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.42), transparent 68%);
}

.gallery-final .implant-grid {
  right: 14%;
  bottom: 15%;
  width: 35%;
  height: 28%;
  border: 1px solid rgba(91, 95, 214, 0.36);
  background:
    linear-gradient(90deg, rgba(91, 95, 214, 0.22) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 95, 214, 0.22) 1px, transparent 1px);
  background-size: 11px 11px;
}

.gallery-final .atlas-chips {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.gallery-final .atlas-chips span {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(217, 226, 225, 0.9);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
}

.gallery-final .cluster-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.gallery-final .cluster-index {
  margin: 0;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-final .cluster-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.12;
}

.gallery-final .cluster-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-final .article-links {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.gallery-final .mini-paper {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfd;
}

.gallery-final .mini-paper strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.gallery-final .mini-paper span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
}

.gallery-final .mini-paper:hover {
  border-color: rgba(49, 95, 114, 0.5);
  background: #fff;
}

.gallery-final .key-publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-final .key-publication-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.07);
}

.gallery-final .key-publication-card.is-featured {
  border-left: 4px solid var(--red);
  background: linear-gradient(135deg, #fff 0%, #f7fbfb 100%);
}

.gallery-final .key-publication-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.28;
}

.gallery-final .key-publication-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.62;
}

.gallery-final .key-paper-links,
.gallery-final .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-final .key-paper-links {
  margin-top: 2px;
}

.gallery-final .section-actions {
  margin-top: 18px;
}

.gallery-final .portfolio-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.gallery-final .portfolio-preview article {
  padding: 18px;
  background: #fff;
}

.gallery-final .portfolio-preview strong {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.gallery-final .honor-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery-final .honor-strip article {
  min-height: 150px;
  padding: 18px;
  background: #fff;
}

.gallery-final .honor-strip strong {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.16;
}

.gallery-final .honor-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-final .press-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-final .press-grid article {
  min-height: 210px;
  padding: 18px;
}

.gallery-final .press-grid strong {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-final .press-grid p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-final .media-press-grid article {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-final .press-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #e8edf0;
  border-bottom: 1px solid var(--line);
}

.gallery-final .press-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-final .press-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  content: "";
  background: linear-gradient(180deg, rgba(11, 18, 24, 0) 0%, rgba(11, 18, 24, 0.58) 100%);
  pointer-events: none;
}

.gallery-final .press-media figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-final .media-press-grid .press-body {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 18px;
}

.gallery-final .media-press-grid strong {
  margin-bottom: 14px;
}

.gallery-final .media-press-grid h3 {
  margin-bottom: 10px;
}

.gallery-final .media-press-grid p {
  margin-bottom: 16px;
}

.gallery-final .media-press-grid .press-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.gallery-final .media-press-grid .paper-link {
  min-height: 34px;
}

.gallery-final .lecture-panel {
  margin-top: 18px;
}

.gallery-final .lecture-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gallery-final .lecture-head h3 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-final .lecture-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.gallery-final .lecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-final .lecture-card {
  overflow: hidden;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery-final .lecture-card video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  object-fit: contain;
}

.gallery-final .lecture-body {
  padding: 16px;
}

.gallery-final .lecture-body h3 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.gallery-final .lecture-body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.gallery-final .video-player-card {
  overflow: hidden;
  border: 1px solid rgba(49, 95, 114, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 37, 42, 0.08);
}

.gallery-final .video-player-copy {
  padding: 20px 22px 22px;
}

.gallery-final .video-player-copy h2 {
  margin: 6px 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
}

.gallery-final .video-player-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.75;
}

.gallery-final .join-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--line);
}

.gallery-final .join-intro,
.gallery-final .join-cta {
  background: #fff;
}

.gallery-final .join-intro {
  padding: 24px;
}

.gallery-final .join-intro h2 {
  max-width: 780px;
}

.gallery-final .join-intro p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-final .join-cta {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.gallery-final .join-cta strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.gallery-final .join-cta p,
.gallery-final .join-cta span {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-final .recruit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-final .recruit-grid article {
  min-height: 172px;
  padding: 18px;
}

.gallery-final .recruit-grid strong {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-final .recruit-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-final .contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.42fr);
  gap: 26px;
  padding: 24px;
}

@media (max-width: 1000px) {
  .gallery-final .rail-nav {
    display: none;
  }

  .gallery-final .mobile-scroll-nav {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top, 0px));
    right: 10px;
    left: 10px;
    z-index: 46;
    display: flex;
    gap: 7px;
    max-width: calc(100vw - 20px);
    padding: 8px;
    overflow-x: auto;
    border: 1px solid rgba(49, 95, 114, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 16px 34px rgba(20, 37, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(16px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-final .mobile-scroll-nav::-webkit-scrollbar {
    display: none;
  }

  .gallery-final .mobile-scroll-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .gallery-final .mobile-scroll-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(49, 95, 114, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .gallery-final .mobile-scroll-nav a.is-active {
    border-color: rgba(160, 0, 0, 0.14);
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 18px rgba(160, 0, 0, 0.18);
  }

  .gallery-final .hero-content,
  .gallery-final .section-head,
  .gallery-final .media-layout,
  .gallery-final .profile-board,
  .gallery-final .lecture-head,
	  .gallery-final .join-card,
	  .gallery-final .cluster-card,
	  .gallery-final .contact-card {
	    grid-template-columns: 1fr;
	  }

  .gallery-final .thesis-grid,
  .gallery-final .evidence-grid,
  .gallery-final .key-publication-grid,
  .gallery-final .honor-strip,
  .gallery-final .press-grid,
  .gallery-final .recruit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

	  .gallery-final .cluster-media,
	  .gallery-final .cluster-media.single {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

	  .gallery-final .cluster-media.figure-panel {
	    grid-template-columns: 1fr;
	    grid-template-rows: 220px 78px;
	  }

	  .gallery-final .cluster-media.figure-panel.single-figure {
	    grid-template-rows: auto;
	  }

  .gallery-final .mobile-fold:not(.is-open) .fold-extra {
    display: none;
  }

  .gallery-final .fold-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 14px 0 24px;
    border: 1px solid rgba(49, 95, 114, 0.16);
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
  }

  .gallery-final .lecture-panel .fold-toggle {
    margin-bottom: 0;
  }

	  .gallery-final .single-figure .paper-shot {
	    height: auto;
	    min-height: 0;
	  }

	  .gallery-final .cluster-media figure,
	  .gallery-final .translation-plate {
	    height: 230px;
	    min-height: 0;
	  }

	  .gallery-final .cluster-media.figure-panel .paper-shot-main {
	    height: 220px;
	  }

	  .gallery-final .cluster-media.figure-panel.single-figure .paper-shot-main {
	    height: auto;
	  }

	  .gallery-final .cluster-media.figure-panel .paper-thumbs .paper-shot {
	    height: 78px;
	  }

  .gallery-final .portfolio-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gallery-final .hero {
    min-height: 640px;
    padding: 54px 0 42px;
    background-position: 50% 14%;
  }

  .gallery-final .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .gallery-final .hero-panel {
    display: none;
  }

  .gallery-final .directions,
  .gallery-final .portal-grid,
  .gallery-final .thesis-grid,
  .gallery-final .evidence-grid,
  .gallery-final .profile-facts,
  .gallery-final .gallery-grid,
  .gallery-final .key-publication-grid,
  .gallery-final .portfolio-preview,
  .gallery-final .honor-strip,
  .gallery-final .lecture-grid,
	  .gallery-final .press-grid,
	  .gallery-final .recruit-grid {
	    grid-template-columns: 1fr;
	  }

  .gallery-final .portal-band {
    padding: 12px 0;
  }

  .gallery-final .portal-grid {
    gap: 8px;
  }

  .gallery-final .portal-grid a {
    min-height: 70px;
    padding: 12px 14px;
  }

	  .gallery-final .cluster-media,
	  .gallery-final .cluster-media.single {
	    grid-template-columns: 1fr;
	  }

	  .gallery-final .cluster-media.figure-panel {
	    grid-template-rows: 210px 76px;
	  }

	  .gallery-final .cluster-media.figure-panel.single-figure {
	    grid-template-rows: auto;
	  }

	  .gallery-final .single-figure .paper-shot {
	    height: auto;
	  }

	  .gallery-final .cluster-media figure,
	  .gallery-final .translation-plate {
	    height: 210px;
	    min-height: 0;
	  }

	  .gallery-final .cluster-media.figure-panel .paper-shot-main {
	    height: 210px;
	  }

	  .gallery-final .cluster-media.figure-panel.single-figure .paper-shot-main {
	    height: auto;
	  }

	  .gallery-final .cluster-media.figure-panel .paper-thumbs .paper-shot {
	    height: 76px;
	  }
	}

/* Product Design homepage mobile quick navigation */
.pd-home .mobile-scroll-nav {
  display: none;
}

@media (max-width: 1000px) {
  .pd-home .mobile-scroll-nav {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top, 0px));
    right: 10px;
    left: 10px;
    z-index: 46;
    display: flex;
    gap: 7px;
    max-width: calc(100vw - 20px);
    padding: 8px;
    overflow-x: auto;
    border: 1px solid rgba(49, 95, 114, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 16px 34px rgba(20, 37, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(16px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pd-home .mobile-scroll-nav::-webkit-scrollbar {
    display: none;
  }

  .pd-home .mobile-scroll-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pd-home .mobile-scroll-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(49, 95, 114, 0.12);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }

  .pd-home .mobile-scroll-nav a.is-active {
    border-color: var(--red);
    background: rgba(160, 0, 0, 0.08);
    color: var(--red);
  }
}
