/* HTA@NYCU v6: Swiss editorial. One twelve-column grid and one type scale; each page composes them its own way.
   Sticky split (the stage that stays while the column is read) is now one tool among several, not the whole site. */
:root {
  /* colour */
  --bg: #1c211f;
  --surface: #232927;
  --surface-2: #2b322f;
  --ink: #f5f5f0;
  --muted: #b4bab4;
  --accent: #91a993;
  --accent-hover: #a7bca8;
  --accent-ink: #1c211f;
  --accent-soft: #26332a;
  --accent-deep: #46614c;
  --mint: #c9d7c7;
  --paper: #e8e6dc;
  --paper-ink: #1c211f;
  --paper-soft: #434a45;
  --paper-deep: #dad8cc;
  --err: #5c1414;
  --rule: rgba(245, 245, 240, .16);
  --rule-strong: rgba(245, 245, 240, .38);

  /* type: caption, body, lead, h3, h2, display, mega */
  --font: "Clash Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-h3: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --step-head: clamp(2rem, 1.35rem + 2.4vw, 3.75rem);
  --step-display: clamp(2.75rem, 1.4rem + 5vw, 7rem);
  --step-mark: clamp(3.75rem, 16.5vw, 17rem);
  --measure: 36em;

  /* space */
  --mx: clamp(20px, 4.4vw, 72px);
  --gutter: clamp(16px, 2vw, 32px);
  --stage-w: 47%;
  --inset: 32px;
  --m: clamp(20px, 4.4vw, 64px);
  --pad: clamp(28px, 3.6vw, 56px);
  --gap: clamp(96px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html:lang(zh-Hant) { --measure: 31em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font-family: var(--font); font-size: var(--step-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; font-kerning: normal;
}
html:lang(zh-Hant) body { line-height: 1.85; letter-spacing: .01em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
small { font-size: inherit; }
em, i { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 50; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; }

/* the grounds: each sets its own text, muted text and hairline colours */
.paper, .sheet { background: var(--paper); color: var(--paper-ink); --muted: var(--paper-soft); --rule: rgba(28, 33, 31, .16); --rule-strong: rgba(28, 33, 31, .4); }
.sage { background: var(--accent); color: var(--accent-ink); --muted: var(--accent-soft); --rule: rgba(28, 33, 31, .24); --rule-strong: rgba(28, 33, 31, .5); }
.mint { background: var(--mint); color: var(--accent-ink); --muted: var(--paper-soft); --rule: rgba(28, 33, 31, .18); --rule-strong: rgba(28, 33, 31, .42); }
:is(.paper, .sage, .mint, .sheet) :focus-visible { outline-color: var(--accent-ink); }

/* ---------- type system ---------- */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
html:lang(zh-Hant) :is(h1, h2) { letter-spacing: .01em; line-height: 1.28; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.4; letter-spacing: 0; }
html:lang(zh-Hant) :is(h3, h4) { letter-spacing: .02em; line-height: 1.5; }
.display { font-size: var(--step-display); font-weight: 500; line-height: .96; letter-spacing: -0.04em; }
html:lang(zh-Hant) .display { letter-spacing: .02em; line-height: 1.14; }
.lead { font-size: var(--step-lead); line-height: 1.45; }
html:lang(zh-Hant) .lead { line-height: 1.75; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
.statement { font-size: var(--step-lead); line-height: 1.45; }
html:lang(zh-Hant) .statement { line-height: 1.75; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.kicker::before { content: ""; flex: none; width: 40px; height: 1px; background: currentColor; }
/* outline numerals and the outline @ share one stroke; without stroke support they stay solid.
   The stroke colour is named outright: currentColor would follow the transparent fill and vanish. */
@supports (-webkit-text-stroke: 1px black) {
  .outline { color: transparent; -webkit-text-stroke: 1px var(--ink); }
  :is(.paper, .sage, .mint) .outline { -webkit-text-stroke-color: var(--accent-ink); }
}

/* status labels: 籌備中, 整理中, 內部測試中 */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px; vertical-align: middle; white-space: nowrap;
  font-size: var(--step-small); font-weight: 500; line-height: 1.6; letter-spacing: .04em; background: var(--mint); color: var(--accent-ink);
}
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; }
:is(.paper, .mint) .badge { background: var(--accent); }
.sage .badge { background: var(--accent-ink); color: var(--paper); }
h2 .badge { margin-left: 14px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: var(--step-body);
  border: 1px solid transparent; font-family: inherit; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn.ink { background: var(--accent-ink); color: var(--paper); }
.btn.ink:hover { background: #333a37; }
.btn.off { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.btn.off:active { transform: none; }
.btn.go::after, .form .btn::after { content: "→"; margin-left: 14px; transition: transform .25s var(--ease); }
.btn.go:hover::after, .form .btn:hover::after { transform: translateX(5px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.text-link, .more { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong); transition: text-decoration-color .2s, color .2s; }
.text-link:hover, .more:hover { text-decoration-color: currentColor; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.more::after { content: "→"; margin-left: .55em; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px; padding: 28px var(--mx) 0 calc(var(--mx) - 16px);
}
.lockup { display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--bg); color: var(--ink); text-decoration: none; }
.nycu { height: 22px; width: auto; aspect-ratio: 1169 / 260; color: #fff; flex: none; }
.lk-name { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.links { order: 1; display: flex; align-items: center; gap: clamp(16px, 1.6vw, 28px); margin-left: auto; font-size: var(--step-small); }
.links a { position: relative; text-decoration: none; padding: 12px 0; transition: color .2s; white-space: nowrap; }
.links a:not(.cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.links a:not(.cta):hover::after, .links a[aria-current="page"]:not(.cta)::after { transform: scaleX(1); transform-origin: left; }
.links a:not(.cta):hover, .links a[aria-current="page"] { color: var(--accent); }
.links .cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.links .cta:hover, .links .cta[aria-current="page"] { background: var(--accent-hover); color: var(--accent-ink); }
.lang, .menu {
  order: 2; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; background: none; border: 0;
  color: var(--ink); font: inherit; font-size: var(--step-small); cursor: pointer; text-decoration: underline; text-underline-offset: .3em;
}
.lang:hover, .menu:hover { color: var(--accent); }
.menu { order: 3; display: none; }

/* ---------- composition 1: the page head, set in type on the twelve columns ---------- */
.phead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding: clamp(150px, 26svh, 280px) var(--mx) clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--rule); }
.phead h1 { grid-column: 1 / span 7; }
.phead .lead { grid-column: 8 / -1; max-width: 26em; padding-bottom: .5em; color: var(--muted); }
.phead .jump { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 104px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.sec-head > h2 { grid-column: 1 / span 6; }
.sec-head > :not(h2) { grid-column: 7 / -1; max-width: var(--measure); }

/* ---------- composition 2: the sticky split (the stage stays while the column is read) ---------- */
.ss { position: relative; display: grid; grid-template-columns: var(--stage-w) minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100svh; }
.ss > .stage { grid-column: 1; grid-row: 1 / 3; align-self: start; position: sticky; top: 0; height: 100svh; padding: var(--inset); }
.ss > .col-a { grid-column: 2; grid-row: 1; padding: 18svh var(--mx) 0 var(--m); }
.ss > .col-b { grid-column: 2; grid-row: 2; padding: 56px var(--mx) 18svh var(--m); }
.ss > .stage:first-child + .col-b { padding-top: 18svh; }
.ss.head > .col-a { padding-top: 22svh; }
.col-a > * + *, .col-b > * + * { margin-top: 24px; }
.col-a > h2 { margin-top: 72px; }
.col-a p, .col-b p, .prose li { max-width: var(--measure); }
.panel {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); background: var(--surface); color: var(--ink);
}
.panel.paper { background: var(--paper); color: var(--paper-ink); }
.panel.sage { background: var(--accent); color: var(--accent-ink); }
.panel-title { font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.stage-title { font-size: 4.6vw; line-height: 1.12; letter-spacing: .02em; }
html:lang(en) .stage-title { font-size: 3.6vw; line-height: 1; letter-spacing: -0.03em; }

/* prose, and every bulleted list */
.prose > * + * { margin-top: 20px; }
.prose > h3 { margin-top: 56px; }
.prose > h3:first-child { margin-top: 0; }
:is(.prose, .fold) ul li { position: relative; padding-left: 24px; }
:is(.prose, .fold) ul li + li { margin-top: 10px; }
:is(.prose, .fold) ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; background: var(--accent); }
:is(.mint, .paper) :is(.prose, .fold) ul li::before { background: var(--accent-deep); }
.callout { padding: 20px 24px; background: var(--surface); border-left: 3px solid var(--accent); }

/* ---------- composition 3: the band, two columns on the same grid ---------- */
.band { display: grid; grid-template-columns: var(--stage-w) minmax(0, 1fr); align-items: start; row-gap: 48px; padding: var(--gap) 0; }
.band > .l { grid-column: 1; padding: 0 var(--m) 0 var(--mx); }
.band > .r { grid-column: 2; padding: 0 var(--mx) 0 var(--m); }
.band > .full { grid-column: 1 / -1; padding: 0 var(--mx); }
.band .l > * + *, .band .r > * + * { margin-top: 24px; }
.band .r p { max-width: var(--measure); }

/* cards: a hairline on top, the words below */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gutter); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: cd; }
.cards.c3 > .card { counter-increment: cd; }
.cards.c3 > .card::before { content: counter(cd, decimal-leading-zero); font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.card p { color: var(--muted); }
.card .more { margin-top: auto; }
a.card { text-decoration: none; transition: border-color .25s var(--ease); }
a.card h3::after { content: "→"; display: inline-block; margin-left: .45em; transition: transform .25s var(--ease); }
a.card:hover { border-top-color: var(--accent); }
a.card:hover h3::after { transform: translateX(5px); }
.empty { padding: 22px 24px; border: 1px dashed var(--rule-strong); color: var(--muted); }

/* the lists that will grow: research outputs, projects, publications, news */
.feeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gutter); }
.band .feeds > * + * { margin-top: 0; }
.feed > * + * { margin-top: 16px; }
.feed > h3 { padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }
.item { display: grid; gap: 6px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.item .meta { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.item h4 { font-size: var(--step-lead); font-weight: 500; }
.item h4 a { text-decoration: none; }
.item h4 a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.item > p:not(.meta) { color: var(--muted); }

/* folding text */
.fold { border-top: 1px solid var(--rule); }
.fold:last-of-type { border-bottom: 1px solid var(--rule); }
.fold summary { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 12px 0; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h4 { font-size: var(--step-lead); font-weight: 500; }
.fold summary::after { content: "+"; margin-left: auto; font-size: var(--step-lead); line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.fold[open] summary::after { transform: rotate(45deg); }
.fold summary:hover h4 { color: var(--accent); }
.fold > :not(summary) { max-width: var(--measure); padding-bottom: 24px; }
.fold > :not(summary) + :not(summary) { margin-top: -8px; }
/* closed, the contents take no room at all (Chrome otherwise still lays them out, hidden, under the summary) */
.fold:not([open]) > :not(summary), .experts:not([open]) > :not(summary) { display: none; }

/* ---------- home: the hero ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; min-height: 100svh; padding: clamp(150px, 22svh, 240px) var(--mx) 0; }
/* the brand's @, drawn as a hairline and cropped by the top right corner; it sits behind everything */
.atmark {
  position: absolute; z-index: 0; top: -.25em; right: -.15em; margin: 0; pointer-events: none; user-select: none;
  font-size: 40vw; line-height: 1; font-weight: 400; color: rgba(145, 169, 147, .12);
}
@supports (-webkit-text-stroke: 1px black) {
  .atmark { color: transparent; -webkit-text-stroke: 1.25px rgba(145, 169, 147, .55); }
}
.hero > :not(.atmark) { position: relative; z-index: 1; }
.hero .kicker { grid-column: 1 / -1; }
.hero h1 { grid-column: 1 / -1; margin-top: 32px; font-size: clamp(1.875rem, 8vw, 8rem); font-weight: 500; line-height: 1.12; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
html:lang(en) .hero h1 { font-size: clamp(2.125rem, 6.6vw, 7rem); line-height: 1; letter-spacing: -0.04em; word-break: normal; overflow-wrap: normal; }
.h1-a, .h1-b { display: block; }
.h1-a { color: var(--accent); }
.hero-text { grid-column: 1 / span 5; margin-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-text > * + * { margin-top: 20px; }
.hero .lead { max-width: 24em; }
.hero .intro { max-width: 30em; color: var(--muted); }
.hero .actions { margin-top: 40px; }
.hero-q { grid-column: 7 / -1; align-self: end; margin: clamp(48px, 6vw, 96px) calc(-1 * var(--mx)) 0 0; padding: clamp(32px, 3.6vw, 56px) var(--mx) clamp(40px, 4vw, 64px) clamp(32px, 3.6vw, 56px); }
.ledger { counter-reset: q; }
.ledger li { counter-increment: q; display: grid; grid-template-columns: 3.4em 1fr; padding: clamp(18px, 2.2vw, 28px) 0; border-top: 1px solid var(--rule-strong); }
.ledger li:first-child { padding-top: 0; border-top: 0; }
.ledger li::before { content: counter(q, decimal-leading-zero); grid-row: 1 / 3; padding-top: .5em; font-size: var(--step-small); font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ledger h3 { font-weight: 500; }
.ledger p { margin-top: 6px; color: var(--muted); }

/* home: the four things, set as an editorial grid on paper */
.works { padding: var(--gap) var(--mx); }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule-strong); }
.quad li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px var(--gutter) 0 0; }
.quad li + li { padding-left: var(--gutter); border-left: 1px solid var(--rule); }
.quad .word { margin-bottom: 28px; font-size: clamp(2rem, 1.1rem + 2.4vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.quad li > p:not(.word) { color: var(--muted); }
.quad .more { margin-top: auto; padding-top: 12px; }

/* home: research areas, an index of rows */
.areas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--gap) var(--mx); }
.areas > h2 { grid-column: 1 / span 3; }
.rows { grid-column: 4 / -1; counter-reset: rw; }
.rows li { counter-increment: rw; display: grid; grid-template-columns: 3.4em minmax(0, 3fr) minmax(0, 5fr) auto; column-gap: var(--gutter); align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.rows li:first-child { border-top: 1px solid var(--rule-strong); }
.rows li::before { content: counter(rw, decimal-leading-zero); font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows h3 { font-size: var(--step-h3); font-weight: 500; transition: color .25s var(--ease); }
.rows li:hover h3 { color: var(--accent); }
.rows p { color: var(--muted); }

/* home and go: the two ways in */
.duo { padding: var(--gap) var(--mx); }
.duo-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: clamp(40px, 5vw, 72px); }
.duo-a, .go-opt {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: clamp(240px, 26vw, 400px); padding: clamp(24px, 3vw, 44px);
  text-decoration: none; overflow: hidden; transition: background-color .3s var(--ease);
}
.duo-n { font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.duo-a b { align-self: end; font-size: var(--step-head); font-weight: 500; line-height: 1.1; }
.duo-a small { margin-top: 12px; color: var(--muted); }
.duo-a::after { content: "→"; position: absolute; top: clamp(20px, 2.6vw, 38px); right: clamp(24px, 3vw, 44px); font-size: var(--step-head); line-height: 1; transition: transform .35s var(--ease); }
.duo-a:hover::after, .duo-a:focus-visible::after { transform: translateX(12px); }
.duo-a.sage:hover { background: var(--accent-hover); }
.duo-a.paper:hover { background: var(--ink); }
.duo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 40px; color: var(--muted); }
.duo-foot .more { color: var(--ink); }

/* ---------- the paper sheets ---------- */
.menu-sheet { max-width: 640px; padding: 44px 44px 40px; border-top: 6px solid var(--accent); }
.sheet-title { font-size: var(--step-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
html:lang(zh-Hant) .sheet-title { letter-spacing: .04em; }
.goal-list { counter-reset: g; margin-top: 28px; }
.goal-list li { counter-increment: g; display: grid; grid-template-columns: 2.8em 1fr; padding: 16px 0; border-top: 1px solid var(--rule); }
.goal-list li::before { content: counter(g, decimal-leading-zero); padding-top: .25em; font-size: var(--step-small); font-weight: 500; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.goals { align-items: center; }
.goals .statement { max-width: 22em; }
.slip { max-width: 560px; padding: 36px 36px 0; }
.slip li { padding-bottom: 26px; }
.slip li + li { padding-top: 24px; border-top: 1px solid var(--rule); }
.slip time { display: block; margin-bottom: 6px; font-size: var(--step-lead); font-weight: 500; }
.slip li:last-child { margin: 0 -36px; padding: 24px 36px 28px; background: var(--accent); color: var(--accent-ink); border-top: 0; }

/* ---------- about: the value-evidence layer, three rectangles of different weight ---------- */
.layer { padding: var(--gap) var(--mx); }
.layer .prose { padding-bottom: .3em; }
.tri { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 128px); }
.tri > li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; border: 1px solid var(--rule-strong); }
.tri-a, .tri-c { min-height: clamp(240px, 22vw, 320px); }
.tri > .tri-b { min-height: clamp(380px, 38vw, 560px); padding: clamp(28px, 3vw, 48px); border-color: transparent; }
.tri-n { font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tri .side { font-size: var(--step-small); color: var(--muted); }
.tri h3 { margin-top: auto; }
.tri-b h3 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.75rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
html:lang(zh-Hant) .tri-b h3 { letter-spacing: .02em; line-height: 1.2; }
.tri > li > p { color: var(--muted); }
/* the connectors: a hairline and an arrowhead from one rectangle to the next */
.tri > li + li::before { content: ""; position: absolute; top: 50%; right: calc(100% + 1px); width: clamp(40px, 5vw, 96px); height: 1px; background: var(--accent); }
.tri > li + li::after { content: ""; position: absolute; top: 50%; right: calc(100% + 2px); margin-top: -5px; border: 5px solid transparent; border-left: 8px solid var(--accent); border-right: 0; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.chips li { padding: 10px 14px; border: 1px solid rgba(28, 33, 31, .4); font-size: var(--step-small); font-weight: 500; line-height: 1.45; }

.mv > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px 24px; padding: 26px 0; border-top: 1px solid var(--rule-strong); }
.mv dt { padding-top: .5em; font-size: var(--step-small); font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.mv dd { font-size: var(--step-lead); line-height: 1.5; }
.mvv .r > h3 { margin-top: 64px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.values li { padding-top: 18px; border-top: 2px solid var(--accent-deep); }
.values b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 500; line-height: 1.15; }
.values p { margin-top: 12px; color: var(--muted); }

.pledges { counter-reset: p; }
.pledges li { counter-increment: p; display: grid; grid-template-columns: 3em 1fr; gap: 8px 0; padding: 24px 0; border-top: 1px solid var(--rule-strong); }
.pledges li:last-child { border-bottom: 1px solid var(--rule-strong); }
.pledges li::before { content: counter(p, decimal-leading-zero); grid-row: 1 / 4; padding-top: .35em; font-size: var(--step-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.pledges b { font-size: var(--step-lead); font-weight: 500; }
.pledges .more { justify-self: start; }
.why .stage-title { color: var(--accent); }

.countries h2.long { max-width: 24em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: var(--step-small); color: var(--muted); padding: 0 24px 14px 0; }
.table td { padding: 20px 24px 20px 0; vertical-align: top; border-top: 1px solid var(--rule-strong); }
.countries .table td:first-child { font-size: var(--step-lead); font-weight: 500; white-space: nowrap; width: 1%; }
.countries .table td:nth-child(2) { width: 24%; }
.countries .table tr.us td { background: var(--accent); border-top-color: transparent; }
.countries .table tr.us td:first-child { padding-left: 20px; }

.hline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; margin-top: 24px; }
.hline li { position: relative; padding-top: 36px; }
.hline li::before { content: ""; position: absolute; left: 0; right: -24px; top: 5px; height: 1px; background: var(--rule-strong); }
.hline li:last-child::before { right: 0; }
.hline li::after { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; background: var(--muted); }
.hline li.hl::before, .hline li.hl::after { background: var(--accent); }
.hline time { display: block; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hline li.hl time { color: var(--accent); }
.hline p { margin-top: 10px; color: var(--muted); }

/* the five-step process runs across the page */
.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.steps5 li { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-height: 200px; padding: 20px 22px 22px; border: 1px solid var(--rule-strong); }
.steps5 b { font-size: var(--step-head); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.steps5 span { align-self: end; font-size: var(--step-lead); line-height: 1.35; }
.steps5 em { justify-self: start; font-size: var(--step-small); font-weight: 500; padding: 4px 10px; background: var(--mint); color: var(--accent-ink); white-space: nowrap; }
.steps5 li.us { background: var(--accent-ink); color: var(--paper); border-color: var(--accent-ink); }

.partners-cta .cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; }
.cell { display: flex; align-items: center; min-height: 88px; padding: 16px 24px; background: var(--accent-ink); color: var(--paper); font-size: var(--step-lead); text-decoration: none; transition: background-color .2s var(--ease); }
.cell:hover { background: #333a37; }
.cell::after { content: "→"; margin-left: auto; padding-left: 16px; transition: transform .25s var(--ease); }
.cell:hover::after { transform: translateX(5px); }

/* ---------- team: the people directory ---------- */
.dir { padding: var(--gap) var(--mx); }
.dir-g { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--gutter); margin-top: clamp(56px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.dir-g > * { grid-column: 2; }
.dir-g > * + * { margin-top: 20px; }
.dir-label { grid-column: 1; grid-row: 1 / span 4; margin-top: 0 !important; font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.dir-g > .dir-label + * { margin-top: 0; }
.people { counter-reset: pp; }
.person { counter-increment: pp; display: grid; grid-template-columns: 2.6em clamp(64px, 6vw, 96px) minmax(0, 4fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.person:first-child { padding-top: 4px; }
.person::before { content: counter(pp, decimal-leading-zero); padding-top: .45em; font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.mono { display: grid; place-items: center; aspect-ratio: 1; background: var(--accent); color: var(--accent-ink); font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.75rem); font-weight: 500; line-height: 1; }
.person:nth-child(even) .mono { background: var(--paper); }
.person.tbd .mono { background: none; border: 1px dashed var(--rule-strong); }
.p-id h4 { font-size: var(--step-h3); font-weight: 500; line-height: 1.25; }
.p-role { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.p-meta { display: grid; gap: 14px; }
.p-meta dt { font-size: var(--step-small); font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.p-meta dd { margin-top: 2px; }
.person > p { color: var(--muted); }
.names { counter-reset: nm; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); column-gap: var(--gutter); }
.names li { counter-increment: nm; display: grid; grid-template-columns: 2.4em 1fr; padding: 18px 0; border-top: 1px solid var(--rule); }
.names li::before { content: counter(nm, decimal-leading-zero); grid-row: 1 / 3; padding-top: .5em; font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.names b { font-size: var(--step-lead); font-weight: 500; }
.names span { font-size: var(--step-small); color: var(--muted); }

/* team: governance, the chart and then what each part does */
.gov { padding: var(--gap) var(--mx); }
.oc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; max-width: 1080px; margin-top: clamp(48px, 6vw, 88px); font-size: var(--step-small); line-height: 1.5; }
.oc p + p { margin-top: 4px; }
.oc b { font-weight: 500; }
.oc-box { position: relative; padding: 16px 18px; border: 1px solid var(--paper-ink); background: var(--paper); }
.oc-box .side { display: block; margin-bottom: 4px; color: var(--paper-soft); }
.oc-head { grid-column: 2; grid-row: 1; background: var(--paper-ink); color: var(--paper); }
.oc-head b { font-size: var(--step-body); }
.oc-head .oc-d { margin-top: 10px; color: var(--mint); }
.oc-head::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: 33px; margin-left: -.5px; background: var(--paper-ink); }
.oc-adv { grid-column: 3; grid-row: 1; align-self: center; border-style: dashed; }
.oc-adv::before { content: ""; position: absolute; top: 50%; right: 100%; width: 13px; border-top: 1px dashed var(--paper-ink); }
.oc-row { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; padding-top: 24px; }
.oc-row::before { content: ""; position: absolute; top: 0; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6); height: 1px; background: var(--paper-ink); }
.oc-row > .oc-box::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 25px; margin-left: -.5px; background: var(--paper-ink); }
.oc-row > .oc-box:nth-child(-n+2) { background: var(--accent); }
.oc-x { grid-column: 1 / -1; margin-top: 24px; border-style: dashed; text-align: center; }
.oc-x::before { content: ""; position: absolute; bottom: 100%; left: calc((100% - 24px) / 6); right: 50%; height: 24px; border: 1px dashed var(--paper-ink); border-top: 0; }
.org-core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: clamp(64px, 7vw, 104px); }
.core { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-content: start; padding: 36px var(--pad) 40px; }
.core:first-child { background: var(--accent-ink); color: var(--paper); --muted: var(--mint); }
.core:nth-child(2) { background: var(--accent); color: var(--accent-ink); --muted: var(--accent-soft); }
.core h3 { grid-column: 1; grid-row: 1; font-size: var(--step-h3); }
.core .side { grid-column: 2; grid-row: 1; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.core p { grid-column: 1 / -1; margin-top: 14px; max-width: var(--measure); }
.core em { grid-column: 1 / -1; margin-top: 20px; font-weight: 500; }
.org-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); margin-top: 56px; }
.unit { padding-top: 20px; border-top: 1px solid var(--rule-strong); }
.unit p { margin-top: 10px; color: var(--muted); }
.unit em { display: block; margin-top: 14px; font-weight: 500; }

.group-list { counter-reset: gr; margin-top: 28px; }
.group-list li { counter-increment: gr; display: grid; grid-template-columns: 2.8em 1fr; padding: 18px 0; font-size: var(--step-lead); line-height: 1.35; border-top: 1px solid var(--rule-strong); }
.group-list li:last-child { border-bottom: 1px solid var(--rule-strong); }
.group-list li::before { content: counter(gr, decimal-leading-zero); padding-top: .3em; font-size: var(--step-small); font-weight: 500; font-variant-numeric: tabular-nums; }

.experts { margin-top: 20px; }
.experts + .experts { margin-top: 8px; }
.experts summary {
  display: flex; align-items: center; min-height: 64px; padding: 12px 20px; background: var(--surface); cursor: pointer;
  font-size: var(--step-lead); list-style: none; transition: background-color .2s;
}
.experts summary::-webkit-details-marker { display: none; }
.experts summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: var(--step-head); line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.experts[open] summary::after { transform: rotate(45deg); }
.experts summary:hover { background: var(--surface-2); }
.experts .table-wrap { padding: 8px 0 24px; }
.experts .table th { padding-top: 16px; }
.experts .table td { border-top-color: var(--rule); padding: 16px 20px 16px 0; }
.experts .table td:first-child { font-weight: 500; white-space: nowrap; }
.experts .table td:nth-child(2) { color: var(--muted); }

/* the campus table reads as rows: the capability, then who has it and what we add */
.partners .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.partners .table, .partners .table tbody { display: block; }
.partners .table tr { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 28px; padding: 24px 0; border-top: 1px solid var(--rule-strong); }
.partners .table td { display: block; padding: 0; border: 0; }
.partners .table td:first-child { grid-column: 1 / -1; margin-bottom: 12px; font-size: var(--step-lead); font-weight: 500; }
.table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: var(--step-small); color: var(--muted); }
.countries .table td::before, .experts .table td::before { display: none !important; }

/* ---------- research and services: the life cycle runs across the page ---------- */
.life { padding: var(--gap) var(--mx); }
.timeline { --tn: clamp(3.5rem, 1.8rem + 5.4vw, 8.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 112px); }
.timeline li { position: relative; display: flex; flex-direction: column; padding-right: var(--gutter); }
.timeline li::before { content: ""; order: 2; height: 1px; margin: 28px calc(-1 * var(--gutter)) 28px 0; background: var(--rule-strong); transform-origin: left; }
.timeline li:last-child::before { margin-right: 0; }
.timeline li::after { content: ""; position: absolute; left: 0; top: calc(var(--tn) * .9 + 23px); width: 11px; height: 11px; background: var(--accent); transition: transform .3s var(--ease); }
.t-n { order: 1; font-size: var(--tn); font-weight: 400; line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease); }
.timeline h3 { order: 3; font-size: var(--step-h3); }
.timeline p { order: 4; margin-top: 12px; max-width: 22em; color: var(--muted); }
.timeline li:hover .t-n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.timeline li:hover::after { transform: scale(1.4); }

.svc + .svc { margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--rule); }
.svc > * + * { margin-top: 18px; }
.svc .tag { color: var(--muted); font-size: var(--step-small); letter-spacing: .06em; }
.svc h3 { margin-top: 4px; font-size: var(--step-head); font-weight: 400; line-height: 1.15; }
.svc > p { max-width: var(--measure); }
.svc .fold:first-of-type { margin-top: 32px; }
.svc > .callout { margin-top: 28px; }
.index { display: grid; gap: 4px; }
.index a { display: block; font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.04em; text-decoration: none; color: var(--paper-ink); transition: color .25s var(--ease); }
html.js .is-synced .index a { color: var(--paper-soft); }
html.js .is-synced .index a.is-on, .index a:hover { color: var(--paper-ink); }
.index a::after { content: ""; display: inline-block; width: .28em; height: .28em; margin-left: .18em; vertical-align: .08em; background: var(--accent-deep); opacity: 0; transform: scale(.6); transition: transform .3s var(--ease), opacity .3s var(--ease); }
html.js .is-synced .index a.is-on::after { opacity: 1; transform: none; }

/* ---------- platform: a method diagram, drawn in hairlines ---------- */
.map { justify-content: center; gap: 0; }
.m-node { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 56px; padding: 10px 16px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule-strong); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.m-node b { font-weight: 500; }
.m-node em { display: inline-block; min-width: 2.2em; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.m-col:first-child .m-node { border-left: 3px solid var(--accent); }
.m-col + .m-col .m-node { border-left: 3px solid var(--mint); }
.m-pico { justify-content: space-between; padding: 18px 20px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: var(--step-lead); cursor: pointer; }
.m-pico em { color: var(--accent-soft); }
.m-pico:hover { background: var(--accent-hover); }
.m-tag { font-size: var(--step-small); color: var(--accent-soft); }
.m-cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding-top: 40px; margin-bottom: 40px; }
.m-cols::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 20px; background: var(--rule-strong); }
.m-cols::after { content: ""; position: absolute; top: 20px; left: 25%; right: 25%; height: 1px; background: var(--rule-strong); }
.m-col { position: relative; display: grid; align-content: start; gap: 12px; }
/* one spine down each line, from the split to the merge; the nodes sit on it */
.m-col::before { content: ""; position: absolute; top: -20px; bottom: -40px; left: 50%; width: 1px; background: var(--rule-strong); }
.m-h { position: relative; z-index: 1; justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px; font-size: var(--step-small); font-weight: 500; color: var(--ink); background: var(--surface); }
.m-h::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.m-col + .m-col .m-h::before { background: var(--mint); }
.m-end { padding: 18px 20px; font-size: var(--step-lead); background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.m-end em { color: var(--paper-soft); }
.m-end::before { content: ""; position: absolute; top: -21px; left: 25%; right: 25%; height: 1px; background: var(--rule-strong); }
.redo { font-size: var(--step-small); font-weight: 500; padding: 3px 8px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
html.js .plat .m-node.is-on:not(.m-pico):not(.m-end) { background: var(--ink); color: var(--accent-ink); }
html.js .plat .m-node.is-on em { color: var(--paper-soft); }
html.js .plat .m-pico.is-on, html.js .plat .m-end.is-on { outline: 2px solid var(--ink); outline-offset: 3px; }
.is-stale .m-node:not(.m-pico) { border-style: dashed; }
.redo:not([hidden]) { animation: pop .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.flow { display: grid; gap: 40px; }
.f-node .en { display: block; font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pico {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; width: 100%; min-height: 72px; padding: 16px 20px;
  background: var(--accent); color: var(--accent-ink); border: 0; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.pico b { font-size: var(--step-lead); font-weight: 500; }
.pico .tag { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-small); font-weight: 500; }
.pico .tag::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; transition: background-color .2s; }
.pico[aria-pressed="true"] .tag::before { background: currentColor; }
.pico:hover { background: var(--accent-hover); }
.pico:active { transform: scale(.98); }
.f-node > small { display: block; margin-top: 12px; color: var(--muted); }
.f-col > h3 { display: flex; align-items: center; gap: 10px; }
.f-col > h3::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.f-col.eco > h3::before { background: var(--mint); }
.f-col ol { margin-top: 16px; border-top: 1px solid var(--rule); }
.st { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 16px 0 16px 20px; border-bottom: 1px solid var(--rule); border-left: 2px solid var(--accent); }
.eco .st { border-left-color: var(--mint); }
.st b { font-weight: 500; }
.st em { display: inline-block; min-width: 2.4em; color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.st small { grid-column: 1; margin-top: 4px; color: var(--muted); }
.st .redo { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.f-node.end { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 20px; background: var(--paper); color: var(--paper-ink); }
.f-node.end .en { grid-column: 1 / -1; color: var(--paper-soft); }
.f-node.end b { grid-column: 1; font-size: var(--step-lead); font-weight: 500; }
.f-node.end small { grid-column: 1; margin-top: 6px; color: var(--paper-soft); }
.f-node.end .redo { grid-column: 2; grid-row: 2 / 4; align-self: center; background: var(--accent-ink); color: var(--paper); }

.rules { margin-top: 16px; counter-reset: rl; }
.rule { counter-increment: rl; display: grid; grid-template-columns: 3.4em calc(var(--stage-w) - var(--mx) - 3.4em) 1fr; column-gap: var(--gutter); align-items: baseline; padding: 28px 0; border-top: 1px solid var(--rule); }
.rule::before { content: counter(rl, decimal-leading-zero); font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rule b { font-size: var(--step-head); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
html:lang(zh-Hant) .rule b { letter-spacing: .02em; line-height: 1.25; }
.rule p { max-width: 30em; color: var(--muted); font-size: var(--step-lead); line-height: 1.45; }
.rule:nth-child(3) b { color: var(--accent); }
.rules-band h2 { font-size: var(--step-lead); font-weight: 500; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 24px; }
.status span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.status i { width: 10px; height: 10px; background: var(--accent); }
.status .btn { margin-left: auto; }

/* ---------- education and resources: a course catalogue ---------- */
.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.jump a { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; min-height: 64px; padding: 18px 0; border-top: 1px solid var(--rule-strong); font-size: var(--step-lead); text-decoration: none; transition: border-color .25s var(--ease); }
.jump b { font-size: var(--step-small); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.jump a::after { content: "↓"; transition: transform .25s var(--ease); }
.jump a:hover { border-top-color: var(--accent); }
.jump a:hover::after { transform: translateY(4px); }
.catalog { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: var(--gap) var(--mx); }
.cat-head { grid-column: 1 / span 4; position: sticky; top: 48px; }
.cat-head > * + * { margin-top: 20px; }
.cat-head > p:not(.kicker) { color: var(--muted); max-width: 22em; }
.cat-body { grid-column: 6 / -1; }
.cat-label { font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.courses { counter-reset: c; margin-top: 16px; border-top: 1px solid var(--rule-strong); }
.courses li { counter-increment: c; display: grid; grid-template-columns: clamp(4.5rem, 8vw, 8.5rem) 1fr; align-items: baseline; column-gap: var(--gutter); padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--rule); font-size: var(--step-h3); line-height: 1.3; }
.courses li::before { content: counter(c, decimal-leading-zero); font-size: clamp(2.5rem, 1.4rem + 3.2vw, 5.25rem); line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease); }
@supports (-webkit-text-stroke: 1px black) {
  .courses li::before { color: transparent; -webkit-text-stroke: 1px var(--paper-ink); }
  .courses li:hover::before { color: var(--accent-deep); -webkit-text-stroke-color: var(--accent-deep); }
}
.cat-note { margin-top: 28px; color: var(--muted); }
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.res li { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-height: 160px; padding: 20px 22px 24px; border: 1px solid var(--rule-strong); }
.res b { margin-top: auto; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }

/* ---------- contact: the form on the left, the ways to reach us on the right ---------- */
.ss.contact { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.contact > .stage { position: relative; height: auto; }
.contact .panel { height: auto; min-height: calc(100svh - 2 * var(--inset)); padding: clamp(32px, 4vw, 64px); }
.contact > .col-a { padding-left: clamp(28px, 4vw, 72px); }
.addr { font-size: var(--step-lead); line-height: 1.55; }
.addr a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.quick { display: grid; max-width: 28em; }
.quick a { display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--rule); text-decoration: none; transition: color .2s; }
.quick a:last-child { border-bottom: 1px solid var(--rule); }
.quick a::after { content: "→"; margin-left: auto; transition: transform .25s var(--ease); }
.quick a:hover { color: var(--accent); }
.quick a:hover::after { transform: translateX(4px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.form-title { font-size: var(--step-head); font-weight: 500; }
.fhint { font-size: var(--step-small); color: var(--accent-soft); }
.field { display: grid; gap: 8px; align-content: start; }
.field label { display: flex; align-items: baseline; gap: 8px; font-size: var(--step-small); font-weight: 500; letter-spacing: .02em; }
.req { padding: 0 6px; border: 1px solid currentColor; font-size: .85em; line-height: 1.5; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(28, 33, 31, .3); border-radius: 0; background: var(--paper); color: var(--paper-ink);
  font: inherit; font-size: var(--step-body); font-weight: 400; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form ::placeholder { color: #5f6661; opacity: 1; }
.form :is(input, select, textarea):hover { border-color: var(--accent-ink); }
.form :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-color: var(--accent-ink); background: #f3f2ec; }
.form textarea { min-height: 148px; resize: vertical; }
.form select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.form [aria-invalid="true"] { border: 2px solid var(--err); background-color: #f1e6e1; }
.err { font-size: var(--step-small); font-weight: 500; color: var(--err); }
.err:empty { display: none; }
.err::before { content: "!"; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: 6px; background: var(--err); color: var(--paper); font-size: .85em; }
.form .btn { justify-self: start; min-width: 168px; }
.fnote { font-size: var(--step-small); color: var(--accent-soft); }
.fnote.is-err { color: var(--err); font-weight: 500; }
.fnote.is-ok { padding: 12px 16px; background: var(--accent-ink); color: var(--paper); }
.coi-box { font-size: var(--step-lead); }
.coi-box span { display: block; font-size: var(--step-small); color: var(--muted); }

/* ---------- go: the QR landing ---------- */
.go-split > .col-a { padding: 32px var(--mx) 0 var(--m); text-align: right; }
.go-lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: .3em; font-size: var(--step-small); }
.go-split > .col-b { align-self: center; padding: 0 var(--mx) 64px var(--m); }
.go-panel { justify-content: space-between; }
.go-wm { font-size: 7.5vw; line-height: .85; letter-spacing: -0.045em; white-space: nowrap; }
.go-wm .at { color: var(--accent-deep); }
.go-brand { display: grid; gap: 20px; }
.go-lock { display: flex; align-items: center; gap: 18px; font-size: var(--step-lead); letter-spacing: -0.01em; }
.go-lock strong { font-weight: 500; }
.go-lock .nycu { height: 26px; color: #033491; }
.go-brand > span:last-child { font-size: var(--step-lead); color: var(--paper-soft); max-width: 18em; }
.go-opts { display: grid; gap: 8px; margin-top: 40px; max-width: 620px; }
.go-opt { grid-template-rows: none; grid-template-columns: 1fr auto; align-items: end; min-height: 136px; background: var(--accent); color: var(--accent-ink); }
.go-opt + .go-opt { background: var(--paper); color: var(--paper-ink); }
.go-opt:hover { background: var(--accent-hover); }
.go-opt + .go-opt:hover { background: var(--ink); }
.go-tx { display: grid; gap: 4px; }
.go-tx b { font-size: var(--step-h3); font-weight: 500; }
.go-tx small { color: var(--accent-soft); }
.go-opt + .go-opt .go-tx small { color: var(--paper-soft); }
.go-ar { font-size: var(--step-head); line-height: 1; transition: transform .35s var(--ease); }
.go-opt:hover .go-ar, .go-opt:focus-visible .go-ar { transform: translateX(10px); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 104px var(--mx) 32px; background: var(--surface); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2.4fr); gap: 40px var(--gutter); align-items: start; }
.foot-lock { display: flex; align-items: center; gap: 18px; font-size: var(--step-lead); }
.foot-lock .nycu { height: 28px; }
.foot-lock strong { font-weight: 500; }
.foot-brand > p + p { margin-top: 20px; color: var(--muted); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); }
.foot-col strong { display: block; margin-bottom: 10px; font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.foot-col p + ul { margin-top: 12px; }
.foot-col a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
.foot-col a:hover { color: var(--accent); text-decoration-color: currentColor; }
/* the wordmark is sized to the page, never wider: about 4.2 em of Clash Grotesk at 16.5vw stays inside the margins */
.foot-wm { margin: clamp(72px, 9vw, 128px) 0 0 -0.04em; font-size: var(--step-mark); font-weight: 400; line-height: .82; letter-spacing: -0.05em; white-space: nowrap; transform-origin: 0 100%; }
.foot-wm .at { color: var(--accent); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: none; font-size: var(--step-small); color: var(--muted); }

/* ---------- motion ---------- */
/* the starting state stays faintly drawn, so nothing is lost if an entrance never fires */
html.js .rise { opacity: .2; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .rise.in { opacity: 1; transform: none; }
/* hairlines draw themselves in from the left as their row arrives */
html.js :is(.rows li, .courses li).rise { background: linear-gradient(var(--rule-strong), var(--rule-strong)) 0 100% / 0 1px no-repeat; border-bottom-color: transparent; transition: opacity .7s var(--ease), transform .7s var(--ease), background-size 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js :is(.rows li, .courses li).rise.in { background-size: 100% 1px; }
html.js .timeline li.rise::before { transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 200ms); }
html.js .timeline li.rise.in::before { transform: none; }
@supports (animation-timeline: scroll()) {
  .atmark { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes drift { to { transform: translateY(8vh) rotate(-8deg); } }
  .foot-wm { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes grow { from { transform: scale(.94); } to { transform: none; } }
}

/* ---------- narrower desktops: the links fold into the menu ---------- */
@media (max-width: 1279px) {
  .menu { display: inline-flex; }
  .links {
    display: none; position: absolute; top: 100%; left: 12px; right: 12px; margin: 8px 0 0; padding: 12px 20px 20px;
    background: var(--bg); border: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; font-size: var(--step-body);
  }
  .links.open { display: flex; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .links a:not(.cta)::after { display: none; }
  .links .cta { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .lang { margin-left: auto; }
  .lang, .menu { background: var(--bg); padding: 0 12px; }
  .rows li { grid-template-columns: 3.4em minmax(0, 1fr) minmax(0, 1.5fr); row-gap: 8px; }
  .rows li .more { grid-column: 3; }
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quad li:nth-child(3) { padding-left: 0; border-left: 0; }
  .quad li:nth-child(n+3) { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule-strong); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .steps5 span { font-size: var(--step-body); }
}

/* ---------- phone and tablet: one column; each diagram stands in the flow where it belongs ---------- */
@media (max-width: 1023px) {
  :root { --inset: 20px; --m: 20px; --gap: 88px; }
  .bar { padding: 20px 16px 0 12px; gap: 4px; }
  .lockup { padding: 8px 12px; gap: 10px; }
  .nycu { height: 18px; }
  .lk-name { font-size: var(--step-small); }

  .phead { display: block; padding: 128px var(--mx) 56px; }
  .phead .lead { margin-top: 28px; padding: 0; }
  .phead .jump { margin-top: 48px; }
  .sec-head { display: block; }
  .sec-head > :not(h2) { margin-top: 24px; }

  .ss { display: flex; flex-direction: column; min-height: 0; }
  .ss > .stage { position: relative; align-self: stretch; height: auto; padding: 0 var(--mx); margin-top: 40px; }
  .ss > .col-a { padding: 72px var(--mx) 0; }
  .ss.head > .col-a { padding-top: 128px; }
  .ss > .col-b { padding: 40px var(--mx) 72px; }
  .ss > .stage:first-child { margin-top: 72px; }
  .ss > .stage:first-child + .col-b { padding-top: 40px; }
  .panel { height: auto; padding: 32px 22px; }
  .contact .panel { min-height: 0; padding: 32px 22px; }
  .contact > .col-a { padding-left: var(--mx); }
  .stage-title, html:lang(en) .stage-title { font-size: var(--step-head); }
  /* the platform: the column already holds the whole flow, so its stage copy steps aside */
  .plat > .stage { display: none; }

  .hero { display: flex; flex-direction: column; min-height: 0; padding: 128px var(--mx) 0; }
  .atmark { font-size: clamp(200px, 56vw, 340px); top: -.08em; right: -.3em; }
  .hero .kicker { max-width: 60%; }
  html:lang(en) .hero h1 { font-size: clamp(2.125rem, 9vw, 4.5rem); }
  .hero-text { margin-top: 36px; padding-bottom: 56px; }
  .hero-q { margin: 0 calc(-1 * var(--mx)); padding: 36px var(--mx) 44px; }

  .areas { display: block; }
  .rows { margin-top: 40px; }
  .rows li { grid-template-columns: 2.6em minmax(0, 1fr); row-gap: 10px; }
  .rows li > :not(h3), .rows li .more { grid-column: 2; }
  .duo-nav { grid-template-columns: 1fr; }
  .duo-a { min-height: 200px; }

  .band { display: block; padding: var(--gap) 0; }
  .band > .l, .band > .r, .band > .full { padding: 0 var(--mx); }
  .band > * + * { margin-top: 32px; }
  .cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-sheet { padding: 40px 22px 32px; }
  .slip { padding: 32px 22px 0; }
  .slip li:last-child { margin-inline: -22px; padding-inline: 22px; }
  .hline { grid-template-columns: 1fr; gap: 0; }
  .hline li { padding: 0 0 28px 36px; }
  .hline li::before { left: 5px; right: auto; top: 12px; bottom: 0; width: 1px; height: auto; }
  .hline li:last-child::before { display: none; }
  .hline li::after { top: 6px; left: 0; }
  .steps5 { grid-template-columns: 1fr; }
  .steps5 li { grid-template-rows: none; grid-template-columns: 2.2em 1fr auto; align-items: center; min-height: 76px; padding: 12px 18px; }
  .steps5 b { font-size: var(--step-lead); }

  .tri { grid-template-columns: 1fr; row-gap: 56px; }
  .tri > li, .tri > .tri-b { min-height: 0; }
  .tri-b h3 { margin-top: 24px; }
  .tri > li + li::before { top: auto; bottom: calc(100% + 1px); right: auto; left: 50%; width: 1px; height: 56px; }
  .tri > li + li::after { top: auto; bottom: calc(100% + 2px); right: auto; left: 50%; margin: 0 0 0 -5px; border: 5px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }

  .dir-g { display: block; }
  .dir-label { margin-bottom: 20px; }
  .person { grid-template-columns: 2.2em 56px minmax(0, 1fr); row-gap: 14px; }
  .person > :is(.p-meta, p) { grid-column: 3; }
  .org-core { grid-template-columns: 1fr; }
  .org-side { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }

  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .timeline li:nth-child(2)::before { margin-right: 0; }

  .catalog { display: block; }
  .cat-head { position: static; }
  .cat-body { margin-top: 48px; }

  .rule { grid-template-columns: 2.6em 1fr; row-gap: 10px; padding: 22px 0; }
  .rule p { grid-column: 2; }
  .status .btn { margin-left: 0; }
  .partners-cta .cells { grid-template-columns: 1fr; }
  .cell { min-height: 80px; }
  .svc + .svc { margin-top: 64px; padding-top: 40px; }
  .foot { padding: 80px var(--mx) 24px; }

  .go-split > .col-a { padding: 16px var(--mx) 0; }
  .go-split > .stage { margin-top: 8px; }
  .go-split > .col-b { align-self: stretch; padding: 32px var(--mx) 40px; }
  .go-panel { min-height: 40svh; gap: 28px; }
  .go-wm { font-size: 19vw; }
  .go-opts { margin-top: 28px; }
  .go-opt { min-height: 112px; }
}

@media (max-width: 599px) {
  html:lang(en) h2.long { font-size: 1.5rem; }
  .cards, .cards.c3, .feeds, .values, .res, .quad, .jump { grid-template-columns: 1fr; }
  .cards { gap: 40px; }
  .quad li + li { padding-left: 0; border-left: 0; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
  .quad .word { margin-bottom: 12px; }
  .timeline { grid-template-columns: 1fr; row-gap: 48px; }
  .timeline li::before { margin-right: 0; }
  .mv > div { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .person { grid-template-columns: 48px minmax(0, 1fr); }
  .person::before { display: none; }
  .person > :is(.p-meta, p) { grid-column: 2; }
  .courses li { grid-template-columns: 3.6rem 1fr; font-size: var(--step-lead); }
  .courses li::before { font-size: 2.25rem; }
  .res li { min-height: 0; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .rows li { grid-template-columns: 1fr; }
  .rows li::before { margin-bottom: -4px; }
  .rows li > :not(h3), .rows li .more { grid-column: 1; }

  /* the organization chart stacks: the director, the advisers, the teams, each hung on a short line */
  .oc { grid-template-columns: 1fr; }
  .oc-head, .oc-adv { grid-column: 1; grid-row: auto; }
  .oc-head::after { display: none; }
  .oc-adv { margin-top: 20px; }
  .oc-adv::before { top: auto; bottom: 100%; right: auto; left: 24px; width: 0; height: 20px; border-top: 0; border-left: 1px dashed var(--paper-ink); }
  .oc-row { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; padding-top: 0; }
  .oc-row::before { display: none; }
  .oc-row > .oc-box::before { left: 24px; height: 21px; }
  .oc-x::before { left: 24px; right: auto; width: 0; height: 20px; border: 0; border-left: 1px dashed var(--paper-ink); }

  .table, .table tbody, .table tr, .table td { display: block; width: auto !important; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table td { border-top: 0; padding: 4px 0; }
  .table tr { padding: 18px 0; border-top: 1px solid var(--rule-strong); }
  .experts .table tr { border-top-color: var(--rule); }
  .countries .table td:first-child, .experts .table td:first-child { white-space: normal; }
  .countries .table td::before, .experts .table td::before { display: block !important; }
  .table td:first-child::before { display: none !important; }
  .partners .table tr { grid-template-columns: 1fr; row-gap: 12px; }
  .countries .table tr.us { padding-inline: 16px; background: var(--accent); }
  .countries .table tr.us td { background: none; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rise { opacity: 1; transform: none; transition: none; }
  html.js :is(.rows li, .courses li).rise { background-size: 100% 1px; transition: none; }
  html.js .timeline li.rise::before { transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .redo:not([hidden]) { animation: none; }
  .atmark, .foot-wm { animation: none; }
}

@media print {
  .bar, .skip, .atmark, .foot-wm { display: none; }
  .ss > .stage { position: static; height: auto; }
  .panel { height: auto; }
  html.js .rise { opacity: 1; transform: none; }
}
