@import url("palette.css");

/* CUHK 2026–2030 Strategic Plan — version 4
   Typography: Basel Grotesk Light / Book / Medium (+ italics) */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&display=swap");

/*
  Licensed Optimo Basel Grotesk files in /fonts/:
  - Basel-Grotesk-Light.otf
  - Basel-Grotesk-Light-Italic.otf
  - Basel-Grotesk-Book.otf
  - Basel-Grotesk-Book-Italic.otf
  - Basel-Grotesk-Medium.otf

  Plus Jakarta Sans remains as fallback if Basel fails to load.
*/
@font-face {
  font-family: "Basel Grotesk";
  src:
    local("Basel Grotesk Light"),
    local("BaselGrotesk-Light"),
    url("../fonts/Basel-Grotesk-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basel Grotesk";
  src:
    local("Basel Grotesk Light Italic"),
    local("BaselGrotesk-LightItalic"),
    url("../fonts/Basel-Grotesk-Light-Italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Basel Grotesk";
  src:
    local("Basel Grotesk Book"),
    local("BaselGrotesk-Book"),
    url("../fonts/Basel-Grotesk-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basel Grotesk";
  src:
    local("Basel Grotesk Book Italic"),
    local("BaselGrotesk-BookItalic"),
    url("../fonts/Basel-Grotesk-Book-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Basel Grotesk";
  src:
    local("Basel Grotesk Medium"),
    local("BaselGrotesk-Medium"),
    url("../fonts/Basel-Grotesk-Medium.otf") format("opentype");
  font-weight: 500 535;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CUHK Grotesk Fallback";
  src: url("../fonts/PlusJakartaSans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CUHK Grotesk Fallback";
  src: url("../fonts/PlusJakartaSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CUHK Grotesk Fallback";
  src: url("../fonts/PlusJakartaSans-600-latin-ext.woff2") format("woff2");
  font-weight: 500 535;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "CUHK Grotesk Fallback";
  src: url("../fonts/PlusJakartaSans-600.woff2") format("woff2");
  font-weight: 500 535;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "CUHK Grotesk Fallback";
  src: url("../fonts/PlusJakartaSans-600.woff2") format("woff2");
  font-weight: 536 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --t: var(--highlight-lake);
  --i: var(--highlight-pine);
  --g: var(--purple-dynamic);
  --e: var(--utility-indigo);
  --r: var(--gold-dynamic);
  --text: #000000;
  --muted: #adadad;
  --cream: rgba(132, 117, 78, 0.1);
  /* Opaque surfaces used by banner title strips + following sections */
  --surface: #ffffff;
  /* Opaque cream = --cream over white; shared by hero + home-video */
  --surface-cream: #f3f1ed;
  --gray-bg: rgba(185, 185, 185, 0.1);
  --header-h: 100px;
  --max: 1440px;
  --wide-content: 1280px;
  --content: 1064px;
  --content-text: 1063px;
  --pad: 80px;
  --inset: 188px;
  --desktop-scale: 1;
  --fluid-gutter: clamp(24px, 5.56vw, 80px);
  --fluid-inset: clamp(24px, 13.06vw, 188px);
  /* Absolute left on full-bleed sections (banner titles) — includes artboard offset */
  --align-pad: max(var(--fluid-gutter), calc((100% - var(--max)) / 2 + var(--pad)));
  --align-inset: max(var(--fluid-inset), calc((100% - var(--max)) / 2 + var(--inset)));
  /* Padding inside centered max-width:1440 containers — NO artboard offset */
  --content-pad: var(--fluid-gutter);
  --content-inset: var(--fluid-inset);
  --section-padding: clamp(32px, 5vw, 72px) var(--content-pad);

  /* Figma Basel Grotesk weight map — Medium exports as 535 */
  --fw-light: 300;
  --fw-book: 400;
  --fw-medium: 535;

  /* Figma letter-spacing is 0%; slight positive tracking matches OTF rendering to design */
  --tracking: 0.01em;
  --tracking-display: 0.02em;

  --font: "Basel Grotesk", "CUHK Grotesk Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Allow mobile browser text zoom / accessibility font scaling */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-light);
  font-style: normal;
  color: var(--text);
  background: var(--surface);
  line-height: 1.333;
  font-size: 1.125rem; /* 18px — scales with user zoom */
  letter-spacing: var(--tracking);
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: clip;
  /* Whole-word wrap only — never split words with soft hyphens */
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/*
  Permanent page surface:
  main must be opaque so responsive reordering and section spacing
  can never expose a transparent/contrasting background.
*/
main {
  position: relative;
  background-color: var(--surface);
}

/*
  Never distort images: only scale proportionally.
  When a rule sets both width and height, it must also set object-fit
  to cover/contain (never the default fill).
*/
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.fw-light { font-weight: var(--fw-light); }
.fw-book { font-weight: var(--fw-book); }
.fw-medium { font-weight: var(--fw-medium); }

.highlight {
  color: var(--cuhk-purple);
  font-weight: var(--fw-medium);
}

.highlight-light {
  color: var(--cuhk-purple);
  font-weight: var(--fw-light);
}

.highlight-gold {
  color: var(--cuhk-gold);
  font-weight: var(--fw-medium);
}

.italic-purple {
  color: var(--cuhk-purple);
  font-style: italic;
  font-weight: var(--fw-medium);
}

em {
  font-style: italic;
  font-weight: var(--fw-book);
}

strong {
  font-weight: var(--fw-medium);
}

.tiger-initial {
  font-weight: var(--fw-medium);
}

.tiger-initial.t { color: var(--t); }
.tiger-initial.i { color: var(--i); }
.tiger-initial.g { color: var(--g); }
.tiger-initial.e { color: var(--e); }
.tiger-initial.r { color: var(--r); }

/* VC intro paragraph: black text throughout */
.vc-intro-priorities,
.vc-intro-priorities strong,
.vc-intro-priorities em {
  color: #000;
}

/* ========== Artboard layout (Figma 1440 → RWD) ==========
   ≤1440: fluid inset from viewport edge
   >1440: content locks to centered 1440 frame (matches banner titles) */
.page-shell {
  box-sizing: border-box;
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
}

.page-shell--pad {
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.page-shell__inner {
  width: 100%;
  max-width: var(--content-text);
}

.page-shell__inner--wide {
  max-width: var(--wide-content);
}

.page-shell__inner--strategies {
  max-width: var(--content);
}

.page-banner {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  /* Always match following page content — never #eee (shows as gray title strip on mobile) */
  background: var(--surface);
}

/* Image in flow so native aspect ratio is preserved at every viewport width */
.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  margin: 0;
  object-fit: contain;
}

/*
  TIGER composite banners: layer 2 (right) + layer 1 (left) + title overlay.
  Layers share one 1440×450 frame; object-fit:contain keeps proportions exact.
*/
.page-banner--layered {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 450;
  overflow: hidden;
  background: #fff;
  line-height: 0;
  container-type: inline-size;
  container-name: layered-banner;
}

.page-banner--layered .banner-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  flex: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.page-banner--layered .banner-layer--back,
.page-banner--layered .banner-layer--r2 {
  z-index: 1;
}

.page-banner--layered .banner-layer--front,
.page-banner--layered .banner-layer--r1 {
  z-index: 2;
}

/* Soft white wash behind title (Figma Rectangle 10) — TIGER layered + About/Identity/Vision overlays */
.page-banner.page-banner--layered::before,
.page-banner:has(> .banner-title)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0) 71.63%
  );
  /* Above photo layers (≤3); below .banner-title / header (5) */
  z-index: 4;
  pointer-events: none;
}

.page-banner--layered .banner-layer--header {
  z-index: 5;
}

/*
  Text title overlay — Figma 1440×450:
  522×144 box, left 80px, vertically centered, 60/72 type.
  Theme color from T/I/G/E/R; Talent shadow is 0 4px 20px.
*/
.page-banner--layered .banner-layer--title {
  inset: auto;
  top: calc(50% - (100% * 144 / 450) / 2);
  left: calc(100% * 80 / 1440);
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  width: calc(100% * 522 / 1440);
  height: calc(100% * 144 / 450);
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  object-fit: unset;
  object-position: unset;
  font-family: var(--font);
  font-style: normal;
  font-weight: var(--fw-medium);
  font-size: 4.167cqi; /* 60 / 1440 */
  line-height: calc(72 / 60);
  letter-spacing: 0;
  color: var(--r);
  text-align: left;
  text-shadow: 0 0 20px #ffffff;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: none;
  filter: none;
  pointer-events: none;
}

.page-banner--layered .banner-layer--title .title-line {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  line-height: inherit;
  white-space: nowrap;
}

.page-banner--layered .banner-layer--title.color-t {
  color: var(--t);
  text-shadow: 0 4px 20px #ffffff;
}
.page-banner--layered .banner-layer--title.color-i { color: var(--i); }
.page-banner--layered .banner-layer--title.color-g { color: var(--g); }
.page-banner--layered .banner-layer--title.color-e { color: var(--e); }
.page-banner--layered .banner-layer--title.color-r { color: var(--r); }

.page-banner--layered .banner-layer--title .gold {
  color: var(--cuhk-gold);
}

.page-banner--layered .banner-layer--title .purple {
  color: var(--purple-dynamic);
}

html.js-motion .page-banner--layered:not(.is-banner-composed) .banner-layer {
  opacity: 0;
}

/* Identity: previous (left) → current slides in from right → final composite */
.page-banner--identity .banner-layer--start {
  z-index: 1;
}

.page-banner--identity .banner-layer--slide {
  z-index: 2;
}

.page-banner--identity .banner-layer--final {
  z-index: 3;
}

/* No-JS / reduced-motion: show the agreed left→right composite */
.page-banner--identity .banner-layer--start,
.page-banner--identity .banner-layer--slide {
  opacity: 0;
}

.page-banner--identity .banner-layer--final {
  opacity: 1;
}

.page-banner--identity.is-banner-composed .banner-layer--start,
.page-banner--identity.is-banner-composed .banner-layer--slide {
  opacity: 0;
  visibility: hidden;
}

.page-banner--identity.is-banner-composed .banner-layer--final {
  opacity: 1;
  visibility: visible;
}

/* Hold Identity overlay title + wash until the compose sequence finishes */
html.js-motion
  .identity-page
  .page-banner:has(.page-banner--identity:not(.is-banner-composed))::before {
  opacity: 0;
}

html.js-motion
  .identity-page
  .page-banner:has(.page-banner--identity.is-banner-composed)::before {
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Banner titles overlay the photo (About / Vision / Priorities / TIGER hub) */
.page-banner::after {
  display: none !important;
}

.page-banner .banner-title {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  z-index: 5;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0 var(--content-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  font-family: var(--font);
  font-style: normal;
  font-weight: var(--fw-medium);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  color: var(--cuhk-purple);
  filter: none;
  letter-spacing: 0;
  background: none;
  pointer-events: none;
  text-shadow: 0 0 20px #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-banner .banner-title .gold,
.page-banner .banner-title .purple {
  display: block;
  width: auto;
  max-width: 100%;
  letter-spacing: 0;
}

/* Vision / Priorities */
.page-banner .banner-title.size-58 {
  width: 100%;
  max-width: var(--max);
  height: auto;
  min-height: 0;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: var(--fw-medium);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--cuhk-gold);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  filter: none;
}

.page-banner .banner-title.size-58 .gold,
.page-banner .banner-title.size-58 .purple {
  display: block;
  width: auto;
  max-width: 100%;
  text-align: left;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}

.page-banner .banner-title .gold {
  color: var(--cuhk-gold);
}

.page-banner .banner-title .purple {
  color: var(--purple-dynamic);
}

.page-banner .banner-title.color-t,
.intro-copy .banner-title.color-t { color: var(--t); }
.page-banner .banner-title.color-i,
.intro-copy .banner-title.color-i { color: var(--i); }
.page-banner .banner-title.color-g,
.intro-copy .banner-title.color-g { color: var(--g); }
.page-banner .banner-title.color-e,
.intro-copy .banner-title.color-e { color: var(--e); }
.page-banner .banner-title.color-r,
.intro-copy .banner-title.color-r { color: var(--r); }

.intro-copy .banner-title .title-line {
  display: block;
  width: 100%;
}

/* ========== Homepage — Figma 220:3140 ========== */

/* Hero — full frame with overlaid tagline (Figma 220:3145) */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 600;
  overflow: hidden;
  background: #000;
}

.hero .hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the sky band visible under the sticky header (no top crop). */
  object-position: center top;
  background: #000;
  vertical-align: top;
}

.hero .hero-video {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero .hero-video.is-ready {
  opacity: 1;
}

/* Tagline — overlaid on hero media; left edge matches header logo */
.hero-text {
  position: absolute;
  left: var(--content-pad);
  top: 14%; /* sky band of the hero video */
  width: 691px;
  height: 192px;
  max-width: calc(100% - 96px);
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.9));
}

/* LEAPING */
.hero-text .line1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 341px;
  height: 96px;
  margin: 0;
  display: flex;
  align-items: center;
  font-family: "Basel Grotesk", var(--font);
  font-style: normal;
  font-weight: var(--fw-medium);
  font-size: clamp(36px, 5.55vw, 80px);
  line-height: 96px;
  color: var(--cuhk-gold);
  white-space: nowrap;
  letter-spacing: var(--tracking-display);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

/* Frame 9 — TO GREATNESS wrapper */
.hero-text-frame {
  position: absolute;
  left: 105px; /* 181 - 76 */
  top: 96px; /* 428 - 332 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  gap: 15px;
  width: 586px;
  height: 96px;
  max-width: calc(100% - 105px);
}

/* TO GREATNESS */
.hero-text .line2 {
  position: static;
  width: 586px;
  max-width: 100%;
  height: 96px;
  margin: 0;
  padding-left: 0;
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-family: "Basel Grotesk", var(--font);
  font-style: normal;
  font-weight: var(--fw-medium);
  font-size: clamp(36px, 5.55vw, 80px);
  line-height: 96px;
  color: var(--purple-dynamic);
  white-space: nowrap;
  letter-spacing: var(--tracking-display);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

/* Raine-style per-word hero motion targets */
.hero-text .hero-word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-text .hero-word--3 {
  margin-left: 0.28em;
}

html[lang="zh-Hant"] .hero-text .line1,
html[lang="zh-Hant"] .hero-text .line2,
html[lang="zh-Hans"] .hero-text .line1,
html[lang="zh-Hans"] .hero-text .line2 {
  font-family: "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans SC",
    "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

/* Video — 220:3499: cream, py 120, px 297 → 846 wide */
.home {
  position: relative;
  overflow: visible;
  width: 100%;
}

.home-video {
  position: relative;
  background: var(--surface-cream);
  /* Figma: 297px side padding on 1440 → centers 846px video */
  padding: 120px max(40px, calc((100% - 846px) / 2));
  overflow: hidden;
}

/*
  Home scroll: normal document flow — no sticky card-stack layering.
*/
.home > .hero,
.home > .home-video,
.home > .home-about,
.home > .home-tiger {
  position: relative;
  top: auto;
  isolation: auto;
  z-index: auto;
  box-shadow: none;
}

.home > .hero,
.home > .home-video {
  background: var(--surface-cream);
}

.home > .home-video {
  overflow: hidden;
}

.home > .home-about {
  background: var(--surface);
  overflow: visible;
}

.home > .home-tiger {
  background: #f8f8f8;
}

/* Inner pages: normal flow — no sticky banner cover stack */
main > .page-banner {
  position: relative;
  top: auto;
  z-index: auto;
  isolation: auto;
  background-color: var(--surface);
}

main > .page-banner ~ section {
  position: relative;
  z-index: auto;
  isolation: auto;
  background-color: var(--surface);
}

main > .page-banner ~ section::before {
  content: none;
}

main > .page-banner + section::before {
  box-shadow: none;
}

/*
  Strategy pages (T/I/G/E/R): banner photo + intro graphic must always abut.
  Sticky cover / upward shadow create a visual or layout seam — disable both.
*/
main:has(> .section-intro):has(> .strategies) > .page-banner {
  position: relative;
  top: auto;
  z-index: auto;
  isolation: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
}

main:has(> .section-intro):has(> .strategies) > .page-banner img {
  display: block;
  margin: 0;
  vertical-align: top;
}

main:has(> .section-intro):has(> .strategies) > .page-banner--layered img.banner-layer,
main:has(> .section-intro):has(> .strategies) > .page-banner.page-banner--layered > img.banner-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
}

main:has(> .section-intro):has(> .strategies) > .section-intro {
  position: relative;
  z-index: auto;
  isolation: auto;
  margin-top: 0;
  padding-top: 0;
}

main:has(> .section-intro):has(> .strategies) > .page-banner + .section-intro::before {
  box-shadow: none;
}

@media (min-width: 768px) {
  html {
    overflow-x: hidden;
  }

  body {
    width: auto;
    max-width: none;
    margin: 0;
    padding-top: calc(100px * var(--desktop-scale));
  }

  body > .site-header,
  body > main,
  body > main.home,
  body > .site-footer {
    width: 1440px;
    max-width: none;
    margin: 0;
    zoom: var(--desktop-scale);
  }

  :root {
    /* Fixed 1440px artboard values; the whole canvas scales as one unit. */
    --fluid-gutter: 80px;
    --fluid-inset: 188px;
    --content-pad: 80px;
    --content-inset: 188px;
  }

  .page-banner .banner-title {
    font-size: 56px;
  }

  .page-banner .banner-title.size-58 {
    font-size: 58px;
  }

  .hero-text .line1,
  .hero-text .line2 {
    font-size: 80px;
  }

  .tiger-page .page-banner .banner-title--tiger {
    font-size: 60px;
  }

  .home > .home-about,
  .home-about {
    height: 520px;
    min-height: 520px;
  }
}

.home-video .video-wrap {
  /* Half of the original 846×473 frame. */
  max-width: 423px;
  width: 100%;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 846 / 473;
  position: relative;
  background: #000;
  overflow: hidden;
}

.home-video .video-wrap img,
.home-video .video-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  display: block;
}

/* Figma video has no custom play button overlay — thumbnail is the YouTube frame */
.home-video .video-play {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.home-video .video-play span {
  display: none;
}

.deco-arcs {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-arcs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deco-arcs--video {
  /* Bottom-right of the video section. */
  right: 0;
  left: auto;
  top: auto;
  bottom: 0;
  width: 427px;
  height: 214px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-width: 40%;
}

.deco-arcs--video img {
  width: 214px;
  height: 427px;
  max-width: none;
  object-fit: contain;
  transform: rotate(90deg);
  opacity: 0.7;
}

/* About — Figma 220:3149
   Desktop: absolute artboard layout (702×352 crescent + copy at x:623).
   ≤767: stacked mobile column (see responsive block). */
.home-about {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: 520px;
  min-height: 520px;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #fff;
  scroll-margin-top: var(--header-h);
}

.home-about-visual {
  position: absolute;
  /*
    Figma x:-210 on the 1440 artboard: the arch intentionally bleeds
    beyond the left edge, as in the original desktop composition.
  */
  left: calc((100% - var(--max)) / 2 - 210px);
  top: 168px;
  width: 702px;
  max-width: none;
  height: 352px;
  padding: 0;
  overflow: hidden;
  /* Inline the mask so local file:// prototypes do not trigger CORS errors. */
  -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgdmlld0JveD0iMCAwIDcwMi4zMDQgMzUxLjk4NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImNsaXBwYXRoIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTAgMzUxLjk4NUMwIDMwNC41MSA5LjI5NjI0IDI1OC40MDEgMjcuNjM0NCAyMTQuOTQ0QzQ1LjMyMzIgMTczLjAxOCA3MC42MzA4IDEzNS4zODYgMTAyLjg0OCAxMDMuMDkyQzEzNS4wNjYgNzAuNzk4NCAxNzIuNjA4IDQ1LjQzMDggMjE0LjQzNiAyNy43QzI1Ny43ODkgOS4zMTgzMiAzMDMuNzg5IDIuODYxMDJlLTA1IDM1MS4xNTIgMi44NjEwMmUtMDVDMzk4LjUxNSAyLjg2MTAyZS0wNSA0NDQuNTE1IDkuMzE4MzIgNDg3Ljg2OCAyNy43QzUyOS42OTYgNDUuNDMwOCA1NjcuMjM4IDcwLjc5ODQgNTk5LjQ1NiAxMDMuMDkyQzYzMS42NzMgMTM1LjM4NiA2NTYuOTgxIDE3My4wMTggNjc0LjY3IDIxNC45NDRDNjkzLjAwOCAyNTguNDAxIDcwMi4zMDQgMzA0LjUxIDcwMi4zMDQgMzUxLjk4NUg1MDkuMDJDNTA5LjAyIDMwOS43MTcgNDkyLjU5OCAyNjkuOTgxIDQ2Mi43ODMgMjQwLjA5QzQzMi45NjggMjEwLjIwNCAzOTMuMzIxIDE5My43NDIgMzUxLjE1MiAxOTMuNzQyQzMwOC45ODQgMTkzLjc0MiAyNjkuMzQyIDIxMC4yMDQgMjM5LjUyMSAyNDAuMDlDMjA5LjcwNiAyNjkuOTc2IDE5My4yODQgMzA5LjcxNyAxOTMuMjg0IDM1MS45ODVIMFoiIGZpbGw9IiMwMDAiLz4KPC9nPgo8L3N2Zz4K");
  mask-image: url("data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgdmlld0JveD0iMCAwIDcwMi4zMDQgMzUxLjk4NSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9ImNsaXBwYXRoIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTAgMzUxLjk4NUMwIDMwNC41MSA5LjI5NjI0IDI1OC40MDEgMjcuNjM0NCAyMTQuOTQ0QzQ1LjMyMzIgMTczLjAxOCA3MC42MzA4IDEzNS4zODYgMTAyLjg0OCAxMDMuMDkyQzEzNS4wNjYgNzAuNzk4NCAxNzIuNjA4IDQ1LjQzMDggMjE0LjQzNiAyNy43QzI1Ny43ODkgOS4zMTgzMiAzMDMuNzg5IDIuODYxMDJlLTA1IDM1MS4xNTIgMi44NjEwMmUtMDVDMzk4LjUxNSAyLjg2MTAyZS0wNSA0NDQuNTE1IDkuMzE4MzIgNDg3Ljg2OCAyNy43QzUyOS42OTYgNDUuNDMwOCA1NjcuMjM4IDcwLjc5ODQgNTk5LjQ1NiAxMDMuMDkyQzYzMS42NzMgMTM1LjM4NiA2NTYuOTgxIDE3My4wMTggNjc0LjY3IDIxNC45NDRDNjkzLjAwOCAyNTguNDAxIDcwMi4zMDQgMzA0LjUxIDcwMi4zMDQgMzUxLjk4NUg1MDkuMDJDNTA5LjAyIDMwOS43MTcgNDkyLjU5OCAyNjkuOTgxIDQ2Mi43ODMgMjQwLjA5QzQzMi45NjggMjEwLjIwNCAzOTMuMzIxIDE5My43NDIgMzUxLjE1MiAxOTMuNzQyQzMwOC45ODQgMTkzLjc0MiAyNjkuMzQyIDIxMC4yMDQgMjM5LjUyMSAyNDAuMDlDMjA5LjcwNiAyNjkuOTc2IDE5My4yODQgMzA5LjcxNyAxOTMuMjg0IDM1MS45ODVIMFoiIGZpbGw9IiMwMDAiLz4KPC9nPgo8L3N2Zz4K");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Fan reveal starts collapsed from the left until GSAP runs */
@media (prefers-reduced-motion: no-preference) {
  html.js-motion .home-about-visual:not(.is-fan-revealed) {
    -webkit-clip-path: circle(0% at 0% 50%);
    clip-path: circle(0% at 0% 50%);
  }
}

/*
  Figma crop inside the 702×352 mask: image 761×508 at (-16, -146).
  Percentages keep the same crop while the frame scales.
*/
.home-about-visual img {
  position: absolute;
  left: calc(100% * -16 / 702);
  top: calc(100% * -146 / 352);
  width: calc(100% * 761 / 702);
  height: auto;
  max-width: none;
}

.home-about .about-copy {
  position: absolute;
  left: calc((100% - var(--max)) / 2 + 623px);
  top: 50%;
  transform: translateY(-50%);
  width: 629px;
  max-width: min(629px, calc((100% + var(--max)) / 2 - 623px - var(--content-pad)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  z-index: 1;
}

.home-about .about-copy .section-title,
.home-about .about-copy .section-subtitle,
.home-about .about-copy .body-text {
  margin: 0;
  width: 100%;
  text-align: left;
}

.home-about .about-copy .body-text {
  text-align: justify;
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
}

.home-about .about-copy .read-more {
  margin-top: 0;
}

/* Gray TIGER block — 220:3161: 1421px, content from top 157 */
.home-tiger {
  position: relative;
  background: var(--gray-bg);
  /* clip decorative art without creating a scroll container that breaks sticky */
  overflow: clip;
  padding: 157px 0 120px;
}

.home-tiger-inner {
  position: relative;
  z-index: 1;
  width: 846px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

:is(.home-tiger, .tiger-reveal) .section-stack {
  width: 798px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

:is(.home-tiger, .tiger-reveal) .section-stack .section-title {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--cuhk-purple);
}

:is(.home-tiger, .tiger-reveal) .section-stack .body-text {
  margin: 0;
  width: 100%;
  text-align: justify;
}

:is(.home-tiger, .tiger-reveal) .section-stack .read-more {
  margin-top: 0;
  align-self: flex-start;
}

.home-tiger .section-stack + .section-stack,
.home-tiger .section-stack + .tiger-reveal,
.home-tiger .section-stack + .tiger-reveal-stage {
  margin-top: 80px;
}

/* Native sticky stage avoids fixed-position jumps inside the zoomed artboard. */
.tiger-reveal-stage {
  width: 100%;
  position: relative;
}

.tiger-reveal {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

:is(.home-tiger, .tiger-reveal) .tiger-list {
  position: relative;
  max-width: 608px;
}

.home-tiger .tiger-list,
.home-tiger .tiger-reveal .tiger-list {
  margin-top: 108px;
}

.tiger-page .tiger-reveal {
  /* JS fitStickyTop() recenters; this is a sensible fallback before measure. */
  top: calc(var(--header-h) + 12vh);
}

.tiger-page .tiger-reveal .tiger-list {
  margin: 0 auto;
}

/* Purple spine — grows upward through pill centers on scroll */
:is(.home-tiger, .tiger-reveal) .tiger-spine {
  position: absolute;
  width: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: var(--cuhk-purple);
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 0;
}

:is(.home-tiger, .tiger-reveal) .tiger-pill {
  z-index: 1;
  /* Avoid CSS transform transitions fighting GSAP scrub */
  transition: box-shadow 0.2s;
}

:is(.home-tiger, .tiger-reveal) .tiger-pill:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Homepage pills are white on gray (Figma 285:2372) */
.home-tiger .tiger-pill,
.home .tiger-pill {
  background: #fff;
}

.home-tiger .tiger-letter {
  color: #ffffff;
}

.tiger-page .tiger-reveal .tiger-pill {
  background: #f3f3f3;
}

.tiger-page .tiger-reveal .tiger-letter {
  color: #f3f3f3;
}

.deco-arcs--tiger {
  /* Figma: only the lower half remains visible at the bottom-right corner. */
  right: 0;
  bottom: -287px;
  left: auto;
  width: 295px;
  height: 589px;
  transform: scaleY(-1);
  max-width: 45%;
}

/* Sections */
.section {
  padding: 80px var(--pad);
}

/* Strategy pages — Figma 220:3367 / 220:3375
   Banner ends → intro starts immediately (no top gap).
   Row: 1280 wide, gap 40, items-end so text sits on graphic baseline.
   Graphic 503×250; text 629×163 / Basel Grotesk Book / 24px / 32px lh / left. */
.section-intro {
  box-sizing: border-box;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--content-pad) 80px;
}

.intro-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 40px;
  width: 100%;
  max-width: var(--wide-content);
  margin: 0 auto;
}

.intro-graphic {
  display: block;
  flex: 0 0 auto;
  width: 503px;
  max-width: min(503px, 100%);
  height: auto;
  aspect-ratio: 1006 / 500;
  object-fit: contain;
  object-position: top center;
}

.intro-text {
  flex: none;
  order: 1;
  flex-grow: 0;
  box-sizing: border-box;
  width: 629px;
  max-width: 629px;
  min-height: 163px;
  margin: 0;
  font-family: var(--font);
  font-style: normal;
  font-weight: var(--fw-book);
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: #000;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
}

/*
  TIGER strategy pages — desktop (≥768px):
  - Banner photo and intro graphic are flush (top-aligned row, no seam).
  - Page title sits above intro text beside the graphic.
  Breakpoint matches header hamburger so desktop nav never overflows.
*/
@media (min-width: 768px) {
  main:has(> .section-intro):has(> .strategies) .section-intro {
    padding: 0 var(--content-pad) 96px;
  }

  main:has(> .section-intro):has(> .strategies) .intro-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    padding: 0;
  }

  main:has(> .section-intro):has(> .strategies) .intro-graphic {
    display: block;
    margin: 0;
    align-self: flex-start;
    object-position: top left;
    vertical-align: top;
  }

  main:has(> .section-intro):has(> .strategies) .intro-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex: none;
    box-sizing: border-box;
    width: 629px;
    max-width: 629px;
    margin: 0 auto;
    padding-top: 48px;
  }

  main:has(> .section-intro):has(> .strategies) .intro-copy .banner-title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    filter: none;
    background: transparent;
    font-size: 48px;
    font-weight: var(--fw-medium);
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
  }

  main:has(> .section-intro):has(> .strategies) .intro-copy .intro-text {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-book);
    line-height: 1.5;
    text-align: center;
  }

  /* Keep editorial two-line intros from reflowing to a third orphan line */
  main:has(> .section-intro):has(> .strategies) .intro-copy .intro-text > .intro-text-line {
    white-space: nowrap;
  }
}

/* Color accents for strategy titles living in .page-banner (legacy) or .intro-copy */
.page-banner .banner-title.color-t,
.page-banner .banner-title.color-i,
.page-banner .banner-title.color-g,
.page-banner .banner-title.color-e,
.page-banner .banner-title.color-r {
  line-height: 1.15;
  min-height: 0;
  filter: none;
}

.section-narrow {
  max-width: var(--content);
  margin: 0 auto;
}

.section-cream {
  background: var(--cream);
}

.section-gray {
  background: var(--gray-bg);
}

.section-title {
  font-size: 40px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-purple);
  margin: 0 0 20px;
  letter-spacing: var(--tracking-display);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

.section-title.gold {
  color: var(--cuhk-gold);
}

.section-subtitle {
  font-size: 32px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-gold);
  margin: 0 0 10px;
  letter-spacing: var(--tracking-display);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

.body-text {
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
  text-align: justify;
}

.body-text:has(> p) {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.body-text .fw-book,
.body-text .em-book {
  font-weight: var(--fw-book);
}

.body-text.lg {
  font-size: 18px;
  line-height: 24px;
}

.body-text > p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
}

.body-text p {
  margin: 0 0 24px;
}

.body-text:has(> p) > p,
.body-text p:last-child {
  margin-bottom: 0;
}

.body-text + .body-text {
  margin-top: 24px;
}

/* Homepage ABOUT block — Figma gap 10px */
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 629px;
}

.about-copy .section-title,
.about-copy .section-subtitle,
.about-copy .body-text {
  margin: 0;
  width: 100%;
}

.about-copy .read-more {
  margin-top: 0;
}

/* Homepage CUHK / TIGER stacks — Figma gap 20px / 80px */
.section-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.section-stack .section-title,
.section-stack .body-text {
  margin: 0;
  width: 100%;
}

.section-stack .read-more {
  margin-top: 0;
  align-self: flex-start;
}

.section-stack + .section-stack {
  margin-top: 80px;
}

/* Figma 220:3662 — Read more: purple + elongated arrow on hover */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  font-size: 18px;
  font-weight: var(--fw-book);
  line-height: normal;
  color: #000;
  transition: color 0.25s ease;
}

.read-more:hover {
  color: var(--cuhk-purple);
}

.read-more::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 24px;
  margin-left: 4px;
  background: currentColor;
  transition: width 0.35s ease;
  /* Long arrow (38×24); clipped to short width, grows from the left on hover */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24' fill='none'%3E%3Cpath d='M4.9 12H35.87M29 19L35.87 12L29 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 38px 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24' fill='none'%3E%3Cpath d='M4.9 12H35.87M29 19L35.87 12L29 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 38px 24px no-repeat;
}

.read-more:hover::after {
  width: 38px;
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-circle {
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}

.about-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video */
.video-wrap {
  max-width: 846px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-wrap img,
.video-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: none;
  color: #fff;
}

.video-play span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(125, 40, 130, 0.9);
  display: grid;
  place-items: center;
  font-size: 28px;
  padding-left: 4px;
}

/* TIGER pills — match Figma 220:3224 exactly */
.tiger-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 608px;
  margin: 80px auto 0;
}

.tiger-leap-aspiration {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: min(90vw, 608px);
  margin: 0;
  color: var(--cuhk-purple);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.95);
}

.tiger-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  background: #fff;
  border-radius: 50px;
  padding: 0 29px 0 0;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-gray .tiger-pill,
.tiger-page .tiger-pill {
  background: #f3f3f3;
}

/* Homepage overrides gray pill fill */
.home-tiger .tiger-pill {
  background: #fff;
}

.tiger-pill:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tiger-dot {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  margin: -5px 0;
  border-radius: 50%;
  overflow: hidden;
}

.tiger-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Letter sits over the circle at 70% opacity (Figma: matches pill fill) */
.tiger-letter {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: var(--fw-medium);
  line-height: normal;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
  color: #ffffff;
}

.tiger-page .tiger-letter {
  color: #f3f3f3;
}

.tiger-pill .label {
  font-size: 28px;
  font-weight: var(--fw-medium);
  line-height: normal;
  white-space: nowrap;
}

.tiger-pill.t .label { color: var(--t); }
.tiger-pill.i .label { color: var(--i); }
.tiger-pill.g .label { color: var(--g); }
.tiger-pill.e .label { color: var(--e); }
.tiger-pill.r .label { color: var(--r); }

/* Figma 297:3458 / 220:3276 — purple gradient border callout (scales to content) */
.tiger-callout {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: var(--content);
  height: auto;
  min-height: 136px;
  margin: 120px auto 0;
  padding: 32px 40px;
  border: 3px solid transparent;
  border-radius: 30px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
      90deg,
      rgba(232, 232, 232, 0.55) 0%,
      rgba(200, 164, 203, 0.7) 18%,
      var(--purple-dynamic) 48%,
      var(--purple-dynamic) 100%
    ) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiger-callout p {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  text-align: center;
  font-style: normal;
  font-weight: var(--fw-light);
  font-size: 24px;
  line-height: 32px;
  color: #000000;
}

.tiger-callout .highlight {
  font-weight: var(--fw-medium);
  color: var(--cuhk-purple);
}

/* TIGER page layout — Figma 220:3224 */
.tiger-page .section {
  box-sizing: border-box;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 120px var(--content-inset) 200px;
  background: var(--surface);
}

.tiger-page .section-narrow {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.tiger-page .section-narrow > .body-text {
  text-align: justify;
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
}

.tiger-page .section-narrow > .body-text + .body-text {
  margin-top: 24px;
}

.tiger-page .page-banner {
  height: auto;
  overflow: visible;
}

.tiger-page .page-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* TIGER hub title — overlaid on the banner photo */
.tiger-page .page-banner .banner-title--tiger {
  position: absolute;
  inset: 0;
  transform: none;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0 var(--content-pad);
  font-size: clamp(28px, 4vw, 60px);
  font-weight: var(--fw-medium);
  line-height: 1.15;
  z-index: 4;
  filter: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  letter-spacing: 0;
  background: none;
  pointer-events: none;
  text-shadow: 0 0 20px #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tiger-page .page-banner .banner-title--tiger .line-1,
.tiger-page .page-banner .banner-title--tiger .line-2 {
  display: block;
  text-align: left;
}

/* Keep "The TIGER’s" (and CN equivalents) on one line — override global block .gold/.purple */
.tiger-page .page-banner .banner-title--tiger .line-1 .gold,
.tiger-page .page-banner .banner-title--tiger .line-1 .purple {
  display: inline;
  width: auto;
}

.tiger-page .page-banner .banner-title--tiger .line-2 {
  margin-top: 0;
}

/* Message / portrait layouts — Figma 220:3492: 1440 artboard, px 188 */
.message-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 303px 629px;
  justify-content: space-between;
  gap: 40px;
  align-items: start;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 80px var(--content-inset);
}

.message-row.reverse {
  grid-template-columns: 629px 303px;
}

.about-page .message-row:nth-of-type(2) {
  padding-top: 120px;
  min-height: 991px;
}

.message-row + .message-row {
  border-top: 1px solid #ddd;
}

.about-page .message-row:last-of-type {
  grid-template-columns: 330px 629px;
}

.about-page .message-row:nth-of-type(2) .portrait {
  /* New Chai portrait — bias up so more of head/shoulders show */
  aspect-ratio: 303 / 380;
  object-position: center 18%;
}

.about-page .message-row:nth-of-type(3) {
  min-height: 1077px;
}

.about-page .message-row:last-of-type .portrait {
  max-width: 330px;
  aspect-ratio: 330 / 450;
}

.about-page .message-row:nth-of-type(4) {
  min-height: 824px;
}

.portrait {
  width: 100%;
  max-width: 303px;
  aspect-ratio: 303 / 380;
  object-fit: cover;
  border-radius: 20px 0 20px 0;
}

/* Soft white feather on all four edges (like Figma soft-edge photo) */
.portrait-feather {
  border-radius: 0;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 6%,
      #000 16%,
      #000 84%,
      rgba(0, 0, 0, 0.35) 94%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 5%,
      #000 14%,
      #000 86%,
      rgba(0, 0, 0, 0.35) 95%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 6%,
      #000 16%,
      #000 84%,
      rgba(0, 0, 0, 0.35) 94%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 5%,
      #000 14%,
      #000 86%,
      rgba(0, 0, 0, 0.35) 95%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.message-title {
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-purple);
  margin: 0 0 24px;
}

.sign-off {
  margin-top: 24px;
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
}

.sign-off strong {
  color: var(--cuhk-purple);
  font-weight: var(--fw-medium);
}

/* Priority / strategy pages — intro row defined above with .section-intro */

.strategies {
  box-sizing: border-box;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--content-inset) 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.strategies > * {
  width: 100%;
  max-width: var(--content);
}

.strategies h2 {
  font-size: 36px;
  font-weight: var(--fw-medium);
  line-height: normal;
  margin: 0;
}

.strategies.t h2 { color: var(--t); }
.strategies.i h2 { color: var(--i); }
.strategies.g h2 { color: var(--g); }
.strategies.e h2 { color: var(--e); }
.strategies.r h2 { color: var(--r); }

.strategy-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.strategy-item h3 {
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: normal;
  margin: 0;
}

.strategies.t .strategy-item h3 { color: #cc5b17; }
.strategies.i .strategy-item h3 { color: #a54f46; }
.strategies.g .strategy-item h3 { color: #2a4888; }
.strategies.e .strategy-item h3 { color: #af7e2d; }
.strategies.r .strategy-item h3 { color: #077381; }

.strategy-item p {
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
  text-align: justify;
  margin: 0;
}

.strategy-item ol {
  margin: 0;
  padding-left: 28px;
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
}

/*
  Strategy cards (.strategies--cards):
  closed = centered title; open/hover = left-aligned title + body
  matching the flat card design (top accent, bottom rule).

  Desktop/tablet layouts (fixed until mobile):
  - default / 6 cards: 3 + 3
  - 5 cards (.g): 3 + 2 (bottom row wider)
  - 7 cards (.t / .e): 3 + 3 + 1 (last full width)
*/
.strategies.strategies--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px 24px;
  padding-bottom: 160px;
  counter-reset: strategy-card;
}

/* Global: 5 cards → 3 + 2, bottom two wider for alignment */
.strategies.strategies--cards.g {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.strategies.strategies--cards.g > .strategy-item {
  grid-column: span 2;
}

.strategies.strategies--cards.g > .strategy-item:nth-child(4),
.strategies.strategies--cards.g > .strategy-item:nth-child(5) {
  grid-column: span 3;
}

/* Talent / Education: 7 cards → 3 + 3 + 1 (7th full width) */
.strategies.strategies--cards.t,
.strategies.strategies--cards.e {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategies.strategies--cards.t > .strategy-item,
.strategies.strategies--cards.e > .strategy-item {
  grid-column: auto;
}

.strategies.strategies--cards.t > .strategy-item:nth-child(7),
.strategies.strategies--cards.e > .strategy-item:nth-child(7) {
  grid-column: 1 / -1;
}

.strategies.strategies--cards > h2 {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-bottom: 8px;
}

.strategies.strategies--cards > .strategy-item {
  --strategy-card-pad: 28px;
  --strategy-card-gap: 16px;
  --strategy-card-title: #20818e;
  --strategy-card-accent: var(--r);
  --strategy-card-bg: #fff;
  --strategy-card-bg-hover: var(--strategy-card-accent);
  --strategy-card-number-front: color-mix(in srgb, var(--strategy-card-accent) 22%, #fff);
  --strategy-card-number-back: color-mix(in srgb, #000 18%, var(--strategy-card-accent));
  --strategy-card-flip: 7s;
  --strategy-card-text: 0.55s;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: var(--strategy-card-pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--strategy-card-gap);
  overflow: hidden;
  background: var(--strategy-card-bg);
  border-radius: 28px;
  /* Constant soft shadow — never changes on hover (avoids neighbor bleed) */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  outline: 3px solid transparent;
  outline-offset: 3px;
  cursor: default;
  counter-increment: strategy-card;
  /* Leave fast so the previous card snaps closed when moving to the next */
  transition:
    background-color 0.18s ease,
    outline-color 0.18s ease;
}

/* Top accent bar (follows rounded corners) — non-3d fallback */
.strategies.strategies--cards > .strategy-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 2;
  transition: background-color 0.18s ease;
}

/* Theme accents; flipped face = solid TIGER color */
.strategies.strategies--cards.t > .strategy-item {
  --strategy-card-title: #cc5b17;
  --strategy-card-accent: var(--t);
  --strategy-card-bg: #fff;
  --strategy-card-bg-hover: var(--t);
}

.strategies.strategies--cards.i > .strategy-item {
  --strategy-card-title: #a54f46;
  --strategy-card-accent: var(--i);
  --strategy-card-bg: #fff;
  --strategy-card-bg-hover: var(--i);
}

.strategies.strategies--cards.g > .strategy-item {
  --strategy-card-title: #2a4888;
  --strategy-card-accent: var(--g);
  --strategy-card-bg: #fff;
  --strategy-card-bg-hover: var(--g);
}

.strategies.strategies--cards.e > .strategy-item {
  --strategy-card-title: #af7e2d;
  --strategy-card-accent: var(--e);
  --strategy-card-bg: #fff;
  --strategy-card-bg-hover: var(--e);
}

.strategies.strategies--cards.r > .strategy-item {
  --strategy-card-title: #20818e;
  --strategy-card-accent: var(--r);
  --strategy-card-bg: #fff;
  --strategy-card-bg-hover: var(--r);
}

.strategies.strategies--cards > .strategy-item h3 {
  position: absolute;
  z-index: 2;
  left: var(--strategy-card-pad);
  right: var(--strategy-card-pad);
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: var(--fw-medium);
  line-height: 1.3;
  color: var(--strategy-card-title);
  transition:
    top 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.strategies.strategies--cards.r > .strategy-item h3 {
  color: var(--strategy-card-title);
}

/* Body stays in flow so height always fits the full copy. */
.strategies.strategies--cards .strategy-item-body {
  box-sizing: border-box;
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Leave fast — lingering open body reads as a “shadow” on the previous card */
  transition:
    opacity 0.15s ease,
    visibility 0s linear 0.15s;
}

.strategies.strategies--cards .strategy-item-body p,
.strategies.strategies--cards .strategy-item-body ol {
  margin: 0;
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: 1.45;
  color: #444;
  text-align: left;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.strategies.strategies--cards .strategy-item-body p + p,
.strategies.strategies--cards .strategy-item-body p + ol,
.strategies.strategies--cards .strategy-item-body ol + p {
  margin-top: 10px;
}

.strategies.strategies--cards .strategy-item-body ol {
  padding-left: 1.2em;
}

@media (hover: hover) and (pointer: fine) {
  /*
    Closed: real h3 stays colored and vertically centered (no transparent + ::after).
    Open on :hover only — avoid :focus-visible so click/inspect focus cannot
    leave the first card stuck open or blank.
  */
  .strategies.strategies--cards > .strategy-item:hover {
    background: var(--strategy-card-bg-hover);
    outline-color: transparent;
    transition:
      background-color var(--strategy-card-flip) cubic-bezier(0.22, 1, 0.36, 1),
      outline-color 0.18s ease;
  }

  .strategies.strategies--cards > .strategy-item:hover::before {
    background: var(--strategy-card-accent);
    transition: background-color var(--strategy-card-flip) cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Flat (non-3D) cards: open title goes left. 3D cards handle this on the back face. */
  .strategies.strategies--cards > .strategy-item:not(.strategy-card--3d):hover h3 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    color: var(--strategy-card-title);
    text-align: left;
  }

  .strategies.strategies--cards > .strategy-item:hover .strategy-item-body {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity var(--strategy-card-text) cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }
}

/* Touch: collapsed by default; tap (.is-open) reveals body */
@media (hover: none), (pointer: coarse) {
  .strategies.strategies--cards > .strategy-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 160px;
  }

  /* Flat cards only — 3D backs keep full content for equal-height sizing. */
  .strategies.strategies--cards > .strategy-item:not(.strategy-card--3d):not(.is-open) .strategy-item-body {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    flex: 0 0 auto;
    transition:
      opacity 0.15s ease,
      visibility 0s linear 0.15s,
      max-height 0s linear 0.15s;
  }

  .strategies.strategies--cards > .strategy-item:not(.strategy-card--3d).is-open {
    background: var(--strategy-card-bg-hover);
    outline-color: transparent;
    min-height: 0;
    transition:
      background-color var(--strategy-card-flip) cubic-bezier(0.22, 1, 0.36, 1),
      outline-color 0.18s ease;
  }

  .strategies.strategies--cards > .strategy-item.strategy-card--3d.is-open {
    background: transparent;
    outline-color: transparent;
  }

  .strategies.strategies--cards > .strategy-item.is-open::before {
    background: var(--strategy-card-accent);
    transition: background-color var(--strategy-card-flip) cubic-bezier(0.22, 1, 0.36, 1);
  }

  .strategies.strategies--cards > .strategy-item:not(.strategy-card--3d).is-open h3 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    text-align: left;
    color: var(--strategy-card-title);
  }

  .strategies.strategies--cards > .strategy-item.is-open .strategy-item-body {
    max-height: 80rem;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
    flex: 1 1 auto;
    transition:
      opacity var(--strategy-card-text) cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s,
      max-height 0s;
  }
}

/*
  Physical strategy-card turn. JavaScript preserves the semantic title/body
  on the back face and creates a decorative title-only front face.
*/
.strategies.strategies--cards > .strategy-item.strategy-card--3d {
  /* JS equalizes to tallest back-face content; keep a modest pre-JS fallback. */
  min-height: 200px;
  height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border-radius: 28px;
  box-shadow: none;
  outline: 0;
  perspective: 1400px;
  /* Avoid animating height — front/back must stay locked to the equalized size. */
  transition: none;
}

.strategies.strategies--cards > .strategy-item.strategy-card--3d::before {
  content: none;
}

.strategy-card-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateY(0deg);
  /* Slow at both ends, like a card turned by hand. */
  transition: transform 2s cubic-bezier(0.45, 0, 0.55, 1);
  will-change: transform;
}

.strategy-card-face {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: var(--strategy-card-pad);
  overflow: hidden;
  background: var(--strategy-card-bg);
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.strategy-card-front {
  display: flex;
  align-items: center;
  transform: rotateY(0deg);
  /* Very light accent bloom behind the corner number (~2–3%) */
  background:
    radial-gradient(
      ellipse 90% 80% at 100% 100%,
      color-mix(in srgb, var(--strategy-card-accent) 3%, transparent) 0%,
      color-mix(in srgb, var(--strategy-card-accent) 2%, transparent) 40%,
      transparent 72%
    ),
    #ffffff;
}

/* Front: top accent outline (closed state) */
.strategy-card-front::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--strategy-card-accent);
  border-radius: 28px 28px 0 0;
  pointer-events: none;
  z-index: 2;
}

.strategy-card-back {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--strategy-card-gap);
  background: var(--strategy-card-bg-hover);
  transform: rotateY(180deg);
}

/* Solid fill back — no separate top hairline */
.strategy-card-back::before {
  content: none;
}

/* Large corner numbering 01, 02… (Playfair Display) */
.strategy-card-front::after,
.strategy-card-back::after {
  content: counter(strategy-card, decimal-leading-zero);
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(96px, 11vw, 132px);
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

.strategy-card-front::after {
  color: var(--strategy-card-number-front);
}

.strategy-card-back::after {
  color: var(--strategy-card-number-back);
}

.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-face h3 {
  position: static;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  margin: 0;
  transform: none;
  color: var(--strategy-card-title);
}

/*
  Front (closed, not flipped): title centered in the card.
  Back (flipped/open): title left-aligned above body + white on solid fill.
*/
.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-front h3 {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--strategy-card-title);
}

.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-back {
  text-align: left;
}

.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-back h3 {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #fff;
}

.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-back .strategy-item-body,
.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-back .strategy-item-body p,
.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-back .strategy-item-body ol,
.strategies.strategies--cards > .strategy-item.strategy-card--3d .strategy-card-back .strategy-item-body li {
  position: relative;
  z-index: 1;
  color: #fff;
}

.strategies.strategies--cards .strategy-card-back .strategy-item-body {
  flex: 1 1 auto;
  max-height: none;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
  transition:
    opacity var(--strategy-card-text) ease,
    visibility 0s linear var(--strategy-card-text);
}

@media (hover: hover) and (pointer: fine) {
  .strategies.strategies--cards
    > .strategy-item.strategy-card--3d:hover
    > .strategy-card-inner {
    transform: rotateY(180deg);
  }

  .strategies.strategies--cards
    > .strategy-item.strategy-card--3d:hover
    .strategy-card-back
    .strategy-item-body {
    opacity: 1;
    visibility: visible;
    transition:
      opacity var(--strategy-card-text) ease 0.2s,
      visibility 0s;
  }
}

@media (hover: none), (pointer: coarse) {
  .strategies.strategies--cards
    > .strategy-item.strategy-card--3d.is-open
    > .strategy-card-inner {
    transform: rotateY(180deg);
  }

  .strategies.strategies--cards
    > .strategy-item.strategy-card--3d.is-open
    .strategy-card-back
    .strategy-item-body {
    max-height: none;
    opacity: 1;
    visibility: visible;
    transition:
      opacity var(--strategy-card-text) ease 0.2s,
      visibility 0s;
  }
}

@media (max-width: 767px) {
  .strategies.strategies--cards > .strategy-item.strategy-card--3d {
    /* JS equalizes every card to the tallest full-content height. */
    min-height: 210px;
    border-radius: 22px;
  }

  .strategy-card-face {
    border-radius: 22px;
  }

  /* Prefer fitting all copy via equalized height; scroll only as overflow safety. */
  .strategy-card-back {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .strategy-card-back::before {
    border-radius: 22px 22px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strategy-card-inner {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 1100px) {
  /* Keep 3 / 3+2 / 3+3+1 layouts down to mobile breakpoint */
  .strategies.strategies--cards {
    gap: 22px 18px;
  }
}

@media (max-width: 767px) {
  .strategies.strategies--cards {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 120px;
  }

  .strategies.strategies--cards.t,
  .strategies.strategies--cards.e,
  .strategies.strategies--cards.g {
    grid-template-columns: 1fr;
  }

  .strategies.strategies--cards.t > .strategy-item,
  .strategies.strategies--cards.e > .strategy-item,
  .strategies.strategies--cards.g > .strategy-item,
  .strategies.strategies--cards.t > .strategy-item:nth-child(7),
  .strategies.strategies--cards.e > .strategy-item:nth-child(7),
  .strategies.strategies--cards.g > .strategy-item:nth-child(4),
  .strategies.strategies--cards.g > .strategy-item:nth-child(5) {
    grid-column: auto;
  }

  .strategies.strategies--cards > .strategy-item {
    --strategy-card-pad: 22px;
    --strategy-card-gap: 14px;
    border-radius: 22px;
  }

  .strategies.strategies--cards > .strategy-item::before,
  .strategy-card-front::before {
    border-radius: 22px 22px 0 0;
  }

  .strategies.strategies--cards > .strategy-item h3 {
    font-size: clamp(18px, 4.2vw, 21px);
  }

  .strategy-card-front::after,
  .strategy-card-back::after {
    right: 8px;
    bottom: 10px;
    font-size: 88px;
  }
}

.content-block {
  box-sizing: border-box;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 120px var(--content-inset) 60px;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.about-detail-page .content-block > * {
  width: 100%;
  max-width: var(--content-text);
}

.about-detail-page main {
  position: relative;
  /* clip-x only — keep vertical overflow visible for deco arcs */
  overflow-x: clip;
  overflow-y: visible;
}

/* Vision/About/Priorities: mirrored quarter arc at the bottom-right. */
.about-detail-page main::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 295px;
  height: 350px;
  background: url("../assets/photos-summary__graphics__deco-arcs-identity.webp") center / 100% 100% no-repeat;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 3;
}

.about-detail-page .content-block {
  position: relative;
  z-index: 2;
}

/* Vision — Figma 220:3517: content area ~636px, title→body gap ~60 */
.vision-page .content-block {
  min-height: 636px;
  gap: 60px;
}

.identity-page .content-block {
  min-height: 1126px;
  gap: 24px;
  background-color: transparent;
}

/* Identity main section headings (Our Vision / Our Identity and Legacy) */
.identity-page .content-block h1 {
  font-size: 40px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-gold);
  margin: 0;
  text-transform: none;
}

.identity-page .content-block h1 .title-line {
  display: inline;
}

.identity-page .content-block h1 .title-line + .title-line::before {
  content: " ";
}

.identity-page .content-block h2 {
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-purple);
  margin: 0;
}

.identity-page .content-block h2 + .body-text {
  margin-top: 0;
}

.priorities-page .content-block {
  min-height: 1408px;
}

/* Identity — full banner at 1440×450, no crop/scale */
.identity-page .page-banner img {
  object-position: center;
  transform: none;
}

/* Identity — exact Figma 220:3554 export (295 × 350) */
.identity-page main::after {
  display: none;
}

.deco-arcs-identity {
  /* Identity: quarter arc at the bottom-left, behind copy */
  position: absolute;
  left: 0;
  bottom: 0;
  width: 295px;
  height: 350px;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: left bottom;
  transform: none;
  pointer-events: none;
  z-index: 0;
  max-width: 45%;
}

.content-block h1 {
  font-size: 40px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-gold);
  margin: 0;
  text-transform: capitalize;
}

.content-block h1 .title-line {
  display: inline;
}

.content-block h1 .title-line + .title-line::before {
  content: " ";
}

.content-block h2 {
  font-size: 24px;
  font-weight: var(--fw-medium);
  line-height: normal;
  color: var(--cuhk-purple);
  margin: 0;
}

.content-block .body-text {
  font-size: 18px;
  font-weight: var(--fw-light);
  line-height: 24px;
  text-align: justify;
  margin: 0;
}

.content-block .body-text.highlight {
  font-weight: var(--fw-light);
  color: var(--cuhk-purple);
}

.content-block .body-text + .body-text {
  margin-top: 0;
}

/* Footer — Figma 220:3189 */
.site-footer {
  background: var(--purple-dynamic);
  color: #fff;
  height: 121px;
  box-sizing: border-box;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw-medium);
  font-style: normal;
  line-height: 32px;
  color: #fff;
}

.footer-inner > p {
  margin: 0;
  max-width: 625px;
  flex: 1 1 auto;
}

.footer-links {
  margin: 0;
  max-width: 625px;
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}

.footer-links a {
  color: #fff;
  font: inherit;
  line-height: inherit;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .sep {
  margin: 0 0.35em;
  color: #fff;
}

.text-center {
  text-align: center;
}

.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }

/* Responsive page layout */
@media (max-width: 767px) {
  .about-split,
  .message-row,
  .message-row.reverse {
    grid-template-columns: 1fr;
  }

  .message-row {
    width: min(100%, var(--max));
    min-height: 0 !important;
    padding: 60px var(--content-pad);
  }

  .content-block {
    width: min(100%, var(--max));
    min-height: 0;
    padding: 80px var(--content-pad) 60px;
  }

  .message-row.reverse .portrait {
    order: -1;
  }

  .about-page .message-row:last-of-type {
    grid-template-columns: 1fr;
  }

  .section-intro {
    padding: 0 var(--content-pad) 60px;
  }

  .intro-row {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 24px;
  }

  .intro-graphic {
    flex: none;
    width: min(280px, calc(100% - 2 * var(--pad)));
    max-width: 280px;
    height: auto;
    aspect-ratio: 1006 / 500;
    object-fit: contain;
    object-position: left top;
    margin: 0;
    align-self: flex-start;
  }

  .intro-text {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    font-size: clamp(16px, 3.8vw, 18px);
    line-height: 1.55;
    text-align: left;
  }

  /*
    TIGER strategy pages (tablet/phone):
    Natural document order — no display:contents / flex order
    (those fought desktop order:0 and scrambled the stack).

    banner photo → intro graphic → title → intro text → strategies
  */
  main:has(> .section-intro):has(> .strategies) {
    display: block;
  }

  main:has(> .section-intro):has(> .strategies) > .page-banner,
  main:has(> .section-intro):has(> .strategies) > .section-intro,
  main:has(> .section-intro):has(> .strategies) .intro-row,
  main:has(> .section-intro):has(> .strategies) .intro-copy {
    display: block;
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    float: none;
  }

  /* Layered TIGER banner must stay a positioning context for absolute frames. */
  main:has(> .section-intro):has(> .strategies) > .page-banner.page-banner--layered {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1440 / 450;
    background: #fff;
  }

  main:has(> .section-intro):has(> .strategies) > .page-banner {
    line-height: 0;
  }

  main:has(> .section-intro):has(> .strategies) > .page-banner > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    position: static;
  }

  main:has(> .section-intro):has(> .strategies) > .page-banner.page-banner--layered > img.banner-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
  }

  main:has(> .section-intro):has(> .strategies) .intro-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  main:has(> .section-intro):has(> .strategies) .intro-graphic {
    display: block;
    order: 0;
    width: min(280px, calc(100% - 2 * var(--pad)));
    max-width: 280px;
    height: auto;
    aspect-ratio: 1006 / 500;
    margin: 0;
    padding: 0 0 0 var(--pad);
    box-sizing: content-box;
    object-fit: contain;
    object-position: left top;
    position: static;
    z-index: auto;
    align-self: flex-start;
  }

  main:has(> .section-intro):has(> .strategies) .intro-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 36px var(--pad) 56px;
    background: var(--surface);
  }

  main:has(> .section-intro):has(> .strategies) .intro-copy > .banner-title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    filter: none;
    background: transparent;
    font-size: clamp(26px, 6.5vw, 36px);
    line-height: 1.2;
    text-align: center;
  }

  main:has(> .section-intro):has(> .strategies) .intro-copy .intro-text {
    order: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 3.8vw, 18px);
    line-height: 1.55;
    position: static;
    background: transparent;
    text-align: center;
  }

  main:has(> .section-intro):has(> .strategies) > .strategies {
    position: relative;
    z-index: auto;
    background: var(--surface);
    box-shadow: none;
    margin: 0;
  }

  .strategies {
    width: min(100%, var(--max));
    padding: 0 var(--content-pad) 120px;
    gap: 28px;
  }

  /*
    Type hierarchy (mobile/tablet) — readable body, clear steps:
    banner h1 → strategies h2 → item h3 → body (~16–18px)
  */
  .strategies h2 {
    font-size: clamp(24px, 5.2vw, 30px);
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  .strategy-item {
    gap: 8px;
  }

  .strategy-item h3 {
    font-size: clamp(18px, 4.2vw, 21px);
    line-height: 1.35;
    letter-spacing: 0;
  }

  .strategy-item p,
  .strategy-item ol {
    font-size: clamp(16px, 3.8vw, 18px);
    line-height: 1.55;
    text-align: justify;
  }

  /*
    Same scale on About / Vision / Identity / Priorities / TIGER / messages:
    banner h1 → page h1 / section title → h2 / message title → body (~16–18px)
  */
  .content-block h1 {
    font-size: clamp(24px, 5.2vw, 30px);
    line-height: 1.25;
  }

  .identity-page .content-block h1 {
    font-size: clamp(26px, 5.5vw, 34px);
    line-height: 1.25;
    color: var(--cuhk-gold);
    text-transform: none;
  }

  .content-block h1 .title-line {
    display: block;
  }

  .identity-page .content-block h1 .title-line {
    display: inline;
  }

  .content-block h1 .title-line + .title-line::before {
    content: none;
  }

  .identity-page .content-block h1 .title-line + .title-line::before {
    content: " ";
  }

  .content-block h2,
  .message-title,
  .identity-page .content-block h2 {
    font-size: clamp(18px, 4.2vw, 21px);
    line-height: 1.35;
  }

  .identity-page .content-block h2 {
    color: var(--cuhk-purple);
  }

  .content-block .body-text,
  .tiger-page .section-narrow > .body-text,
  .message-row .body-text,
  .message-row .body-text > p,
  .sign-off {
    font-size: clamp(16px, 3.8vw, 18px);
    line-height: 1.55;
  }

  .section-title {
    font-size: clamp(24px, 5.2vw, 32px);
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: clamp(18px, 4.2vw, 22px);
    line-height: 1.35;
  }

  .intro-text {
    font-size: clamp(16px, 3.8vw, 18px);
    line-height: 1.55;
  }

  .tiger-callout p {
    font-size: clamp(16px, 3.8vw, 18px);
    line-height: 1.55;
  }

  /* Mobile/tablet: keep title overlaid on hero */
  .hero {
    height: auto;
    aspect-ratio: 1440 / 600;
    background: #000;
  }

  .hero .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .hero-text {
    position: absolute;
    left: var(--pad);
    top: 12%;
    bottom: auto;
    height: auto;
    width: auto;
    max-width: calc(100% - var(--pad) * 2);
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.9));
  }

  .hero-text-frame {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    align-items: flex-start;
    gap: 0;
  }

  .hero-text .line1,
  .hero-text .line2 {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    font-size: clamp(22px, 4.8vw, 48px);
    line-height: 1.2;
    display: block;
    white-space: nowrap;
  }

  .hero-text .line2 {
    margin-top: 0;
    padding-left: clamp(14px, 3.6vw, 62px);
  }

  .home-video {
    padding: 80px var(--pad);
  }

  .home-video .video-wrap {
    height: auto;
    aspect-ratio: 846 / 473;
  }

  .deco-arcs--video,
  .deco-arcs--tiger {
    display: block;
  }

  .deco-arcs--video {
    right: 0;
    width: min(280px, 55vw);
    height: min(140px, 28vw);
  }

  .deco-arcs--video img {
    width: min(140px, 28vw);
    height: min(280px, 55vw);
    object-fit: contain;
  }

  .deco-arcs--tiger {
    right: 0;
    bottom: max(-144px, -36vw);
    width: min(148px, 36vw);
    height: min(295px, 72vw);
  }

  .home-tiger {
    padding: 80px var(--pad);
  }

  .home-tiger-inner {
    width: 100%;
    max-width: 846px;
  }

  /* Mobile/tablet: tighten banner title under the photo */
  .page-banner,
  .tiger-page .page-banner {
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: auto;
    isolation: auto;
    overflow: visible;
    background: var(--surface);
  }

  .page-banner.page-banner--layered {
    display: block;
    overflow: hidden;
    aspect-ratio: 1440 / 450;
    background: #fff;
  }

  .page-banner img {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    position: static;
    z-index: auto;
  }

  .page-banner.page-banner--layered > img.banner-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    flex: none;
    object-fit: contain;
    object-position: center center;
  }

  .page-banner .banner-title,
  .page-banner .banner-title.size-58,
  .tiger-page .page-banner .banner-title--tiger {
    position: absolute;
    inset: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 var(--pad);
    box-sizing: border-box;
    filter: none;
    z-index: 4;
    background: none;
    pointer-events: none;
    text-shadow: 0 0 20px #ffffff;
    line-height: 1.2;
  }

  /* About / Identity: larger than .message-title (clamp 18–21px) on mobile */
  .page-banner .banner-title {
    font-size: clamp(22px, 5.2vw, 28px);
  }

  .page-banner .banner-title.size-58 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .tiger-page .page-banner .banner-title--tiger {
    font-size: clamp(26px, 6.5vw, 40px);
  }

  /*
    Mobile/tablet: no sticky card stack — banner + title + body scroll as one page.
  */
  main > .page-banner {
    position: relative;
    top: auto;
    z-index: auto;
    isolation: auto;
    background: var(--surface);
  }

  main > .page-banner ~ section {
    position: relative;
    z-index: auto;
    isolation: auto;
    background: var(--surface);
  }

  main > .page-banner ~ section::before {
    content: none;
  }

  main > .page-banner + section::before {
    box-shadow: none;
  }

  .tiger-page .section,
  .content-block,
  .section-intro,
  .strategies,
  .message-row {
    background: var(--surface);
  }

  .tiger-page .section {
    padding: 80px var(--content-pad) 120px;
  }

  .tiger-callout {
    margin-top: 80px;
    min-height: 0;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .about-detail-page main::after {
    right: 0;
    bottom: 0;
    width: 199px;
    height: 236px;
  }

  .identity-page main::after {
    display: none;
  }

  .deco-arcs-identity {
    left: 0;
    bottom: 0;
    width: 199px;
    height: 236px;
  }
}

@media (max-width: 767px) {
  .home > .home-about,
  .home-about {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 80px var(--pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
  }

  .home-about-visual {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 auto;
    width: min(480px, 100%);
    height: auto;
    padding: 0;
    aspect-ratio: 702 / 352;
    margin: 0 auto;
  }

  .home-about-visual img {
    position: absolute;
    left: calc(100% * -16 / 702);
    top: calc(100% * -146 / 352);
    width: calc(100% * 761 / 702);
    height: auto;
    max-width: none;
  }

  .home-about .about-copy {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 629px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  :root {
    --pad: 24px;
    --header-h: 72px;
    /* Match strategies body gutters across every mobile page. */
    --content-pad: 24px;
    --content-inset: 24px;
    --fluid-gutter: 24px;
    --fluid-inset: 24px;
  }

  .hero-text {
    top: 10%;
    bottom: auto;
  }

  .hero-text .line1,
  .hero-text .line2 {
    font-size: clamp(17px, 5.4vw, 26px);
  }

  .content-block {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--pad);
    padding-right: var(--pad);
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .content-block .body-text,
  .body-text {
    text-align: left;
  }

  .strategy-item p,
  .strategy-item ol {
    text-align: justify;
  }

  .about-detail-page main::after {
    right: 0;
    bottom: 0;
    width: 120px;
    height: 142px;
  }

  .identity-page main::after {
    display: none;
  }

  .deco-arcs-identity {
    left: 0;
    bottom: 0;
    width: 120px;
    height: 142px;
  }

  .section-intro {
    padding: 0 var(--content-pad) 48px;
  }

  .intro-row {
    gap: 20px;
  }

  .intro-graphic {
    width: min(150px, calc(100% - 2 * var(--pad)));
    max-width: 150px;
    align-self: flex-start;
    object-position: left top;
    margin: 0;
  }

  main:has(> .section-intro):has(> .strategies) .intro-graphic {
    width: min(150px, calc(100% - 2 * var(--pad)));
    max-width: 150px;
    padding-left: var(--pad);
    margin: 0;
    object-position: left top;
  }

  .tiger-list {
    max-width: 100%;
    gap: 28px;
  }

  .tiger-leap-aspiration {
    max-width: calc(100vw - 2 * var(--pad));
    font-size: clamp(18px, 5.5vw, 24px);
    white-space: normal;
  }

  .tiger-pill {
    height: 52px;
  }

  .tiger-pill .label {
    font-size: 16px;
    white-space: normal;
  }

  .tiger-dot {
    width: 56px;
    height: 56px;
  }

  .tiger-letter {
    width: 56px;
    height: 52px;
    font-size: 36px;
  }

  .tiger-callout {
    width: 100%;
    min-height: 0;
    padding: 28px 20px;
    margin-top: 48px;
    border-radius: 20px;
  }

  .site-footer {
    height: auto;
    min-height: 121px;
    padding: 28px var(--pad);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 24px;
  }

  .footer-links {
    text-align: left;
    white-space: normal;
  }
}

/* Text / media motion — whole-element reveals (no word/line split) */
@media (prefers-reduced-motion: no-preference) {
  /* Only hide while the motion system is active — never with bare html.js alone */
  html.js-motion .hero-text:not(.is-animated) .hero-word {
    opacity: 0;
  }

  html.js-motion .banner-title--tiger:not(.is-animated) .line-1,
  html.js-motion .banner-title--tiger:not(.is-animated) .line-2,
  html.js-motion .page-banner .banner-title:not(.is-revealed) > .gold,
  html.js-motion .page-banner .banner-title:not(.is-revealed) > .purple {
    opacity: 0;
  }

  html.js-motion .tiger-list:not(.is-pills-revealed) .tiger-pill {
    opacity: 0;
  }

  html.js-motion .js-reveal--title:not(.is-revealed),
  html.js-motion .js-reveal--banner:not(.is-revealed),
  html.js-motion .js-reveal--body:not(.is-revealed),
  html.js-motion .js-reveal--sub:not(.is-revealed),
  html.js-motion .js-reveal--soft:not(.is-revealed) {
    opacity: 0;
  }

  /* Multi-line banner parents stay visible; GSAP hides/reveals each line. */
  html.js-motion .banner-title.js-reveal--banner:not(.is-revealed):has(> .title-line),
  html.js-motion .banner-title.js-reveal--banner:not(.is-revealed):has(> .line-1) {
    opacity: 1;
  }

  html.js-motion .banner-title.js-reveal--banner:not(.is-revealed) > .title-line {
    opacity: 0;
  }
}

/* Hard guarantee: revealed / animated banner titles stay readable on every screen */
.page-banner .banner-title.is-revealed,
.page-banner .banner-title.is-animated,
.intro-copy .banner-title.is-revealed,
.js-reveal.is-revealed,
.banner-title.is-revealed .line-1,
.banner-title.is-revealed .line-2,
.banner-title.is-animated .line-1,
.banner-title.is-animated .line-2,
.banner-title.is-revealed .title-line,
.banner-title.is-animated .title-line,
.banner-title.is-revealed .gold,
.banner-title.is-revealed .purple,
.banner-title.is-animated .gold,
.banner-title.is-animated .purple {
  opacity: 1 !important;
  visibility: visible !important;
}

.page-transition,
.page-transition__curtain {
  display: none !important;
}
