/* tokens.css: every colour, size and space on the site, written once (build spec section 4, and section
   12, the premium look, approved by Jimi on 19 October 2026). site.css and nojs.css use these and
   nothing else; scripts/check-tokens.mjs fails on any value written anywhere else. Phone values first.
   Sizes switch at 761 px (the phone layout is 760 px and below, as drawn) and a few at 1081 px; the
   body size and the professional-investor notice's own sizes, kept from section 4, switch at 900 px. */

:root {
	/* Colour (build spec section 12). Line and line-dark are for lines only, never text. Brass is the
	   accent on dark only; brass-ink is the accent on ivory, paper and white. */
	--color-ink: #07131F;
	--color-ink-2: #0C1E30;
	--color-footer: #050E17;
	--color-ivory: #F4EFE6;
	--color-paper: #FBF8F3;
	--color-white: #FFFFFF;
	--color-brass: #C2A26B;
	--color-brass-ink: #7A5C2E;
	--color-on-dark: #ECE7DD;
	--color-headline: #F6F1E7;
	--color-muted-dark: #A9B4C0;
	--color-on-picture: #C9CED4;
	--color-text: #13202C;
	--color-muted: #56606B;
	--color-error: #A4262C;
	--color-line: rgb(7 19 31 / 0.14);
	--color-line-dark: rgb(236 231 221 / 0.16);
	--color-photo: #0C1E30; /* behind a picture while it loads: ink-2 */
	--color-overlay: rgb(7 19 31 / 0.9); /* ink at 90 %: the page behind the notice */
	--color-hdr: rgb(7 19 31 / 0.94); /* the header bar, solid */
	--color-hdr-clear: rgb(7 19 31 / 0); /* the header over a hero, before it fades to solid */
	--color-line-clear: rgb(236 231 221 / 0); /* its bottom line then */
	--color-frame: rgb(255 255 255 / 0.55); /* the inset frame on the home About picture */
	--color-frame-strong: rgb(255 255 255 / 0.6); /* and on the Who It Suits picture */
	--color-field: #7D838B; /* the form fields' border: 3:1 on white (build spec section 12, Contact) */
	--color-legal: #3E4853; /* the legal pages' text, as drawn */
	--color-ring-1: rgb(194 162 107 / 0.18); /* the three faint brass rings, outer to inner */
	--color-ring-2: rgb(194 162 107 / 0.12);
	--color-ring-3: rgb(194 162 107 / 0.08);
	--color-nf-stroke: rgb(194 162 107 / 0.45); /* the 404's outlined numeral */
	--color-safe-frame: rgb(194 162 107 / 0.35); /* the inset frame of the Safekeeping panel */

	/* The shades over pictures, the only gradients (build spec section 12) */
	--shade-hero: linear-gradient(90deg, rgb(5 13 22 / 0.94) 0%, rgb(5 13 22 / 0.78) 38%, rgb(5 13 22 / 0.3) 72%, rgb(5 13 22 / 0.15) 100%), linear-gradient(0deg, rgb(7 19 31 / 1) 0%, rgb(7 19 31 / 0) 26%);
	--shade-band: rgb(5 13 22 / 0.72);
	--shade-contact: linear-gradient(90deg, rgb(5 13 22 / 0.95) 0%, rgb(5 13 22 / 0.84) 55%, rgb(5 13 22 / 0.6) 100%);
	--shade-card: linear-gradient(0deg, rgb(7 19 31 / 0.92) 0%, rgb(7 19 31 / 0.25) 55%, rgb(7 19 31 / 0.05) 100%);
	--shade-card-other: linear-gradient(0deg, rgb(7 19 31 / 0.85) 0%, rgb(7 19 31 / 0) 60%);
	--shade-tile: linear-gradient(0deg, rgb(7 19 31 / 0.92) 0%, rgb(7 19 31 / 0.2) 65%); /* About's Next tiles */
	--shadow-card: 0 30px 60px -30px rgb(7 19 31 / 0.35); /* the team card on hover, the one shadow */

	/* Type faces and weights (build spec section 12). Headings, statements, figures and numbers in
	   Cormorant Garamond, Chinese headings in Noto Serif TC (Latin figures in them stay in Cormorant);
	   text in IBM Plex Sans, Chinese text in Noto Sans TC. Only 400 and 500 are loaded, so the strong
	   weights are 500; Chinese text has 400 only (see the end of this file), and Chinese headings are
	   Noto Serif TC 500. */
	--font-serif: 'Cormorant Garamond', 'Noto Serif TC', serif;
	--font-display: 'Cormorant Garamond', 'Noto Serif TC', serif;
	--font-text: 'IBM Plex Sans', 'Noto Sans TC', system-ui, sans-serif;
	--font-zh: 'Noto Sans TC', 'IBM Plex Sans', system-ui, sans-serif;
	--weight-regular: 400;
	--weight-strong: 500;
	--weight-medium: var(--weight-strong);
	--weight-semibold: var(--weight-strong);
	--weight-serif-zh: 500;

	/* Type sizes kept from section 4: the body, the form's small text, and the notice (phone; from 900 px
	   below) */
	--size-h2: 32px;
	--size-h2-zh: 30px;
	--size-body: 16px;
	--size-label: 15px; /* company label, navigation, buttons, links beside headings, card titles */
	--size-small: 14px;
	--size-ok: 18px;

	/* Line heights */
	--leading-heading: 1.05;
	--leading-heading-zh: 1.25;
	--leading-tight: 1.3;
	--leading-body: 1.7;
	--leading-body-zh: 1.85;

	/* Letter spacing */
	--tracking-zh: 0.04em;

	/* Space: the scale */
	--space-4: 4px;
	--space-8: 8px;
	--space-12: 12px;
	--space-16: 16px;
	--space-24: 24px;
	--space-32: 32px;
	--space-48: 48px;
	--space-64: 64px;
	--space-80: 80px;
	--space-96: 96px;
	--space-112: 112px;

	/* Layout */
	--wrap-max: 1280px;
	--notice-max: 620px;
	--ratio-tall: 4 / 5;
	--ratio-phone: 4 / 3;
	--ratio-tile: 16 / 10; /* About's Next tiles from 761 px */

	/* Lines, focus, links, buttons */
	--line: 1px;
	--line-heavy: 2px;
	--notice-bar: 6px;
	--focus-width: 2px; /* a 2 px outline at a 3 px offset (build spec section 12) */
	--focus-offset: 3px;
	--focus-offset-field: 2px; /* the form fields' ring, as drawn */
	--underline-offset: 4px;
	--btn-pad-y: 15px;
	--btn-pad-x: 26px;

	/* Component sizes */
	/* The sticky header bar's height, for the scroll margin of anchored and focused elements and the
	   phone menu's height (build spec section 5): just above the height measured on every page. site.js
	   replaces it with the bar's own height, kept current as it changes. */
	--hdr-h: 72px;
	--logo-h-notice: 22px;
	--ok-bar: 4px;

	/* ---- The premium look (build spec section 12; design/2026-10-19-premium/). Phone values; from
	   761 px below. ---- */
	/* Sizes */
	--p-display: 54px;
	--p-display-zh: 52px;
	--p-title: 58px; /* a service page's title */
	--p-title-zh: 52px;
	--p-h2: 44px; /* section headings */
	--p-h2-zh: 40px;
	--p-eyebrow: 12px;
	--p-eyebrow-zh: 13px;
	--p-hero-lead: 17px;
	--p-quote: 32px;
	--p-quote-zh: 26px;
	--p-statement-about: 28px;
	--p-statement-overview: 28px;
	--p-statement-suits: 26px;
	--p-statement-zh: 22px;
	--p-card-name: 32px;
	--p-card-name-zh: 28px;
	--p-card-name-other: 30px;
	--p-fig: 68px;
	--p-fig-zh: 48px;
	--p-body: 17px;
	--p-small: 15px; /* secondary text */
	--p-label: 13px; /* upper-case labels, nav, "more" links */
	--p-label-zh: 15px;
	--p-label-sm: 12px; /* buttons, crumbs, the hero strip, roles */
	--p-label-sm-zh: 14px;
	--p-label-xs: 11px; /* the district over an address */
	--p-strip-zh: 13px;
	--p-more-zh: 14px;
	--p-menu: 28px;
	--p-menu-zh: 24px;
	--p-num: 20px; /* a card's number */
	--p-num-lg: 22px; /* values and "what" numbers */
	--p-value-t: 30px;
	--p-value-t-zh: 28px;
	--p-text: 16px; /* text in values, cells and addresses */
	--p-fig-line: 24px;
	--p-fig-line-zh: 22px;
	--p-person: 36px;
	--p-contact-text: 18px;
	--p-contact-statement: 30px; /* 40 px from 761 px (Task 17: the shared drawings' 30 px on phones) */
	--p-lead-serif: 22px; /* a service page's lead */
	--p-cap: 84px; /* the Overview's drop capital */
	--p-cell-t: 32px;
	--p-step-n: 64px;
	--p-step-t: 30px;
	--p-step-t-zh: 30px;
	/* From 1280 px, an English track whose longest title would wrap at 30 px: the least whole pixel that leaves
	   at least 6 px spare in Chromium, Firefox and WebKit (build spec section 12, service page item 5) */
	--p-step-t-overview: 29px; /* "Investing & monitoring", 268 px in a 278 px column */
	--p-step-t-alternatives: 27px; /* "Manager & strategy", 208 px in a 218 px column */
	--p-ftr: 14px;
	--p-ftr-sm: 13px;
	--p-lang: 14px;

	/* Line heights */
	--p-lh-display: 0.98;
	--p-lh-display-zh: 1.18;
	--p-lh-title: 0.96;
	--p-lh-h2: 1.04;
	--p-lh-h2-zh: 1.15;
	--p-lh-lead: 1.7;
	--p-lh-zh: 1.9;
	--p-lh-quote: 1.28;
	--p-lh-quote-zh: 1.75;
	--p-lh-statement: 1.3;
	--p-lh-statement-ov: 1.32;
	--p-lh-statement-zh: 1.85;
	--p-lh-body: 1.75;
	--p-lh-body-zh: 1.95;
	--p-lh-card: 1.08;
	--p-lh-card-zh: 1.3;
	--p-lh-lead-card: 1.65;
	--p-lh-fig: 1;
	--p-lh-fig-zh: 1.1;
	--p-lh-fig-line-zh: 1.6;
	--p-lh-value: 1.15;
	--p-lh-person: 1.05;
	--p-lh-cell: 1.1;
	--p-lh-serif-lead: 1.35;
	--p-lh-contact: 1.2;
	--p-lh-addr-zh: 1.85;
	--p-lh-cap: 0.78;
	--p-lh-menu: 1.2;

	/* Letter spacing */
	--p-track-display: -0.015em;
	--p-track-display-zh: 0.08em;
	--p-track-title: -0.02em;
	--p-track-h2: -0.01em;
	--p-track-h2-zh: 0.04em;
	--p-track-fig: -0.02em;
	--p-track-eyebrow: 0.24em;
	--p-track-eyebrow-zh: 0.3em;
	--p-track-btn: 0.2em;
	--p-track-btn-zh: 0.24em;
	--p-track-nav: 0.14em;
	--p-track-nav-zh: 0.16em;
	--p-track-more: 0.16em;
	--p-track-more-zh: 0.2em;
	--p-track-strip: 0.12em;
	--p-track-strip-zh: 0.16em;
	--p-track-label: 0.14em; /* the figures' labels */
	--p-track-label-zh: 0.08em;
	--p-track-role: 0.18em;
	--p-track-role-zh: 0.16em;
	--p-track-addr: 0.2em;
	--p-track-addr-zh: 0.24em;
	--p-track-lead-zh: 0.04em;
	--p-track-quote-zh: 0.06em;
	--p-track-card-zh: 0.06em;
	--p-track-value-zh: 0.08em;
	--p-track-menu-zh: 0.1em;
	--p-track-lang-zh: 0.1em;

	/* Space */
	--space-6: 6px;
	--space-10: 10px;
	--space-14: 14px;
	--space-18: 18px;
	--space-20: 20px;
	--space-28: 28px;
	--space-36: 36px;
	--space-40: 40px;
	--space-44: 44px;
	--space-56: 56px;
	--space-72: 72px;
	--space-120: 120px;
	--space-140: 140px;
	--p-side: 20px; /* the content's side padding */
	--p-sec: 96px; /* a section's top and bottom padding */
	--p-sec-head: 48px; /* below a section head */
	--p-values-top: 64px;
	--p-gap: 24px; /* the twelve-column grid's gap */

	/* Sizes of parts */
	--p-hdr-h: 72px;
	--p-logo-h: 30px;
	--p-logo-ftr: 34px;
	--p-hero-h: 760px;
	--p-phero-h: 680px;
	--p-band-h: 620px;
	--p-btn-h: 48px;
	--p-tap: 44px; /* the smallest target */
	--p-menu-item: 56px;
	--p-rule: 48px; /* the eyebrow's rule */
	--p-rule-sm: 24px; /* the crumb's rule */
	--p-bar: 32px; /* a card's short brass rule */
	--p-arrow: 32px;
	--p-arrow-hover: 56px;
	--p-arrow-head: 7px;
	--p-orn: 64px; /* the mission band's ornament rules */
	--p-diamond: 7px;
	--p-step-diamond: 9px;
	--p-cue-h: 40px;
	--p-person-bar: 40px;
	--p-mark: 32px; /* the note's "i" mark */
	--p-frame-inset: 20px;
	--p-lift: -6px; /* the team card on hover */
	--p-hdr-fade: 320px; /* the scroll over which the header fades to solid */
	--p-rise-sm: 28px; /* how far the hero's words rise on load */
	--p-rise: 56px; /* and the sections' parts as they come into view */
	--p-parallax-room: -12%; /* a moving picture's box reaches this far past its band, above and below */
	--p-cue-from: -40%; /* the scroll cue's brass line, from above its track to below it */
	--p-cue-to: 100%;
	--p-measure-lead: 520px;
	--p-measure-plead: 560px;
	--p-measure-contact: 460px;
	--p-measure-ftr: 560px;
	--p-measure-band: 980px;
	--p-measure-band-zh: 940px;

	/* The other pages (build spec section 12, The other pages; Task 17). Phone values; from 761 px below. */
	--p-ptitle: 56px; /* a page title in a picture or solo header */
	--p-nf-title: 88px; /* at every width, as drawn */
	--p-nf-title-zh: 64px;
	--p-nf-num: 180px; /* the 404's outlined numeral */
	--p-nf-body: 19px;
	--p-statement-intro: 28px; /* About's introduction */
	--p-cap-intro: 88px; /* and its drop capital */
	--p-quote-about: 32px; /* About's mission */
	--p-num-xl: 88px; /* the core values' numerals */
	--p-tile-name: 40px; /* About's Next tiles */
	--p-tile-name-zh: 34px;
	--p-srow-num: 28px; /* the Services overview's rows */
	--p-srow-name: 34px;
	--p-srow-name-zh: 30px;
	--p-safe-statement: 34px; /* the Safekeeping panel */
	--p-safe-statement-zh: 28px;
	--p-statement-team: 30px; /* Our Team's lead */
	--p-strength: 22px; /* Our Team's strengths */
	--p-strength-zh: 20px;
	--p-prof-name: 42px; /* a profile's name */
	--p-addr: 26px; /* an address on Contact */
	--p-addr-zh: 22px;
	--p-mail: 24px; /* the email link on Contact */
	--p-form-h: 44px; /* the form's heading */
	--p-form-h-zh: 40px;
	--p-legal-first: 24px; /* a legal page's first paragraph */
	--p-lh-quote-about: 1.26;
	--p-lh-vcard: 1.12;
	--p-lh-srow: 1.05;
	--p-lh-safe: 1.15;
	--p-lh-strength: 1.35;
	--p-lh-prof: 1.8;
	--p-lh-addr: 1.3;
	--p-lh-legal-first: 1.35;
	--p-phead-h: 560px; /* the picture header */
	--p-solo-top: 72px; /* the solo header's padding */
	--p-solo-bottom: 64px;
	--p-rings-w: 120%; /* the rings on a solo header: their size and how far they reach past the band */
	--p-rings-right: -60%;
	--p-rings-top: -30%;
	--p-ring-2: 12%; /* the inner rings' inset */
	--p-ring-3: 24%;
	--p-rings-mission: 900px; /* the rings behind About's mission */
	--p-rings-nf: 760px; /* and on the 404 */
	--p-rings-nf-right: -8%;
	--p-centre: 50%;
	--p-nf-h: 520px;
	--p-nf-pad: 80px;
	--p-nf-num-top: 22%;
	--p-nf-num-right: -4%;
	--p-ntile-pad: 24px;
	--p-vcard-top: 44px; /* a core value card's padding */
	--p-vcard-x: 28px;
	--p-vcard-bottom: 44px;
	--p-srow-n: 48px; /* a row's number column, and its picture column from 761 px */
	--p-srow-img: 160px;
	--p-nudge: 12px; /* a row's name on hover */
	--p-safe-pad-y: 44px;
	--p-safe-pad-x: 28px;
	--p-safe-frame: 16px;
	--p-safe-mark: 44px; /* the shield mark */
	--p-strength-diamond: 8px;
	--p-prof-pad: 64px;
	--p-fact-label: 180px; /* the facts' label column from 761 px */
	--p-fact-diamond: 6px; /* the mark before each Leadership Experience role */
	--p-fact-diamond-top: 10px; /* centred on the first line: 16 px at 1.7 */
	--p-fact-diamond-top-zh: 12px; /* 16 px at 1.9 */
	--p-cpanel-top: 44px; /* the form panel's padding */
	--p-cpanel-x: 24px;
	--p-cpanel-bottom: 32px;
	--p-area-h: 168px; /* the message field */
	--p-measure-plead-page: 600px;
	--p-measure-nf: 620px;
	--p-measure-legal: 70ch;
	/* Figures that must fit their column: the Market figures are no larger than this, so that "Trillion"
	   stays inside its column from 761 px; Who We Serve's thresholds, which never break, are stacked below
	   1081 px and sized to their column above it (Chinese: no larger than 56 px there). */
	--p-fig-fit: 68px;
	--p-fig-serve: 68px;
	--p-fig-serve-zh: 48px;

	/* Motion (build spec section 12) */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-cue: cubic-bezier(0.6, 0, 0.4, 1);
}

@media (min-width: 900px) {
	:root {
		--size-h2: 48px;
		--size-h2-zh: 44px;
		--size-body: 17px;
	}
}

/* The premium look from 761 px (above the phone layout) */
@media (min-width: 761px) {
	:root {
		--p-display: 104px;
		--p-display-zh: 92px;
		--p-title: 112px;
		--p-title-zh: 96px;
		--p-h2: 64px;
		--p-h2-zh: 56px;
		--p-hero-lead: 19px;
		--p-quote: 48px;
		--p-quote-zh: 40px;
		--p-statement-about: 36px;
		--p-statement-overview: 38px;
		--p-statement-suits: 34px;
		--p-statement-zh: 28px;
		--p-fig: 88px;
		--p-fig-zh: 64px;
		--p-lead-serif: 28px;
		--p-cap: 118px;

		--p-side: 48px;
		--p-sec: 160px;
		--p-sec-head: 80px;
		--p-values-top: 120px;

		--p-hdr-h: 88px;
		--hdr-h: 88px;
		--p-logo-h: 38px;
		--p-hero-h: 900px;
		--p-phero-h: 760px;
		--p-band-h: 720px;

		--p-contact-statement: 40px;
		--p-ptitle: 104px;
		--p-nf-title-zh: 80px;
		--p-nf-num: 360px;
		--p-statement-intro: 40px;
		--p-cap-intro: 124px;
		--p-quote-about: 52px;
		--p-tile-name: 52px;
		--p-tile-name-zh: 46px;
		--p-srow-name: 48px;
		--p-srow-name-zh: 42px;
		--p-safe-statement: 48px;
		--p-safe-statement-zh: 40px;
		--p-strength: 26px;
		--p-strength-zh: 22px;
		--p-prof-name: 56px;
		--p-mail: 30px;
		--p-legal-first: 30px;
		--p-phead-h: 640px;
		--p-solo-top: 120px;
		--p-solo-bottom: 96px;
		--p-rings-w: 60%;
		--p-rings-right: -12%;
		--p-rings-top: -40%;
		--p-nf-h: 640px;
		--p-nf-pad: 120px;
		--p-nf-num-top: 50%;
		--p-nf-num-right: 6%;
		--p-ntile-pad: 40px;
		--p-vcard-top: 56px;
		--p-vcard-x: 40px;
		--p-vcard-bottom: 48px;
		--p-srow-n: 72px;
		--p-safe-pad-y: 56px;
		--p-safe-pad-x: 48px;
		--p-prof-pad: 96px;
		--p-cpanel-top: 56px;
		--p-cpanel-x: 48px;
		--p-cpanel-bottom: 48px;
		--p-fig-fit: 8.5vw;
		--p-fig-serve: 88px;
		--p-fig-serve-zh: 64px;
	}
}

/* From 1081 px, the Services overview's rows put the lead in a column of its own. */
@media (min-width: 1081px) {
	:root {
		--p-srow-n: 96px;
		--p-srow-img: 200px;
		--p-fig-serve: min(88px, calc(10vw - 40px));
		--p-fig-serve-zh: min(56px, calc(6vw - 21px));
	}
}

/* Chinese text is set in Noto Sans TC 400 only (build spec section 12, amended after Task 16): the
   labels, buttons, eyebrows and bold runs that are 500 in English are 400 in Chinese, so no Noto Sans
   TC 500 is loaded. Chinese headings keep --weight-serif-zh. English inside a Chinese page (the EN
   switch, the people's names) keeps the English weights. */
:lang(zh-HK) {
	--weight-medium: var(--weight-regular);
	--weight-semibold: var(--weight-regular);
}

:lang(en) {
	--weight-medium: var(--weight-strong);
	--weight-semibold: var(--weight-strong);
}
