* {
  box-sizing: border-box;
}

:root {
  --ink: #151310;
  --ink-soft: #3c362f;
  --muted: #6b6258;
  --paper: #f3eee4;
  --surface: #fffdf8;
  --surface-cool: #eef4f2;
  --line: #ded5c8;
  --accent: #b33a2e;
  --accent-dark: #7f241d;
  --teal: #0f5f6b;
  --gold: #d9a441;
  --shadow: 0 20px 60px rgba(21, 19, 16, 0.09);
  --max: 1180px;
  --header: 72px;
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

section,
#top {
  scroll-margin-top: calc(var(--header) + 24px);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(21, 19, 16, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 132px;
}

.brand img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
}

.hero {
  max-width: none;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: calc(var(--header) + 62px) clamp(24px, 6vw, 84px) 96px;
  overflow: hidden;
  background: var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 19, 16, 0.78) 0%, rgba(21, 19, 16, 0.48) 43%, rgba(21, 19, 16, 0.1) 100%),
    linear-gradient(0deg, rgba(21, 19, 16, 0.68) 0%, rgba(21, 19, 16, 0.04) 52%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  color: var(--surface);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin-top: 20px;
  max-width: 900px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.96;
  font-size: clamp(54px, 6.5vw, 96px);
  color: var(--surface);
}

.hero-lede {
  max-width: 760px;
  margin-top: 28px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 700;
}

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

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

.hero .button.secondary {
  color: var(--surface);
  background: rgba(255, 253, 248, 0.08);
}

.button.secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-media {
  margin: 0;
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--ink);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.proof-band {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 48px), var(--max));
  margin: -48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-band div {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
}

.proof-band span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  max-width: 220px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.section-intro h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-intro p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
}

.sticky-intro {
  position: sticky;
  top: calc(var(--header) + 32px);
}

.centered {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.wide-intro {
  max-width: 920px;
  margin-bottom: 40px;
}

.research-stack {
  display: grid;
  gap: 28px;
}

.research-themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.research-themes article {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.research-themes article:last-child {
  border-right: 0;
}

.research-themes span,
.project-year,
.member-role,
.publication-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.research-themes h3 {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.2;
}

.research-themes p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
}

.project-item:hover {
  background: var(--surface);
  border-color: rgba(179, 58, 46, 0.42);
}

.project-item p {
  color: var(--ink-soft);
}

.team-section {
  border-top: 1px solid var(--line);
}

.leader-panel {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 32px;
  padding: 32px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 28px 80px rgba(21, 19, 16, 0.16);
}

.leader-panel h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
}

.leader-panel p,
.leader-panel dd {
  color: rgba(255, 253, 248, 0.76);
}

.leader-panel dl {
  margin: 0;
  display: grid;
  gap: 20px;
}

.leader-panel dt {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e4a199;
}

.leader-panel dd {
  margin: 6px 0 0;
}

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

.profile-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 253, 248, 0.25);
  color: var(--surface);
  text-decoration: none;
}

.profile-links a:hover {
  border-color: #e4a199;
  color: #e4a199;
}

.member-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 48px 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.member-toolbar h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
}

.member-toolbar p {
  color: var(--muted);
}

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

.member-card {
  min-height: 116px;
  padding: 20px;
  background: var(--surface);
}

.member-name {
  display: inline-block;
  font-size: 19px;
  font-weight: 750;
}

.member-card a {
  text-decoration: none;
}

.member-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.member-role {
  display: block;
  margin-top: 12px;
}

.alumni-panel,
.recruitment-panel {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface-cool);
  border: 1px solid #c6d7d3;
}

.alumni-panel h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}

.alumni-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.alumni-list a {
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid #c6d7d3;
  text-decoration: none;
}

.recruitment-panel {
  background: var(--surface);
  border-color: var(--accent);
}

.recruitment-panel h3 {
  color: var(--accent);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.recruitment-panel p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  display: grid;
  grid-template-rows: 230px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card figure {
  margin: 0;
  background: #ebe7df;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform 260ms ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-card div {
  padding: 20px;
}

.product-card h3 {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.12;
  font-weight: 400;
}

.product-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.sizechina-section {
  background: var(--ink);
  color: var(--surface);
  padding: 112px 24px;
}

.sizechina-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.sizechina-logo {
  width: min(360px, 80vw);
  padding: 18px;
  background: var(--surface);
}

.sizechina-copy h2 {
  margin-top: 32px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 400;
}

.sizechina-copy p {
  margin-top: 24px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 18px;
}

.sizechina-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.sizechina-points span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  color: #f0b4ad;
  font-family: var(--mono);
  font-size: 12px;
}

.sizechina-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sizechina-media img {
  height: 360px;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 253, 248, 0.18);
}

.startup-section {
  padding: 96px 24px;
  background: var(--surface-cool);
  border-bottom: 1px solid #c6d7d3;
}

.startup-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.startup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 5vw, 52px);
  color: var(--surface);
  background: var(--ink);
  box-shadow: 0 28px 80px rgba(21, 19, 16, 0.16);
}

.startup-panel h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.startup-panel h3 a {
  text-decoration: none;
}

.startup-panel h3 a:hover {
  color: #f0b4ad;
}

.startup-panel p:not(.eyebrow) {
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 18px;
}

.startup-panel dl {
  margin: 0;
  display: grid;
  gap: 20px;
  align-content: end;
}

.startup-panel dt {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e4a199;
  font-weight: 700;
}

.startup-panel dd {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

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

.source-note {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
}

.publication-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(21, 19, 16, 0.06);
}

.search-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

#publication-search {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-size: 17px;
}

#publication-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.year-filters button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--mono);
}

.year-filters button:hover,
.year-filters button.is-active {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.publication-count {
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-list {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
}

.publication-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--surface);
}

.publication-item p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.publication-item a {
  color: var(--ink);
  text-decoration: none;
}

.publication-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.publication-empty {
  padding: 32px;
  background: var(--surface);
  color: var(--muted);
}

.contact-section {
  padding: 80px 24px;
  background: var(--accent);
  color: var(--surface);
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.55fr 0.45fr;
  gap: 36px;
  align-items: end;
}

.contact-inner .eyebrow {
  color: #ffe3de;
}

.contact-inner h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 400;
}

.contact-inner address {
  font-style: normal;
  color: rgba(255, 253, 248, 0.82);
  font-size: 18px;
}

.site-footer {
  min-height: 110px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 48px);
  background: var(--ink);
  color: rgba(255, 253, 248, 0.72);
}

.site-footer img {
  height: 30px;
  filter: brightness(1.4);
}

.site-footer p {
  max-width: 620px;
  text-align: right;
  font-size: 14px;
}

@media (max-width: 980px) {
  :root {
    --header: 64px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 18px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 0 4px;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .split-section,
  .leader-panel,
  .sizechina-inner,
  .startup-inner,
  .startup-panel,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 720px;
    padding: calc(var(--header) + 72px) 28px 96px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(48px, 10vw, 76px);
  }

  .hero-media {
    min-height: 0;
  }

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

  .proof-band div:nth-child(2) {
    border-right: 0;
  }

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

  .sticky-intro {
    position: static;
  }

  .research-themes,
  .product-grid,
  .member-grid {
    grid-template-columns: 1fr 1fr;
  }

  .research-themes article:nth-child(2) {
    border-right: 0;
  }

  .research-themes article:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .sizechina-media img {
    height: 300px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-shell,
  .sizechina-section,
  .contact-section {
    padding-inline: 18px;
    padding-block: 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.8vw, 54px);
  }

  .hero {
    min-height: 690px;
    padding: calc(var(--header) + 56px) 18px 82px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(21, 19, 16, 0.84) 0%, rgba(21, 19, 16, 0.58) 100%),
      linear-gradient(0deg, rgba(21, 19, 16, 0.66) 0%, rgba(21, 19, 16, 0.08) 58%);
  }

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

  .hero-media {
    min-height: 0;
  }

  .proof-band,
  .research-themes,
  .product-grid,
  .member-grid,
  .sizechina-media {
    grid-template-columns: 1fr;
  }

  .proof-band div,
  .research-themes article {
    border-right: 0;
  }

  .proof-band div:not(:last-child),
  .research-themes article:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .project-item,
  .publication-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .member-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }

  .product-card {
    grid-template-rows: 220px auto;
  }

  .sizechina-media img {
    height: 260px;
  }
}
