:root {
  --green: #2bc966;
  --blue: #337fbd;
  --blue-grey: #8ca3b7;
  --black: #101010;
  --nav: #2d2d2d;
  --grey: #eeeeee;
  --line: #d7d7d7;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: #fff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
#program, #projects, #support, #philosophy, #about, #contact { scroll-margin-top: 80px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: 46px;
  align-items: center;
  min-height: 80px;
  padding: 0 max(28px, calc((100vw - 1220px) / 2));
  color: #fff;
  background: var(--nav);
}
.wordmark { width: 190px; transform: translateY(3px); }
.logo-crop { position: relative; display: block; width: 190px; height: 47px; overflow: hidden; filter: grayscale(1) brightness(0) invert(1); }
.logo-crop img { position: absolute; top: -72px; width: 190px; height: 190px; object-fit: contain; }
.topbar nav { display: flex; gap: 34px; align-self: stretch; justify-self: end; font-size: 20px; font-weight: 700; }
.nav-group { position: relative; display: flex; align-items: stretch; }
.nav-trigger {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 4px 0 0;
  border: 0;
  border-bottom: 4px solid transparent;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.nav-group:hover .nav-trigger,
.nav-group:focus-within .nav-trigger,
.nav-group.dropdown-open .nav-trigger {
  border-bottom-color: var(--green);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  display: grid;
  min-width: 178px;
  padding: 10px 0;
  color: var(--black);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nav-dropdown::before {
  display: none;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown a {
  position: relative;
  z-index: 1;
  padding: 11px 20px;
  white-space: nowrap;
  border-left: 4px solid transparent;
  font-size: 14px;
}
.nav-dropdown a:hover {
  border-left-color: var(--green);
  background: var(--grey);
}
.apply-button { justify-self: end; padding: 15px 25px; color: #fff; background: var(--blue); font-weight: 700; }
.menu-button { display: none; }

.hero { position: relative; height: 555px; overflow: hidden; background: #aaa; }
.hero > img { height: 100%; object-fit: cover; object-position: center top; filter: brightness(.84); }
.science-hero > img { object-position: center center; filter: brightness(.78); }
.science-hero .hero-overlay { text-align: left; }
.science-hero .hero-overlay div { justify-content: flex-start; }
.hero-overlay {
  position: absolute;
  left: max(28px, calc((100vw - 1080px) / 2));
  top: 78px;
  width: 575px;
  padding: 35px 45px 38px;
  background: rgba(255,255,255,.9);
  text-align: center;
}
.hero-overlay p { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #4e5b64; }
.hero-overlay h1 { margin: 0; font-size: 54px; line-height: 1.06; letter-spacing: -.055em; }
.hero-overlay > strong { display: block; margin: 22px 0; font-size: 17px; line-height: 1.5; }
.hero-overlay div { display: flex; justify-content: center; gap: 14px; }
.hero-overlay a, .blue-button { display: inline-block; padding: 14px 24px; color: #fff; background: var(--blue); font-weight: 700; }

.metrics { display: grid; grid-template-columns: repeat(3,1fr); max-width: var(--max); margin: auto; padding: 32px 0; }
.metrics div { display: grid; gap: 8px; place-items: center; border-right: 3px solid var(--green); }
.metrics div:last-child { border-right: 0; }
.metrics strong { font-size: 41px; letter-spacing: -.04em; line-height: 1.1; }
.metrics span { padding-bottom: 4px; border-bottom: 3px solid var(--green); font-size: 19px; font-weight: 800; line-height: 1.35; text-align: center; }

.grey-section { background: var(--grey); }
.intro { display: grid; grid-template-columns: 1.4fr .7fr; gap: 45px; align-items: center; padding: 100px max(28px, calc((100vw - 1180px) / 2)); }
.intro-media { height: 430px; overflow: hidden; border: 1px solid #ddd; background: #e7e7e7; }
.intro-media img { height: 100%; object-fit: cover; object-position: center 57%; }
.intro-carousel { position: relative; }
.intro-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.intro-carousel img.active { opacity: 1; }
.science-intro-media img { object-position: center center; }
.intro-copy h2 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -.035em; }
.intro-copy p { margin: 24px 0; font-size: 16px; }

.section { max-width: 1180px; margin: auto; padding: 95px 40px; }
.section-heading { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .sessions > h2 { margin: 0; font-size: 42px; letter-spacing: -.045em; line-height: 1.1; }
.section-heading p { margin: 20px auto 0; font-size: 16px; }
.three-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 42px; }
.three-cards article { background: var(--grey); }
.card-image { height: 210px; overflow: hidden; }
.card-image img { height: 100%; object-fit: cover; object-position: center 53%; }
.science-card-image { height: 220px; background: #f7f7f7; }
.science-card-image img { object-position: center center; }
.card-image.image-second img { object-position: center 25%; }
.card-image.image-third img { object-position: center 49%; }
.card-body { padding: 20px 22px 28px; }
.card-body h3 { margin: 0 0 18px; text-align: center; font-size: 25px; line-height: 1.15; }
.card-copy { margin: 0; font-size: 16px; line-height: 1.55; }
.card-body ul { margin: 0; padding-left: 22px; }
.card-body li { margin: 12px 0; padding-left: 6px; }
.card-body li::marker { font-size: 15px; }

.project-wall { padding: 85px max(28px, calc((100vw - 1060px) / 2)); text-align: center; }
.project-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.project-tiles > div { display: grid; place-content: center; min-height: 112px; padding: 16px; background: #fff; }
.project-tiles > div b { font-size: 21px; }
.project-tiles > div span { margin-top: 7px; color: #656565; font-size: 12px; }
.project-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #151515;
}
.project-card img { height: 100%; object-fit: cover; filter: saturate(.95); transition: transform .28s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.72));
}
.project-card b { font-size: 23px; line-height: 1.15; }
.project-card span { margin-top: 9px; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.5; }
.science-tiles div { min-height: 124px; }
.science-tiles b { line-height: 1.2; }
.underlined-link { display: inline-block; margin-top: 35px; border-bottom: 3px solid var(--green); font-weight: 800; }

.support-list { display: grid; gap: 28px; max-width: 930px; margin: auto; }
.support-list article { display: grid; grid-template-columns: 330px 1fr; min-height: 190px; background: var(--grey); }
.support-photo { height: 190px; overflow: hidden; }
.support-photo img { height: 100%; object-fit: cover; object-position: center 55%; }
.science-support-list { max-width: 980px; }
.science-support-photo img { object-position: center center; }
.support-photo.photo-program img { object-position: center 62%; }
.support-photo.photo-incubate img { object-position: center 24%; }
.support-list article > div:last-child { padding: 28px 32px; }
.support-list h3 { margin: 0; font-size: 24px; }
.support-list p { margin: 12px 0; }
.support-list a, .support-tag { border-bottom: 3px solid var(--green); font-weight: 800; }
.support-tag { display: inline-block; }

.quote { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 510px; }
.quote-copy { display: grid; align-content: center; padding: 60px max(40px, calc((100vw - 1180px) / 2)); padding-right: 65px; }
.quote blockquote { margin: 0 0 28px; font-size: 29px; font-weight: 800; line-height: 1.18; letter-spacing: -.03em; }
.quote-copy strong, .quote-copy span { display: block; }
.quote-image { overflow: hidden; }
.quote-image img { height: 100%; object-fit: cover; object-position: center top; }
.science-quote .quote-image img { object-position: center center; }

.network-cards .card-body p { min-height: 125px; }
.partner-graphic { display: grid; place-items: center; height: 210px; color: #536271; background: #e5e8ea; font-size: 25px; text-align: center; line-height: 1.2; }
.partner-graphic img { width: 100%; height: 100%; object-fit: cover; }
.network-cards .underlined-link { margin-top: 10px; }

.sessions { text-align: center; }
.session-grid { display: grid; grid-template-columns: repeat(4,1fr); margin: 45px 0 35px; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; }
.session-grid article { padding: 30px 15px; border-right: 1px solid #aaa; }
.session-grid article:last-child { border-right: 0; }
.session-grid span { color: #666; font-size: 13px; }
.session-grid h3 { margin: 8px 0 5px; font-size: 24px; }
.session-grid p { margin: 0; }

footer { padding: 60px max(28px, calc((100vw - 1170px) / 2)); color: #fff; background: #050505; border-top: 4px solid var(--green); }
.footer-top h2 { margin: 0; font-size: 30px; }
.footer-top p { color: #c7c7c7; }
.subscribe { margin-top: 25px; }
.subscribe-fields { display: grid; grid-template-columns: 1fr 180px; }
.subscribe-fields input { min-height: 48px; padding: 0 14px; border: 0; }
.subscribe button { border: 0; color: #fff; background: var(--blue); font-weight: 800; cursor: pointer; }
.subscribe button:disabled { cursor: wait; opacity: .65; }
.subscribe-consent { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 12px; color: #c7c7c7; font-size: 13px; }
.subscribe-consent input { width: 16px; height: 16px; margin: 0; }
.subscribe-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.subscribe-status { min-height: 20px; margin: 8px 0 0; color: #c7c7c7; font-size: 13px; }
.subscribe-status[data-state="success"] { color: #69df99; }
.subscribe-status[data-state="error"] { color: #ff9c92; }
.footer-links { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; row-gap: 8px; margin-top: 45px; padding-top: 40px; border-top: 1px solid #444; }
.footer-links div { display: grid; gap: 8px; align-content: start; }
.footer-links .footer-contact, .footer-links .footer-beian { display: contents; }
.footer-links strong { grid-column: 1; grid-row: 1; margin: 0; font-size: 17px; }
.footer-links a { color: #ccc; font-size: 13px; }
.footer-contact a { grid-column: 1; }
.footer-contact a:nth-of-type(1) { grid-row: 2; }
.footer-contact a:nth-of-type(2) { grid-row: 3; }
.footer-contact a:nth-of-type(3) { grid-row: 4; }
.footer-beian a { grid-column: 2; justify-self: end; text-align: right; }
.footer-beian a:nth-of-type(1) { grid-row: 3; }
.footer-beian a:nth-of-type(2) { grid-row: 4; }
.footer-links .beian-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.footer-links .beian-link img { width: 18px; height: 18px; object-fit: contain; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav, .apply-button { display: none; }
  .menu-button { display: block; width: 42px; height: 42px; border: 1px solid #666; background: transparent; }
  .menu-button span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--green); }
  .topbar nav.mobile-open { position: absolute; top: 80px; left: 0; right: 0; display: grid; gap: 0; padding: 10px 25px 18px; background: var(--nav); }
  .topbar nav.mobile-open .nav-group { display: grid; border-bottom: 1px solid rgba(255,255,255,.18); }
  .topbar nav.mobile-open .nav-trigger { justify-content: space-between; min-height: 48px; border-bottom: 0; }
  .topbar nav.mobile-open .nav-trigger.active { color: var(--green); }
  .topbar nav.mobile-open .nav-dropdown {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 12px;
    color: #fff;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .topbar nav.mobile-open .nav-dropdown::before { display: none; }
  .topbar nav.mobile-open .nav-dropdown a {
    padding: 10px 0 10px 16px;
    border-left: 3px solid var(--green);
    color: rgba(255,255,255,.86);
    background: transparent;
    font-size: 13px;
  }
  .hero-overlay { left: 5%; width: 55%; }
  .intro { grid-template-columns: 1fr; }
  .three-cards { gap: 20px; }
  .project-tiles { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .topbar { min-height: 68px; padding: 0 18px; }
  .wordmark, .logo-crop { width: 165px; }
  .logo-crop { height: 40px; }
  .logo-crop img { top: -62px; width: 165px; height: 165px; }
  .hero { height: 650px; }
  .hero > img { object-position: 48% top; }
  .hero-overlay { left: 20px; right: 20px; top: 45px; width: auto; padding: 28px 20px; }
  .hero-overlay h1 { font-size: 39px; }
  .hero-overlay div { display: grid; }
  .metrics { grid-template-columns: 1fr; padding: 0 20px; }
  .metrics div { padding: 20px 0; border-right: 0; border-bottom: 2px solid var(--green); }
  .intro { padding: 70px 20px; }
  .intro-media { height: 260px; }
  .section { padding: 70px 20px; }
  .section-heading h2, .sessions > h2 { font-size: 34px; }
  .three-cards { grid-template-columns: 1fr; }
  .project-wall { padding: 70px 20px; }
  .project-tiles { grid-template-columns: 1fr; }
  .support-list article { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote-copy { padding: 65px 25px; }
  .quote blockquote { font-size: 25px; }
  .quote-image { height: 330px; }
  .session-grid { grid-template-columns: 1fr 1fr; }
  .session-grid article:nth-child(2) { border-right: 0; }
  .session-grid article { border-bottom: 1px solid #aaa; }
  .subscribe-fields { grid-template-columns: 1fr; gap: 10px; }
  .footer-links { grid-template-columns: 1fr; row-gap: 8px; }
  .footer-beian a { grid-column: 1; justify-self: start; text-align: left; }
  .footer-beian a:nth-of-type(1) { grid-row: 5; }
  .footer-beian a:nth-of-type(2) { grid-row: 6; }
}
