@font-face {
  font-family: "Noto Sans SC Home";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./public/fonts/noto-sans-sc-400-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC Home";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./public/fonts/noto-sans-sc-500-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC Home";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./public/fonts/noto-sans-sc-600-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC Home";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./public/fonts/noto-sans-sc-700-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Inter Home";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./public/fonts/inter-400-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Inter Home";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./public/fonts/inter-500-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Inter Home";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./public/fonts/inter-600-home.woff2?v=2") format("woff2");
}
@font-face {
  font-family: "Inter Home";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./public/fonts/inter-700-home.woff2?v=2") format("woff2");
}

/* The full families cover characters added later by the content editor. */
:root {
  --font: "Noto Sans SC Home", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --latin: "Inter Home", "Inter", Arial, sans-serif;
}

#home {
  --surface-blue: #e9f0f2;
  --surface-blue-hover: #dce7ec;
  --section-space: clamp(48px, 6vw, 88px);
  --layout-gap: clamp(24px, 4vw, 56px);
  --media-radius: var(--space-2);
}

.hero {
  display: grid;
  position: relative;
  height: clamp(300px, 38vw, 560px);
  background: var(--ink);
  color: var(--surface);
}
.slide {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  opacity: 1;
  transition: opacity 400ms ease;
}
.slide[aria-hidden="true"] { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.slide .slide-image--merlion { object-position: center 20%; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 31 50 / 67%), rgb(10 31 50 / 43%) 33%, transparent 65%); }
.hero h1 {
  position: absolute;
  z-index: 1;
  left: var(--content-start);
  top: 15%;
  max-width: 42%;
  margin: 0;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.23;
  text-wrap: balance;
}
.hero h1 .en {
  margin-top: 15px;
  max-width: 37ch;
  color: inherit;
  font-size: 17px;
  line-height: 1.45;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .hero { height: 330px; }
  .slide img { object-position: 76% center; }
  .slide .slide-image--merlion { object-position: 98% center; }
  .slide::after { background: linear-gradient(0deg, rgb(7 28 46 / 88%), rgb(7 28 46 / 55%) 39%, transparent 76%); }
  .hero h1 { top: auto; bottom: 22px; max-width: 83%; font-size: 31px; }
  .hero h1 .en { margin-top: var(--space-2); max-width: 34ch; font-size: var(--text-english); }
}

.principles { padding-block: clamp(40px, 5vw, 72px); }
.principles h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
  font-size: clamp(26px, 2.25vw, 34px);
  line-height: 1.35;
}
.principles h2 .en { margin: 0; font-size: var(--text-body); }
.principles h2::after {
  content: "";
  flex: 1;
  align-self: center;
  height: 1px;
  background: var(--line);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.principle img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.principle h3 { margin: var(--space-4) 0 0; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; }
.principle .en { font-size: var(--text-english); }
@media (max-width: 900px) {
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .principles h2 { gap: var(--space-3); }
  .principles h2 .en { font-size: var(--text-english); }
  .principles-grid { gap: var(--space-5) var(--space-3); }
  .principle img { aspect-ratio: 4 / 3; }
  .principle h3 { margin-top: var(--space-2); }
}

.launch-copy { container-type: inline-size; }
.launch-copy h2 .zh { text-wrap: wrap; }
.launch-copy h2 { margin: 0; font-size: min(9cqi, 36px); line-height: 1.35; font-weight: 700; }
.launch-section { padding-block: 68px; color: var(--surface); background: var(--ink); }
.launch-layout { display: grid; align-items: center; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 64px; }
.launch-copy h2 .en { margin-top: 20px; color: #d1e0e7; max-width: 31ch; font-size: var(--text-body); line-height: 1.5; }
.launch-media, .launch-preview { position: relative; }
.launch-preview {
  display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  background: transparent; color: var(--ink);
}
.launch-preview[hidden] { display: none; }
.launch-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.launch-play {
  position: absolute; left: 18px; bottom: 16px; display: inline-flex; align-items: center;
  gap: 10px; padding: 10px 17px; border-radius: 2em;
  background: var(--surface); font: 700 var(--text-english)/1.5 var(--font);
}
.launch-play small { font: 400 13px var(--latin); }
.launch-preview:hover .launch-play { background: var(--surface-blue); }
.launch-preview:focus-visible { outline: 3px solid var(--surface); outline-offset: 4px; }
.play-triangle { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.launch-error { margin-block: var(--space-2) 0; }

@media (max-width: 800px) {
  .launch-layout { gap: var(--space-5); }
}
@media (max-width: 640px) {
  .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-section { padding-block: 36px; }
  .launch-layout { gap: 22px; }
  .launch-copy h2 { font-size: min(9cqi, 25px); }
  .launch-copy h2 .en { font-size: var(--text-english); margin-top: 10px; max-width: 36ch; }
  .launch-play { left: 10px; bottom: 10px; padding: 6px 12px; }
}

.home-section { padding-block: var(--section-space); }
.home-featured-report .media-frame { border-radius: var(--media-radius); }
.text-link { display: inline-block; font-size: var(--text-body); text-underline-offset: 5px; }
.text-link .zh { text-decoration: underline; text-decoration-color: var(--gold); }
.text-link .en { font-size: var(--text-small); }
.text-link:hover .zh { text-decoration-color: currentColor; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-6); }
.home-section-heading h2 { margin: 0; }
.home-news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--layout-gap); }
.home-featured-report { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 360px; overflow: hidden; border-radius: var(--media-radius); color: var(--surface); }
.home-featured-report .media-frame { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.home-featured-report::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 10%, rgb(8 24 40 / 94%) 100%); }
.home-featured-copy { display: flex; align-items: flex-start; gap: var(--space-5); padding: var(--space-5); }
.home-featured-copy .en { color: inherit; }
.home-featured-copy h3 { font-size: var(--text-card-title); font-weight: normal; line-height: 1.55; margin: 0; }
.home-featured-copy .en { font-size: var(--text-english); }
.home-news time { border: 0; padding: 0; min-width: 64px; gap: var(--space-2); color: var(--muted); }
.home-news time b { color: var(--ink); }
.home-featured-copy time, .home-featured-copy time b { color: inherit; }
.press-logos { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); overflow-x: auto; padding: var(--space-2); margin: var(--space-7) 0 0; list-style: none; }
.press-logo { flex: 0 0 clamp(116px, 11vw, 144px); height: 64px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.press-logo:first-child { margin-inline-start: auto; }
.press-logo:last-child { margin-inline-end: auto; }
.press-logo img { display: block; max-width: 100%; max-height: 42px; width: auto; height: auto; mix-blend-mode: multiply; filter: grayscale(1); }
@media (hover: hover) {
  .press-logo:hover img { filter: none; }
}
.press-logo img[src$="press-jingshi.png"] { width: 100%; max-height: none; }
.press-logo img[src$="press-rmtt-square.png"] { max-height: 64px; mix-blend-mode: normal; }
.home-news-list { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); }
.home-news-list .row { border: 0; padding: var(--space-4); margin-inline: calc(-1 * var(--space-4)); border-radius: var(--media-radius); align-items: flex-start; }
.home-news-list .row:hover { background: var(--surface-blue); }
.home-featured-report:hover h3 .zh { text-decoration: underline; text-underline-offset: 5px; }
#home a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

@media (max-width: 900px) {
  .home-news-layout { gap: var(--space-6); }
}
@media (max-width: 760px) {
  .home-news-layout { grid-template-columns: minmax(0, 1fr); }
  .home-featured-copy { gap: var(--space-3); }
  .home-section-heading { align-items: flex-start; }
  .home-section-heading .text-link { flex-shrink: 0; }
  .home-news-list .row { margin-inline: 0; padding-inline: 0; }
}
