﻿/* Shared trilingual homepage rhythm. */

body[data-current="home"] {
  --rhythm-paper: #fffef9;
  --rhythm-calm: #f2f3ef;
  --rhythm-ink: #211d1d;
  --rhythm-stage: #130e16;
  --rhythm-deep: #281316;
  --rhythm-wine: #55101e;
  --rhythm-gold: #d8b578;
}

body[data-current="home"] main {
  overflow: clip;
  background: var(--rhythm-paper);
}

/* Peak 1 remains the accepted Hero. */
body[data-current="home"] .zh-hero-r5 {
  position: relative;
  z-index: 6;
}

/* Dense movement: news uses width and hierarchy instead of excess vertical air. */
body[data-current="home"] .home-news {
  position: relative;
  z-index: 4;
  padding: clamp(6rem, 8.5vw, 8rem) 0 clamp(8rem, 11vw, 10.5rem);
  background:
    radial-gradient(circle at 92% 12%, rgb(216 181 120 / 0.12), transparent 24rem),
    linear-gradient(180deg, #fffef9 0%, #fffdf7 72%, #f8f4eb 100%);
}

body[data-current="home"] .home-news > .container {
  width: min(calc(100% - 6vw), 86rem);
  max-width: 86rem;
}

body[data-current="home"] .home-news .home-section-heading {
  max-width: 58rem;
  margin-bottom: clamp(3rem, 5vw, 4.75rem);
}

body[data-current="home"] .home-news .home-section-heading h2 {
  font-size: clamp(3.5rem, 6.3vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

body[data-current="home"] .home-news .home-section-heading p {
  max-width: 32rem;
  margin-top: 1.4rem;
}

body[data-current="home"] .home-news .news-editorial-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(18rem, 0.8fr);
  gap: clamp(2.25rem, 4vw, 4.25rem);
  align-items: start;
}

body[data-current="home"] .home-news .news-editorial-feature {
  position: relative;
  transform: scale(1.025);
  transform-origin: left top;
  box-shadow: 0 2rem 5rem rgb(54 27 25 / 0.1);
}

body[data-current="home"] .home-news .news-editorial-feature::after {
  content: "";
  position: absolute;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 42%;
  height: 42%;
  z-index: -1;
  border-right: 1px solid rgb(216 181 120 / 0.55);
  border-bottom: 1px solid rgb(216 181 120 / 0.55);
}

body[data-current="home"] .home-news .news-focus {
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

body[data-current="home"] .home-news .latest-news {
  grid-template-columns: minmax(11rem, 0.68fr) minmax(0, 2.2fr);
  gap: clamp(2.5rem, 5vw, 5.25rem);
  margin-top: clamp(4.5rem, 7vw, 6.5rem);
  padding-top: clamp(3.5rem, 5vw, 5rem);
}

body[data-current="home"] .home-news .latest-news > h3 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
}

/* Dark stage: a hard tonal change and a visible transition from News. */
body[data-current="home"] .programme-desk {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  margin-top: -4.5rem;
  padding: clamp(11rem, 15vw, 14rem) 0 clamp(9rem, 13vw, 12rem);
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 4.5rem, 66% 0, 100% 2.5rem, 100% 100%, 0 100%);
  background:
    radial-gradient(circle at 52% 54%, rgb(116 30 48 / 0.42), transparent 27rem),
    linear-gradient(145deg, #19111a 0%, var(--rhythm-stage) 55%, #0d0b10 100%);
}

body[data-current="home"] .programme-desk::after {
  content: "";
  position: absolute;
  inset: 4.5rem 0 auto;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(216 181 120 / 0.65), transparent);
  box-shadow: 0 18rem 8rem rgb(216 181 120 / 0.05);
}

body[data-current="home"] .programme-desk > .container {
  width: min(calc(100% - 10vw), 72rem);
  max-width: 72rem;
}

body[data-current="home"] .programme-desk .home-section-heading {
  max-width: 46rem;
  margin: 0 auto clamp(4.5rem, 7vw, 6.5rem);
  text-align: center;
}

body[data-current="home"] .programme-desk .home-section-heading h2 {
  font-size: clamp(3.4rem, 5.4vw, 5.8rem);
  line-height: 0.98;
}

body[data-current="home"] .programme-desk .home-section-heading p {
  max-width: 36rem;
  margin: 1.35rem auto 0;
}

body[data-current="home"] .programme-desk-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.3fr) minmax(0, 0.76fr);
  align-items: stretch;
}

body[data-current="home"] .desk-performance {
  position: relative;
  z-index: 2;
  transform: translateY(-1.75rem) scale(1.035);
  box-shadow: 0 3rem 7rem rgb(0 0 0 / 0.34), 0 0 0 1px rgb(216 181 120 / 0.12);
}

body[data-current="home"] .desk-notices,
body[data-current="home"] .desk-academic {
  transform: translateY(1.25rem);
}

/* Peak 2: media becomes a full visual movement rather than an interstitial banner. */
body[data-current="home"] .media-story {
  position: relative;
  z-index: 4;
  min-height: 94dvh;
  overflow: hidden;
  background: var(--rhythm-deep);
  box-shadow: 0 -3rem 8rem rgb(0 0 0 / 0.24);
}

body[data-current="home"] .media-story-image {
  transform: scale(1.1);
  transform-origin: 58% 50%;
  filter: saturate(0.9) contrast(1.08);
}

body[data-current="home"] .media-story-depth {
  transform: translate3d(3vw, -2vw, 0) scale(1.05);
  box-shadow: 0 2.5rem 6rem rgb(0 0 0 / 0.45);
}

body[data-current="home"] .media-story-scrim {
  background: linear-gradient(90deg, rgb(22 10 14 / 0.94) 0%, rgb(35 14 19 / 0.65) 47%, rgb(14 10 12 / 0.16) 78%);
}

body[data-current="home"] .media-story-copy {
  align-self: end;
  width: min(calc(100% - 10vw), 80rem);
  max-width: 80rem;
  padding-bottom: clamp(7.5rem, 13vw, 12rem);
}

body[data-current="home"] .media-story-copy h2 {
  max-width: 11.5em;
  font-size: clamp(4rem, 7.3vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 1.2rem 3rem rgb(0 0 0 / 0.42);
}

body[data-current="home"] .media-story-copy p {
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

/* Quiet editorial rest after the second peak. */
body[data-current="home"] .home-education {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  margin-top: -3.75rem;
  padding: clamp(11rem, 16vw, 15rem) 0 clamp(9rem, 13vw, 12rem);
  background:
    linear-gradient(90deg, transparent 0 8%, rgb(216 181 120 / 0.1) 8% calc(8% + 1px), transparent calc(8% + 1px)),
    var(--rhythm-paper);
  box-shadow: 0 -2rem 6rem rgb(25 13 17 / 0.18);
}

body[data-current="home"] .home-education .editorial-grid {
  width: min(calc(100% - 12vw), 68rem);
  max-width: 68rem;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(5rem, 9vw, 8.5rem);
  align-items: start;
}

body[data-current="home"] .home-education .editorial-lead {
  position: static;
  padding-top: clamp(2rem, 5vw, 5rem);
}

body[data-current="home"] .home-education .editorial-lead h2 {
  font-size: clamp(3.6rem, 5.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body[data-current="home"] .home-education .channel-directory {
  transform: translateY(clamp(3rem, 6vw, 5.5rem));
  box-shadow: 0 2.5rem 6rem rgb(54 27 25 / 0.08);
}

/* Long rest: partnership is centered, spacious and intentionally low density. */
body[data-current="home"] .home-partnership {
  position: relative;
  min-height: 112dvh;
  padding: clamp(13rem, 19vw, 18rem) 0 clamp(14rem, 20vw, 19rem);
  background:
    radial-gradient(circle at 50% 45%, rgb(255 254 249 / 0.95), transparent 30rem),
    linear-gradient(180deg, #eef0ec 0%, var(--rhythm-calm) 100%);
}

body[data-current="home"] .home-partnership::before {
  content: "";
  position: absolute;
  top: clamp(5rem, 9vw, 8rem);
  left: 50%;
  width: 1px;
  height: clamp(4rem, 8vw, 7rem);
  background: linear-gradient(var(--rhythm-gold), transparent);
}

body[data-current="home"] .home-partnership > .container {
  width: min(calc(100% - 8vw), 82rem);
  max-width: 82rem;
}

body[data-current="home"] .home-partnership .home-section-heading {
  max-width: 62rem;
  margin: 0 auto clamp(7rem, 11vw, 10rem);
  text-align: center;
}

body[data-current="home"] .home-partnership .home-section-heading h2 {
  font-size: clamp(3.5rem, 6vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

body[data-current="home"] .home-partnership .home-section-heading p {
  max-width: 43rem;
  margin: 1.75rem auto 0;
}

body[data-current="home"] .home-partnership .partner-composition {
  width: min(100%, 68rem);
  margin-inline: auto;
  gap: clamp(2rem, 5vw, 5rem);
}

/* Short final rest before the deep closing. */
body[data-current="home"] .home-people {
  min-height: 78dvh;
  padding: clamp(7rem, 11vw, 10rem) 0 clamp(8rem, 12vw, 11rem);
  background: linear-gradient(180deg, #fffef9, #fbf8f0);
}

body[data-current="home"] .home-people .people-archive {
  width: min(calc(100% - 14vw), 70rem);
  max-width: 70rem;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(5rem, 10vw, 9rem);
  align-items: center;
}

body[data-current="home"] .home-people .people-visual {
  transform: scale(0.92);
  box-shadow: 0 2.5rem 5rem rgb(85 16 30 / 0.14);
}

body[data-current="home"] .home-people .people-copy h2 {
  max-width: 7.5em;
  font-size: clamp(3.4rem, 5.4vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

/* Deep closing: more vertical weight and a quieter terminal hierarchy. */
body[data-current="home"] .site-footer {
  min-height: 31rem;
  padding-top: clamp(7rem, 11vw, 10rem);
  border-top: 4px solid var(--rhythm-gold);
  background:
    radial-gradient(circle at 18% 0%, rgb(117 35 50 / 0.42), transparent 28rem),
    linear-gradient(145deg, #32171a, #1f1113 72%);
}

body[data-current="home"] .site-footer .footer-grid {
  width: min(calc(100% - 8vw), 80rem);
  max-width: 80rem;
  grid-template-columns: minmax(20rem, 1.5fr) minmax(9rem, 0.52fr) minmax(14rem, 0.78fr);
  gap: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

body[data-current="home"] .site-footer .footer-brand img {
  width: min(100%, 27rem);
}

body[data-current="home"] .site-footer .footer-intro {
  max-width: 36rem;
}

body[data-current="home"] .site-footer .footer-bottom {
  margin-top: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 62rem) {
  body[data-current="home"] .home-news > .container,
  body[data-current="home"] .programme-desk > .container,
  body[data-current="home"] .home-education .editorial-grid,
  body[data-current="home"] .home-partnership > .container,
  body[data-current="home"] .home-people .people-archive,
  body[data-current="home"] .site-footer .footer-grid {
    width: min(calc(100% - 3rem), 48rem);
  }

  body[data-current="home"] .home-news .news-editorial-grid,
  body[data-current="home"] .home-news .latest-news,
  body[data-current="home"] .home-education .editorial-grid,
  body[data-current="home"] .home-people .people-archive,
  body[data-current="home"] .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  body[data-current="home"] .home-news .news-editorial-feature {
    transform: none;
  }

  body[data-current="home"] .programme-desk {
    min-height: auto;
  }

  body[data-current="home"] .programme-desk-grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-current="home"] .desk-performance {
    grid-column: 1 / -1;
    grid-row: 1;
    transform: none;
  }

  body[data-current="home"] .desk-notices,
  body[data-current="home"] .desk-academic {
    transform: none;
  }

  body[data-current="home"] .home-education .channel-directory {
    transform: none;
  }

  body[data-current="home"] .home-partnership .partner-composition {
    grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr);
  }
}

@media (max-width: 44rem) {
  body[data-current="home"] main {
    overflow: hidden;
  }

  body[data-current="home"] .home-news,
  body[data-current="home"] .programme-desk,
  body[data-current="home"] .home-education,
  body[data-current="home"] .home-partnership,
  body[data-current="home"] .home-people {
    min-height: auto;
  }

  body[data-current="home"] .home-news {
    padding: 5.5rem 0 7rem;
  }

  body[data-current="home"] .home-news .home-section-heading h2,
  body[data-current="home"] .programme-desk .home-section-heading h2,
  body[data-current="home"] .home-education .editorial-lead h2,
  body[data-current="home"] .home-partnership .home-section-heading h2,
  body[data-current="home"] .home-people .people-copy h2 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  body[data-current="home"] .programme-desk {
    margin-top: -2rem;
    padding: 8rem 0 7rem;
    clip-path: polygon(0 2rem, 70% 0, 100% 1.25rem, 100% 100%, 0 100%);
  }

  body[data-current="home"] .programme-desk-grid {
    grid-template-columns: 1fr;
  }

  body[data-current="home"] .media-story {
    min-height: 82dvh;
  }

  body[data-current="home"] .media-story-copy {
    width: calc(100% - 2rem);
    max-width: none;
    padding-bottom: 5.5rem;
  }

  body[data-current="home"] .media-story-copy h2 {
    max-width: 9em;
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  body[data-current="home"] .home-education {
    margin-top: -2rem;
    padding: 8.5rem 0 7.5rem;
  }

  body[data-current="home"] .home-education .editorial-grid {
    gap: 4rem;
  }

  body[data-current="home"] .home-education .editorial-lead {
    padding-top: 0;
  }

  body[data-current="home"] .home-education .channel-directory {
    grid-template-columns: 1fr;
  }

  body[data-current="home"] .home-partnership {
    padding: 10rem 0 11rem;
  }

  body[data-current="home"] .home-partnership .home-section-heading {
    margin-bottom: 6rem;
    text-align: left;
  }

  body[data-current="home"] .home-partnership .home-section-heading p {
    margin-left: 0;
  }

  body[data-current="home"] .home-partnership .partner-composition {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body[data-current="home"] .home-partnership .partner-bridge {
    min-height: 4rem;
  }

  body[data-current="home"] .home-people {
    padding: 7rem 0 8rem;
  }

  body[data-current="home"] .home-people .people-archive {
    gap: 3.5rem;
  }

  body[data-current="home"] .home-people .people-visual {
    transform: none;
  }

  body[data-current="home"] .site-footer {
    min-height: auto;
    padding-top: 6rem;
  }

  body[data-current="home"] .site-footer .footer-grid {
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-current="home"] .home-news .news-editorial-feature,
  body[data-current="home"] .desk-performance,
  body[data-current="home"] .desk-notices,
  body[data-current="home"] .desk-academic,
  body[data-current="home"] .media-story-image,
  body[data-current="home"] .media-story-depth,
  body[data-current="home"] .home-education .channel-directory,
  body[data-current="home"] .home-people .people-visual {
    transform: none;
  }
}