/* tokens.css (frozen; copied unmodified, font @imports moved to <link>) */
/* ---------------------------------------------------------------------------
   DESIGN TOKENS — FROZEN (InsightH demo, 2026-11-22)
   Fonts are self-hosted (src/styles/0-fonts.css): Brygada 1918 (display), Jost (body). Both SIL OFL.
--------------------------------------------------------------------------- */

:root {
  /* Colour: warm-ink dominant, warm paper neutral family, one amber accent (the H of the logo). */
  --color-canvas: #F2EEE4;
  --color-surface: #FAF8F2;
  --color-text: #1B1913;
  --color-text-muted: #595347;
  --color-accent: #E8A218;
  --color-accent-wash: #E4DCC9;
  --color-hairline: rgba(27, 25, 19, 0.16);
  --color-ink: #1B1913;
  --color-on-ink: #F2EEE4;

  --font-display: 'Brygada 1918', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Jost', 'Avenir Next', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0:  clamp(1.0625rem, 0.98rem + 0.26vw, 1.25rem);
  --step-1:  1.5rem;
  --step-2:  2.5rem;
  --step-3:  4.5rem;
  --step-4:  7.5rem;

  --space-section: clamp(4.5rem, 9.4vw, 9rem);
  --space-block: clamp(3rem, 5vw, 5rem);
  --space-gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-sm: 2px;
  --radius-md: 4px;

  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 900ms;
  --motion-tier: 2;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* site.css */
/* ==========================================================================
   site.css — the CHROME of the TheWebxite static starter: base, header, overlay menu,
   intro loader, footer, form states, sample-content toggle, motion states.

   - Imports nothing remote. build.mjs puts tokens.css (frozen by /design-direction) in front of this file,
     so every value here comes from a token: --color-*, --font-*, --step-*, --space-*, --radius-*, --ease-*, --duration-*.
   - Chrome classes are twx- prefixed and hooks are data-twx-*, so they never collide with page classes.
     Page sections are styled in src/styles/pages.css (or more files next to it).
   - Restyle freely per client; keep the behaviour hooks (data-twx-*, .twx-is-open, html[data-intro] …).
   ========================================================================== */

:root {
  --twx-header-h: 72px;
  --twx-max: 1440px;
  /* Display leading. Page CSS should use it for big type so the :lang(vi) override below applies. */
  --twx-leading-display: 0.96;
  --twx-on-dark: var(--color-canvas);
  --twx-on-dark-muted: color-mix(in srgb, var(--color-canvas) 62%, transparent);
  --twx-on-dark-line: color-mix(in srgb, var(--color-canvas) 18%, transparent);
}
/* Vietnamese stacks diacritics above capitals (Ầ Ẫ Ổ): tight display leading makes lines collide. Keep ≥ 1.02. */
:lang(vi) { --twx-leading-display: 1.06; }
/* CJK has no italic and no synthetic bold that looks right: never let the browser fake them. */
:lang(zh), :lang(zh) * { font-synthesis: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--twx-header-h) + 16px); }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* entrance offsets must never create sideways scroll; clip (not hidden) keeps position:sticky working */
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
[data-mask] { overflow: hidden; }           /* clip box for mask reveals and parallax images */
[data-gl] { position: relative; }           /* three.js canvases sit on top of the poster image */
main:focus { outline: none; }

.twx-skip { position: fixed; left: 16px; top: -100px; z-index: 90; padding: 12px 18px; background: var(--color-text); color: var(--color-canvas); border-radius: var(--radius-sm); }
.twx-skip:focus { top: 16px; }
.twx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.twx-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--twx-header-h);
  transition: transform var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard);
}
.twx-header--scrolled { background: var(--color-canvas); box-shadow: 0 1px 0 var(--color-hairline); }
.twx-header--hidden { transform: translateY(-100%); }
.twx-header__bar {
  height: 100%; max-width: var(--twx-max); margin: 0 auto; padding: 0 var(--space-gutter);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}
.twx-header[data-logo="center"] .twx-header__bar { grid-template-columns: 1fr auto 1fr; }
.twx-header[data-logo="center"] .twx-header__tools { justify-self: end; }
.twx-header[data-logo="left"] .twx-header__tools { justify-self: end; }
.twx-header__tools { display: flex; align-items: center; gap: 20px; }

.twx-logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.twx-logo__text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1; letter-spacing: -0.01em; }
.twx-logo__img { height: 36px; width: auto; }

.twx-lang { display: flex; gap: 2px; }
.twx-lang a, .twx-menu__langs a, .twx-footer__langs a {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--step--1); letter-spacing: 0.08em; text-decoration: none; color: var(--color-text-muted);
}
.twx-lang a[aria-current], .twx-lang a:hover { color: var(--color-text); }
.twx-lang a[aria-current] { text-decoration: underline; }

.twx-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  background: var(--color-text); color: var(--color-canvas); border-radius: var(--radius-sm);
  font-size: var(--step--1); letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.twx-cta:hover { background: var(--color-accent); }
.twx-cta--inverse { background: var(--color-canvas); color: var(--color-text); }

/* Menu button: hidden without JS (the footer nav covers no-JS visitors). */
.twx-menu-btn {
  display: none; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 4px;
  background: none; border: 0; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
}
.twx-js .twx-menu-btn { display: inline-flex; }
.twx-header[data-logo="left"] .twx-menu-btn { justify-self: end; }
.twx-menu-btn__lines { display: grid; gap: 7px; width: 28px; }
.twx-menu-btn__lines span { display: block; height: 1.5px; background: currentColor; transform-origin: right; transition: transform var(--duration-base) var(--ease-standard); }
.twx-menu-btn__lines span:last-child { transform: scaleX(0.6); }
.twx-menu-btn:hover .twx-menu-btn__lines span:last-child { transform: none; }

@media (max-width: 767px) {
  :root { --twx-header-h: 64px; }
  .twx-header__tools { display: none; }          /* language and CTA move into the menu on phones */
  .twx-header[data-logo="center"] .twx-header__bar { grid-template-columns: auto 1fr auto; }
  .twx-header[data-logo="center"] .twx-logo { justify-self: center; }
  .twx-menu-btn__label { display: none; }
}

/* ---------- Overlay menu ---------- */
/* Closed: clipped to nothing at the top and invisible. Open: the clip wipes down. visibility is delayed on
   close so the wipe can finish; `inert` (set by site.js) keeps it out of the tab order while closed. */
.twx-menu {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
  background: var(--color-text); color: var(--twx-on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path var(--duration-slow) var(--ease-exit), visibility 0s linear var(--duration-slow);
}
.twx-menu.twx-is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path var(--duration-slow) var(--ease-standard), visibility 0s; }
html.twx-menu-open, html.twx-menu-open body { overflow: hidden; }
html.twx-menu-open body { padding-right: var(--twx-scrollbar, 0px); }   /* no layout jump when the scrollbar goes */

.twx-menu__top { flex: none; height: var(--twx-header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-gutter); width: 100%; max-width: var(--twx-max); margin: 0 auto; }
.twx-menu__close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; color: inherit; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; }
.twx-menu__close svg { width: 24px; height: 24px; transition: transform var(--duration-base) var(--ease-standard); }
.twx-menu__close:hover svg { transform: rotate(90deg); }

.twx-menu__body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 120px); align-items: center;
  width: 100%; max-width: var(--twx-max); margin: 0 auto; padding: 16px var(--space-gutter);
}
.twx-menu__list { border-top: 1px solid var(--twx-on-dark-line); }
.twx-menu__list li { overflow: hidden; border-bottom: 1px solid var(--twx-on-dark-line); }
.twx-menu__list a {
  display: block; padding: clamp(8px, 1.4vh, 16px) 0; text-decoration: none;
  transform: translateY(105%); transition: transform var(--duration-slow) var(--ease-standard), color var(--duration-fast) linear;
}
.twx-menu.twx-is-open .twx-menu__list a { transform: none; transition-delay: calc(var(--i, 0) * 60ms + 200ms), 0s; }
.twx-menu__label {
  display: inline-block; font-family: var(--font-display); line-height: var(--twx-leading-display);
  font-size: clamp(2.25rem, 4.2vh + 2vw, var(--step-3)); letter-spacing: -0.015em;
  transition: transform var(--duration-base) var(--ease-standard);
}
.twx-menu__list:hover a { color: var(--twx-on-dark-muted); }
.twx-menu__list a:hover, .twx-menu__list a:focus-visible, .twx-menu__list a[aria-current] { color: var(--twx-on-dark); }
.twx-menu__list a:hover .twx-menu__label, .twx-menu__list a:focus-visible .twx-menu__label { transform: translateX(16px); }
.twx-menu__list a:focus-visible { outline-color: var(--twx-on-dark); outline-offset: -2px; }

/* Preview photo (desktop only): two stacked images cross-fade; site.js loads them on first open. */
.twx-menu__preview { position: relative; justify-self: end; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; max-height: 62vh; overflow: hidden; background: var(--twx-on-dark-line); border-radius: var(--radius-sm); }
.twx-menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity var(--duration-base) linear, transform var(--duration-slow) var(--ease-standard); }
.twx-menu__preview img.twx-is-active { opacity: 1; transform: none; }
.twx-menu__preview img:not([src]) { display: none; }

.twx-menu__foot {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  width: 100%; max-width: var(--twx-max); margin: 0 auto; padding: 16px var(--space-gutter) 32px;
  font-size: var(--step--1); color: var(--twx-on-dark-muted);
}
.twx-menu__foot a { text-decoration: none; }
.twx-menu__foot a:hover { color: var(--twx-on-dark); }
.twx-menu__social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.twx-menu__social a { display: inline-flex; align-items: center; min-height: 44px; }
.twx-menu__langs { display: flex; gap: 2px; }
.twx-menu__langs a { color: var(--twx-on-dark-muted); }
.twx-menu__langs a[aria-current] { color: var(--twx-on-dark); text-decoration: underline; }
.twx-menu__foot .twx-cta { margin-left: auto; }

@media (max-width: 1023px) {
  .twx-menu__body { grid-template-columns: 1fr; align-items: start; }
  .twx-menu__preview { display: none; }
}
@media (max-width: 767px) {
  .twx-menu__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .twx-menu__foot .twx-cta { margin-left: 0; width: 100%; }
}

/* ---------- Intro loader ---------- */
/* Shown only while <html data-intro> is set (inline <head> script: first page of a session, motion allowed).
   The hero paints underneath it, so the largest paint is not held back. */
.twx-intro { display: none; }
html[data-intro] { overflow: hidden; }
html[data-intro] .twx-intro {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  padding: var(--space-gutter); background: var(--color-canvas); color: var(--color-text); cursor: pointer;
  clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-exit);
}
.twx-intro.twx-is-out { clip-path: inset(0 0 100% 0); }
.twx-intro__name { font-family: var(--font-display); font-size: clamp(3rem, 11vw, var(--step-4)); line-height: var(--twx-leading-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.twx-intro__bar { display: block; height: 1px; background: var(--color-hairline); }
.twx-intro__bar span { display: block; height: 100%; background: var(--color-text); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 500ms var(--ease-standard); }
.twx-intro__skip { position: absolute; top: 12px; right: var(--space-gutter); min-height: 44px; min-width: 44px; padding: 0 8px; background: none; border: 0; font-size: var(--step--1); letter-spacing: 0.08em; color: var(--color-text-muted); }
.twx-intro__skip:hover { color: var(--color-text); }

/* ---------- Footer ---------- */
.twx-footer { background: var(--color-text); color: var(--twx-on-dark-muted); padding: var(--space-block) var(--space-gutter) 32px; font-size: var(--step--1); }
.twx-footer__grid, .twx-footer__bottom { max-width: var(--twx-max); margin: 0 auto; }
.twx-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.twx-footer__name { font-family: var(--font-display); font-size: var(--step-2); line-height: var(--twx-leading-display); color: var(--twx-on-dark); }
.twx-footer__h { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--twx-on-dark); margin-bottom: 12px; }
.twx-footer address { font-style: normal; }
.twx-footer a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.twx-footer a:hover { color: var(--twx-on-dark); }
.twx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: var(--space-block); padding-top: 20px; border-top: 1px solid var(--twx-on-dark-line); }
.twx-footer__langs { display: flex; gap: 2px; }
.twx-footer__langs a { color: var(--twx-on-dark-muted); }
.twx-footer__langs a[aria-current] { color: var(--twx-on-dark); }
@media (max-width: 1023px) { .twx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .twx-footer__name { grid-column: 1 / -1; } }
@media (max-width: 479px) { .twx-footer__grid { grid-template-columns: 1fr; } }
/* Footer link lists sit tight at 44px rows; stacked rows need no extra gap. */
.twx-footer ul { display: grid; gap: 0; }

/* ---------- 404 ---------- */
.twx-404 { min-height: 70vh; max-width: var(--twx-max); margin: 0 auto; padding: calc(var(--twx-header-h) + var(--space-block)) var(--space-gutter) var(--space-section); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 24px; }
.twx-404 h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 9vw, var(--step-4)); line-height: var(--twx-leading-display); }

/* ---------- Form states (set by site.js) ---------- */
.twx-honey { position: absolute !important; left: 0; top: 0; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }
.twx-field-error { margin-top: 6px; font-size: var(--step--1); color: var(--color-accent); }
[aria-invalid="true"] { border-color: var(--color-accent) !important; }
.twx-form-status:empty { display: none; }
.twx-form-status { margin-top: 16px; font-size: var(--step-0); }

/* ---------- Sample-content toggle (demo builds only) ---------- */
/* Outlines every [data-placeholder] element so a pitch audience can see which copy/images are stand-ins. */
.twx-sample {
  position: fixed; left: 12px; bottom: 12px; z-index: 70; min-height: 44px; padding: 0 16px;
  background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-hairline); border-radius: var(--radius-sm);
  font-size: var(--step--1); letter-spacing: 0.04em;
}
.twx-sample[aria-pressed="true"] { background: var(--color-text); color: var(--color-canvas); }
html.twx-menu-open .twx-sample, html[data-intro] .twx-sample { display: none; }
body:has(.twx-sample:not([hidden])) .twx-footer { padding-bottom: 88px; }  /* keep the copyright line clear of it */
html.twx-show-samples [data-placeholder] { outline: 2px dashed var(--color-accent); outline-offset: 4px; cursor: help; }

/* ---------- Motion states ---------- */
/* Hero entrances: CSS transform-only, opacity untouched, so text is painted (and counted for LCP) at once.
   They wait while the intro loader is up, then play. data-reveal-now="1|2|3" staggers them. */
@keyframes twx-rise { from { transform: translateY(40px); } }
html.twx-motion [data-reveal-now] { animation: twx-rise 1100ms var(--ease-standard) both; }
html.twx-motion [data-reveal-now="1"] { animation-delay: 120ms; }
html.twx-motion [data-reveal-now="2"] { animation-delay: 240ms; }
html.twx-motion [data-reveal-now="3"] { animation-delay: 360ms; }
html[data-intro] [data-reveal-now] { animation-play-state: paused; }
/* Safety net (4s timer in <head>, or motion.js on error): whatever GSAP left mid-state is shown as final. */
html.twx-motion-failed [data-reveal], html.twx-motion-failed [data-reveal] * , html.twx-motion-failed [data-reveal-now] {
  transform: none !important; opacity: 1 !important; visibility: visible !important; clip-path: none !important; animation: none !important;
}
/* three.js canvas over the poster image; fades in once its texture is ready. */
.twx-gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1000ms var(--ease-standard); pointer-events: none; }
.twx-gl-on > .twx-gl { opacity: 1; }
/* Pinned sections expose scroll progress as --progress (0 → 1). Without motion it stays at the final state. */
[data-pin] { --progress: 1; }

@media (prefers-reduced-motion: reduce) {
  .twx-menu, .twx-menu.twx-is-open, .twx-menu__list a { transition: none; }
}
@media print { .twx-header, .twx-menu, .twx-intro, .twx-sample { display: none !important; } }

/* 0-fonts.css */
/* Self-hosted, SIL Open Font License 1.1: Brygada 1918 (display) and Jost (body), variable, latin + latin-ext. */
@font-face { font-family: 'Brygada 1918'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/brygada-1918-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Brygada 1918'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/brygada-1918-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/jost-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/jost-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* chrome.css */
/* chrome.css — InsightH overrides of the starter chrome: ink header, reporting-line index menu, H loader, tree footer. */
:root { --twx-header-h: 76px; --twx-on-dark-muted: color-mix(in srgb, var(--color-on-ink) 68%, transparent); }
body { font-weight: 400; }

/* ---------- Logo ---------- */
.twx-logo__text { font-family: var(--font-body); font-weight: 300; font-size: 1.625rem; letter-spacing: 0.02em; line-height: 1; color: var(--color-on-ink); white-space: nowrap; }
.twx-logo__text b { font-weight: 700; color: var(--color-accent); font-size: 0.78em; vertical-align: 0.5em; margin-left: 0.05em; letter-spacing: 0; }

/* ---------- Header ---------- */
.twx-header, .twx-header--scrolled { background: var(--color-ink); color: var(--color-on-ink); box-shadow: 0 1px 0 color-mix(in srgb, var(--color-on-ink) 14%, transparent); }
.twx-header__bar { grid-template-columns: auto 1fr auto; }
.twx-header__nav { justify-self: center; display: none; gap: clamp(20px, 3vw, 44px); }
.twx-header__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step--1); letter-spacing: 0.06em; text-decoration: none; color: var(--twx-on-dark-muted); transition: color var(--duration-fast) linear; position: relative; }
.twx-header__nav a:hover, .twx-header__nav a[aria-current] { color: var(--color-on-ink); }
.twx-header__nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--color-on-ink); }
@media (min-width: 1024px) { .twx-header__nav { display: flex; } .twx-header__bar { grid-template-columns: auto 1fr auto auto; gap: 28px; } }
.twx-header .twx-cta { background: transparent; color: var(--color-on-ink); border: 1px solid color-mix(in srgb, var(--color-on-ink) 55%, transparent); }
.twx-header .twx-cta:hover { background: var(--color-on-ink); color: var(--color-ink); }
.twx-menu-btn { color: var(--color-on-ink); }
.twx-header[data-logo="left"] .twx-menu-btn { justify-self: end; }
@media (max-width: 1023px) { .twx-header__tools { display: none; } }
@media (max-width: 767px) { .twx-menu-btn__label { display: inline; } }
@media (max-width: 767px) { :root { --twx-header-h: 64px; } .twx-logo__text { font-size: 1.375rem; } }

/* ---------- Index menu: a reporting line with six branches ---------- */
.twx-menu { background: var(--color-ink); }
.twx-menu__body { display: block; position: relative; max-width: var(--twx-max); padding-top: 24px; padding-bottom: 24px; }
.twx-menu__root { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--twx-on-dark-muted); display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.twx-menu__root::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--color-on-ink); display: inline-block; }
.twx-menu__list { border: 0; position: relative; margin-left: 6px; padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--twx-on-dark-line); }
.twx-menu__list li { border: 0; overflow: hidden; position: relative; }
.twx-menu__list li::before { content: ""; position: absolute; left: calc(-1 * clamp(24px, 4vw, 56px)); top: 50%; width: clamp(16px, 3vw, 40px); height: 1px; background: var(--twx-on-dark-line); transition: background var(--duration-fast) linear, width var(--duration-base) var(--ease-standard); }
.twx-menu__list a { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; padding: clamp(6px, 1.2vh, 12px) 0; }
.twx-menu__node { grid-row: 1 / span 2; align-self: center; width: 10px; height: 10px; border: 1px solid var(--twx-on-dark-muted); transition: background var(--duration-fast) linear, border-color var(--duration-fast) linear; }
.twx-menu__label { font-size: clamp(2.25rem, 4.4vh + 2vw, var(--step-3)); letter-spacing: -0.015em; font-weight: 500; }
.twx-menu__desc { grid-column: 2; font-size: var(--step--1); color: var(--twx-on-dark-muted); letter-spacing: 0.02em; }
.twx-menu__list a:hover .twx-menu__node, .twx-menu__list a:focus-visible .twx-menu__node, .twx-menu__list a[aria-current] .twx-menu__node { background: var(--color-on-ink); border-color: var(--color-on-ink); }
.twx-menu__list li:has(a:hover)::before, .twx-menu__list li:has(a:focus-visible)::before { background: var(--color-on-ink); width: clamp(24px, 4vw, 56px); }
.twx-menu__list a:hover .twx-menu__label { transform: translateX(10px); }
.twx-menu__foot { justify-content: space-between; }
.twx-menu__foot .twx-cta { margin-left: 0; background: var(--color-on-ink); color: var(--color-ink); }
@media (max-width: 767px) { .twx-menu__desc { display: none; } .twx-menu__label { font-size: clamp(2rem, 9vw, 3rem); } .twx-menu__foot { flex-direction: row; flex-wrap: wrap; } .twx-menu__foot .twx-cta { width: auto; } }

/* ---------- Loader: the H builds itself, two people and the line between them ---------- */
html[data-intro] .twx-intro { background: var(--color-ink); color: var(--color-on-ink); justify-content: center; align-items: center; }
.twx-intro__mark { display: grid; justify-items: center; gap: 8px; }
.twx-intro__h { width: clamp(96px, 16vw, 160px); height: auto; fill: none; stroke-width: 6; }
.twx-intro__h path { stroke: var(--color-on-ink); stroke-dasharray: 1; stroke-dashoffset: 1; }
.twx-intro__h .bar { stroke: var(--color-accent); }
.twx-intro__h .dot { fill: var(--color-ink); stroke: none; opacity: 0; }
.twx-intro__name { font-family: var(--font-body); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: 0.22em; opacity: 0; }
.twx-intro__name b { font-weight: 700; color: var(--color-accent); letter-spacing: 0; font-size: 0.8em; vertical-align: 0.45em; }
html[data-intro] .twx-intro__h .l { animation: twx-draw 520ms var(--ease-standard) 100ms forwards; }
html[data-intro] .twx-intro__h .r { animation: twx-draw 520ms var(--ease-standard) 260ms forwards; }
html[data-intro] .twx-intro__h .bar { animation: twx-draw 520ms var(--ease-standard) 560ms forwards; }
html[data-intro] .twx-intro__name { animation: twx-fade 600ms linear 780ms forwards; }
@keyframes twx-draw { to { stroke-dashoffset: 0; } }
@keyframes twx-fade { to { opacity: 1; } }
.twx-intro__bar { position: absolute; left: var(--space-gutter); right: var(--space-gutter); bottom: var(--space-gutter); background: color-mix(in srgb, var(--color-on-ink) 22%, transparent); }
.twx-intro__bar span { background: var(--color-on-ink); }
.twx-intro__skip { color: var(--twx-on-dark-muted); }
.twx-intro__skip:hover { color: var(--color-on-ink); }

/* ---------- Footer: the sitemap hangs from one reporting line ---------- */
.twx-footer { background: var(--color-accent-wash); color: var(--color-text-muted); padding: var(--space-section) var(--space-gutter) 28px; font-size: var(--step-0); }
.twx-footer__top { max-width: var(--twx-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.twx-footer__line { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 5vw, var(--step-3)); line-height: var(--twx-leading-display); letter-spacing: -0.02em; color: var(--color-text); max-width: 12ch; }
.twx-footer__addr { font-style: normal; line-height: 1.55; }
.twx-footer__entity { display: block; color: var(--color-text); font-weight: 500; margin-bottom: 4px; }
.twx-footer__contact { display: grid; }
.twx-footer a { color: var(--color-text); min-height: 44px; }
.twx-footer__tree { max-width: var(--twx-max); margin: var(--space-block) auto 0; }
.twx-footer__tree ul { display: flex; flex-wrap: wrap; position: relative; border-top: 1px solid var(--color-text); gap: 0 clamp(24px, 4vw, 64px); padding-top: 0; }
.twx-footer__tree li { position: relative; padding-top: 18px; }
.twx-footer__tree li::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--color-text); }
.twx-footer__tree a { text-decoration: none; font-weight: 500; }
.twx-footer__tree a:hover { text-decoration: underline; }
.twx-footer__bottom { border-top: 1px solid var(--color-hairline); margin-top: var(--space-block); font-size: var(--step--1); }
@media (max-width: 1023px) { .twx-footer__top { grid-template-columns: 1fr 1fr; } .twx-footer__line { grid-column: 1 / -1; } }
@media (max-width: 599px) { .twx-footer__top { grid-template-columns: 1fr; } }

.twx-sample { background: var(--color-surface); }

/* Menu: a large organisation chart draws itself beside the index when it opens (desktop). */
.orgchart--menu { display: none; }
@media (min-width: 1024px) {
  .twx-menu__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
  .twx-menu__root { grid-column: 1 / -1; }
  .orgchart--menu { display: block; width: 100%; height: auto; align-self: center; opacity: 0.9; }
  .twx-menu .orgchart--menu .chart path { stroke-dashoffset: 1; transition: none; }
  .twx-menu .orgchart--menu .chart .node { opacity: 0; transition: none; }
  .twx-menu.twx-is-open .orgchart--menu .chart path { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-standard) calc(var(--d, 0) * 110ms + 400ms); }
  .twx-menu.twx-is-open .orgchart--menu .chart .node { opacity: 1; transition: opacity 700ms var(--ease-standard) calc(var(--d, 0) * 110ms + 550ms); }
}
.orgchart--menu .node text { display: none; }

/* pages.css */
/* pages.css — InsightH page sections. Values from tokens.css only. One idea: the reporting line (org-chart elbows) as the drawing system. */
.wrap { width: 100%; max-width: var(--twx-max); margin: 0 auto; padding-left: var(--space-gutter); padding-right: var(--space-gutter); }
.h-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: var(--twx-leading-display); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
h3 { line-height: 1.15; }
section { position: relative; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--radius-sm); font-size: var(--step-0); font-weight: 500; letter-spacing: 0.01em; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); }
.btn--amber { background: var(--color-accent); color: var(--color-ink); }
.btn--amber:hover { background: var(--color-on-ink); }
.btn--ink { background: var(--color-ink); color: var(--color-on-ink); }
.btn--ink:hover { background: var(--color-text-muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--step-0); font-weight: 500; text-decoration: underline; text-underline-offset: 0.28em; }
.link-arrow span { transition: transform var(--duration-base) var(--ease-standard); }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow--ink { color: var(--color-on-ink); }

/* ---------- Home hero: ink banner, the org chart is the centrepiece ---------- */
.hero--ink { background: var(--color-ink); color: var(--color-on-ink); padding-top: calc(var(--twx-header-h) + var(--space-block)); padding-bottom: var(--space-block); }
.hero__top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-gutter); align-items: end; }
.hero__title { font-size: clamp(3.25rem, 7.6vw, 7rem); line-height: var(--twx-leading-display); letter-spacing: -0.025em; }
.hero__side { display: grid; gap: 24px; justify-items: start; padding-bottom: 10px; }
.hero__lead { font-size: var(--step-1); line-height: 1.3; color: var(--twx-on-dark-muted); max-width: 26ch; }
.hero__stage { margin-top: clamp(2.5rem, 4vw, 4rem); }
.hero__chartlabel { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--twx-on-dark-muted); margin-bottom: 18px; }
.orgchart-scroll { overflow-x: auto; scrollbar-width: thin; }
.orgchart { width: 100%; height: auto; display: block; overflow: visible; }
.orgchart .chart { visibility: hidden; }
.orgchart .chart.is-active { visibility: visible; }
.orgchart { --oc-line: color-mix(in srgb, var(--color-on-ink) 48%, transparent); --oc-edge: color-mix(in srgb, var(--color-on-ink) 55%, transparent); --oc-fill: var(--color-ink); --oc-text: var(--color-on-ink); }
.orgchart path { fill: none; stroke: var(--oc-line); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.orgchart .chart.is-active path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-standard) calc(var(--d, 0) * 110ms); }
.orgchart .node rect { fill: var(--oc-fill); stroke: var(--oc-edge); stroke-width: 1.2; }
.orgchart .node text { fill: var(--oc-text); font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: 0.02em; }
.orgchart .node { opacity: 0; transform-box: fill-box; }
.orgchart .chart.is-active .node { opacity: 1; transition: opacity 600ms var(--ease-standard) calc(var(--d, 0) * 110ms + 150ms); }
.orgchart .node.hr rect { stroke: var(--color-accent); stroke-width: 1.8; }
.orgchart .node.hr--dashed rect { stroke-dasharray: 5 4; }
.orgchart .node.hr--fill rect { fill: var(--color-accent); }
.orgchart .node.hr--fill text { fill: var(--color-ink); font-weight: 500; }
.orgchart .node.hr text { font-weight: 500; }
.orgchart path.hrline { stroke-dasharray: 1; stroke: var(--twx-on-dark-muted); }
.stage-tabs { display: flex; border-top: 1px solid var(--twx-on-dark-line); margin-top: 22px; }
.stage-tab { flex: 0 1 auto; min-height: 56px; margin-top: -1px; padding: 18px clamp(16px, 3vw, 44px) 14px 0; background: none; border: 0; border-top: 3px solid transparent; color: var(--twx-on-dark-muted); font-size: var(--step-0); font-weight: 500; text-align: left; letter-spacing: 0.01em; transition: color var(--duration-fast) linear, border-color var(--duration-fast) linear; }
.stage-tab + .stage-tab { padding-left: clamp(16px, 3vw, 44px); }
.stage-tab:hover { color: var(--color-on-ink); }
.stage-tab[aria-selected="true"] { color: var(--color-on-ink); border-top-color: var(--color-on-ink); }
.stage-tab:focus-visible { outline-color: var(--color-on-ink); outline-offset: -3px; }
.stage-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-gutter); align-items: end; margin-top: 26px; min-height: 120px; }
.stage-panel__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 30ch; }
.hero__note { margin-top: 28px; font-size: var(--step--1); color: var(--twx-on-dark-muted); }

/* ---------- Proof: real people, high on the page ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); padding-top: var(--space-section); padding-bottom: var(--space-section); align-items: start; }
.proof__title { font-size: clamp(1.875rem, 3.2vw, 3rem); line-height: 1.1; }
.proof__people { display: grid; gap: 0; }
.proof__person { border-top: 1px solid var(--color-text); padding: 22px 0 30px; }
.proof__person h3 { font-size: var(--step-1); margin-bottom: 8px; }
.proof__person p { color: var(--color-text-muted); max-width: 52ch; }
.proof__people .link-arrow { margin-top: 12px; }

/* ---------- Belief ---------- */
.belief { background: var(--color-surface); padding-block: var(--space-section); border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.belief__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 128px); align-items: start; }
.belief__title { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.08; }
.belief__sub { margin-top: 32px; font-size: var(--step-1); line-height: 1.35; color: var(--color-text-muted); max-width: 52ch; }
.belief__principles { display: grid; }
.belief__principles div { border-top: 1px solid var(--color-hairline); padding: 20px 0 22px; }
.belief__principles dt { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); margin-bottom: 4px; }
.belief__principles dd { color: var(--color-text-muted); }

/* ---------- Services index ---------- */
.index { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.index__title { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.08; margin-bottom: var(--space-block); }
.idx { border-bottom: 1px solid var(--color-text); margin-bottom: 36px; }
.idx-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 40px; gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: 30px 0; border-top: 1px solid var(--color-text); text-decoration: none; transition: padding var(--duration-base) var(--ease-standard), background-color var(--duration-fast) linear; }
.idx-row:hover { padding-left: 16px; background: var(--color-accent-wash); }
.idx-row__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; }
.idx-row__items { color: var(--color-text-muted); }
.idx-row__go { justify-self: end; font-size: var(--step-1); }

/* ---------- Ladder band (home) and staircase ---------- */
.ladder-band { background: var(--color-ink); color: var(--color-on-ink); padding-top: var(--space-section); padding-bottom: var(--space-section); }
.ladder-band__title { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.02; margin-bottom: var(--space-block); }
.mini-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; margin-bottom: 40px; }
.mini-step { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; background: color-mix(in srgb, var(--color-on-ink) 9%, transparent); border-left: 1px solid var(--twx-on-dark-line); }
.mini-step--1 { min-height: 230px; } .mini-step--2 { min-height: 290px; } .mini-step--3 { min-height: 350px; } .mini-step--4 { min-height: 410px; background: color-mix(in srgb, var(--color-on-ink) 16%, transparent); }
.mini-step__tag { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--twx-on-dark-muted); margin-bottom: auto; }
.mini-step__name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.12; }
.mini-step__p { color: var(--twx-on-dark-muted); font-size: var(--step--1); line-height: 1.5; }

/* ---------- Inspiration ---------- */
.inspo { padding-top: var(--space-section); padding-bottom: var(--space-section); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 128px); align-items: end; max-width: var(--twx-max); margin: 0 auto; padding-left: var(--space-gutter); padding-right: var(--space-gutter); }
.inspo__title { font-size: clamp(2.75rem, 6vw, var(--step-3)); line-height: 1; }
.inspo__text { color: var(--color-text-muted); font-size: var(--step-1); line-height: 1.4; max-width: 34ch; }
.inspo--tint { background: var(--color-accent-wash); display: block; max-width: none; padding: 0; }
.inspo__split { padding-top: var(--space-section); padding-bottom: var(--space-section); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 128px); align-items: end; }
.inspo--tint .inspo__text { color: var(--color-text); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-ink); color: var(--color-on-ink); padding-block: var(--space-section); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 128px); align-items: end; }
.cta-band__title { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1; max-width: 20ch; }
.cta-band__text { font-size: var(--step-1); line-height: 1.35; color: var(--twx-on-dark-muted); margin-bottom: 28px; max-width: 30ch; }
.cta-band .btn--ink { background: var(--color-on-ink); color: var(--color-ink); }
.cta-band .btn--ink:hover { background: var(--color-accent-wash); }

/* ---------- Inner page heads ---------- */
.page-head { padding-top: calc(var(--twx-header-h) + var(--space-block)); padding-bottom: var(--space-block); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-gutter); align-items: end; }
.page-head__title { font-size: clamp(3rem, 7vw, 6.5rem); line-height: var(--twx-leading-display); letter-spacing: -0.025em; }
.page-head__side { display: grid; gap: 18px; padding-bottom: 8px; }
.page-head__lead { font-size: var(--step-1); line-height: 1.3; color: var(--color-text-muted); max-width: 30ch; }
.page-head__belief { font-size: var(--step-0); color: var(--color-text); max-width: 40ch; border-top: 1px solid var(--color-text); padding-top: 14px; }

/* ---------- About ---------- */
.ink-band { background: var(--color-ink); color: var(--color-on-ink); padding-block: var(--space-section); }
.ink-band__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.ink-band__h { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.05; position: sticky; top: calc(var(--twx-header-h) + 32px); }
.pr { border-top: 1px solid var(--twx-on-dark-line); padding: 26px 0 40px; max-width: 640px; }
.pr--2 { margin-left: 8%; } .pr--3 { margin-left: 16%; } .pr--4 { margin-left: 24%; }
.pr__h { font-size: clamp(1.75rem, 2.6vw, 2.5rem); margin-bottom: 10px; }
.pr__p { color: var(--twx-on-dark-muted); max-width: 46ch; }
.serve { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.serve__title { font-size: clamp(2rem, 3.8vw, 3.5rem); margin-bottom: var(--space-block); }
.serve__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 96px); align-items: baseline; border-top: 1px solid var(--color-text); padding: 34px 0 40px; }
.serve__row:last-child { border-bottom: 1px solid var(--color-text); }
.serve__row h3 { font-size: clamp(1.75rem, 3.2vw, 3rem); }
.serve__row p { color: var(--color-text-muted); font-size: var(--step-1); line-height: 1.35; max-width: 28ch; }
.team { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.team__title { font-size: clamp(2rem, 3.8vw, 3.5rem); margin-bottom: var(--space-block); }
.member { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); padding: var(--space-block) 0; border-top: 1px solid var(--color-text); align-items: start; }
.member--2 { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.member--2 .member__portrait { order: 2; justify-self: end; }
.member__portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 360px; background: #F3F3F1; overflow: hidden; border-radius: var(--radius-sm); }
.member__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__name { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1; margin-bottom: 10px; }
.member__role { font-size: var(--step-1); color: var(--color-text-muted); margin-bottom: 28px; }
.member__body p + p { margin-top: 16px; }
.member__body p:not(.member__role) { max-width: 62ch; }
.team__member { border-top: 1px solid var(--color-text); padding-top: 24px; font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); max-width: 40ch; }
.why { padding-bottom: var(--space-section); display: grid; gap: 20px; justify-items: start; }
.why__title { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.why__text { font-size: var(--step-1); line-height: 1.4; max-width: 46ch; color: var(--color-text-muted); margin-bottom: 12px; }

/* ---------- Services: six different layouts ---------- */
.svc-jump { padding-bottom: var(--space-block); }
.svc-jump ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-text); }
.svc-jump a { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 500; }
.svc-jump a:hover { text-decoration: underline; }
@media (max-width: 767px) { .svc-jump ul { grid-template-columns: 1fr; } }
.svc { padding-block: var(--space-section); }
.svc__name { font-size: clamp(2.25rem, 4.6vw, 4.25rem); line-height: 1.02; }
.svc__intro { margin-top: 18px; font-size: var(--step-1); line-height: 1.3; color: var(--color-text-muted); max-width: 26ch; }
.svc__head--on-ink .svc__intro { color: var(--twx-on-dark-muted); }
.svc--advisory { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.spec li { border-top: 1px solid var(--color-text); padding: 26px 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.15; }
.spec li:last-child { border-bottom: 1px solid var(--color-text); }
.svc--talent { background: var(--color-surface); border-block: 1px solid var(--color-hairline); }
.pipe { display: flex; margin-top: var(--space-block); position: relative; border-top: 1px solid var(--color-text); }
.pipe li { position: relative; flex: 1 1 0; padding: 40px 24px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.15; }
.pipe__dot { position: absolute; left: 0; top: -7px; width: 13px; height: 13px; background: var(--color-ink); }
.pipe li::before { content: ""; position: absolute; left: 6px; top: 0; width: 1px; height: 28px; background: var(--color-text); }
.pipe__t { display: block; max-width: 14ch; padding-bottom: 24px; }
.svc--performance { background: var(--color-ink); color: var(--color-on-ink); }
.stmt { margin-top: var(--space-block); }
.stmt li { border-top: 1px solid var(--twx-on-dark-line); padding: 22px 0 26px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; }
.stmt li:nth-child(1) { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
.stmt li:nth-child(2) { font-size: clamp(1.75rem, 3.2vw, 2.875rem); }
.stmt li:nth-child(3) { font-size: clamp(2rem, 4.2vw, 3.75rem); }
.stmt li:nth-child(4) { font-size: clamp(2.25rem, 5.4vw, 4.75rem); border-bottom: 1px solid var(--twx-on-dark-line); }
.svc--leadership .steps-list { margin-top: var(--space-block); }
.steps-list li { margin-left: calc(var(--n) * 7%); border-left: 1px solid var(--color-text); padding: 14px 0 14px 28px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
.svc--operations { background: var(--color-accent-wash); }
.runin { margin-top: var(--space-block); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.875rem, 3.8vw, 3.5rem); line-height: 1.22; letter-spacing: -0.015em; max-width: 24em; }
.runin i { font-style: normal; color: var(--color-text-muted); }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-block); border-top: 1px solid var(--color-text); }
.cols li { border-left: 1px solid var(--color-text); padding: 24px 24px 32px; min-height: 240px; display: flex; align-items: flex-end; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.15; }
.cols li:first-child { border-left: 0; padding-left: 0; }
.cols li:last-child { border-bottom: 0; }

/* ---------- Solutions: the staircase ---------- */
.stair-wrap { padding-bottom: var(--space-section); }
.stair { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; border-bottom: 1px solid var(--color-text); }
.stair__step { display: flex; flex-direction: column; gap: 14px; padding: 32px 26px 36px; border-left: 1px solid var(--color-text); }
.stair__step--1 { min-height: 440px; background: var(--color-surface); }
.stair__step--2 { min-height: 540px; background: var(--color-accent-wash); }
.stair__step--3 { min-height: 640px; background: color-mix(in srgb, var(--color-ink) 16%, var(--color-accent-wash)); }
.stair__step--4 { min-height: 740px; background: var(--color-ink); color: var(--color-on-ink); }
.stair__tag { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: auto; padding-bottom: 24px; }
.stair__name { font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.05; }
.stair__p { font-size: var(--step-0); line-height: 1.45; }
.stair__for { font-size: var(--step--1); color: var(--color-text-muted); }
.stair__step--4 .stair__for { color: var(--twx-on-dark-muted); }
.stair__draws { font-size: var(--step--1); border-top: 1px solid currentColor; padding-top: 12px; margin-top: 6px; }
.stair__draws span { display: block; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; opacity: 0.75; }
.stair__draws a { display: flex; align-items: center; min-height: 44px; }
.stair__note { margin-top: 24px; color: var(--color-text-muted); }

/* ---------- Approach: pinned process ---------- */
.proc { background: var(--color-ink); color: var(--color-on-ink); }
.proc__frame { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); gap: clamp(24px, 6vw, 96px); align-items: center; height: 100%; padding-block: var(--space-block); }
.proc__rail { display: grid; gap: 4px; position: relative; padding-left: 28px; border-left: 1px solid var(--twx-on-dark-line); }
.proc__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.625rem); color: color-mix(in srgb, var(--color-on-ink) 36%, transparent); padding: 8px 0; position: relative; transition: color var(--duration-base) var(--ease-standard); }
.proc__name::before { content: ""; position: absolute; left: -33px; top: 50%; width: 9px; height: 9px; background: var(--color-ink); border: 1px solid color-mix(in srgb, var(--color-on-ink) 36%, transparent); transform: translateY(-50%); transition: background var(--duration-base) linear, border-color var(--duration-base) linear; }
.proc[data-step="0"] .proc__name[data-i="0"], .proc[data-step="1"] .proc__name[data-i="1"], .proc[data-step="2"] .proc__name[data-i="2"], .proc[data-step="3"] .proc__name[data-i="3"], .proc[data-step="4"] .proc__name[data-i="4"] { color: var(--color-on-ink); }
.proc[data-step="0"] .proc__name[data-i="0"]::before, .proc[data-step="1"] .proc__name[data-i="1"]::before, .proc[data-step="2"] .proc__name[data-i="2"]::before, .proc[data-step="3"] .proc__name[data-i="3"]::before, .proc[data-step="4"] .proc__name[data-i="4"]::before { background: var(--color-on-ink); border-color: var(--color-on-ink); }
.proc__stage { display: grid; }
.proc__body { grid-area: 1 / 1; align-self: center; }
.proc__big { font-size: clamp(4rem, 12vw, var(--step-4)); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 28px; }
.proc__body p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; max-width: 28ch; color: var(--twx-on-dark-muted); }
.proc__hint { position: absolute; left: var(--space-gutter); bottom: 24px; font-size: var(--step--1); color: var(--twx-on-dark-muted); letter-spacing: 0.06em; }
/* With motion: one step visible at a time. Without motion (or if it fails): all five stack and read in order. */
html.twx-motion:not(.twx-motion-failed) .proc__body { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-slow) var(--ease-standard); pointer-events: none; }
html.twx-motion:not(.twx-motion-failed) .proc[data-step="0"] .proc__body[data-i="0"], html.twx-motion:not(.twx-motion-failed) .proc[data-step="1"] .proc__body[data-i="1"], html.twx-motion:not(.twx-motion-failed) .proc[data-step="2"] .proc__body[data-i="2"], html.twx-motion:not(.twx-motion-failed) .proc[data-step="3"] .proc__body[data-i="3"], html.twx-motion:not(.twx-motion-failed) .proc[data-step="4"] .proc__body[data-i="4"] { opacity: 1; transform: none; pointer-events: auto; }
html:not(.twx-motion) .proc__stage, html.twx-motion-failed .proc__stage { gap: 56px; }
html:not(.twx-motion) .proc__body, html.twx-motion-failed .proc__body { grid-area: auto; }
html:not(.twx-motion) .proc__rail, html:not(.twx-motion) .proc__hint, html.twx-motion-failed .proc__rail, html.twx-motion-failed .proc__hint { display: none; }
html:not(.twx-motion) .proc__frame, html.twx-motion-failed .proc__frame { grid-template-columns: 1fr; padding-block: var(--space-section); }
.focus { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.focus__title { font-size: clamp(2rem, 3.8vw, 3.5rem); margin-bottom: var(--space-block); }
.focus__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.focus__rows { display: grid; gap: 28px; }
.fig--focus { min-height: 100%; }
.fig--focus img { object-position: 38% 50%; }
.fig--focus img { position: absolute; inset: 0; }
.fig--focus { position: relative; min-height: 420px; }
.focus__rows div { border-top: 1px solid var(--color-text); padding-top: 18px; }
.focus__rows h3 { font-size: var(--step-1); margin-bottom: 8px; }
.focus__rows p { color: var(--color-text-muted); max-width: 30ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 128px); align-items: start; padding-bottom: var(--space-section); }
.contact__details { display: grid; gap: 6px; align-content: start; }
.contact__h { font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--color-text); }
.contact__h:first-child { margin-top: 0; }
.contact__details p, .contact__details address { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.35; font-style: normal; }
.contact__details a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }
.contact__form { display: grid; gap: 28px; justify-items: start; }
.contact__formh { font-size: var(--step-2); line-height: 1.05; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; }
.field { display: grid; gap: 4px; width: 100%; }
.field label { font-size: var(--step--1); letter-spacing: 0.06em; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--color-text); border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom-width: 3px; padding-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols li:nth-child(3) { border-left: 0; padding-left: 0; }
  .cols li:nth-child(n+3) { border-top: 1px solid var(--color-text); }
  .stair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stair__step { min-height: 0 !important; }
  .mini-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-step { min-height: 0 !important; }
  .pipe { flex-wrap: wrap; }
  .pipe li { flex: 1 1 45%; padding-bottom: 20px; }
}
@media (max-width: 767px) {
  .hero__top, .proof, .belief__grid, .stage-panel, .inspo, .inspo__split, .cta-band__grid, .page-head, .ink-band__grid, .serve__row, .member, .member--2, .svc--advisory, .contact, .focus__rows, .focus__grid, .field-row { grid-template-columns: 1fr; }
  .orgchart-scroll { margin-inline: calc(-1 * var(--space-gutter)); padding-inline: var(--space-gutter); }
  .orgchart { min-width: 780px; }
  .stage-tabs { flex-direction: column; border-top: 0; }
  .stage-tab, .stage-tab + .stage-tab { padding: 14px 0; border-top: 1px solid var(--twx-on-dark-line); min-height: 52px; margin-top: 0; }
  .stage-tab[aria-selected="true"] { border-top-color: var(--color-on-ink); box-shadow: inset 0 3px 0 var(--color-on-ink); }
  .idx-row { grid-template-columns: 1fr 24px; gap: 6px 12px; padding: 22px 0; }
  .idx-row__items { grid-column: 1; font-size: var(--step--1); }
  .idx-row__go { grid-column: 2; grid-row: 1; }
  .mini-ladder, .stair, .cols { grid-template-columns: 1fr; }
  .cols li, .cols li:first-child, .cols li:nth-child(3) { border-left: 0; padding: 20px 0; min-height: 0; border-top: 1px solid var(--color-text); }
  .mini-step:nth-child(2) { margin-left: 5%; } .mini-step:nth-child(3) { margin-left: 10%; } .mini-step:nth-child(4) { margin-left: 15%; }
  .stair__step:nth-child(2) { margin-left: 5%; } .stair__step:nth-child(3) { margin-left: 10%; } .stair__step:nth-child(4) { margin-left: 15%; }
  .pr--2, .pr--3, .pr--4 { margin-left: 0; }
  .ink-band__h { position: static; }
  .steps-list li { margin-left: calc(var(--n) * 4%); }
  .pipe { flex-direction: column; border-top: 0; border-left: 1px solid var(--color-text); }
  .pipe li { padding: 0 0 28px 28px; }
  .pipe__dot { left: -7px; top: 4px; }
  .pipe li::before { left: 0; top: 10px; width: 22px; height: 1px; }
  .member--2 .member__portrait { order: 0; justify-self: start; }
  .member__portrait { max-width: 260px; }
  .proc__frame { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .proc__rail { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; border: 0; }
  .proc__name::before { display: none; }
  .proc__hint { position: static; }
  .proc__big { font-size: clamp(3.25rem, 17vw, 5rem); }
  .proc__body p { font-size: var(--step-1); }
  .page-head__title { font-size: clamp(2.5rem, 11.2vw, 4rem); }
  .hero__title { font-size: clamp(2.5rem, 11.2vw, 4rem); }
}

/* Static mini charts (About, who we serve): same drawing, ink on paper, boxes only. */
.orgchart--mini { --oc-line: var(--color-text); --oc-edge: var(--color-text); --oc-fill: var(--color-surface); --oc-text: var(--color-text); width: 100%; max-width: 360px; min-width: 0; justify-self: end; }
.orgchart--mini .node text { display: none; }
.orgchart--mini .chart { visibility: visible; }
.orgchart--mini path { stroke-dashoffset: 0; }
.orgchart--mini .node { opacity: 1; }
.orgchart--mini .node.hr--fill rect { fill: var(--color-accent); stroke: var(--color-accent); }
.serve__row { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
@media (max-width: 767px) { .serve__row { grid-template-columns: 1fr; } .orgchart--mini { justify-self: start; max-width: 300px; } }
.orgchart--mini .node.hr rect { stroke: var(--color-text); stroke-width: 2.4; }
.orgchart--mini .node.hr--fill rect { fill: var(--color-accent); stroke: var(--color-accent); }

.proc__line { width: 100%; height: auto; max-height: 70vh; align-self: center; overflow: visible; }
.proc__line path { fill: none; stroke-width: 1.5; }
.proc__line .ghost { stroke: var(--twx-on-dark-line); }
.proc__line .draw { stroke: var(--color-on-ink); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--progress, 1)); }
.proc__line .pt { fill: var(--color-ink); stroke: color-mix(in srgb, var(--color-on-ink) 45%, transparent); stroke-width: 1.2; transition: fill var(--duration-base) linear, stroke var(--duration-base) linear; }
.proc[data-step="0"] .pt[data-i="0"], .proc[data-step="1"] .pt[data-i="1"], .proc[data-step="2"] .pt[data-i="2"], .proc[data-step="3"] .pt[data-i="3"], .proc[data-step="4"] .pt[data-i="4"] { fill: var(--color-on-ink); stroke: var(--color-on-ink); }
html:not(.twx-motion) .proc__line, html.twx-motion-failed .proc__line { display: none; }
@media (max-width: 767px) { .proc__line { display: none; } }
.proc__frame > * { min-width: 0; }
.proc__big { overflow-wrap: anywhere; }

.ladder-band__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-gutter); align-items: end; margin-bottom: var(--space-block); }
.ladder-band__head .ladder-band__title { margin-bottom: 0; }
.ladder-band__svg { width: 100%; height: auto; justify-self: end; max-width: 520px; }
.ladder-band__svg path { fill: none; stroke: var(--twx-on-dark-muted); stroke-width: 1.4; }
.ladder-band__svg rect { fill: var(--color-on-ink); }
.inspo__svg { grid-column: 1 / -1; width: 100%; max-width: 640px; height: auto; margin-top: 8px; }
.inspo__svg path, .inspo__svg rect { fill: none; stroke: var(--color-text); stroke-width: 1.5; }
.inspo__svg rect { fill: var(--color-surface); }
@media (max-width: 767px) { .ladder-band__head { grid-template-columns: 1fr; } .ladder-band__svg { justify-self: start; max-width: 320px; } }

/* ---------- Photography (Unsplash, see CREDITS.md). Calm, uncoloured, always cropped by aspect-ratio. ---------- */
.fig { margin: 0; overflow: hidden; background: var(--color-accent-wash); border-radius: var(--radius-sm); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--wide { aspect-ratio: 21 / 8; margin-bottom: var(--space-section); }
.fig--wide img { object-position: 50% 30%; }
.fig--right { width: min(100%, 62%); margin-left: auto; aspect-ratio: 3 / 2; margin-bottom: var(--space-section); }
.fig--band { aspect-ratio: 21 / 7; margin-bottom: var(--space-block); }
.fig--band img { object-position: 50% 62%; }
.fig--left { width: min(100%, 60%); aspect-ratio: 16 / 10; margin-bottom: var(--space-block); }
.fig--side { aspect-ratio: 4 / 3; margin-top: 40px; }
.fig--dit { aspect-ratio: 5 / 4; }
.fig--dit img { object-position: 62% 50%; }
.inspo--photo { align-items: center; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 104px); }
.inspo__copy { display: grid; gap: 28px; align-content: center; }
.inspo--photo .inspo__title { font-size: clamp(2.5rem, 4.8vw, 4.25rem); }
.inspo--photo .inspo__text { max-width: 30ch; }
.inspo--photo .inspo__svg { width: min(100%, 460px); height: auto; margin-top: 8px; }
.figwrap { padding-bottom: 0; }
@media (max-width: 899px) {
  .fig--right, .fig--left { width: 100%; }
  .fig--wide, .fig--band { aspect-ratio: 16 / 9; }
  .fig--side { margin-top: 28px; }
  .inspo--photo { grid-template-columns: 1fr; }
}
