:root {
  --blue: #1837e8;
  --blue-dark: #1026b5;
  --navy: #101936;
  --ink: #172038;
  --muted: #667087;
  --paper: #ffffff;
  --wash: #f4f6fb;
  --line: #dce1ec;
  --cyan: #9cecff;
  --red: #e74b52;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html:not([data-lang]) .en,
html[data-lang="zh"] .en {
  display: none !important;
}

html[data-lang="en"] .zh {
  display: none !important;
}

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

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  transform: translateY(-150%);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.topbar,
.mast-rule {
  display: none;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

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

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 25, 54, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.mast .band {
  display: block;
}

.mast-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.wordmark {
  min-width: 150px;
  margin-right: auto;
  text-decoration: none;
}

.wordmark-en {
  display: block;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1.1;
  text-transform: uppercase;
}

.wordmark-name {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: .02em;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .03em;
}

.nav a {
  position: relative;
  padding: 26px 0 23px;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  transition: transform .22s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a[href="#work"] {
  display: none;
}

.lang {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
}

.lang button {
  min-width: 45px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 700 .72rem/1 var(--sans);
  cursor: pointer;
}

html[data-lang="zh"] #lang-zh,
html[data-lang="en"] #lang-en,
html:not([data-lang]) #lang-zh {
  background: var(--navy);
  color: #fff;
}

.hero.wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: min(790px, calc(100vh - 74px));
  margin: 0;
  padding: clamp(72px, 9vw, 128px) max(24px, calc((100vw - 1160px) / 2));
  align-items: center;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 72%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58vw;
  height: 58vw;
  min-width: 620px;
  min-height: 620px;
  right: -17vw;
  bottom: -34vw;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(255, 255, 255, .035),
    0 0 0 220px rgba(255, 255, 255, .025);
}

.hero > .span-7 {
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 26px;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.35rem, 5.2vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .99;
}

html[data-lang="zh"] .hero h1,
html:not([data-lang]) .hero h1 {
  font-family: var(--sans);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: 1.04;
}

.zh-break {
  display: initial;
}

.lede {
  max-width: 660px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.75;
}

.hero-fig {
  position: relative;
  min-height: 460px;
  margin: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(156, 236, 255, .23) 0 7%, transparent 7.5%),
    radial-gradient(circle at 50% 50%, transparent 0 23%, rgba(255, 255, 255, .25) 23.2% 23.5%, transparent 23.8%),
    radial-gradient(circle at 50% 50%, transparent 0 41%, rgba(255, 255, 255, .16) 41.2% 41.5%, transparent 41.8%),
    radial-gradient(circle at 50% 50%, transparent 0 59%, rgba(255, 255, 255, .1) 59.2% 59.5%, transparent 59.8%);
}

.hero-fig::before,
.hero-fig::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .55);
  transform: rotate(-18deg);
  box-shadow:
    76px -76px 0 rgba(156, 236, 255, .45),
    -48px 62px 0 rgba(255, 255, 255, .3);
}

.hero-fig::after {
  transform: rotate(48deg);
  opacity: .5;
}

.hero-fig svg,
.figcap {
  display: none;
}

.section {
  padding-top: clamp(86px, 10vw, 142px);
  padding-bottom: 0;
}

.section > .span-12:first-child {
  grid-column: span 4;
  padding-right: 20px;
}

.section > .span-12:first-child h2 {
  position: sticky;
  top: 112px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.section h2::before {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--blue);
  content: "";
}

.section > .span-12:first-child + .portrait,
.section > .span-12:first-child + .panels {
  margin-left: 0;
}

#about .portrait {
  grid-column: 5 / span 3;
}

#about > .span-8 {
  grid-column: 8 / span 5;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  background: var(--wash);
  filter: saturate(.78) contrast(1.03);
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: .82rem;
  font-weight: 720;
}

.portrait .meta {
  color: var(--blue);
  font-size: .68rem;
  letter-spacing: .14em;
}

.role {
  margin: 0 0 30px;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 650;
  line-height: 1.55;
}

.bio {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

.text-link::after {
  content: "↗";
  font-size: 1rem;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.panels {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: research;
}

.panel {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 180px;
  align-items: center;
  min-height: 150px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  counter-increment: research;
}

.panel:last-child {
  border-bottom: 1px solid var(--line);
}

.panel::before {
  content: "0" counter(research);
  align-self: start;
  padding-top: 7px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.panel-kicker {
  display: none;
}

.panel svg {
  grid-column: 3;
  grid-row: 1;
  width: 150px;
  justify-self: end;
  opacity: .62;
}

.panel h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.42;
}

.panel:hover {
  color: var(--blue);
}

.note,
.fine {
  color: var(--muted);
}

#tools .note {
  margin: 14px 0 0;
}

#tools > .span-12:first-child {
  grid-column: span 12;
}

#tools > .span-6 {
  margin-top: 28px;
}

.tool {
  position: relative;
  display: flex;
  min-height: 265px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 0;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.tool::after {
  position: absolute;
  right: 30px;
  bottom: 25px;
  font-size: 2rem;
  content: "↗";
}

.tool-public {
  background: var(--blue);
  color: #fff;
}

.tool-members {
  background: var(--navy);
  color: #fff;
}

.tool:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(16, 25, 54, .15);
}

.badge {
  margin: 0 0 auto;
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tool h3 {
  margin: 46px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.04em;
}

.tool p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .76);
}

.tool-url {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
}

#join {
  margin-top: clamp(90px, 12vw, 160px);
  padding: clamp(55px, 7vw, 86px);
  background: var(--wash);
}

#join > .span-7,
#join > .span-5 {
  padding: 0 clamp(6px, 2vw, 24px);
}

#join h2 {
  margin-bottom: 24px;
}

#join h2::before {
  display: none;
}

#join p {
  max-width: 620px;
}

address {
  font-style: normal;
}

.contact-line {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 0;
  padding: 52px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, .66);
  font-size: .8rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 28px;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
}

.site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

.footer-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
}

.metrics,
.index-head,
.papers,
#work {
  display: none !important;
}

@media (max-width: 920px) {
  .nav {
    gap: 16px;
  }

  .hero.wrap {
    min-height: 690px;
  }

  .hero > .span-7 {
    grid-column: span 8;
  }

  .hero > .span-5 {
    grid-column: span 4;
  }

  .section > .span-12:first-child {
    grid-column: span 12;
    margin-bottom: 24px;
  }

  .section > .span-12:first-child h2 {
    position: static;
  }

  #about .portrait {
    grid-column: 1 / span 4;
  }

  #about > .span-8 {
    grid-column: 5 / span 8;
  }

  .panels {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }

  .mast-row {
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
  }

  .wordmark-en {
    display: none;
  }

  .wordmark-name {
    margin: 0;
    font-size: .9rem;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 10px 0 14px;
  }

  .nav a::after {
    bottom: 9px;
  }

  .mast {
    position: relative;
  }

  .hero.wrap {
    min-height: 650px;
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .hero > .span-7 {
    grid-column: span 12;
  }

  .hero > .span-5 {
    position: absolute;
    width: 350px;
    right: -125px;
    bottom: -60px;
    min-height: 350px;
    opacity: .54;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.35rem);
  }

  .lede {
    max-width: 88%;
    margin-top: 25px;
  }

  .section {
    padding-top: 82px;
  }

  #about .portrait,
  #about > .span-8,
  #tools > .span-6,
  #join > .span-7,
  #join > .span-5 {
    grid-column: span 12;
  }

  .portrait img {
    width: min(68%, 280px);
  }

  .panel {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 126px;
  }

  .panel svg {
    display: none;
  }

  .panel h3 {
    grid-column: 2;
  }

  .tool {
    min-height: 235px;
  }

  #join {
    width: 100%;
    padding: 54px 16px;
  }

  #join > .span-5 {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

  .site-footer p:last-child {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
  }
}

@media print {
  .mast,
  .hero-fig,
  .lang,
  .nav {
    display: none;
  }

  .hero.wrap {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .site-footer {
    color: #000;
    background: #fff;
  }
}
