/* ============================================================
   Wisesprout — Homepage (T1) · Editorial direction
   Faithful static port of the Claude Design mockup.
   Component styles use the design-system tokens (styles.css).
   ============================================================ */

/* Display / headline face — locale-split pairing:
     EN   → Hanken Grotesk (无衬线 · 现代利落)
     中文 → 宋体 serif (书卷气): Source Serif 4 西文 + Noto Serif SC 中文字形
   The 小草 logotype keeps its serif; the footer italic tagline stays serif too. */
:root { --font-display: 'Hanken Grotesk', system-ui, sans-serif; }
html[lang="zh"] { --font-display: 'Source Serif 4', 'Noto Serif SC', serif; }

/* Smooth in-page anchor scrolling; offset for the sticky header */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* media never overflows its column on narrow screens */
img { max-width: 100%; }

/* ---------- Primitives ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--brand-primary);
}
.eyebrow--center { text-align: center; }

.gold-rule { width: 40px; height: 2px; background: var(--brand-highlight); border: 0; }
.gold-rule--center { margin: 0 auto; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-link);
  text-decoration: none;
  white-space: nowrap;
}
.arrow-link .arrow { transition: transform var(--duration-fast) var(--ease-standard); }
.arrow-link:hover { text-decoration: none; color: var(--text-link-hover); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }

.btn--sm { padding: 7px 14px;  font-size: var(--text-body-sm); gap: 7px; }
.btn--md { padding: 10px 20px; font-size: var(--text-body);    gap: 8px; }
.btn--lg { padding: 14px 26px; font-size: var(--text-body-lg); gap: 10px; }

.btn--primary { background: var(--brand-primary); color: var(--text-on-sage); }
.btn--primary:hover { background: var(--brand-primary-hover); color: var(--text-on-sage); }

.btn--secondary { background: transparent; color: var(--text-heading); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-sunken); border-color: var(--ink-400); color: var(--text-heading); }

.btn--ghost { background: transparent; color: var(--text-heading); }
.btn--ghost:hover { background: var(--surface-sunken); color: var(--text-heading); }

/* Hero CTA — light editorial pill: sage outline + a small solid arrow-disc (lights to gold on hover) */
.cta-hero {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 7px 7px 7px 26px;
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--brand-primary);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--sage-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}
.cta-hero:hover {
  background: var(--sage-50);
  border-color: var(--sage-500);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(61, 97, 77, 0.32);
}
.cta-hero:active { transform: translateY(0); }
.cta-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 17px;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--brand-primary);
  transition: transform var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.cta-hero:hover .cta-hero__icon {
  transform: translateX(3px);
  background: var(--brand-primary);
  color: var(--text-on-sage);
}

/* ---------- LangToggle ---------- */

.langtoggle {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
}
.langtoggle button {
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.langtoggle button[aria-pressed="true"] { color: var(--brand-primary); background: var(--sage-100); box-shadow: 0 1px 2px rgba(31, 38, 31, 0.1); }

/* newsletter "subscribed" confirmation (replaces the form on submit) */
.bl-subdone, .notes__subdone { margin: 0; font-size: var(--text-body-sm); line-height: 1.6; font-weight: 600; color: var(--brand-primary); }

/* ---------- Header (editorial: centred nav, brand lives in the hero) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-hairline);
  transition: background 200ms var(--ease-standard),
              -webkit-backdrop-filter 200ms var(--ease-standard),
              backdrop-filter 200ms var(--ease-standard),
              box-shadow 200ms var(--ease-standard);
}
/* once scrolled away from the very top — frosted glass */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface-page) 70%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 6px 22px -18px rgba(31, 38, 31, 0.55);
}
/* pointer over the bar — snap back to crisp solid */
.site-header.is-scrolled:hover {
  background: var(--surface-page);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
}
/* nav home link inherits the normal menu-item style — identical to the others */

/* EN — real horizontal WISESPROUT® wordmark (green art on transparent) */
.logo-wordmark { display: block; height: 36px; width: auto; }

/* 中文 lockup — [emblem] │ 小草 (serif) */
.wordmark { color: var(--text-heading); display: inline-flex; align-items: center; }
.wordmark--zh { font-family: 'Noto Serif SC', 'Source Serif 4', serif; font-weight: 600; font-size: 27px; letter-spacing: 0.08em; line-height: 1; }
.wordmark--ondark { color: var(--text-on-dark); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-emblem { display: block; height: 36px; width: auto; }
.brand-divider { width: 1px; height: 24px; background: var(--border-strong); }
.brand-lockup.is-ondark .brand-divider { background: var(--border-on-dark); }

/* On dark surfaces, whiten the green art to read as cream-on-sage */
.logo-wordmark.is-ondark,
.brand-lockup.is-ondark .brand-emblem { filter: brightness(0) invert(1); opacity: 0.92; }

/* Footer sizing */
.site-footer__brand-mark .logo-wordmark { height: 16px; }
.site-footer__brand-mark .brand-emblem { height: 30px; }
.site-footer__brand-mark .wordmark--zh { font-size: 23px; }
.site-header__navrow { flex: 1; display: flex; align-items: center; gap: var(--space-5); }
.site-nav { display: flex; align-items: center; gap: var(--space-6); flex-wrap: nowrap; }
.site-nav a { font-size: var(--text-body-sm); font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.site-nav a:hover { color: var(--text-heading); text-decoration: none; }
/* WISESPROUT wordmark (R-mark stripped) is the left-anchored logo + home link;
   margin-auto pushes the rest of the nav right. Text label kept in DOM for a11y. */
.site-nav__home {
  margin-right: auto;
  display: block;
  width: 142.5px; height: 11.25px;
  background: url(assets/wordmark-plain.png) left center / contain no-repeat;
  font-size: 0; color: transparent;
}
.navrow__divider { width: 1px; height: 18px; background: var(--border-strong); }

/* hamburger — injected into every header, shown only on narrow screens */
.nav-toggle { display: none; }

/* ---------- Mobile nav (≤760px): logo stays, links collapse to a panel ---------- */
@media (max-width: 760px) {
  .site-header__navrow { flex-wrap: wrap; gap: 0 var(--space-4); }
  .site-nav__home { margin-right: auto; }

  .nav-toggle {
    order: 2;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 38px; padding: 10px 9px; margin-right: -9px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--text-heading); border-radius: 2px;
    transition: transform .22s var(--ease-standard), opacity .18s var(--ease-standard);
  }

  /* collapsed by default */
  .navrow__divider { display: none; }
  .site-nav { order: 3; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .langtoggle { order: 4; flex-basis: 100%; display: none; margin: var(--space-3) 0 var(--space-2); }

  /* open */
  .site-header.nav-open .site-nav { display: flex; padding-top: var(--space-3); }
  .site-header.nav-open .langtoggle { display: inline-flex; align-self: flex-start; }

  .site-nav a,
  .site-nav__group > a {
    padding: 12px 2px; font-size: var(--text-body);
    border-bottom: 1px solid var(--border-hairline);
  }

  /* Programmes submenu — flatten inline, drop the hover dropdown */
  .site-nav__group { flex-direction: column; align-items: stretch; }
  .site-nav__group > a::after { content: none; }
  .site-nav__menu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; box-shadow: none; border: 0; background: none;
    min-width: 0; margin: 0; padding: 0 0 0 var(--space-5);
  }
  .site-nav__menu a { padding: 10px 2px; font-size: var(--text-body-sm); }

  /* hamburger morphs into an X when open */
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Nav dropdown (Programmes) ---- */
.site-nav__group { position: relative; display: inline-flex; align-items: center; }
.site-nav__group > a::after { content: "\25BE"; font-size: 0.68em; margin-left: 5px; opacity: 0.7; }
.site-nav__group::after { content: ""; position: absolute; top: 100%; left: -8px; right: -8px; height: 12px; }
.site-nav__menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px; margin-top: 8px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -22px rgba(31, 38, 31, 0.4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
  z-index: 60;
}
.site-nav__group:hover .site-nav__menu,
.site-nav__group:focus-within .site-nav__menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.site-nav__menu a {
  padding: 9px 12px; border-radius: 7px;
  font-size: var(--text-body-sm); color: var(--text-body); white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.site-nav__menu a:hover { background: var(--sage-50); color: var(--brand-primary); }

/* ---------- Section shell ---------- */

.sectionhead { text-align: center; max-width: 760px; margin: 0 auto var(--space-10); }
.sectionhead__rule { display: flex; justify-content: center; margin-bottom: var(--space-5); }
.sectionhead__title {
  margin: var(--space-3) auto 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-lg);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-wrap: balance;
}
.sectionhead__title--narrow { max-width: 18ch; }
.sectionhead__sub {
  margin: var(--space-5) auto 0;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}
.lang-zh .sectionhead__sub { max-width: 34em; }

/* ---------- Hero ---------- */

/* first screen: header + hero fill the viewport, grass pinned to the foot */
.hero-screen { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.hero {
  flex: 1 1 auto;
  background: var(--surface-page);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 3vh, 2.25rem); /* keep the squirrel band off the very edge */
}
.hero__inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* content sits centred in the space above the grass */
  max-width: 880px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: center;
}
/* hero brand lockup — zh: [WISESPROUT] | 小草 · en: [emblem] | [WISESPROUT] */
.hero__mark { align-self: center; display: inline-flex; align-items: center; gap: 16px; margin: clamp(1.5rem, 5vh, 3.5rem) auto 0; }
.hero__mark-emblem { display: block; height: 50px; width: auto; }
.hero__mark-word { display: block; height: 32px; width: auto; }
.hero__mark-div { width: 1px; height: 34px; background: var(--border-strong); }
.hero__mark-zh { font-family: 'Noto Serif SC', 'Source Serif 4', serif; font-weight: 600; font-size: 38px; letter-spacing: 0.08em; line-height: 1; color: var(--text-heading); }
/* full-bleed interactive grass band — pinned to the hero's foot, the brand grows from 小草 */
.hero-grass { width: 100%; height: 170px; }
.hero__h1 {
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-2xl);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}
.hero__sub {
  margin: var(--space-8) auto 0;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
}
.lang-zh .hero__sub { max-width: 36em; }
.hero__cta { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-10); flex-wrap: wrap; }

/* phones: loosen the vertical rhythm so the stacked hero breathes (lockup → eyebrow
   → headline → lead → CTA sit too tight on a narrow screen) */
@media (max-width: 600px) {
  .hero__mark { margin-top: var(--space-10); }
  .hero .eyebrow--center { margin-top: var(--space-6); }
  .hero__h1 { margin-top: var(--space-8); }
  .hero__sub { margin-top: var(--space-10); }
  .hero__cta { margin-top: var(--space-12); }
}

/* ---------- Programmes (editorial rows) ---------- */

.programmes { background: var(--surface-page); }
.programmes__inner { max-width: 1200px; margin: 0 auto; padding: var(--section-y) var(--gutter); }

/* Three equal paths — an editorial hairline grid, not boxed cards. */
.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: stretch;
  gap: var(--space-5);
}
.programmes__more { display: flex; justify-content: center; margin-top: var(--space-16); }
.programme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-12) var(--space-8);
  background: var(--accent-tint);
  border-radius: 16px;
  box-shadow: 0 14px 34px -26px rgba(31, 38, 31, 0.42);
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              filter 0.3s var(--ease-standard),
              opacity 0.3s var(--ease-standard);
}
.programme-card:hover {
  transform: translateY(-6px) scale(1.045);
  box-shadow: 0 30px 60px -26px rgba(31, 38, 31, 0.52);
  z-index: 2;
}
/* hover one card → the other two recede behind frosted glass */
@media (hover: hover) {
  .programme-grid:hover .programme-card:not(:hover) {
    filter: blur(3px) saturate(0.92);
    opacity: 0.72;
    transform: scale(0.985);
    box-shadow: 0 10px 24px -22px rgba(31, 38, 31, 0.3);
  }
}

/* one accent per path — a strong mark colour + a soft fill tint */
.programme-card             { --accent: var(--sage-600);     --accent-tint: var(--sage-100); }
.programme-card[data-accent="midnight"] { --accent: var(--midnight-700); --accent-tint: var(--midnight-100); }
.programme-card[data-accent="gold"]     { --accent: var(--gold-600);     --accent-tint: var(--gold-100); }

/* flagship reads as flagship through colour + width + a touch more lift — no label needed */
.programme-card.is-flagship       { box-shadow: 0 22px 46px -24px rgba(31, 38, 31, 0.55); }
.programme-card.is-flagship:hover { box-shadow: 0 32px 58px -26px rgba(31, 38, 31, 0.6); }

/* accent signature rule — each path's quiet colour identity, grows on hover */
.programme-card__rule {
  width: 36px;
  height: 2px;
  border-radius: 1px;
  margin-bottom: var(--space-6);
  background: var(--accent);
  transition: width var(--duration-fast) var(--ease-standard);
}
.programme-card:hover .programme-card__rule { width: 64px; }

.programme-card__head { margin-bottom: var(--space-5); }
.programme-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.programme-card__board {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  text-wrap: balance;
}
.programme-card__tagline {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-body);
}
.programme-card__points {
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-4);
}
.programme-card__points li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--text-body);
}
.programme-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.programme-card__points strong {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 1px;
}
.programme-card__proof {
  position: relative;
  margin: 0;
  min-height: 3em; /* reserve 2 lines so the credential lines align across columns */
  padding-left: var(--space-5);
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--text-muted);
}
.programme-card__proof::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
/* credential + CTA sink to the bottom as one band → "who delivers" aligns across the three */
.programme-card__foot {
  margin-top: auto;
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.programme-card__cta { align-self: flex-start; }
.programme-card__num { transition: color var(--duration-fast) var(--ease-standard); }
.programme-card:hover .programme-card__num { color: var(--accent); }
.programme-card:hover .programme-card__cta .arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .programme-card,
  .programme-card__rule,
  .programme-card__num,
  .programme-card__cta .arrow { transition: none; }
  .programme-card:hover { transform: none; }
}

/* ---------- Builders (manifesto · editorial pull-quote + problem→answer) ---------- */

.builders {
  background: var(--sage-50);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.builders__inner { max-width: 1040px; margin: 0 auto; padding: var(--section-y) var(--gutter); }

/* editorial masthead — a large left-aligned statement set over an oversized quote mark */
.builders__head {
  position: relative;
  max-width: 64ch;
  margin-bottom: var(--space-12);
  border-left: 3px solid var(--brand-primary);
  padding-left: clamp(var(--space-5), 2.5vw, var(--space-8));
}
.lang-zh .builders__head { max-width: 40em; }
.builders__head .eyebrow { text-align: left; margin-bottom: var(--space-5); }
.builders__quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-lg);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-heading);
}
.builders__lead {
  margin: var(--space-6) 0 0;
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 60ch;
}
.lang-zh .builders__lead { max-width: 36em; }

/* the two-column contrast — an editorial index: numbered, hairline-ruled entries */
.contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-12);
  align-items: start;
}
.contrast__divider { width: 1px; align-self: stretch; background: var(--border-hairline); }
.contrast__label {
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: 700;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.contrast__col--seen  .contrast__label { color: var(--text-muted); }
.contrast__col--built .contrast__label { color: var(--brand-primary); }

.contrast__list { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.contrast__list li {
  counter-increment: item;
  position: relative;
  margin-top: var(--space-5);
  padding: var(--space-5) 0 0 var(--space-10);
  border-top: 1px solid var(--border-hairline);
  font-size: var(--text-body);
  line-height: 1.6;
}
.contrast__list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(var(--space-5) + 0.12em);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
}
.contrast__col--seen  li { color: var(--text-muted); }
.contrast__col--seen  li::before { color: var(--ink-300); }
.contrast__col--built li { color: var(--text-body); }
.contrast__col--built li::before { color: var(--brand-primary); }

/* close + crew share one row — punchline left, group portrait right, vertically centred */
.builders__close-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  margin-top: var(--space-16);
}

/* the resolution line — a left-aligned punchline */
.builders__close {
  flex: 0 1 44ch;
  margin: 0;
  max-width: 44ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  text-wrap: balance;
}
.lang-zh .builders__close { max-width: 24em; }

/* five line-drawn academics (Recraft SVG) — one per G5 university, school name on the chest */
.builders__crew {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0;
}

@media (max-width: 720px) {
  .contrast { grid-template-columns: 1fr; gap: 0; }
  .contrast__divider { display: none; }
  .contrast__col--built { margin-top: var(--space-10); }
  .builders__close-row { flex-direction: column; align-items: flex-start; gap: var(--space-10); }
  /* column flex flips the main axis to vertical — reset the 44ch flex-basis (meant as a
     horizontal measure on desktop) so the text sizes to its content, not a 44ch-tall box */
  .builders__close { flex: 0 0 auto; }
  .builders__crew { max-width: 100%; }
}

/* ---------- Academics (stats) ---------- */

/* clip the hover stat-cards' horizontal bleed so edge figures never widen the page
   (overflow-x only — the cards still drop below the figure vertically) */
.academics { background: var(--surface-page); overflow-x: clip; }
.academics__inner { max-width: 1000px; margin: 0 auto; padding: var(--section-y) var(--gutter); text-align: center; }

/* editorial figures — large serif numerals, no cards. A short sage rule, the figure,
   then a tiny uppercase label. Quiet, but high-end rather than merely restrained. */
.statgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-12) var(--space-10);
  max-width: 900px;
  margin: 0 auto var(--space-10);
}
.figure { width: 150px; text-align: center; position: relative; }
.figure:focus { outline: none; }
.figure__rule {
  display: block; width: 26px; height: 2px;
  margin: 0 auto var(--space-4);
  background: var(--brand-primary);
}
.figure__n {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-display-lg);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.figure__suffix { color: var(--brand-primary); font-size: 0.52em; vertical-align: 0.32em; margin-left: 0.04em; }
.figure__l {
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.5;
}
.lang-zh .figure__l { text-transform: none; letter-spacing: 0.05em; font-size: var(--text-caption); }
/* hover / focus a figure → a small explanatory card drops in below it */
.figure__rule { transition: width var(--duration-base) var(--ease-standard); }
.figure:hover .figure__rule,
.figure:focus-visible .figure__rule { width: 40px; }

.figure__pop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 252px;
  z-index: 30;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.figure__pop::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -7px;
  border: 7px solid transparent; border-bottom-color: var(--brand-primary);
}
.figure__pop-h {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: var(--brand-primary);
  color: var(--text-on-sage);
  border-radius: 9px 9px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: normal;
  text-transform: none;
}
.figure__pop-list {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.figure__pop-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-body);
}
.figure__pop-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 2px; background: var(--brand-primary);
}
.figure:hover .figure__pop,
.figure:focus .figure__pop,
.figure:focus-within .figure__pop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Notes (newsletter) ---------- */

.notes { background: var(--surface-page); border-top: 1px solid var(--border-hairline); }
.notes__inner {
  max-width: 1040px; margin: 0 auto; padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.notes__lede {
  border-left: 3px solid var(--brand-primary);
  padding-left: clamp(var(--space-5), 2.5vw, var(--space-8));
  max-width: 46ch;
}
.lang-zh .notes__lede { max-width: 30em; }
.notes__lede .eyebrow { text-align: left; margin-bottom: var(--space-4); }
.notes__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-h1); line-height: 1.16; color: var(--text-heading); text-wrap: balance; }
.notes__body { margin: var(--space-4) 0 0; font-size: var(--text-body); line-height: 1.65; color: var(--text-muted); }
.notes__panel { display: flex; flex-direction: column; gap: var(--space-4); width: clamp(280px, 30vw, 340px); }
.notes__form { display: flex; flex-direction: column; gap: var(--space-3); }
.notes__form .field { min-width: 0; flex: 0 0 auto; }
.notes__subscribe { width: 100%; justify-content: space-between; font-size: var(--text-body); padding: 6px 6px 6px 22px; }
.notes__subscribe .cta-hero__icon { width: 34px; height: 34px; font-size: 16px; }
.notes__bloglink { align-self: flex-start; }

@media (max-width: 760px) {
  .notes__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .notes__panel { width: 100%; }
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  flex: 1;
  min-width: 220px;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.field:focus-within { border-color: var(--brand-primary); }
.field input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--text-body);
  padding: 11px 0;
}

/* ---------- Talk ---------- */

.talk { background: var(--sage-50); border-top: 1px solid var(--border-hairline); }
.talk__inner { max-width: 760px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--gutter); text-align: center; }
.talk__title {
  margin: var(--space-5) 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-lg);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  text-wrap: balance;
}
.talk__body { margin: 0 auto var(--space-8); font-size: var(--text-body-lg); line-height: 1.6; color: var(--text-muted); max-width: 48ch; }
.lang-zh .talk__body { max-width: 28em; }
.talk__cta { display: flex; gap: var(--space-5); justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { background: var(--sage-900); color: var(--text-on-dark); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: var(--space-16) var(--gutter); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-10); }
.site-footer__brand-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-4); }
.site-footer__word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; color: var(--text-on-dark); }
.site-footer__tagline { font-family: var(--font-serif-italic); font-style: italic; font-size: var(--text-body-lg); color: var(--sage-200); margin: 0; max-width: 24ch; }
.footer-col__h { font-size: var(--text-overline); font-weight: 700; letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--sage-300); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-body-sm); color: var(--sage-200); }
.footer-col a:hover { color: var(--text-on-dark); text-decoration: none; }
.site-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__bottom span { font-size: var(--text-caption); color: var(--sage-300); }

/* ---------- Responsive (keep the static page sane on narrow screens) ---------- */

@media (max-width: 900px) {
  .programme-grid { grid-template-columns: 1fr; }
  .programme-card { padding: var(--space-10) var(--space-8); }
}
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
