/* Career-first editorial layout. The existing gallery and Agent stay intact. */
.editorial-page {
  --editorial-rail: 200px;
  --canvas: #fff;
  --paper: #fff;
  --ink: #111317;
  --body: #3f4652;
  --muted: #6b7280;
  --line: #e3e6eb;
  --accent: #252b35;
  --link: #35435a;
  --sans: Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.editorial-page .academic-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.editorial-sidebar {
  position: fixed;
  inset: 24px auto 24px 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--editorial-rail);
  padding: 0 30px;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow-y: auto;
}

.editorial-page .workspace-nav {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.editorial-page .workspace-nav a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 0;
  background: transparent;
  color: #687080;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

.editorial-page .workspace-nav a:hover,
.editorial-page .workspace-nav a.active {
  background: transparent;
  color: var(--ink);
}

.editorial-page .workspace-nav a.active { font-weight: 600; }
.editorial-page .workspace-nav a.active::after {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 2px;
  height: auto;
  border-radius: 0;
  background: var(--ink);
}

.editorial-utilities { margin-top: auto; padding: 24px 12px 0; }
.editorial-page .profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
}
.editorial-page .profile-links a,
.editorial-page .profile-links button,
.editorial-agent-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-height: 25px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #606b7e;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.editorial-page .profile-links a:hover,
.editorial-page .profile-links button:hover,
.editorial-agent-link:hover { color: #111; text-decoration: underline; text-underline-offset: 4px; }
.editorial-agent-link { width: 100%; padding-top: 17px; border-top: 1px solid var(--line); }
.editorial-page :focus-visible { outline: 2px solid #67758a; outline-offset: 5px; }

.editorial-page .workspace-main {
  display: block;
  min-width: 0;
  width: calc(100% - var(--editorial-rail));
  max-width: 1660px;
  margin: 0 0 0 var(--editorial-rail);
  padding: 42px 28px 24px;
}
.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: 42px;
  padding: 0 0 15px 16px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.hero-copy h1 {
  margin: 0;
  color: #08090b;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 600;
  letter-spacing: -2.8px;
  line-height: 1.12;
}
.hero-copy h1 span { display: inline-block; margin-left: 10px; font-size: .7em; font-weight: 500; letter-spacing: -1.3px; }
.hero-copy .hero-role { margin: 14px 0 0; color: #737b89; font-size: clamp(17px, 1.85vw, 27px); line-height: 1.35; }
.hero-copy .hero-lead { max-width: 760px; margin: 25px 0 0; color: #414a58; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; text-wrap: pretty; }
.hero-copy .hero-lead a { color: inherit; text-decoration-color: #a7afbb; text-underline-offset: 4px; }
.hero-copy .hero-lead a:hover { color: #111; text-decoration-color: currentColor; }
.hero-copy .hero-focus { margin: 17px 0 0; color: #737b89; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.4; }
.editorial-page .hero-portrait {
  grid-area: auto;
  width: 240px;
  height: 240px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f4f4f3;
}
.editorial-page .hero-portrait picture,
.editorial-page .hero-portrait img { display: block; width: 100%; height: 100%; }
.editorial-page .hero-portrait img { object-fit: cover; object-position: center; }

.editorial-page .content-card,
.editorial-page .news-card {
  position: static;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  scroll-margin-top: 28px;
}
.editorial-page .card-heading { display: block; margin: 0; padding: 22px 0 14px; }
.editorial-page .card-heading::after { display: none; }
.editorial-page .section-index { display: none; }
.editorial-page .card-heading h2,
.editorial-page .card-heading h1 {
  margin: 0;
  color: #111;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.65px;
  line-height: 1.25;
  text-transform: none;
}
.editorial-page .content-card p { color: var(--body); }
.editorial-page .content-card a { color: var(--link); text-decoration-color: #9da6b2; text-underline-offset: 3px; }
.editorial-page .content-card strong { color: inherit; font-weight: 600; }

.experience-item { position: relative; padding: 14px 0; border-top: 1px solid var(--line); }
.experience-item:first-child { padding-top: 0; border-top: 0; }
.experience-copy {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  column-gap: 26px;
  padding-right: 0;
}
.experience-copy > h3 { grid-column: 1; grid-row: 1 / span 3; margin: 0; color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 600; }
.experience-copy > .experience-role { grid-column: 2; margin: 0; padding-right: 174px; color: #363e4c; font-size: 17px; line-height: 1.4; }
.experience-copy > .experience-intro { grid-column: 2; margin: 5px 0 0; padding-right: 174px; color: #717989; font-size: 14px; line-height: 1.45; }
.experience-date { position: absolute; top: 14px; right: 0; margin: 0; color: #687180; font-size: 14px; line-height: 1.7; white-space: nowrap; }
.experience-item:first-child .experience-date { top: 0; }
.editorial-page .experience-copy > .experience-details { grid-column: 1 / -1; display: block; margin: 0; padding: 0; border: 0; }
.experience-details > summary { position: absolute; left: 0; top: 42px; width: fit-content; color: #707888; font-size: 12px; cursor: pointer; }
.experience-item:first-child .experience-details > summary { top: 28px; }
.editorial-page .experience-copy > .experience-details[open] { margin-top: 20px; }
.experience-details[open] > summary { margin-bottom: 12px; }
.editorial-page .experience-details .career-projects { margin: 0; padding: 0 0 0 17px; color: #5b6473; font-size: 14px; line-height: 1.65; }
.career-projects li + li { margin-top: 10px; }
.editorial-page .experience-details h4 { margin: 18px 0 8px; font-size: 14px; color: #444e5c; }
.earlier-career { padding: 12px 0 18px; border-top: 1px solid var(--line); }
.earlier-career > summary { width: fit-content; color: #777f8d; font-size: 12px; cursor: pointer; }
.earlier-career[open] > summary { margin-bottom: 20px; }

.editorial-page .publication-list { display: block; }
.editorial-page .publication-card {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 28px;
  align-items: start;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}
.editorial-page .publication-card:first-child { border-top: 0; padding-top: 5px; }
.editorial-page .publication-card:hover { border-color: var(--line); background: #fff; box-shadow: none; transform: none; }
.editorial-page .publication-card-no-image { grid-template-columns: minmax(0, 1fr); }
.editorial-page .publication-card-figure {
  grid-area: auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}
.editorial-page .publication-card-figure picture,
.editorial-page .publication-card-figure img { display: block; width: 100%; height: auto; min-height: 0; max-height: 210px; object-fit: contain; object-position: top center; }
.editorial-page .publication-figure-caption { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.editorial-page .publication-card-figure-pending {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 3 / 2;
  max-height: 210px;
  border: 1px solid #e9edf2;
  border-radius: 6px;
  background: #f6f8fb;
}
.editorial-page .publication-card-figure-pending picture,
.editorial-page .publication-card-figure-pending img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.editorial-page .publication-figure-pending-label { position: relative; z-index: 1; max-width: 100%; padding: 0 16px; color: #4f5d73; font-size: 14px; font-weight: 400; line-height: 1.5; text-align: center; }
.publication-body { min-width: 0; }
.editorial-page .publication-card h3 { margin: 0 0 7px; color: #171a20; font-size: 19px; font-weight: 600; letter-spacing: -.15px; line-height: 1.4; }
.editorial-page .publication-card h3 a { color: inherit; font-weight: inherit; text-decoration: none; }
.editorial-page .publication-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.editorial-page .publication-card h3 a::after { display: none; }
.editorial-page .publication-card-linked { cursor: default; }
.editorial-page .publication-card h3 a:focus-visible { outline: 2px solid #67758a; outline-offset: 4px; }
.editorial-page .publication-card .publication-authors { margin: 0; color: #6b7280; font-size: 14px; line-height: 1.55; }
.publication-metadata { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0; }
.editorial-page .publication-card .status-label,
.editorial-page .publication-card .publication-meta { grid-area: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #7b818c; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.editorial-page .publication-card .status-label { color: #4c5665; font-weight: 600; }
.editorial-page .publication-card .publication-summary { margin: 8px 0 0; color: #626c7a; font-size: 14px; line-height: 1.6; }
.editorial-page .publication-inline-link { position: relative; z-index: 1; }
.editorial-page .publication-card-linked:focus-within { outline: none; }
.editorial-page .patents-block { margin-top: 6px; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.editorial-page .patents-block h3 { color: #23272e; font-size: 18px; }
.editorial-page .patents-block li { display: flex; align-items: baseline; gap: 20px; padding: 7px 0; border: 0; font-size: 14px; }
.editorial-page .patents-block li span { flex: 0 0 90px; color: #777f8c; }

.editorial-page .research-thesis { max-width: 850px; margin-bottom: 22px; font-size: 16px; }
.editorial-page .research-core-grid { margin: 0 0 24px; }
.editorial-page .research-core-item { padding: 0 24px; }
.editorial-page .research-core-item h3 { color: #252b35; }
.editorial-page .research-core-index { display: none; }
.editorial-page .research-progress { padding: 16px 0 24px; background: #fff; }
.editorial-page .research-progress-label { color: #737b89; }
.editorial-page .about-card { padding: 22px 0; }
.about-details > summary { width: fit-content; color: #323b49; font-size: 17px; font-weight: 600; cursor: pointer; }
.about-details-copy { max-width: 980px; padding-top: 20px; }
.about-details-copy p { margin: 0 0 16px; }
.editorial-page .about-lead { font-size: 20px; }
.editorial-page .research-project-list,
.editorial-page .education-card > .experience-details { display: block; padding: 0 0 20px; }
.editorial-page .research-project,
.editorial-page .education-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; padding: 17px 0; border-top: 1px solid var(--line); }
.editorial-page .research-project:first-child,
.editorial-page .education-item:first-child { border-top: 0; padding-top: 3px; }
.editorial-page .research-project h3,
.editorial-page .education-item h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 600; }
.editorial-page .research-project p,
.editorial-page .education-item p { margin: 0; color: #657080; font-size: 14px; }
.editorial-page .research-project .career-date,
.editorial-page .education-item .education-date { color: #737b89; font-size: 13px; }
.editorial-page .education-item .education-degree { color: #3c4655; margin-bottom: 6px; }
.editorial-page .news-card { padding: 22px 0; }
.editorial-page .news-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.editorial-page .news-heading h2 { margin: 0; color: var(--ink); font-size: 27px; font-weight: 600; letter-spacing: -.6px; }
.editorial-page .news-count { color: #78818f; font-size: 12px; white-space: nowrap; }
.editorial-page .news-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.editorial-page .news-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; }
.editorial-page .news-item div { align-items: baseline; align-content: start; gap: 10px; }
.editorial-page .news-item time,
.editorial-page .news-item span { padding: 0; border: 0; background: none; color: #78818f; font-size: 12px; }
.editorial-page .news-item p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.55; }
.editorial-page .news-archive > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 4px 0; color: #4b5769; font-size: 13px; font-weight: 500; cursor: pointer; list-style: none; }
.editorial-page .news-archive > summary::-webkit-details-marker { display: none; }
.editorial-page .news-collapse-label { display: none; }
.editorial-page .news-archive[open] .news-expand-label { display: none; }
.editorial-page .news-archive[open] .news-collapse-label { display: inline; }
.editorial-page .news-toggle-icon { color: #78818f; font-size: 20px; line-height: 1; transition: transform 180ms ease; }
.editorial-page .news-archive[open] .news-toggle-icon { transform: rotate(45deg); }
.editorial-page .site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 0; color: #8a909b; font-size: 12px; text-align: left; }

.agent-dialog {
  width: min(660px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  color: var(--body);
  background: #fff;
  box-shadow: 0 20px 90px #11182720;
  overscroll-behavior: contain;
}
.agent-dialog::backdrop { background: #1c253452; backdrop-filter: blur(3px); }
html:has(.agent-dialog[open]) { overflow: hidden; }
.agent-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.agent-dialog-heading h2 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 600; }
.agent-dialog-heading button { padding: 5px 0 5px 12px; border: 0; background: none; color: #687180; font: inherit; font-size: 14px; cursor: pointer; }
.agent-dialog .xinyu-agent { margin: 0; padding: 0; border: 0; background: #fff; }
.agent-dialog .agent-toolbar { margin-bottom: 12px; }
.agent-dialog .agent-toggle { display: none; }
.agent-dialog .agent-brand h3 { font-size: 14px; }
.agent-dialog .agent-brand > i { color: #5b6c82; }
.agent-dialog .agent-panel { padding-top: 0; }
.agent-dialog .agent-question p,
.agent-dialog .agent-response [data-agent-answer] { font-size: 15px; }
.agent-dialog .agent-response { max-height: min(42dvh, 430px); overflow: auto; }
.agent-dialog .agent-sources a { color: #465a76; font-size: 12px; }
.agent-dialog .agent-sources a { display: inline-flex; align-items: center; min-height: 24px; }
.agent-dialog .agent-form { margin-top: 18px; min-height: 46px; }
.agent-dialog .agent-form input { font-size: 16px; }
.agent-dialog .agent-grounding { margin-top: 10px; }

.editorial-page.life-page .workspace-main { max-width: none; padding-top: 32px; }
.editorial-page .beyond-card { border: 0; }
.editorial-page .beyond-card .card-heading { padding-top: 0; }
.editorial-page .beyond-card > p { color: #737b89; font-size: 15px; margin-bottom: 26px; }
.editorial-page .life-gallery { display: block; padding: 0; border-radius: 0; background: #fff; }
.editorial-page .life-gallery-batch { gap: 6px; margin-top: 0; border-radius: 0; background: #fff; }
.editorial-page .life-gallery-batch + .life-gallery-batch { margin-top: 6px; }
.life-photo--focal-boardwalk { object-position: 50% 65%; }
.life-photo--focal-vegas { object-position: 50% 55%; }
.editorial-page .life-tile { border-radius: 0; }

/* Keep the new batch rectangular without letting older images fill its gaps. */
@media (min-width: 1200px) {
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(4) { grid-column: span 3; grid-row: span 4; }
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(5) { grid-column: span 5; grid-row: span 4; }
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(6) { grid-column: span 4; grid-row: span 4; }
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(14),
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(15) { grid-column: span 6; grid-row: span 3; }
}

@media (min-width: 601px) and (max-width: 1199px) {
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(n + 4) { grid-column: span 2; grid-row: span 4; }
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(7),
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(8),
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(9) { grid-row: span 2; }
}

@media (min-width: 1700px) {
  .editorial-page .workspace-main { padding-right: 64px; padding-left: 56px; }
  .editorial-hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 65px; }
  .editorial-page .hero-portrait { width: 320px; height: 320px; }
}

@media (min-width: 841px) and (max-width: 1150px) {
  .editorial-page { --editorial-rail: 174px; }
  .editorial-sidebar { padding-right: 20px; padding-left: 20px; }
  .editorial-page .workspace-main { padding: 38px 28px 24px; }
  .editorial-hero { grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; padding-left: 0; }
  .editorial-page .hero-portrait { width: 180px; height: 210px; }
  .hero-copy h1 { font-size: 42px; letter-spacing: -1.6px; }
  .hero-copy .hero-lead { margin-top: 22px; font-size: 16px; }
  .hero-copy .hero-focus { font-size: 16px; }
  .experience-copy { grid-template-columns: minmax(165px, 32%) minmax(0, 1fr); padding-right: 0; gap: 0 20px; }
  .experience-copy > h3 { grid-row: 1 / span 4; }
  .experience-copy > .experience-role { padding-top: 24px; }
  .experience-copy > .experience-role,
  .experience-copy > .experience-intro { padding-right: 0; }
  .experience-details > summary,
  .experience-item:first-child .experience-details > summary { position: static; }
  .editorial-page .experience-copy > .experience-details { grid-column: 2; margin-top: 6px; }
  .experience-date { left: calc(32% + 14px); right: auto; font-size: 12px; }
  .editorial-page .publication-card { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
  .editorial-page .publication-card-no-image { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 840px) {
  html { scroll-padding-top: 120px; }
  .editorial-sidebar { position: sticky; inset: auto; top: 0; display: block; width: 100%; padding: 0 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .editorial-page .workspace-nav { flex-direction: row; gap: 21px; overflow-x: auto; padding: 7px 0; scrollbar-width: none; }
  .editorial-page .workspace-nav::-webkit-scrollbar { display: none; }
  .editorial-page .workspace-nav a { flex-shrink: 0; min-height: 44px; padding: 12px 0; font-size: 13px; }
  .editorial-page .workspace-nav a.active::after { inset: auto 0 3px; width: auto; height: 1px; }
  .editorial-utilities { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0; padding: 4px 0 10px; }
  .editorial-page .profile-links { flex-direction: row; gap: 15px; padding: 0; overflow-x: auto; }
  .editorial-page .profile-links a,
  .editorial-page .profile-links button { flex-shrink: 0; min-height: 44px; font-size: 12px; }
  .editorial-agent-link { flex-shrink: 0; width: auto; min-height: 44px; padding: 0; border: 0; font-size: 12px; }
  .editorial-page .workspace-main { width: 100%; max-width: none; margin-left: 0; padding: 32px 26px 22px; }
  .editorial-hero { grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; padding-left: 0; }
  .editorial-page .hero-portrait { width: 180px; height: 210px; }
  .hero-copy h1 { font-size: 42px; letter-spacing: -1.7px; }
  .hero-copy .hero-role { font-size: 17px; }
  .hero-copy .hero-lead { margin-top: 25px; font-size: 17px; }
  .hero-copy .hero-focus { font-size: 16px; }
  .experience-copy { grid-template-columns: 35% minmax(0, 1fr); padding-right: 0; gap: 0 24px; }
  .experience-copy > h3 { grid-row: 1 / span 4; font-size: 16px; }
  .experience-copy > .experience-role { padding-top: 22px; font-size: 16px; }
  .experience-copy > .experience-role,
  .experience-copy > .experience-intro { padding-right: 0; }
  .experience-details > summary,
  .experience-item:first-child .experience-details > summary { position: static; }
  .editorial-page .experience-copy > .experience-details { grid-column: 2; margin-top: 6px; }
  .experience-date { left: calc(35% + 16px); right: auto; font-size: 12px; }
  .editorial-page .publication-card { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .editorial-page .publication-card-no-image { grid-template-columns: minmax(0, 1fr); }
  .editorial-page .publication-card h3 { font-size: 18px; }
  .editorial-page .research-project,
  .editorial-page .education-item { grid-template-columns: 135px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 600px) {
  .editorial-sidebar { padding: 0 20px; }
  .editorial-page .workspace-nav { gap: 12px; }
  .editorial-page .profile-links a:last-child { display: none; }
  .editorial-page .workspace-main,
  .editorial-page.life-page .workspace-main { padding: 28px 20px 20px; }
  .editorial-hero { grid-template-columns: minmax(0, 1fr) 104px; gap: 18px; padding-bottom: 26px; }
  .editorial-page .hero-portrait { width: 104px; height: 122px; }
  .hero-copy h1 { font-size: 34px; letter-spacing: -1.3px; line-height: 1.1; }
  .hero-copy h1 span { display: block; margin: 9px 0 0; font-size: 22px; letter-spacing: 0; }
  .hero-copy .hero-role { margin-top: 17px; font-size: 14px; line-height: 1.5; }
  .hero-copy .hero-lead { margin-top: 22px; font-size: 16px; line-height: 1.75; }
  .hero-copy .hero-focus { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .hero-copy { display: contents; }
  .hero-copy h1,
  .hero-copy .hero-role { grid-column: 1; }
  .hero-copy .hero-role { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .editorial-page .hero-portrait { grid-column: 2; grid-row: 1; }
  .hero-copy .hero-lead,
  .hero-copy .hero-focus { grid-column: 1 / -1; margin-top: 0; }
  .editorial-page .card-heading { padding: 22px 0 16px; }
  .editorial-page .card-heading h2,
  .editorial-page .card-heading h1 { font-size: 24px; letter-spacing: -.5px; }
  .experience-item { padding: 18px 0; }
  .experience-copy { display: block; }
  .experience-copy > h3 { margin-right: 0; font-size: 16px; }
  .experience-date,
  .experience-item:first-child .experience-date { position: static; margin: 0 0 7px; font-size: 12px; }
  .experience-copy > .experience-role { margin-top: 5px; padding-top: 0; font-size: 14px; }
  .experience-copy > .experience-intro { margin-top: 6px; font-size: 14px; }
  .editorial-page .experience-copy > .experience-details { margin-top: 9px; }
  .editorial-page .experience-details .career-projects { font-size: 14px; }
  .editorial-page .publication-card { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 24px 0; }
  .editorial-page .publication-card-figure { width: 100%; margin: 0; }
  .editorial-page .publication-card-figure picture,
  .editorial-page .publication-card-figure img { max-height: 230px; }
  .editorial-page .publication-card h3 { font-size: 18px; }
  .editorial-page .publication-card .publication-authors { font-size: 13px; }
  .editorial-page .publication-card .publication-summary { font-size: 14px; }
  .editorial-page .patents-block li { gap: 15px; font-size: 13px; }
  .editorial-page .patents-block li span { flex-basis: 70px; font-size: 12px; }
  .editorial-page .research-core-grid { display: block; margin-bottom: 12px; }
  .editorial-page .research-core-item { margin: 0; padding: 13px 0; border-left: 0; border-top: 1px solid var(--line); }
  .editorial-page .research-core-item:first-child { border-top: 0; padding-top: 0; }
  .editorial-page .research-core-item h3 { margin-bottom: 4px; }
  .editorial-page .research-progress { display: block; }
  .editorial-page .research-progress-items { margin-top: 6px; }
  .editorial-page .research-project,
  .editorial-page .education-item { display: block; }
  .editorial-page .research-project .career-date,
  .editorial-page .education-item .education-date { margin-bottom: 6px; }
  .editorial-page .news-list { display: block; }
  .editorial-page .news-heading h2 { font-size: 24px; letter-spacing: -.5px; }
  .editorial-page .news-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .editorial-page .site-footer { display: block; }
  .editorial-page .site-footer p + p { margin-top: 5px; }
  .agent-dialog { padding: 20px; max-height: calc(100dvh - 24px); }
  .agent-dialog .agent-response { max-height: 40dvh; }
  .editorial-page .life-gallery-batch { gap: 4px; }
  .editorial-page .life-gallery-batch + .life-gallery-batch { margin-top: 4px; }
  .editorial-page .life-gallery-batch--latest > .life-tile:nth-child(5) { aspect-ratio: 3 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .editorial-page *,
  .editorial-page *::before,
  .editorial-page *::after { animation: none !important; transition: none !important; }
}

/* Restrained reading feedback; no framework, looping animation or hidden content. */
.editorial-skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; transform: translateY(-180%); padding: 10px 16px; background: #fff; color: #111; border: 1px solid #d8dde4; border-radius: 4px; }
.editorial-skip-link:focus { transform: none; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 2px; background: #53647c; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.back-to-top { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce1e7; border-radius: 50%; background: #fffffff2; color: #4c586b; font-size: 21px; box-shadow: 0 3px 16px #1c25340a; cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.back-to-top[hidden], .reading-progress[hidden] { display: none; }
.back-to-top:hover { color: #111; background: #f6f8fa; transform: translateY(-2px); }
.editorial-page .workspace-nav a { transition: color 180ms ease; }
.editorial-agent-link span { display: inline-block; transition: transform 180ms ease; }
.editorial-agent-link:hover span { transform: translate(2px, -2px); }
.editorial-page .publication-card h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 180ms ease, color 180ms ease; }
.editorial-page .publication-card h3 a:hover { color: #344763; text-decoration-color: currentColor; }
.editorial-page details > summary { border-radius: 3px; transition: color 180ms ease; }
.editorial-page details > summary:hover { color: #111; }
.editorial-page details[open] > .career-projects,
.editorial-page details[open] > .experience-team,
.editorial-page details[open] > .about-details-copy,
.editorial-page details[open] > .news-list,
.editorial-page .agent-dialog[open] { animation: editorial-disclosure-in 220ms cubic-bezier(.2,.7,.2,1); }
@keyframes editorial-disclosure-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.editorial-page .publication-card-figure,
.editorial-page .life-tile { position: relative; }
.figure-expand { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.figure-expand::after { content: "↗"; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dce1e7; border-radius: 4px; background: #fffffff2; color: #4c586b; font-size: 18px; opacity: 0; transform: translateY(3px); transition: opacity 180ms ease, transform 180ms ease; }
.figure-expand:hover::after,
.figure-expand:focus-visible::after { opacity: 1; transform: none; }
.editorial-page .figure-expand:focus-visible { outline-offset: -3px; }
.figure-viewer { width: min(1180px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 20px; border: 1px solid #dce1e7; border-radius: 8px; background: #fff; color: #303b4b; box-shadow: 0 20px 90px #11182720; overscroll-behavior: contain; }
.figure-viewer::backdrop { background: #182130a6; backdrop-filter: blur(4px); }
html:has(.figure-viewer[open]) { overflow: hidden; }
.figure-viewer-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 16px; }
.figure-viewer h2 { margin: 0; color: #303b4b; font-size: 15px; line-height: 1.5; font-weight: 500; }
.figure-viewer button { flex-shrink: 0; min-height: 32px; padding: 0 4px 0 12px; border: 0; background: none; color: #667286; font: inherit; font-size: 14px; cursor: pointer; }
.figure-viewer img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain; }
.figure-viewer[open] { animation: editorial-disclosure-in 180ms ease; }
@media (hover: none) { .figure-expand::after { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .editorial-page details > summary { min-height: 36px; padding-top: 8px; padding-bottom: 8px; }
  .figure-viewer { width: calc(100% - 20px); padding: 14px; }
  .figure-viewer-heading { gap: 12px; }
}

/* Quiet Invitation: centered editable type and one tactile, optional entrance. */
.site-entry {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #08090b;
  font: inherit;
  overflow: auto;
  overscroll-behavior: contain;
}
.site-entry:not([open]) { display: none; }
.site-entry::backdrop { background: transparent; }
html:has(.site-entry[open]) { overflow: hidden; }
.entry-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; width: 100%; padding: max(40px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom)); text-align: center; font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.entry-header { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.entry-identity { min-width: 0; max-width: 100%; }
.entry-center h2 { margin: 0; color: #08090b; font-size: clamp(60px, 6.73vw, 100px); line-height: 1.05; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; }
.entry-chinese { margin: 12px 0 0; color: #08090b; font-size: 40px; line-height: 1.2; font-weight: 500; letter-spacing: .02em; }
.entry-affiliation { margin-top: 68px; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.entry-role { margin: 0; color: #25262a; font-size: 28px; line-height: 1.35; font-weight: 400; }
.entry-company { margin: 6px 0 0; color: #5b5c60; font-size: 22px; line-height: 1.4; }
.entry-footer { display: flex; flex-direction: column; align-items: center; max-width: 100%; margin-top: 24px; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
.entry-research { margin: 0; color: #5b5c60; font-size: 20px; line-height: 1.4; text-align: center; text-wrap: balance; }
.entry-enter { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 20px; width: 356px; max-width: 100%; min-height: 80px; margin: 44px 0 0; padding: 16px 32px; border: 0; border-radius: 999px; background: #0c0d0e; color: #fff; font: inherit; font-size: 24px; font-weight: 600; line-height: 1.3; cursor: pointer; touch-action: manipulation; transition: background-color 180ms ease, transform 220ms cubic-bezier(.22,1,.36,1); }
.entry-arrow { display: inline-flex; align-items: center; justify-content: center; background: none; color: inherit; }
.entry-enter i { display: inline-block; font-size: 1.08em; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) {
  .entry-enter:hover { background: #25262a; transform: translateY(-2px); }
  .entry-enter:hover i { transform: translateX(4px); }
}
.entry-enter:active { transform: scale(.98); }
.entry-enter:focus { outline: none; }
.site-entry[data-entry-keyboard="true"] .entry-enter:focus-visible { outline: 2px solid #747579; outline-offset: 6px; }
.entry-enter:focus:not(:focus-visible) { outline: none; }
@media (max-width: 1000px) {
  .entry-center { padding-top: max(40px, env(safe-area-inset-top)); }
  .entry-chinese { font-size: 34px; }
  .entry-role { font-size: 24px; }
  .entry-company { font-size: 19px; }
  .entry-research { font-size: 17px; }
  .entry-enter { width: 300px; min-height: 64px; margin-top: 36px; font-size: 20px; }
}
@media (max-width: 600px) {
  .entry-center { padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom)); }
  .entry-center h2 { font-size: clamp(36px, 11.3vw, 58px); letter-spacing: -.04em; }
  .entry-chinese { font-size: 28px; }
  .entry-affiliation { margin-top: 28px; }
  .entry-role { font-size: 20px; }
  .entry-company { font-size: 16px; }
  .entry-footer { margin-top: 24px; }
  .entry-research { max-width: 330px; font-size: 14px; line-height: 1.7; }
  .entry-enter { width: 248px; min-height: 56px; gap: 16px; margin-top: 32px; padding: 12px 24px; font-size: 17px; }
}
@media (max-height: 600px) {
  .entry-center { padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .entry-center h2 { font-size: clamp(36px, 6vw, 52px); }
  .entry-chinese { font-size: 26px; }
  .entry-affiliation { margin-top: 20px; }
  .entry-role { font-size: 20px; }
  .entry-company { margin-top: 4px; font-size: 16px; }
  .entry-footer { margin-top: 20px; }
  .entry-research { font-size: 14px; }
  .entry-enter { min-height: 56px; margin-top: 24px; padding: 12px 24px; font-size: 17px; }
}
@media (max-height: 600px) and (max-width: 600px) {
  .entry-center h2 { font-size: clamp(36px, 11.3vw, 52px); }
  .entry-enter { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-enter, .entry-enter i { transition: none; }
  .entry-enter:hover, .entry-enter:active, .entry-enter:hover i { transform: none; }
}
