:root {
  --color-background: #f3efe7;
  --color-text: #191714;
  --color-muted: #676159;
  --color-accent: #b03176;
  --color-rule: #d8d0c4;
  --color-dark: #191714;
  --color-dark-text: #f5f0e8;
  --color-dark-muted: #aaa39a;
  --color-dark-rule: #514d47;
  --color-dark-accent: #d778aa;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --content-width: 1200px;
  --section-space: 144px;
  --page-gutter: 48px;
}

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

html {
  background: var(--color-background);
  color: var(--color-text);
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

button {
  color: inherit;
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3,
html:lang(zh) p {
  line-break: strict;
  word-break: normal;
}

html:lang(en) h1,
html:lang(en) h2,
html:lang(en) h3 {
  hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--color-text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 160ms ease;
}

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

.site-header {
  height: 98px;
  border-bottom: 1px solid var(--color-rule);
}

.site-header__inner,
.section-inner,
.site-footer__inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  margin-inline: auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 46px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  text-decoration: none;
}

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

.brand__chinese-name {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--color-rule);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.brand__chinese-name:empty {
  display: none;
}

.primary-navigation {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  grid-column: 2;
  grid-row: 1;
  gap: 42px;
}

.primary-navigation[hidden] {
  display: none;
}

.primary-navigation a,
.language-switcher button,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.primary-navigation a {
  position: relative;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--color-accent);
  content: "";
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  display: flex;
  align-items: center;
  grid-column: 3;
  grid-row: 1;
  gap: 7px;
  color: var(--color-muted);
}

.language-switcher button {
  min-width: 44px;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--color-accent);
}

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

.menu-toggle__icon {
  display: grid;
  gap: 5px;
}

.menu-toggle__icon span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  border-bottom: 1px solid var(--color-rule);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.75fr);
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  min-height: 820px;
  margin-inline: auto;
}

.hero__content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 82px 92px 96px 0;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 34px;
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: -0.055em;
  line-height: 1.13;
  text-wrap: balance;
}

.hero h1::first-line {
  color: var(--color-text);
}

.hero__content > p {
  max-width: 690px;
  margin-bottom: 38px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.85;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 21px;
  background: var(--color-text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button::after {
  margin-left: 24px;
  content: "↗";
}

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

.hero__motif {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--color-rule);
}

.hero__motif::before,
.hero__motif::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero__motif::before {
  inset: 0 30% 0 30%;
  border-inline: 1px solid var(--color-rule);
}

.hero__motif::after {
  top: 24%;
  right: 0;
  left: 0;
  height: 46%;
  border-block: 1px solid var(--color-rule);
}

.hero__point {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-background);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.hero__point--china {
  top: 29%;
  left: 18%;
}

.hero__point--vancouver {
  right: 12%;
  bottom: 26%;
}

.hero__route {
  position: absolute;
  z-index: 1;
  top: 29.5%;
  right: 12.5%;
  bottom: 26.5%;
  left: 19%;
  border-right: 2px dashed var(--color-accent);
  border-bottom: 2px dashed var(--color-accent);
  border-radius: 0 0 92% 0;
  transform: skewY(5deg);
}

.section-inner {
  padding-block: var(--section-space);
}

.section-introduction,
.team__introduction {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 100px;
  margin-bottom: 86px;
}

.section-introduction h2,
.team__introduction h2,
.contact h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-introduction > p,
.team__introduction > p,
.contact__inner > div > p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.8;
}

.services .section-introduction h2 {
  max-width: 8em;
}

.service-list {
  border-top: 1px solid var(--color-text);
}

.service {
  display: grid;
  align-items: start;
  grid-template-columns: 100px minmax(0, 0.95fr) minmax(0, 1.2fr) 46px;
  gap: 36px;
  padding-block: 44px 48px;
  border-bottom: 1px solid var(--color-rule);
}

.service__number,
.approach__number {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.service h3,
.approach h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.25;
}

.service p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.8;
}

.service__arrow {
  color: var(--color-accent);
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.approach {
  background: var(--color-dark);
  color: var(--color-dark-text);
}

.approach .section-inner {
  padding-block: var(--section-space);
}

.approach .section-introduction {
  margin-bottom: 78px;
}

.approach .section-introduction > p {
  color: var(--color-dark-muted);
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--color-dark-rule);
  list-style: none;
}

.approach__steps li {
  min-height: 270px;
  padding: 38px 40px 42px;
}

.approach__steps li:first-child {
  padding-left: 0;
}

.approach__steps li:last-child {
  padding-right: 0;
}

.approach__steps li + li {
  border-left: 1px solid var(--color-dark-rule);
}

.approach__number {
  display: block;
  margin-bottom: 63px;
  color: var(--color-dark-accent);
}

.approach h3 {
  margin-bottom: 18px;
  font-size: 30px;
}

.approach__steps p {
  margin-bottom: 0;
  color: var(--color-dark-muted);
  font-size: 16px;
  line-height: 1.8;
}

.team__introduction {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 120px;
  margin-bottom: 88px;
}

.university-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 150px;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--color-rule);
  list-style: none;
}

.university-list li {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  min-width: 0;
  padding: 24px 22px;
  text-align: center;
}

.university-list li:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--color-rule);
}

.university-list li:nth-child(-n + 3) {
  border-bottom: 1px solid var(--color-rule);
}

.university-list img {
  width: auto;
  max-width: 150px;
  height: 35px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.2);
}

.university-list img[src$="stanford-block-s.png"] {
  mix-blend-mode: multiply;
}

.university-list img[src$="utoronto.svg"] {
  filter: brightness(0);
}

.university-list img[src$="tsinghua.svg"] {
  height: 46px;
}

.university-list span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.contact {
  border-top: 1px solid var(--color-rule);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 100px;
  padding-block: var(--section-space);
}

.contact h2 {
  max-width: 9em;
  margin-bottom: 32px;
  font-size: 64px;
  line-height: 1.18;
}

.contact__inner > div > p {
  max-width: 610px;
  margin-bottom: 37px;
}

.contact__inner > div > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-block: 8px;
  border-bottom: 1px solid var(--color-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.contact__inner > div > a::after {
  margin-left: 12px;
  color: var(--color-accent);
  content: "↗";
}

.contact address {
  padding-top: 12px;
  border-top: 1px solid var(--color-text);
  font-style: normal;
}

.contact address > div {
  padding-block: 23px 27px;
  border-bottom: 1px solid var(--color-rule);
}

.contact address span {
  display: block;
  margin-bottom: 11px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.contact address a,
.contact address p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid var(--color-rule);
}

.site-footer__inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 34px;
  min-height: 126px;
  padding-block: 24px;
}

.site-footer .brand img {
  height: 25px;
}

.site-footer nav {
  display: flex;
  gap: 31px;
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer > .site-footer__inner > p:nth-last-child(2) {
  justify-self: end;
}

.site-footer > .site-footer__inner > p:last-child {
  grid-column: 3;
  justify-self: end;
}

.reveal-enabled [data-reveal] {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-enabled [data-reveal].is-revealed {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1023px) {
  .site-header__inner,
  .section-inner,
  .site-footer__inner,
  .hero__inner {
    width: calc(100% - 96px);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
  }

  .hero__content {
    padding-right: 48px;
  }

  .hero h1 {
    font-size: clamp(58px, 7vw, 72px);
  }

  .section-introduction,
  .team__introduction,
  .contact__inner {
    gap: 48px;
  }

  .service {
    column-gap: 28px;
  }

  .university-list li {
    padding-inline: 12px;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .service {
    grid-template-columns: 72px minmax(0, 1fr) 40px;
  }

  .service h3 {
    grid-column: 2;
  }

  .service p {
    grid-column: 2 / 4;
  }

  .service__arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .approach__steps li {
    padding-inline: 26px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer > .site-footer__inner > p:nth-last-child(2),
  .site-footer > .site-footer__inner > p:last-child {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  :root {
    --section-space: 80px;
    --page-gutter: 24px;
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .site-header {
    position: relative;
    z-index: 20;
    height: auto;
    min-height: 72px;
  }

  .js-enabled .site-header {
    height: 72px;
  }

  .site-header__inner,
  .section-inner,
  .site-footer__inner,
  .hero__inner {
    width: calc(100% - 48px);
  }

  .site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand__chinese-name {
    margin-left: 8px;
    padding-left: 8px;
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .language-switcher {
    position: absolute;
    right: 44px;
    gap: 1px;
  }

  .language-switcher button {
    min-width: 36px;
    font-size: 14px;
  }

  .language-switcher button[aria-pressed="true"],
  .language-switcher > span {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    right: 0;
  }

  .js-enabled .menu-toggle {
    display: block;
  }

  .primary-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: auto;
    flex-direction: column;
    gap: 0;
    width: calc(100% + 48px);
    margin-left: -24px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--color-rule);
    background: var(--color-background);
  }

  .primary-navigation a {
    min-height: 52px;
    border-bottom: 1px solid var(--color-rule);
  }

  .primary-navigation a::after {
    display: none;
  }

  .js-enabled .primary-navigation {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    width: auto;
    margin: 0;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero__content {
    min-height: 590px;
    padding: 72px 0 74px;
  }

  .hero h1 {
    max-width: 7.25em;
    margin-bottom: 28px;
    font-size: 48px;
    letter-spacing: -0.04em;
    line-height: 1.16;
    text-wrap: pretty;
  }

  .hero__content > p {
    max-width: 31em;
    margin-bottom: 32px;
    font-size: 17px;
    line-height: 1.75;
  }

  .hero__motif {
    width: calc(100% + 48px);
    height: 190px;
    margin-left: -24px;
    border-top: 1px solid var(--color-rule);
    border-left: 0;
  }

  .hero__motif::before {
    inset: 0 24% 0 24%;
  }

  .hero__motif::after {
    top: 46%;
    height: 0;
    border-bottom: 0;
  }

  .hero__point--china {
    top: 28%;
    left: 16%;
  }

  .hero__point--vancouver {
    right: 14%;
    bottom: 23%;
  }

  .hero__route {
    top: 30%;
    right: 15%;
    bottom: 26%;
    left: 18%;
    border-radius: 0 0 80% 0;
  }

  .section-introduction,
  .team__introduction,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-introduction,
  .team__introduction {
    margin-bottom: 56px;
  }

  .section-introduction h2,
  .team__introduction h2 {
    font-size: 38px;
    line-height: 1.2;
    text-wrap: pretty;
  }

  .section-introduction > p,
  .team__introduction > p,
  .contact__inner > div > p {
    font-size: 16px;
    line-height: 1.75;
  }

  .service {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    gap: 18px 12px;
    padding-block: 32px 36px;
  }

  .service__number {
    grid-column: 1;
    grid-row: 1;
  }

  .service h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 27px;
    line-height: 1.3;
  }

  .service p {
    grid-column: 2 / 4;
    grid-row: 2;
    font-size: 16px;
    line-height: 1.7;
  }

  .service__arrow {
    grid-column: 3;
    grid-row: 1;
    font-size: 20px;
  }

  .approach .section-inner {
    padding-block: var(--section-space);
  }

  .approach .section-introduction {
    margin-bottom: 54px;
  }

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

  .approach__steps li,
  .approach__steps li:first-child,
  .approach__steps li:last-child {
    min-height: 0;
    padding: 34px 0 38px;
  }

  .approach__steps li + li {
    border-top: 1px solid var(--color-dark-rule);
    border-left: 0;
  }

  .approach__number {
    margin-bottom: 40px;
  }

  .approach h3 {
    font-size: 26px;
    line-height: 1.3;
  }

  .university-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .university-list li {
    min-height: 146px;
    padding: 22px 15px;
    border-bottom: 1px solid var(--color-rule);
  }

  .university-list li:nth-child(odd) {
    border-left: 0;
  }

  .university-list li:nth-child(even) {
    border-left: 1px solid var(--color-rule);
  }

  .university-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .university-list img {
    max-width: 132px;
    height: 33px;
  }

  .team__disclaimer {
    margin-top: 20px;
  }

  .contact__inner {
    gap: 64px;
    padding-block: var(--section-space);
  }

  .contact h2 {
    margin-bottom: 26px;
    font-size: 40px;
    line-height: 1.2;
    text-wrap: pretty;
  }

  .contact address {
    padding-top: 4px;
  }

  .site-footer__inner {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding-block: 40px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 8px 26px;
  }

  .site-footer > .site-footer__inner > p:nth-last-child(2),
  .site-footer > .site-footer__inner > p:last-child {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 419px) {
  .university-list {
    grid-template-columns: 1fr;
  }

  .university-list li,
  .university-list li:nth-child(odd),
  .university-list li:nth-last-child(-n + 2) {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--color-rule);
    border-left: 0;
  }

  .university-list li:last-child {
    border-bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-enabled [data-reveal] {
    transform: none;
    opacity: 1;
  }
}
