:root {
  color-scheme: light;
  --paper: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #eef6f5;
  --ink: #103a51;
  --ink-deep: #082f46;
  --muted: #627682;
  --line: #d8e5e6;
  --accent: #168b87;
  --accent-deep: #0e716f;
  --gold: #d6aa3a;
  --blue: #4e7ec5;
  --shadow: 0 28px 80px rgba(35, 91, 100, 0.12);
  --panel-radius: 22px;
  --control-radius: 12px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 14%, rgba(64, 148, 181, 0.08), transparent 26rem),
    radial-gradient(circle at 9% 62%, rgba(22, 139, 135, 0.06), transparent 30rem),
    var(--paper);
  font-family:
    "Aptos", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(1440px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--control-radius);
  color: var(--surface);
  background: var(--ink-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(216, 229, 230, 0.72);
  background: rgba(247, 250, 249, 0.86);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.nav {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  width: min(100%, 380px);
}

.brand img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 24px 0 22px;
  color: #536c79;
  font-size: 0.9rem;
  transition: color 220ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-deep);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button,
.program-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--control-radius);
  white-space: nowrap;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 3px;
  padding: 4px;
  border: 1px solid #bed0d3;
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 24px rgba(35, 91, 100, 0.06);
}

.language-option {
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #607681;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--ink-deep);
  background: var(--surface-soft);
}

.language-option.is-active,
.language-option[aria-pressed="true"] {
  color: var(--surface);
  background: var(--ink-deep);
}

.hero {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(32px, 5vw, 92px);
  padding-block: clamp(48px, 7vh, 84px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-left: clamp(0px, 3vw, 38px);
  opacity: 0;
  transform: translateY(24px);
}

body.is-ready .hero-copy {
  animation: hero-in 900ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-kicker {
  margin: 0 0 24px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero-title-accent {
  color: var(--accent-deep);
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.65rem, 4.1vw, 4.65rem);
  letter-spacing: -0.05em;
}

html[lang="en"] .hero h1 small {
  max-width: 520px;
}

.hero h1 small {
  display: block;
  max-width: 580px;
  margin-top: 25px;
  color: #526b78;
  font-size: clamp(0.88rem, 1.16vw, 1.08rem);
  font-weight: 620;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.hero-summary {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-width: 148px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 670;
}

.button-primary {
  color: var(--surface);
  background: var(--ink-deep);
  box-shadow: 0 12px 28px rgba(8, 47, 70, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(14, 113, 111, 0.2);
}

.hero-art {
  position: relative;
  min-width: 0;
  opacity: 0;
  transform: translateX(36px);
}

body.is-ready .hero-art {
  animation: art-in 1100ms 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-art-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(216, 229, 230, 0.92);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.hero-art-frame img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero-year {
  position: absolute;
  right: clamp(-12px, -1vw, -2px);
  bottom: clamp(22px, 5vw, 76px);
  color: rgba(8, 47, 70, 0.09);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 0.8;
  pointer-events: none;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.programs-section {
  padding-block: clamp(100px, 12vw, 180px);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.programs-heading {
  max-width: 820px;
}

.program-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.86fr 1.06fr;
  align-items: start;
  gap: clamp(18px, 2vw, 30px);
  margin-top: clamp(54px, 7vw, 92px);
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 420px;
  padding: clamp(28px, 3.3vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: 0 22px 56px rgba(35, 91, 100, 0.07);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--accent);
  transform: scaleX(0.34);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover,
.program-card:focus-within {
  z-index: 2;
  border-color: rgba(22, 139, 135, 0.48);
  box-shadow: 0 30px 70px rgba(35, 91, 100, 0.13);
  transform: translateY(-8px);
}

.program-card:hover::before,
.program-card:focus-within::before {
  transform: scaleX(1);
}

.program-card-primary {
  min-height: 470px;
  background:
    linear-gradient(150deg, rgba(22, 139, 135, 0.1), rgba(255, 255, 255, 0.5) 50%),
    var(--surface);
}

.program-card-index {
  min-height: 390px;
  margin-top: 58px;
}

.program-card-brand {
  min-height: 445px;
  margin-top: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(78, 126, 197, 0.1), transparent 50%),
    var(--surface);
}

.program-number {
  color: var(--accent-deep);
  font-size: 0.94rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.program-copy {
  margin-top: clamp(42px, 5vw, 72px);
}

.program-card h3 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.36;
}

.program-en {
  margin: 18px 0 0;
  color: #55707d;
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.55;
}

.program-description {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.program-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid #adc5c8;
  color: var(--ink-deep);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 680;
}

a.program-link:hover,
a.program-link:focus-visible {
  color: var(--surface);
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.program-link.is-pending {
  color: #657a84;
  border-color: #d4dfe0;
  background: #f5f8f8;
  cursor: not-allowed;
}

.partners-strip {
  padding-block: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.partners-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1px minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
}

.partner-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
}

.partner-label {
  min-width: 78px;
}

.partner-label strong,
.partner-label span {
  display: block;
}

.partner-label strong {
  color: var(--ink-deep);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: 0.05em;
}

.partner-label span {
  margin-top: 7px;
  color: #7a8c94;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.partner-logos-hosts {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
  min-width: 0;
}

.partner-logo-cuhk {
  display: block;
  width: auto;
  object-fit: contain;
}

.partner-logo-cuhk {
  height: 85px;
}

.partner-media-one-lockup {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  min-width: 230px;
}

.partner-media-one-symbol {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.partner-media-one-wordmark {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
  object-position: left center;
}

.partner-media-one-lockup span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.partners-divider {
  width: 1px;
  height: 92px;
  background: var(--line);
}

.partner-institute-lockup {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
}

.partner-institute-lockup > img {
  width: 74px;
  height: 74px;
  border-radius: 15px;
  object-fit: cover;
}

.partner-institute-lockup strong,
.partner-institute-lockup span {
  display: block;
}

.partner-institute-lockup strong {
  color: var(--ink-deep);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 1.35;
}

.partner-institute-lockup span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #657984;
  font-size: 0.88rem;
}

.footer-inner a {
  color: var(--ink-deep);
  font-weight: 650;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.program-card:nth-child(2) {
  transition-delay: 80ms;
}

.program-card:nth-child(3) {
  transition-delay: 160ms;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(22, 139, 135, 0.28);
  outline-offset: 4px;
}

a:active:not(.skip-link),
button:active:not(:disabled) {
  transform: translateY(1px);
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes art-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  .shell {
    width: min(100% - 48px, 1120px);
  }

  .nav {
    grid-template-columns: minmax(210px, 300px) 1fr auto;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 38px;
  }

  .program-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .program-card-brand {
    grid-column: 1 / -1;
    min-height: 360px;
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(100% - 32px, 760px);
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .brand {
    width: min(100%, 300px);
  }

  .brand img {
    height: 46px;
  }

  .nav-links {
    display: none;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 38px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 58px 84px;
  }

  .hero-copy {
    max-width: 680px;
    padding-left: 0;
  }

  .hero-art {
    width: 100%;
  }

  .hero-art-frame {
    aspect-ratio: 1 / 1;
  }

  .hero-art-frame img {
    width: 100%;
    height: 100%;
    object-position: center;
    transform: none;
  }

  .hero-year {
    right: 4px;
    bottom: 28px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card,
  .program-card-primary,
  .program-card-index,
  .program-card-brand {
    min-height: 360px;
    margin-top: 0;
  }

  .partners-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .partners-divider {
    width: 100%;
    height: 1px;
  }

  .partner-group {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .partner-logo-cuhk {
    height: 80px;
  }

  .partner-media-one-lockup {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 520px);
  }

  .brand {
    width: 230px;
  }

  .brand img {
    height: 42px;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 34px);
    padding: 3px;
  }

  .language-option {
    min-height: 34px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-kicker {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12.5vw, 3.7rem);
    letter-spacing: -0.06em;
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(2.05rem, 8.8vw, 2.85rem);
    letter-spacing: -0.045em;
  }

  .hero h1 small {
    margin-top: 20px;
    font-size: 0.82rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .hero-art-frame {
    aspect-ratio: 1 / 1;
  }

  .program-card,
  .program-card-primary,
  .program-card-index,
  .program-card-brand {
    min-height: 0;
    padding: 28px;
  }

  .program-copy {
    margin-top: 38px;
  }

  .program-link {
    margin-top: 42px;
  }

  .partner-group {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .partner-media-one-lockup {
    min-width: 0;
  }

  .partner-logos-hosts {
    display: grid;
    justify-items: start;
    gap: 22px;
  }

  .partner-logo-cuhk {
    height: 78px;
  }

  .partner-logo-media-one {
    height: 74px;
  }

  .partner-institute-lockup {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .partner-institute-lockup > img {
    width: 64px;
    height: 64px;
    border-radius: 13px;
  }

  .footer-inner {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy,
  .hero-art,
  .reveal {
    opacity: 1;
    transform: none;
  }

}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
