:root {
  color-scheme: light;
  --ink: #17181c;
  --muted: #62656f;
  --line: #e5e7ec;
  --soft: #f6f7fa;
  --blue: #4388ff;
  --violet: #7557ff;
  --page: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link:focus { transform: translateY(0); }

.gamma-mark {
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Baskerville, "Baskerville Old Face", "Hoefler Text", Georgia, serif;
  font-weight: 700;
}

.gamma-letter {
  display: inline-block;
  margin-bottom: -0.1em;
  padding-bottom: 0.1em;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.22em;
  line-height: 1.1;
  transform: translateY(-0.18em);
}

.gamma-mark sub {
  margin-left: -0.04em;
  font-size: 0.58em;
  vertical-align: -0.12em;
}

.hero {
  width: min(calc(100% - 48px), var(--page));
  margin: 0 auto;
  padding: clamp(76px, 9vw, 124px) 0 30px;
}

h1 {
  font-size: clamp(43px, 5vw, 69px);
  font-weight: 760;
  letter-spacing: -0.052em;
  line-height: 0.99;
  text-wrap: balance;
}

.title-mark { margin-right: 0.04em; letter-spacing: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.section {
  width: min(calc(100% - 48px), var(--page));
  margin: 0 auto;
  padding: 132px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading h2,
.contribution-copy h2 {
  max-width: 850px;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 750;
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading > p:last-child,
.contribution-copy > .contribution-intro {
  max-width: 690px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.playground-section { padding-top: 14px; padding-bottom: 64px; }

.playground-copy {
  margin-bottom: 24px;
}

.playground-intro {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
  text-wrap: pretty;
}

.more-info-link {
  color: var(--muted);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.playground-link {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(23, 24, 28, 0.04);
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.playground-link span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #f0edff;
  color: var(--violet);
  font-size: 16px;
}

.playground-link:hover {
  border-color: #cdd1da;
  box-shadow: 0 5px 14px rgba(23, 24, 28, 0.08);
  transform: translateY(-1px);
}

.playground-preview-wrap { position: relative; }

.playground-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #0e1117;
}

.playground-preview-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deployment-section { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }

.deployment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.deployment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.deployment-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #171a20;
}

.deployment-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deployment-copy {
  padding: 23px 25px 25px;
}

.deployment-copy h3 { font-size: 22px; letter-spacing: -0.025em; }

.contribution-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
}

.contribution-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: 76px;
  background: #fff;
  color: var(--ink);
}

.contribution-copy h2 { max-width: 610px; }
.contribution-mark { letter-spacing: 0; }
.contribution-copy > p { color: var(--muted); }
.contribution-inline-link { color: var(--muted); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.contribution-copy .contribution-credit,
.contribution-copy .contribution-contact,
.contribution-copy .contribution-review-note { max-width: 690px; margin-top: 14px; color: var(--muted); font-size: 18px; line-height: 1.62; }
.contribution-contact a { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.contribution-paths {
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line);
}

.contribution-paths > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contribution-paths span {
  grid-row: 1 / 3;
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.contribution-paths h3 { font-size: 16px; }

.contribution-paths p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.team-group-label {
  margin: 0 0 14px;
  color: #71747e;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faculty-label { margin-top: 44px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 16px;
}

.team-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.team-card:hover {
  border-color: #d4d7e1;
  box-shadow: 0 18px 44px rgba(39, 42, 54, 0.09);
  transform: translateY(-3px);
}

.team-portrait {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #edf2fb, #e9e7f7);
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.team-card:hover .team-portrait img { transform: scale(1.015); }
.nico-portrait img { object-position: 50% 28%; }
.bo-portrait img { object-position: 50% 45%; }
.dichen-portrait img { object-position: 50% 45%; }
.tongzhou-portrait img { object-position: 50% 50%; }
.sophie-portrait img { object-position: 50% 38%; }
.nicolas-portrait img { object-position: 50% 42%; }
.jan-portrait img { object-position: 50% 42%; }
.hao-portrait img { object-position: 50% 25%; }
.henrik-portrait img { object-position: 50% 40%; }
.chelsea-portrait img { object-position: 50% 38%; }
.georgia-portrait img { object-position: 50% 30%; }

.team-card-copy {
  display: flex;
  min-height: 82px;
  padding: 16px 16px 18px;
  flex-direction: column;
}

.team-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.team-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.team-role {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #ded9ff;
  border-radius: 999px;
  background: linear-gradient(105deg, #f1f6ff, #f3efff);
  color: #5c4bd4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.team-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

:focus-visible {
  outline: 3px solid rgba(67, 136, 255, 0.45);
  outline-offset: 4px;
}

@media (max-width: 1060px) {
  .contribution-panel {
    grid-template-columns: 1fr;
    gap: 52px;
  }

}

@media (max-width: 700px) {
  .hero,
  .section { width: min(calc(100% - 32px), var(--page)); }

  .hero {
    padding: 52px 0 24px;
  }

  h1 { font-size: clamp(39px, 12vw, 56px); }
  .button { flex: 1 1 190px; }
  .section { padding: 92px 0; }
  .playground-section { padding-top: 10px; padding-bottom: 48px; }
  .deployment-section { padding-top: 48px; padding-bottom: 48px; }
  .playground-copy { margin-bottom: 18px; }
  .playground-intro { font-size: 16px; }
  .playground-link { top: 12px; right: 12px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading > p:last-child,
  .contribution-copy > p { font-size: 16px; }

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

  .contribution-section { padding-top: 48px; }

  .contribution-panel {
    gap: 40px;
  }

  .research-team-grid,
  .faculty-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

@media (max-width: 430px) {
  .research-team-grid,
  .faculty-team-grid { grid-template-columns: 1fr; }
  .team-card-copy { min-height: 132px; }
}

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

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