/* Static sections: director, for architects, process and its values, contact layout */

/* (the proof strip moved into the hero section: css/hero.css) */

/* ---------- director ---------- */
.founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-copy { display: grid; gap: 22px; }
.founder-copy h2 { max-width: 14ch; }
/* no lone last word ("build." at 320–390 px); in Chinese balanced lines ("造。" was left alone at 390 and 1440 px,
   and `pretty` still left "建造。") */
.founder-lede { font-size: var(--fs-lg); line-height: 1.45; text-wrap: pretty; }
.lang-zh .founder-lede { text-wrap: balance; }
.founder-copy p { max-width: 60ch; margin: 0; text-wrap: pretty; } /* no 作 / 品。 */
.founder-quote { margin: 12px 0 0; padding: 24px 0 0 28px; border-left: 2px solid var(--amber); }
.founder-quote p { font-family: var(--font-serif); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.15; max-width: 24ch; }
/* Chinese: break only at the quote's own punctuation, in balanced lines ("它。”" never alone); 15em holds its longest phrase */
.lang-zh .founder-quote p { max-width: 15em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.founder-quote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* the profile card is drawn as an architectural title block */
.title-block { position: sticky; top: calc(var(--header-h) + 24px); }
.tb-sheet { border: 1.5px solid var(--ink); background: var(--sheet, #fbfaf6); box-shadow: var(--shadow-sheet, 0 18px 40px -24px rgba(var(--ink-rgb), .35)); }
.tb-rows { margin: 0; }
.tb-rows > div { display: grid; grid-template-columns: 112px 1fr; border-bottom: 1px solid var(--line-strong); }
.tb-rows dt, .tb-rows dd { margin: 0; padding: 10px 14px; font-size: var(--fs-sm); }
.tb-rows dt { font-family: var(--font-mono); font-size: var(--fs-label, .75rem); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line-strong); padding-top: 12px; }
.tb-rows dd { font-weight: 500; text-wrap: balance; } /* "National University / of Singapore", 金融 / 硕士 */
/* the direct line: WhatsApp and Call, each a full-height tap target (the links set the row height) */
.tb-rows .tb-direct dd { padding-block: 0; text-wrap: wrap; } /* "WhatsApp ·" keeps its dot */
.tb-direct dd a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--cobalt); text-decoration: underline 1px; text-underline-offset: .2em; }
@media (hover: hover) { .tb-direct dd a:hover { color: var(--ink); } }
.tb-foot { display: flex; justify-content: space-between; padding: 10px 14px; font-size: var(--fs-label, .75rem); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* timeline: the first and last years carry the longest entries, so their columns are wider
   (2009 holds to three lines at 1366–1440 px instead of six) */
.timeline { margin-top: clamp(64px, 8vw, 120px); }
.timeline-title { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.timeline-list { display: grid; grid-template-columns: minmax(0, 2fr) repeat(6, minmax(0, 1fr)) minmax(0, 1.3fr); border-top: 1px solid var(--line-strong); }
.timeline-list li { position: relative; padding: 22px 16px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.timeline-list li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.timeline-list li.is-key::before { background: var(--amber); border-color: var(--amber); transform: scale(1.3); }
.tl-year { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--fg); margin-bottom: 4px; }
/* the title block follows the copy in the markup, so phones read the eyebrow and headline first;
   side by side it keeps the left column */
@media (min-width: 1081px) {
  .founder-grid > .title-block { grid-column: 1; grid-row: 1; }
  .founder-grid > .founder-copy { grid-column: 2; grid-row: 1; }
}
@media (max-width: 1080px) {
  .founder-grid { grid-template-columns: 1fr; }
  .title-block { position: static; max-width: 520px; }
  .timeline-list { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 4px; }
  .timeline-list li { padding: 0 0 22px 24px; }
  .timeline-list li::before { top: 6px; left: -5px; }
}

/* ---------- for architects & consultants: on paper, opened by a hairline after the director ---------- */
.for-architects { border-top: 1px solid var(--line-strong); }
.fa-intro { display: grid; gap: 22px; }
.fa-intro .lede { margin: 0; }
/* two routes: email the set (cobalt), or start a brief (quieter, in the text colour) */
.fa-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.fa-links .link-arrow { color: var(--cobalt); border-color: rgba(var(--cobalt-rgb), .35); }
.fa-links .fa-brief { color: var(--fg); border-color: var(--line-strong); }
@media (max-width: 600px) { .fa-links a { text-wrap: balance; } } /* on two lines, never a lone "take." */
/* the photograph beside the cards (≥961 px), about as tall as their two rows; on phones it follows the lede and links */
.fa-grid { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fa-photo { display: block; color: inherit; text-decoration: none; }
.fa-photo figure { margin: 0; }
.fa-photo-frame { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.fa-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transition: transform 300ms var(--ease); }
.fa-photo-cap { margin-top: 12px; font-size: var(--fs-label, .75rem); line-height: 1.45; letter-spacing: .04em; color: var(--muted); transition: color 160ms var(--ease); }
.fa-photo-go { display: inline-block; transition: transform 160ms var(--ease); }
.fa-photo:focus-visible { outline-offset: 6px; }
@media (hover: hover) {
  .fa-photo:hover img { transform: scale(1.03); }
  .fa-photo:hover .fa-photo-cap { color: var(--cobalt); }
  .fa-photo:hover .fa-photo-go { transform: translateX(4px); }
}
.fa-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.fa-cards li { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.fa-cards li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
/* each card opens with a short amber rule (the drafting annotation, like the Work panels' meta line); on paper, the
   deeper amber, as the bright one nearly vanishes there (1.7:1) */
.fa-cards li::before { content: ""; width: 18px; height: 2px; background: var(--amber-deep); }
.fa-cards h3 { font-size: 1.25rem; }
.fa-cards p { margin: 0; color: var(--muted); font-size: var(--fs-support, .9375rem); text-wrap: balance; } /* 2–4 even lines, never one word or character alone */
/* side by side, the photograph and its caption end level with the cards: the frame takes the height the cards set */
@media (min-width: 961px) {
  .fa-grid { align-items: stretch; }
  .fa-photo figure { display: flex; flex-direction: column; height: 100%; }
  .fa-photo-frame { position: relative; flex: 1 1 auto; min-height: 240px; aspect-ratio: auto; }
  .fa-photo-frame img { position: absolute; inset: 0; }
}
/* below 1200 px the cards grow taller as they narrow: a third of the row more for the photograph, so it stays a
   picture (about 4:5) rather than a 0.67 sliver */
@media (min-width: 961px) and (max-width: 1199.98px) { .fa-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
/* stacked, the photograph runs the full width; from large phones up, as a 2:1 band above the cards instead of a
   420 px portrait beside an empty strip */
@media (max-width: 960px) { .fa-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 481px) and (max-width: 960px) { .fa-photo-frame { aspect-ratio: 2 / 1; } }
@media (max-width: 600px) { .fa-cards { grid-template-columns: 1fr; } .fa-cards li:nth-child(even) { padding-left: 0; border-left: 0; } }
@media (forced-colors: active) { .fa-cards li::before { forced-color-adjust: none; background: CanvasText; } }

/* ---------- site band ---------- */
.footer-meaning { font-size: var(--fs-label, .75rem); letter-spacing: .08em; color: #93a5a8; margin-top: -6px; }
.footer-meaning [lang|="zh"] { font-size: var(--fs-label-zh, .8125rem); } /* the hanzi on EN pages at the 13 px floor */

/* ---------- process ---------- */
.process-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.step { padding: 28px clamp(16px, 2vw, 32px) 36px 0; border-bottom: 1px solid var(--line); }
.step:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.step-no { display: inline-block; font-size: var(--fs-xs); color: var(--cobalt); letter-spacing: .1em; margin-bottom: 18px; }
.step h3 { font-size: var(--fs-lg); margin-bottom: 18px; }
.step dl { margin: 0; display: grid; gap: 14px; }
.step dt { font-family: var(--font-mono); font-size: var(--fs-label, .75rem); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
/* 2–3 even lines, never "models.", "submissions." or (in Chinese) "么。" alone */
.step dd { margin: 0; font-size: var(--fs-support, .9375rem); line-height: 1.5; text-wrap: balance; transition: opacity 200ms var(--ease); }
/* the two lenses differ by weight alone, design 500 and build 600
   (child combinators: on phones the dl sits inside a .step-body div, which is the step's last child) */
.step dl > div:first-child dt { font-weight: 500; }
.step dl > div:last-child dt { font-weight: 600; }
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; }
  .step, .step:not(:nth-child(3n + 1)) { padding: 24px 0; border-left: 0; }
}

/* lens switch (js/process.js): both lenses, or only the design or the build side of every step */
.process-lens { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.process-lens .chip { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
@media (pointer: coarse) { .process-lens .chip { min-height: 44px; } }
/* phones: one row of three equal segments (a label wraps inside its chip before the row does) */
@media (max-width: 720px) {
  .process-lens { flex-wrap: nowrap; gap: 6px; margin-bottom: 16px; }
  .process-lens .chip { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; padding-inline: 6px; letter-spacing: .04em; }
}
.process-steps[data-lens="design"] .step dl > div:last-child,
.process-steps[data-lens="build"] .step dl > div:first-child { display: none; }
/* for one frame around the switch, so the lens that appears fades in */
.process-steps.is-switching .step dd { opacity: 0; }

/* phones (js/process.js, ≤720 px): each step folds to one heading row with a +/− glyph; step 01 starts open */
.process-steps.is-disclosure .step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 5px 0; }
.process-steps.is-disclosure .step-no, .process-steps.is-disclosure .step h3 { margin: 0; }
.step-toggle { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 48px; cursor: pointer; }
.step-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.step-glyph { position: relative; flex: none; width: 14px; height: 14px; }
.step-glyph::before, .step-glyph::after { content: ""; position: absolute; background: currentColor; }
.step-glyph::before { left: 0; right: 0; top: calc(50% - .75px); height: 1.5px; }
.step-glyph::after { top: 0; bottom: 0; left: calc(50% - .75px); width: 1.5px; transition: transform 240ms var(--ease); }
.step.is-open .step-glyph::after { transform: scaleY(0); }
.step-body { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease); }
.step.is-open .step-body { grid-template-rows: 1fr; }
/* a folded body leaves the accessibility tree once the fold has finished */
.step-body > dl { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear 240ms; }
.step.is-open .step-body > dl { visibility: visible; transition-delay: 0s; }
/* an empty last grid item, so the list's own gap spaces the open body's foot inside the clip
   (padding would still show when folded) */
.step-body > dl::after { content: ""; }
/* Windows High Contrast: the +/− is drawn with backgrounds, which forced colours would paint as Canvas */
@media (forced-colors: active) { .step-glyph::before, .step-glyph::after { forced-color-adjust: none; background: CanvasText; } }

/* ---------- values: the foot of Process, three rows on paper ---------- */
/* each row: the word at h3 scale, then one proof line and the case study it comes from */
.values { margin-top: clamp(64px, 8vw, 120px); }
.values-title { margin: 0 0 18px; font-family: var(--font-mono); font-size: var(--fs-label, .75rem); font-weight: 500; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.values-list { display: grid; border-top: 1px solid var(--line-strong); }
/* the word's track never drops below the word (it cannot wrap), so "Collaboration" never spills into the text */
.value { display: grid; grid-template-columns: minmax(max-content, 5fr) minmax(0, 7fr); gap: 6px clamp(24px, 5vw, 80px); align-items: baseline; padding: clamp(22px, 2.6vw, 36px) 0 clamp(14px, 1.6vw, 22px); border-bottom: 1px solid var(--line); }
.value-word { font-size: var(--fs-xl); font-weight: 700; line-height: 1.05; }
.value-body { display: grid; justify-items: start; gap: 2px; }
.value-body p { margin: 0; max-width: 58ch; color: var(--muted); line-height: 1.55; text-wrap: balance; }
.value-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--cobalt); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.value-link > span:first-child { text-decoration: underline 1px transparent; text-underline-offset: .2em; transition: text-decoration-color 160ms var(--ease); }
.value-link > span:last-child { transition: transform 160ms var(--ease); }
.value-link:focus-visible > span:first-child { text-decoration-color: currentColor; }
@media (hover: hover) {
  .value-link:hover > span:first-child { text-decoration-color: currentColor; }
  .value-link:hover > span:last-child { transform: translateX(4px); }
}
@media (max-width: 900px) { .value { grid-template-columns: minmax(0, 1fr); row-gap: 10px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-intro { display: grid; gap: 22px; }
/* stick beside the form only where the whole column fits under the header (it is ~760 px tall) */
@media (min-width: 961px) and (min-height: 860px) { .contact-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.contact-intro h2 { max-width: 12ch; }
/* beside the brief the column is only ~0.36 of the window: the headline follows it, so "you’re building." (7.7 em)
   stays on one line instead of leaving "you’re" alone on the middle line (961–1279 px). The rem part makes it grow
   with browser zoom too (a vw-only size held still from 100% to 125%); 42.6 px at 961 px leaves the 337 px column
   (17 px scrollbar) 8 px to spare. */
@media (min-width: 961px) { .contact-intro h2 { font-size: min(var(--fs-2xl), calc(3.6vw + 0.5rem)); } }
/* what follows the brief: three numbered steps in a row under the lede (stacked on the narrowest phones);
   the two short steps take their own width and the longest one the rest, so none is squeezed into three lines.
   The rest never drops below 8.5rem, so "Early cost plan / and programme" always fits in two lines: just above
   961 px (a 337 px column) the short steps give way instead, and no step runs to three lines */
.contact-steps { display: grid; gap: 12px; }
.contact-next-title { margin: 0; font-family: var(--font-mono); font-size: var(--fs-label, .75rem); font-weight: 500; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-next { display: grid; grid-template-columns: auto auto minmax(8.5rem, 1fr); border-top: 1px solid var(--line-strong); counter-reset: next; }
.contact-next li { counter-increment: next; display: grid; gap: 6px; align-content: start; padding: 14px 14px 0 0; font-size: var(--fs-support, .9375rem); line-height: 1.4; text-wrap: balance; }
/* Chinese: each step stays whole, so 工期 never splits across lines (anywhere is only the last-resort safety net) */
.lang-zh .contact-next li { word-break: keep-all; overflow-wrap: anywhere; }
.contact-next li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.contact-next li:last-child { padding-right: 0; } /* "and programme" needs the 14 px at 390 and 961 px */
.contact-next li::before { content: counter(next); font-family: var(--font-mono); font-size: var(--fs-label, .75rem); line-height: 1.4; letter-spacing: .1em; color: var(--cobalt); }
@media (max-width: 380px) {
  .contact-next { grid-template-columns: minmax(0, 1fr); }
  .contact-next li, .contact-next li + li { display: flex; gap: 14px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.contact-direct { display: grid; border-top: 1px solid var(--line-strong); margin-top: 8px; }
.contact-direct li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-direct li:not(:has(.cd-link)) { padding: 14px 0; }
.contact-direct .mono { font-size: var(--fs-label, .75rem); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* Call, WhatsApp and Email: the whole row is the link, with an arrow at its end */
.cd-link { grid-column: 1 / -1; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding-block: 10px; color: inherit; text-decoration: none; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.cd-v { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; overflow-wrap: anywhere; }
.cd-go { color: var(--muted); transition: transform 160ms var(--ease), color 160ms var(--ease); }
@media (hover: hover) {
  .cd-link:hover, .cd-link:hover .cd-go { color: var(--cobalt); }
  .cd-link:hover .cd-go { transform: translateX(4px); }
}
.cd-link:active { background-color: rgba(var(--cobalt-rgb), .04); }
.cd-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* rows still written as a label and a bare link (pages generated before the .cd-link rows): the accent hover
   is cobalt on paper and amber on the ink project-page band; :where keeps page-specific overrides winning */
.contact-direct li > a:where(:not(.cd-link)) { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .contact-direct li > a:where(:not(.cd-link)):hover { color: var(--accent); } }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- space held for blocks that modules render after load ----------
   Close to their rendered heights, so links to #process / #contact are not pushed down mid-scroll.
   main.js also re-aims in-page scrolls when the page grows, so these only need to be near. */
.js:not(.js-stalled) #work-grid:empty, .js:not(.js-stalled) #work-grid > .wk-static { min-height: min(2070px, calc(760px + 91vw)); }
/* the static project links (crawlers, no JavaScript) wait unseen in that space until js/projects.js draws the cards */
.js:not(.js-stalled) #work-grid > .wk-static { visibility: hidden; }
.js:not(.js-stalled) .studio-app:not(.is-fallback) #studio-controls:empty { min-height: 1360px; }
@media (max-width: 1023px) { .js:not(.js-stalled) .studio-app:not(.is-fallback) #studio-controls:empty { min-height: 790px; } }
@media (max-width: 720px) {
  .js:not(.js-stalled) #work-grid:empty, .js:not(.js-stalled) #work-grid > .wk-static { min-height: calc(1300px + 425vw); }
  .js:not(.js-stalled) .studio-app:not(.is-fallback) #studio-controls:empty { min-height: 1360px; }
}
@media (max-width: 639px) { .js:not(.js-stalled) .studio-app:not(.is-fallback) #studio-hud:empty { min-height: 165px; } }
@media (max-width: 400px) { .js:not(.js-stalled) .studio-app:not(.is-fallback) #studio-hud:empty { min-height: 220px; } }

/* Chinese typesetting: wider tracking off, slightly taller lines */
.lang-zh body, .lang-zh h1, .lang-zh h2, .lang-zh h3 { letter-spacing: 0; }
.lang-zh .hero-title, .lang-zh .section-head h2, .lang-zh .h-xl { line-height: 1.15; }
.lang-zh .value-word { letter-spacing: 0.02em; }
/* short Chinese copy in balanced lines, so no hanzi is left alone on the last line or split from its word:
   "文 / 学士" in the timeline at 1440 px, "带领" in the proof strip at 390 */
.lang-zh .timeline-list li { text-wrap: balance; }
/* the small mono labels: hanzi need a size up and none of the Latin caps tracking */
.lang-zh :is(.tb-rows dt, .tb-foot, .step dt, .contact-direct .mono, .timeline-title, .process-lens .chip,
  .values-title, .contact-next-title, .fa-photo-cap) { font-size: var(--fs-label-zh, .8125rem); letter-spacing: .04em; }
/* CJK: break headings at phrase boundaries (keep-all honours the <wbr> breaks in the zh title strings;
   anywhere is only the last-resort safety net), and never synthesise italics on Chinese glyphs */
.lang-zh h1, .lang-zh h2, .lang-zh h3 { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; text-wrap: balance; }
/* the ch measures are set for Latin; a CJK glyph is ~1em, so 12ch held only ~6 characters and split phrases */
.lang-zh .contact-intro h2, .lang-zh .founder-copy h2 { max-width: none; }
.lang-zh .serif-it { font-style: normal; }
